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

Abstract

Feature Transformation (FT) crafts new features from original ones via mathematical operations to enhance dataset expressiveness for downstream models. However, existing FT methods exhibit critical limitations: discrete search struggles with enormous combinatorial spaces, impeding practical use; and continuous search, being highly sensitive to initialization and step sizes, often becomes trapped in local optima, restricting global exploration. To overcome these limitations, DIFFT redefines FT as a reward-guided generative task. It first learns a compact and expressive latent space for feature sets using a Variational Auto-Encoder (VAE). A Latent Diffusion Model (LDM) then navigates this space to generate high-quality feature embeddings, its trajectory guided by a performance evaluator towards task-specific optima. This synthesis of global distribution learning (from LDM) and targeted optimization (reward guidance) produces potent embeddings, which a novel semi-autoregressive decoder efficiently converts into structured, discrete features, preserving intra-feature dependencies while allowing parallel inter-feature generation. Extensive experiments on 14 benchmark datasets show DIFFT consistently outperforms state-of-the-art baselines in predictive accuracy and robustness, with significantly lower training and inference times.

Introduction

In machine learning, raw data is rarely in its most expressive form. Feature Transformation (FT) is the process of creating new features from original ones using mathematical operations (e.g., turning $f_1$ and $f_2$ into $f_1 * f_2$). Traditionally, finding the best transformations is a significant challenge. Discrete search methods fail due to the astronomical number of possible combinations, while continuous search methods often get trapped in local optima, missing the global best because of their sensitivity to initialization.

Comparison of feature transformation methods: discrete search, continuous search, and the proposed reward-guided generation.

Methodology

The DIFFT framework treats feature sets as sequences of tokens and processes them through a multi-stage generative pipeline:

  1. Variational Auto-Encoder (VAE): A VAE maps discrete feature sequences into a compact, continuous latent space, allowing the model to work with smooth mathematical vectors instead of discrete strings.
  2. Latent Diffusion Model (LDM): Instead of searching the space, an LDM learns the distribution of high-quality feature embeddings. It starts with Gaussian noise and iteratively refines it into a high-performing feature set embedding.
  3. Reward-Guided Sampling: During denoising, a pre-trained Performance Evaluator provides gradients (a "reward signal") to steer the diffusion trajectory toward embeddings that maximize downstream model accuracy.
  4. Hierarchical Semi-Autoregressive Decoder: To convert embeddings back into features, a novel decoder predicts the number of features and generates their internal logic in parallel, drastically cutting inference time compared to traditional sequential methods.
The DIFFT architecture overview, including VAE construction, Diffusion Model training, and Reward-Guided Generation.

Experimental Evaluation

DIFFT was evaluated on 14 benchmark datasets from LibSVM, UCIrvine, and OpenML, covering both classification and regression tasks. These datasets varied significantly in scale, with feature counts ranging from 19 to over 10,000.

Key Results

  • Superior Accuracy: DIFFT consistently outperformed 10 baselines (including MOAT and ELLM) across all 14 datasets.
  • Efficiency Gains: On the large-scale ap_omentum_ovary dataset, DIFFT completed a training epoch in ~20 seconds, while the previous leader, MOAT, took over 500 seconds.
  • Inference Speed: DIFFT achieved a 5x speedup in inference time compared to MOAT, thanks to its semi-autoregressive decoding strategy.
  • Robustness: Transformations generated by DIFFT proved robust across different downstream models (Decision Trees, KNN, SVM, etc.), suggesting it captures fundamental data relationships.

Discussion and Conclusion

By reimagining Feature Transformation as a generative task, DIFFT avoids the "local optima" trap of standard gradient-ascent methods. The use of a hierarchical decoder further allows for parallelizing the generation of feature sets, which are not inherently sequential.

While DIFFT handles up to 10,000 features efficiently, "ultra-wide" domains like genomics still pose memory challenges. Future work will focus on developing task-agnostic foundation models for features to reduce the need for task-specific retraining.

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