NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Heterogeneous Multi-Agent Reinforcement Learning with Attention for Cooperative and Scalable Feature Transformation

Tao Zhe, Huazhen Fang, Kunpeng Liu, Qian Lou, Tamzidul Hoque, Dongjie WangarXiv 2025 · DOI

Abstract

Automated feature engineering is a critical yet challenging task in machine learning for tabular data. This paper introduces HAFT (Heterogeneous Multi-Agent Reinforcement Learning with Attention), a novel framework that models feature transformation as a collaborative game among specialized reinforcement learning (RL) agents. By integrating a multi-head attention mechanism with a shared central critic and a two-branch state encoder, HAFT effectively manages dynamic feature spaces and ensures agent coordination. Experimental results across 23 diverse datasets demonstrate that HAFT consistently outperforms existing baselines in both classification and regression tasks while maintaining computational efficiency and interpretability.

Introduction

In the realm of structured tabular data, the discovery of effective feature transformations—such as calculating ratios or non-linear combinations of raw variables—is often the primary driver of model accuracy. While deep learning has automated feature extraction in domains like vision and language, it frequently fails to capture explicit interactions in tabular data. Existing automated feature engineering (AFE) methods using RL face two significant challenges: dynamic feature expansion, where the action space grows as new features are generated, and coordination failure, where independent agents lack a global perspective, leading to redundant or suboptimal transformations.

Methodology

HAFT addresses these challenges through a sophisticated multi-agent architecture. The framework decomposes the transformation process into a sequence of actions performed by Heterogeneous Cascading Agents: a Head Feature Agent, an Operation Agent, and a Tail Feature Agent.

The HAFT architecture featuring the Cascading Agent Workflow, Shared Critic, and State Encoder.

Key components of the methodology include:

  • Multi-Head Attention: Instead of fixed-length vectors, feature agents use Transformer-style self-attention to process the feature pool as a set. This allows the model to handle an arbitrary number of features and focus on the most promising candidates for interaction.
  • Shared Critic & Advantage Decomposition: To ensure agents work towards a common goal, HAFT employs a single "Shared Critic" with a global view of the state. It utilizes advantage decomposition to accurately assign credit to individual agent actions based on their contribution to the final reward.
  • Two-Branch State Encoder: Training stability is maintained via an encoder that fuses global descriptive statistics (e.g., mean, variance) with an attention-based branch capturing inter-feature relationships. This provides a stable representation even as the feature set evolves.

Experimental Results

The framework was rigorously tested on 23 datasets across classification and regression tasks from sources like UCI, LibSVM, and Kaggle.

Performance comparison of HAFT against its variants (HAFT-a without attention, HAFT-c without shared critic) across regression metrics.

Key findings include:

  • State-of-the-Art Performance: HAFT consistently outperformed eight major baselines, including RDG, NFS, and GRFG. Ablation studies (as seen in Figure 3) confirm that both the attention mechanism and the shared critic are vital for peak performance.
  • Efficiency and Scalability: Unlike competitors that rely on expensive clustering to manage features, HAFT’s attention mechanism handles large feature pools with significantly lower computational overhead.
  • Interpretability: In a case study on medical data (Messidor), HAFT generated traceable, non-linear features (e.g., [ma5]/[ma1]) that improved detection accuracy by 13.9% while remaining understandable to human experts.
  • Robustness: The discovered transformations improved performance regardless of the downstream model used, such as Random Forest, XGBoost, or SVM.

Conclusion

HAFT represents a significant advancement in automated feature engineering by framing the problem as a cooperative multi-agent game. Its use of attention for structural flexibility and a shared critic for global coordination allows it to navigate complex feature spaces effectively. Future work will explore meta-learning for zero-shot feature engineering and adaptation to dynamic data environments with shifting distributions.

Summary updated

BibTeX
@misc{zhe2025heterogeneous,
  author = {Tao Zhe and Huazhen Fang and Kunpeng Liu and Qian Lou and Tamzidul Hoque and Dongjie Wang},
  title = {{Heterogeneous Multi-Agent Reinforcement Learning with Attention for Cooperative and Scalable Feature Transformation}},
  year = {2025},
  eprint = {2511.21934},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.21934},
}
Figure