[Paper Review] Optimized Feature Generation for Tabular Data via LLMs with Decision Tree Reasoning
OCTree is a novel framework that leverages large language models (LLMs) with decision tree reasoning to automatically generate high-performing tabular features without predefined search spaces. By iteratively refining feature generation rules using linguistic feedback from trained decision trees and validation scores, OCTree consistently improves model performance across diverse tabular benchmarks, outperforming existing automatic feature engineering methods.
In tabular prediction tasks, tree-based models combined with automated feature engineering methods often outperform deep learning approaches that rely on learned representations. While these feature engineering techniques are effective, they typically depend on a pre-defined search space and primarily use validation scores for feature selection, thereby missing valuable insights from previous experiments. To address these limitations, we propose a novel tabular learning framework that utilizes large language models (LLMs), termed Optimizing Column feature generator with decision Tree reasoning (OCTree). Our key idea is to leverage the reasoning capabilities of LLMs to identify effective feature generation rules without manually specifying the search space and provide language-based reasoning information highlighting past experiments as feedback for iterative rule improvements. We use decision trees to convey this reasoning information, as they can be easily represented in natural language, effectively providing knowledge from prior experiments (i.e., the impact of the generated features on performance) to the LLMs. Our empirical results demonstrate that OCTree consistently enhances the performance of various prediction models across diverse benchmarks, outperforming competing automated feature engineering methods. Code is available at https://github.com/jaehyun513/OCTree.
Motivation & Objective
- To address the limitations of manual and heuristic-based feature engineering in tabular data, where search spaces are ambiguously defined and past experimental feedback is underutilized.
- To leverage LLMs' reasoning capabilities to discover effective feature generation rules without requiring predefined rule spaces.
- To integrate past experiment feedback—specifically, decision tree interpretations—into LLM prompting to guide iterative rule refinement.
- To improve the performance of downstream prediction models (e.g., XGBoost, MLP, HyperFast) through automatically generated, high-quality features.
- To validate the transferability and practicality of generated features across different model architectures and time constraints.
Proposed method
- Initiate the process by prompting an LLM to propose a new column name based on the task (e.g., 'Trading Volume' for stock prediction).
- Generate a feature generation rule via LLM prompting, using contextual data, column names, and categorical values as input.
- Use the prediction model's validation score and a trained decision tree's natural language interpretation as feedback for iterative rule improvement.
- Represent past experimental knowledge via decision tree reasoning, which is distilled into natural language and fed back into the LLM to inform the next rule generation step.
- Repeat the rule generation and evaluation loop for a fixed number of iterations, selecting the rule with the highest validation score.
- Transfer the best-performing rule to downstream models (e.g., MLP, HyperFast) to assess generalization and practical utility.
Experimental results
Research questions
- RQ1Can LLMs effectively generate meaningful tabular features without relying on manually defined search spaces?
- RQ2Can decision tree interpretations be used as effective linguistic feedback to guide iterative LLM-based feature rule refinement?
- RQ3Does integrating past experimental feedback (via decision tree reasoning) lead to better-performing feature generation rules than relying solely on validation scores?
- RQ4Can the generated features improve performance across diverse models, including non-tree-based models like MLPs and HyperFast?
- RQ5How does the performance of LLM-generated features compare to existing automatic feature engineering methods on real-world tabular benchmarks?
Key findings
- OCTree consistently improves the performance of various prediction models across diverse tabular benchmarks, outperforming competing automatic feature engineering methods.
- On the Disease dataset, LLMs correctly identified 'Cough' as more informative than 'Cholesterol Level' for disease prediction, with a 2.67% performance improvement when using the former.
- Imputing the generated 'Age' column with real-world values on the Clinical Trial dataset led to a measurable accuracy gain, validating the practical relevance of LLM-generated features.
- When optimized for XGBoost, the generated features improved performance on both MLP and HyperFast models, demonstrating strong transferability.
- The framework reduces reliance on time-consuming validation loops by first optimizing rules on simpler models and transferring them, thus mitigating runtime costs.
- LLMs demonstrated the ability to distinguish relevant features from candidates, with GPT-4o and Llama 2 correctly identifying 'Cough' as more important than 'Cholesterol Level' in the Disease dataset.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.