Abstract
Training deep neural networks for Multi-Label Image Classification (MLIC) is often hindered by the non-stationary nature of the optimization landscape. We propose MAT-Agent, a framework utilizing four autonomous agents to dynamically adjust training configurations in real-time. Using reinforcement learning, these agents optimize data augmentation, optimizers, learning rates, and loss functions. Our results demonstrate that MAT-Agent significantly outperforms static baselines, achieving a 41.25% reduction in training time on MS-COCO while reaching state-of-the-art mAP levels.
Introduction
Multi-Label Image Classification (MLIC) requires models to identify multiple objects within a single image, such as "animal," "black," and "water." Standard training pipelines rely on static configurations—fixed optimizers, learning rates, and loss functions—chosen at the start of training. However, the authors argue that training is inherently non-stationary. As a model learns, its requirements shift; for instance, early stages may benefit from aggressive data augmentation, while later stages require specialized loss functions to address rare "tail" classes. Static settings often lead to training instability, premature convergence, and a lower performance ceiling.
The MAT-Agent Framework
To address these limitations, we introduce MAT-Agent (Multi-Agent Training Agent). This framework reimagines training as a collaborative, real-time optimization process driven by four specialized autonomous agents:
- Data Augmentation Agent: Selects between techniques like MixUp or CutMix.
- Optimizer Agent: Switches between SGD, Adam, or RAdam.
- Learning Rate Scheduler Agent: Manages schedules such as StepLR vs. OneCycleLR.
- Loss Function Agent: Adjusts between BCE, Focal Loss, or Class-Balanced Loss.
These agents perceive a global training state—including metrics like mAP, loss descent rates, and "texture richness"—and utilize Deep Q-Networks (DQN) to select actions. The goal is to maximize a composite reward that balances accuracy gains, stability, convergence speed, and computational efficiency.
Experimental Evaluation
MAT-Agent was evaluated on three major benchmarks: Pascal VOC 2007, MS-COCO, and Visual Genome (VG-256). The latter is particularly challenging due to its 256 categories and severe long-tail distribution.
Key Results
MAT-Agent consistently outperformed state-of-the-art static models across all datasets:
- Superior Accuracy: It achieved record-breaking performance with 97.4 mAP on Pascal VOC and 92.8 mAP on COCO.
- Faster Convergence: On MS-COCO, MAT-Agent reached target performance in just 47 epochs, compared to 80 epochs for standard training—a 41.25% reduction in total training time.
- Efficiency Trade-off: While the multi-agent system adds approximately 10% computational overhead per epoch due to decision-making, this is more than offset by the massive reduction in the total number of epochs required.
Analysis and Discussion
A key insight of this work is that training is a sequential decision problem. By framing hyperparameter tuning as a reinforcement learning task, the model learns a "meta-policy" for its own optimization. The agents demonstrate significant synergy; for example, the framework recognizes optimal pairings between specific optimizers and loss functions at different training stages.
Furthermore, MAT-Agent effectively handles the "long-tail" problem. In datasets like Visual Genome, the agents automatically increased the weight of class-balanced loss functions as training progressed, effectively improving performance on rare categories. Remarkably, policies learned on one dataset (e.g., COCO) generalized well to others (e.g., Pascal VOC) in a zero-shot manner, suggesting the agents learn fundamental laws of training optimization.
Conclusion
MAT-Agent represents a shift from static to adaptive training paradigms. By leveraging a multi-agent system, it provides a robust, efficient, and high-performing solution for complex tasks like MLIC. Future work aims to explore more complex inter-agent communication protocols and extend the framework to extreme multi-label classification involving thousands of labels.
Summary updated