Multi-Agent Automated Machine Learning

Zhaozhi Wang, Kefan Su, Jian Zhang, Huizhu Jia, Qixiang Ye, Xiaodong Xie, Zongqing Lu

TL;DR

This paper introduces Multi-Agent Automated Machine Learning (MA2ML), a framework that treats different AutoML components—such as data augmentation, network architecture search, and hyperparameter tuning—as cooperating agents in a multi-agent reinforcement learning setup. By implementing counterfactual credit assignment and off-policy learning, MA2ML achieves state-of-the-art accuracy on ImageNet under strict computational constraints while theoretically guaranteeing steady performance improvements during the search process.

What Problem Does This Paper Address?

Automated Machine Learning (AutoML) aims to remove human effort from designing machine learning pipelines. Typically, this involves optimizing individual modules like Data Augmentation (AUG), Neural Architecture Search (NAS), and Hyperparameter Optimization (HPO).

However, traditional approaches optimize these modules in isolation (e.g., searching for an architecture while keeping hyperparameters fixed). This is highly sub-optimal because these components are deeply interconnected; for example, a smaller network with optimized data augmentation and hyperparameters can easily outperform a larger network using default settings.

Jointly optimizing all modules at once is incredibly difficult because it creates an exponentially larger search space. Furthermore, if you use the final validation accuracy as a single reward for the entire pipeline, it is impossible to determine which module was responsible for a good or bad result. This "credit assignment" problem makes joint optimization highly inefficient.

Methods

MA2ML solves these challenges by framing joint AutoML optimization as a Multi-Agent Reinforcement Learning (MARL) problem, where each module (AUG, NAS, HPO) is controlled by its own distinct RL agent.

The framework introduces two key innovations to make this setup work:

  1. Counterfactual Credit Assignment: To determine the true impact of each module, MA2ML trains a centralized critic ($Q$-function) alongside a counterfactual baseline. This baseline calculates what the expected performance would be if a specific agent's action were randomized or marginalized out while keeping all other agents' actions fixed. The difference between the actual performance and this baseline isolates the marginal contribution of that specific module.
  2. Off-Policy Learning with Divergence Regularization: Evaluating a single pipeline configuration requires training a model, which is computationally expensive. Standard on-policy RL methods waste data because they discard old configurations. MA2ML introduces off-policy learning, allowing it to reuse historical samples from a replay buffer. To prevent the policy from destabilizing when learning from old data, they add a divergence regularization term that keeps the active policy close to a target policy.

The authors mathematically prove that this divergence-regularized approach guarantees monotonic policy improvement, meaning the expected performance of the searched pipeline consistently improves or stays the same at each step.

Figure 2. The framework of joint optimization with MA2ML. For AutoML training (lower panel), the ML pipeline is formed by the actions sampled from the policies of agents, then it is deployed for training on the dataset and to obtain the accuracy (reward). After that, the tuple ⟨S, A, R⟩is stored in the replay buffer. For MA2ML training (upper panel), a mini-batch of ⟨S, A, R⟩are sampled from the replay buffer to update the critic, policies, and target policies.

Datasets

The authors evaluated MA2ML on standard image classification benchmarks:

  • ImageNet: To manage compute costs during the search phase, they sampled a 200-class subset (ImageNet-200). The top-performing pipelines discovered were then retrained from scratch on the full ImageNet dataset.
  • CIFAR-10 & CIFAR-100: Used for full-scale pipeline searches and extensive ablation studies.

Key Insights and Ideas

  • AutoML Modules Cooperate: The core philosophy is that machine learning pipeline components shouldn't be tuned sequentially. A breakthrough in data augmentation can alleviate the burden on architecture search, meaning the agents must learn to balance each other's workloads.
  • Game Theory Meets AutoML: Borrowing counterfactual credit assignment from multi-agent cooperative games (like those used in multi-agent robotics or gaming AI) perfectly resolves the "blame-shifting" problem inherent to joint pipeline optimization.
  • Monotonicity Prevents Wasted Compute: In massive search spaces, algorithmic instability means wasting days of GPU time on regressive search paths. A theoretical guarantee of monotonic improvement ensures the search trajectory is consistently upward.

Key Results

MA2ML achieved state-of-the-art top-1 accuracy on ImageNet when evaluated against strict computational (FLOP) constraints:

  • 79.3% accuracy with only 490M FLOPs.
  • 79.7% accuracy with 596M FLOPs.
  • 80.5% accuracy with 795M FLOPs.

It consistently outperformed single-agent baselines (like DARTS and NASNet) as well as existing joint optimization methods (like FBNetV3 and DHA).

Figure 3. Comparison of MA2ML with other AutoML methods on ImageNet.

Ablation studies also demonstrated that MA2ML significantly outperformed "MA2ML-Lite"—a version of the framework without the centralized critic and credit assignment—proving that isolating each module's contribution is vital to successful joint training.

Limitations and Future Work

The authors note two primary limitations:

  • The Proxy Gap: There is still a discrepancy between short-term training performance (used to quickly evaluate pipelines during the search phase) and long-term final training accuracy. A pipeline that performs exceptionally well after a few epochs might not scale as well when trained to full convergence.
  • High Search Cost: While off-policy learning significantly improves sample efficiency compared to traditional RL, the absolute search cost is still high (300 GPU days for CIFAR, 2000 GPU days for ImageNet), making it expensive for resource-constrained environments. Addressing these efficiency bottlenecks is left for future work.

Summary updated

BibTeX
@misc{wang2022multi,
  author = {Zhaozhi Wang and Kefan Su and Jian Zhang and Huizhu Jia and Qixiang Ye and Xiaodong Xie and Zongqing Lu},
  title = {{Multi-Agent Automated Machine Learning}},
  year = {2022},
  eprint = {2210.09084},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.09084},
}
Figure