LLMs as Feature Engineers for Text-and-Tabular Prediction
Organizations: Teads
Abstract
We introduce an iterative framework that automates the extraction of interpretable, schema-bound categorical features from unstructured text for tabular prediction models. To navigate the feature space, a generator LLM proposes semantic definitions, a separate extractor LLM materializes the features, and a downstream tabular model evaluates their predictive performance. We optimize this search by translating explicit model errors, such as AUC ranking inversions, into natural-language feedback, steering the LLM to resolve specific predictive failures. Evaluated across three public datasets, this error-driven loop accelerates feature discovery by up to compared to unguided search. Empirically, the generated features demonstrate strong multi-view complementarity, strictly outperforming any subset when combined with TF-IDF and dense embeddings. Finally, the framework guarantees instance-level interpretability: the discovered features dominate SHAP importance rankings and provide a fully transparent, semantic audit trail for every prediction.
Figures & tables
| Method | Input Modality | Search Space | Feedback Signal | Live Inference |
|---|---|---|---|---|
| CAAFE ( Hollmann et al., 2023 ) | Tabular only | Python code transformations | Zero-shot (No iterative feedback loop) | Fast (LLM-free) |
| OPRO ( Yang et al., 2024 ) | Unstructured text | Free-form text prompts | Scalar metrics (Past fitness scores) | Slow (LLM call) |
| Ours | Raw text Tabular | Schema-bound categorical definitions | Textual gradients (error-based) | Fast (LLM-free) |
| Method | Kickstarter | Amazon Books | Stack Overflow |
|---|---|---|---|
| Tabular only | |||
| + TF-IDF SVD-50 | |||
| + MiniLM PCA-50 | |||
| + 10 LLM features (ours) | |||
| + LLM + TF-IDF | |||
| + LLM + Embeddings |
| Dataset | Method | Baseline | Reaches |
|---|---|---|---|
| AUC | AUC | at iter | |
| Kickstarter | 4 | ||
| Amazon Books | 3 | ||
| Stack Overflow | 9 |
| Kickstarter | Amazon Books | Stack Overflow | |||
|---|---|---|---|---|---|
| sem_specificity_of_core_noun | 2.25 | sem_content_materiality_focus | 0.59 | struct_title_orthography_quality | 1.10 |
| sem_target_audience | 0.24 | sem_negative_target_location | 0.45 | primary_tag | 0.67 |
| country | 0.17 | review_time | 0.35 | creation_year | 0.62 |
| launch_year | 0.15 | sem_inspection_depth | 0.30 | tone_formality_vs_fragmentation | 0.40 |
| category | 0.15 | sem_review_depth | 0.24 | n_tags | 0.37 |
| goal_usd | 0.09 | sem_bias_or_agenda_signal | 0.19 | struct_body_formatting_stability | 0.32 |
Automated Feature Engineering
Automated Feature Engineering creates, transforms, and selects predictive inputs with less manual design across data types and applications.
See all 54 papers