Sculpting Features from Noise: Reward-Guided Hierarchical Diffusion for Task-Optimal Feature Transformation

Nanxu Gong, Zijun Li, Sixun Dong, Haoyue Bai, Wangyang Ying, Xinyuan Wang, Yanjie Fu

TL;DR

DIFFT (Reward-Guided Hierarchical Diffusion) reimagines feature transformation as a generative task rather than a search problem. By using Latent Diffusion Models (LDMs) guided by performance rewards, it "sculpts" optimal feature sets from noise, significantly outperforming traditional methods in both predictive accuracy and computational efficiency.

What Problem Does This Paper Address?

In machine learning, the raw data we start with is rarely in its most "expressive" form. Feature Transformation (FT)—the process of creating new features through mathematical operations (e.g., $f_1 \times f_2$ or $\log(f_3)$)—is essential for boosting model performance.

However, finding the "perfect" set of transformations is notoriously difficult. Traditional discrete search methods (like genetic algorithms or reinforcement learning) quickly drown in a combinatorial explosion of possibilities. Continuous search methods, which map features to an embedding space and use gradient ascent, often get trapped in local optima and are highly sensitive to how they are initialized.

Comparison of Feature Transformation Methods

The authors of DIFFT ask a fundamental question: Instead of searching for the best features, can we simply learn the distribution of high-performing features and generate them?

Methods

The DIFFT framework moves away from the "search" paradigm and into the "generative" paradigm through a comprehensive four-step process:

The DIFFT Architecture
  1. Learning the Latent Space (VAE): The authors use a Variational Auto-Encoder to map discrete feature sequences (represented in postfix notation, like f1 f2 *) into a compact, continuous latent space.
  2. Modeling the Distribution (LDM): A Latent Diffusion Model is trained to learn the global distribution of these feature embeddings. Unlike standard image-based diffusion, this uses a Transformer-based denoiser and is conditioned on "tabular semantics"—a graph-based embedding of the original dataset's structure.
  3. Reward-Guided Sampling: During the "denoising" phase (generating features from noise), a pre-trained performance evaluator provides gradients. These gradients act as a "compass," steering the diffusion process toward regions of the latent space that correspond to high task performance.
  4. Hierarchical Semi-Autoregressive Decoding: To turn embeddings back into usable features, the authors designed a novel decoder. It first predicts how many features to generate and then generates each feature "chunk" in parallel. This preserves the internal dependencies of a single complex feature while allowing the overall set to be generated much faster than traditional token-by-token methods.

Datasets

The researchers evaluated DIFFT on 14 benchmark datasets sourced from LibSVM, UCIrvine, and OpenML. These cover both classification and regression tasks and vary significantly in scale:

  • Small scale: Messidor Features (19 features).
  • Large scale: Ap-omentum-ovary (over 10,000 features).
  • Diverse domains: Medical data, spam detection, and physical ionosphere readings.

Key Insights and Ideas

  • Generation vs. Search: The core "aha" moment is treating feature engineering as a generative AI task. By learning the "probability landscape" of good features, the model can explore the global space more effectively than a local gradient search.
  • The Power of Guidance: Diffusion models are great at capturing global structure, but they aren't inherently "goal-oriented." By injecting reward guidance (gradients from a performance evaluator), the authors combine global exploration with targeted optimization.
  • Compositional Sequences: The authors realized that while tokens within a transformed feature (like f1, f2, *) are highly dependent, different features in a set are often independent. Their semi-autoregressive decoder exploits this "chunk" structure to enable parallel generation without losing quality.
  • Tabular Semantics as a Signal: Using a Graph Convolutional Network (GCN) to encode the relationships between raw features provides a crucial conditioning signal that helps the diffusion model understand the "context" of the data it is transforming.

Key Results

  • Superior Accuracy: DIFFT consistently outperformed 10 state-of-the-art baselines (including MOAT and ELLM). For example, on the Openml_618 dataset, it achieved a score of 0.632, while the next best method (MOAT) trailed at 0.477.
  • Massive Speedups: Because of the parallel hierarchical decoder and the efficient Transformer backbone, DIFFT is significantly faster. On the largest dataset (10k+ features), DIFFT completed a training epoch in ~20 seconds, compared to over 500 seconds for MOAT.
  • Robustness: The features "sculpted" by DIFFT proved robust across various downstream models, including Decision Trees, KNN, and Support Vector Machines, suggesting the transformations capture fundamental patterns in the data rather than just overfitting to one specific learner.

Limitations and Future Work

While impressive, the authors note two main limitations:

  1. Task-Specific Nature: Currently, the model needs to be re-run to generate a tailored feature set for every new downstream model or task.
  2. Scaling to "Ultra-Wide" Data: While it handles 10,000 features well, scaling to domains with millions of features (like genome-scale assays) would put significant memory pressure on the VAE and diffusion components.

Future Direction: The authors aim to extend DIFFT into a task-agnostic foundation model for feature engineering, which could potentially generate optimal features for any dataset in a zero-shot or few-shot manner.

Summary updated

BibTeX
@inproceedings{gong2025sculpting,
  author = {Nanxu Gong and Zijun Li and Sixun Dong and Haoyue Bai and Wangyang Ying and Xinyuan Wang and Yanjie Fu},
  title = {{Sculpting Features from Noise: Reward-Guided Hierarchical Diffusion for Task-Optimal Feature Transformation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=0IStUxUDGJ},
}
Figure