SIGMA: SHAP-Guided Implicit-Trajectory Generation for Metadata-Free LLM-Based AutoFE

Xuan Zheng, Kento Uchida, Shinichi ShirakawaarXiv 2026

TL;DR

SIGMA is a novel framework that enables Large Language Models (LLMs) to perform Automated Feature Engineering (AutoFE) without relying on semantic metadata like feature names. By using SHAP values to guide feature generation and an implicit trajectory masking mechanism, SIGMA achieves state-of-the-art performance while maintaining a constant prompt length and slashing duplicate feature generation from 37.2% to 6.8%.

What Problem Does This Paper Address?

Automated Feature Engineering (AutoFE) is crucial for boosting the performance of machine learning models on tabular data. Recently, researchers have turned to LLMs for AutoFE, leveraging their semantic reasoning to propose clever feature transformations based on feature names and dataset descriptions.

However, two major bottlenecks limit current LLM-based AutoFE methods:

  1. Dependence on Metadata: In many real-world scenarios (like privacy-preserving medical data or raw sensor logs), semantic metadata is missing, anonymized, or unreliable.
  2. Context Window Explosion: To prevent the LLM from repeating itself, frameworks usually feed the entire history of generated features back into the prompt. In long-horizon optimization, this trajectory accumulation quickly exhausts the LLM's context window. Conversely, removing the history causes the LLM to get stuck in local optima and generate highly repetitive features.

SIGMA (SHAP-enhanced Implicit-trajectory Generation for Metadata-free AutoFE) tackles both challenges simultaneously.

Methods

Figure 1: The overview of SIGMA.

As shown in Figure 1, SIGMA operates in three main steps:

  1. SHAP-Based Feature Grouping: Instead of semantic names, SIGMA uses task-aware statistical signals. It introduces a dummy Gaussian noise feature into the dataset and calculates the SHAP (SHapley Additive exPlanations) values for all features. Features are then normalized and split into three groups: Top (top 10% importance), Useful (above the noise threshold), and Weak (below the noise threshold).
  2. Intra-Group and Cross-Group Generation: The LLM is prompted to generate two types of features per iteration: Intra-group features (combining features within the same group to find deep hidden patterns) and Cross-group features (bridging high-importance features with weaker ones to rescue faint signals).
  3. EXposed-feature Implicit Trajectory (EXIT): To eliminate the token-heavy explicit optimization history, the authors introduce EXIT. When features are selected to generate a new feature, they are temporarily masked (hidden) from the prompt for a set number of subsequent steps ($2^0$ steps for top features, $2^1$ for useful, $2^2$ for weak). This strategic omission forces the LLM to explore new feature combinations implicitly, keeping the prompt length constant.

Datasets

The framework was evaluated on 16 public tabular classification datasets sourced from OpenML and Kaggle, including eucalyptus, diabetes, credit-g, pc1, cmc, wine, MagicTelescope, house_16H, compass, electricity, jungle_chess, airlines, jannis, MiniBooNE, road-safety, and covertype. Datasets were capped at 50,000 samples and evaluated using an 8:2 train/test split across three different random seeds.

Key Insights and Ideas

  • Strategic Omission as History: The core philosophical leap of EXIT is that an optimization trajectory can be implicitly represented by what isn't in the prompt. By masking recently used features, the visible feature set serves as a proxy for history, preventing context bloat.
  • Deep Recursive Feature Structures: Unlike traditional AutoFE methods that typically stick to shallow, independent transformations, SIGMA's approach allows the LLM to recursively reuse its own successfully generated features.
The topology of generated features on the jungle_chess and compass datasets, showing recursive feature construction up to a depth of 9.

As illustrated in Figure 3, the framework successfully built complex feature topologies up to a depth of 9 layers.

  • The Large LLM Overfitting Trap: When testing different model sizes (Qwen3-4B vs. Llama-3.1-70B), the authors found that larger, more powerful models actually degraded performance on small datasets (under 2,000 samples). The stronger models were so good at optimizing validation performance that they caused the downstream classifier to overfit.

Key Results

  • Constant Context Length: While baseline methods like CAAFE exhibit an escalating prompt length over optimization steps, SIGMA maintains a nearly flat token trend, enabling sustainable, long-horizon iterations.
Efficiency analysis showing (a) prompt token trends over optimization steps and (b) feature-efficiency comparison against traditional AutoFE.
  • Drastic Duplicate Reduction: Ablation studies confirmed that the EXIT strategy successfully dropped the duplicate feature generation rate from 37.2% down to just 6.8% (Figure 4).
  • High Feature Efficiency: SIGMA matched or exceeded the performance of traditional state-of-the-art AutoFE frameworks (like OpenFE) while using substantially fewer features. On average, SIGMA achieved its peak performance gains with only 5.4 accepted features, compared to the hundreds or thousands of features typically generated by exhaustive search methods (Figure 2b).

Limitations and Future Work

Despite its strong performance, the authors note a few areas for improvement:

  • Residual Duplication: The duplicate rate, while low (6.8%), is not zero, indicating that the operation and feature restrictions could be further tightened.
  • Task Scope: The current implementation is strictly tailored for classification tasks; extending the framework to regression problems remains future work.
  • Validation Overfitting: The tendency of LLMs to overfit on smaller datasets during sequential optimization highlights the need for more robust validation or regularization strategies during the feature selection phase.

Summary updated

BibTeX
@misc{zheng2026sigma,
  author = {Xuan Zheng and Kento Uchida and Shinichi Shirakawa},
  title = {{SIGMA: SHAP-Guided Implicit-Trajectory Generation for Metadata-Free LLM-Based AutoFE}},
  year = {2026},
  eprint = {2608.17948},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.17948},
}
Figure