atlas

Research map / Large language models / Language, safety and interpretability

Large Language Models Can Automatically Engineer Features for Few-Shot Tabular Learning

ICML 2024 · Large language models › Language, safety and interpretability · approach: LLM pruning and scaling data · 4 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes FeatLLM, which uses an LLM (GPT-3.5) in-context to generate rule-based binary features per class, then trains a non-negative linear model with bagging ensembles, enabling few-shot tabular prediction without per-sample LLM queries.

Problem

Few-shot tabular learning with LLMs is expensive because end-to-end methods need an LLM call per sample, require fine-tuning or training access, and struggle with long prompts when many features are present.

Approach

Use the LLM as a feature engineer: a structured prompt (task description, reasoning in two steps, response format) elicits per-class rules from few-shot examples; the LLM itself converts rules into code producing binary features; a non-negative linear model over these features is trained, and bagged ensembles of such runs are averaged, so inference needs no LLM calls.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use FeatLLM instead of TabLLMFew-shot tabular learning · 13 datasets, 4 shotsAUC: 70.26 -> 77.86Helped
Use FeatLLM instead of TabLLMFew-shot tabular learning · 13 datasets, 8 shotsAUC: 72.76 -> 79.31Helped
Use FeatLLM instead of TabLLMFew-shot tabular learning · 13 datasets, 16 shotsAUC: 76.22 -> 80.70Helped
Add weight tuning to the linear model (ablation)FeatLLM · 13 datasets, average across shotsAUC: -3.47$\pm$0.51Helped
Add ensemble (ablation)FeatLLM · 13 datasets, average across shotsAUC: -6.49$\pm$0.51Helped
Add feature descriptions (ablation)FeatLLM · 13 datasets, average across shotsAUC: -0.84$\pm$0.28Helped
Add Step-1 reasoning when generating rules (ablation)FeatLLM · 13 datasets, average across shotsAUC: -2.84$\pm$0.53Helped
Add bagging (ablation)FeatLLM rule generation · Rule sets across iterationsCorrelation: 0.384 $\pm$ 0.327 -> 0.368 $\pm$ 0.341Helped
Add instance shuffling (ablation)FeatLLM rule generation · Rule sets across iterationsCorrelation: 0.531 $\pm$ 0.290 -> 0.368 $\pm$ 0.341Helped
Use nonzero temperature instead of zero temperature (ablation)FeatLLM rule generation · Rule sets across iterationsCorrelation: 0.414 $\pm$ 0.373 -> 0.368 $\pm$ 0.341Helped
Increase the number of ensemblesFeatLLM · Tabular datasetsAUCHelped

Surprising findings

Limitations

Experimental setup

Datasets: Adult Bank Blood Car Communities Credit-g Diabetes Heart Myocardial Cultivars NHANES Sequence-type

Benchmarks: Adult Bank Blood Car Communities Credit-g Diabetes Heart Myocardial Cultivars NHANES Sequence-type

Metrics: AUC

Baselines: LogReg XGBoost RandomForest SCARF STUNT TabPFN In-context learning TABLET TabLLM

Builds on: chain-of-thought TabLLM TABLET STUNT TabPFN

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy