LLM-ML Teaming: Integrated Symbolic Decoding and Gradient Search for Valid and Stable Generative Feature Transformation

Xinyuan Wang, Haoyue Bai, Nanxu Gong, Wangyang Ying, Sixun Dong, Xiquan Cui, Yanjie FuarXiv 2025 · DOI

Abstract

Generative Feature Transformation (GFT) is a critical step in machine learning that involves creating new variables from raw data to improve model predictive power. Traditional automated GFT methods often struggle with a fundamental trade-off: traditional ML search algorithms are stable but frequently produce mathematically invalid features, while Large Language Models (LLMs) generate valid syntax but suffer from output instability. This paper introduces a novel "teaming" framework that integrates the symbolic reasoning of LLMs with gradient-based ML optimization. Our results demonstrate a 5% average improvement in model performance and a 50% reduction in invalid feature generation.

Introduction: The GFT Dilemma

In machine learning, the quality of features often dictates the upper bound of model performance. Generative Feature Transformation (GFT) aims to automate the discovery of these features. However, current approaches face significant hurdles.

Drawbacks of standalone ML and LLM approaches for feature engineering.

As illustrated in the figure above, traditional ML methods (e.g., reinforcement learning or genetic algorithms) lack semantic understanding, leading to high error rates and a lack of innovative features. Conversely, while LLMs can generate creative and syntactically correct transformations, their generation is often unstable and lacks interpretability, making them difficult to rely on for consistent performance gains.

The LLM-ML Teaming Framework

To bridge this gap, we propose a framework that combines the creative "grammar" of LLMs with the performance-driven "compass" of gradient-based ML.

The four-stage LLM-ML Teaming Framework architecture.

The framework consists of four primary stages:

  1. Golden Examples Generation: A high-capacity "Teacher LLM" (GPT-4o) generates a diverse database of high-quality feature transformations across various datasets to serve as ground truth.
  2. Feature Embedding and Search: An ML pipeline (encoder-evaluator-decoder) maps these transformations into a continuous latent space. Gradient search is then employed within this space to identify optimal feature embeddings.
  3. Student LLM Training: A smaller "Student LLM" (Llama-3) is fine-tuned on the golden examples to learn sequence generation and performance prediction.
  4. LLM-ML Decoder Teaming: The final generation process utilizes a "Product of Experts" approach, combining probability outputs from both the ML decoder and the Student LLM. This ensures the resulting features are both mathematically valid and optimized for performance.

A key technical innovation is the use of Postfix notation (e.g., a b +) for mathematical expressions. This representation simplifies the search space and allows for efficient left-to-right sequence processing without complex nesting.

Experimental Evaluation

The framework was rigorously tested on 23 diverse datasets from the UCI Repository, OpenML, Kaggle, and LibSVM. These datasets cover a wide range of classification and regression tasks.

Key Results

  • Performance Gains: The teaming policy resulted in a 5% average improvement in downstream model metrics (F1-score and 1-RAE).
  • Enhanced Stability: Invalid feature generation was reduced by nearly 50% compared to baseline methods.
  • Computational Efficiency: The approach reached optimal solutions 53.4% faster than traditional ML-based search, converging in just 8 epochs versus 22.
  • Model Robustness: The generated features improved performance across seven different downstream algorithms, including Random Forest, XGBoost, and SVM, indicating broad applicability.

Discussion and Future Work

The synergy between LLMs and ML provides a powerful solution for automated feature engineering. The LLM serves as a symbolic "syntax checker," while the ML component acts as a continuous "optimizer." Notably, LLMs demonstrated an implicit understanding of data by naturally prioritizing original features during transformation.

Despite these successes, challenges remain. There is still a performance gap between Student and Teacher LLMs, and the current framework does not explicitly incorporate domain-specific knowledge. Future research will explore end-to-end training strategies to further unify the ML and LLM components and address the inherent simplicity bias in LLM-generated operators.

Summary updated

BibTeX
@misc{wang2025llm,
  author = {Xinyuan Wang and Haoyue Bai and Nanxu Gong and Wangyang Ying and Sixun Dong and Xiquan Cui and Yanjie Fu},
  title = {{LLM-ML Teaming: Integrated Symbolic Decoding and Gradient Search for Valid and Stable Generative Feature Transformation}},
  year = {2025},
  eprint = {2506.09085},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.09085},
}
Figure