TL;DR
Microprocessor design has become so complex that traditional optimization methods are hitting a "combinatorial wall." This paper introduces a Multi-Agent Reinforcement Learning (MARL) approach that treats individual hardware parameters as independent agents, achieving up to a 60x improvement in design efficiency over standard single-agent RL methods.
Introduction
As Moore’s Law slows down, computer architects are turning to domain-specific customization—tailoring chips for specific tasks like AI or graphics—to maintain performance gains. However, a modern System-on-Chip (SoC) has an astronomical number of "knobs" to tune, including cache sizes, interconnect topologies, and memory controller policies. For a custom DNN accelerator, this design space can reach $10^{2300}$ possible configurations. Current automated search methods typically use single-agent Reinforcement Learning (RL), which often fails to scale as the number of parameters grows.
Decentralized MARL Framework
The researchers propose a Decentralized MARL formulation. Instead of one agent managing the entire chip, they assign a dedicated RL agent to each specific architectural parameter.
Technical Implementation
- Algorithm: The framework uses a decentralized version of Proximal Policy Optimization (PPO).
- Coordination: Agents receive the same global observation (latency, power, energy) and a shared reward signal, allowing them to coordinate implicitly without direct communication.
- Environment: The study introduces DRAM-Gym, a wrapper around the industry-standard DRAMSys simulator, enabling RL agents to interact with a cycle-accurate memory controller model.
Key Insights: The Independence Discovery
A critical finding of this research is the "Independence Discovery." By performing a correlation analysis (using a $\phi_k$ correlation matrix), the authors found that most hardware control parameters are actually weakly correlated with one another. Because parameters are largely independent, a decentralized "team" of agents can find the global optimum much faster than one agent trying to learn complex, non-existent interdependencies. This effectively "divides and conquers" the search space, making the learning task significantly simpler for each individual agent.
Experimental Results
The MARL approach was evaluated using two distinct memory workload traces: Streaming Access (common in deep learning) and Random Access (common in graph processing). The evaluation spanned three optimization targets: Low Latency, Low Power, and a Joint Optimization of both.
MARL consistently and significantly outperformed all single-agent baselines (PPO, SAC, and TDM):
- Reward Magnitude: In low-power optimization tasks, MARL achieved a mean episodic reward roughly 2x to 60x higher than single-agent PPO and SAC.
- Power Efficiency: For the low-power objective, MARL converged on a design dissipating approximately 1 Watt, while single-agent baselines struggled to reach comparable efficiency.
- Latency & Joint Goals: In latency-focused and joint-optimization tasks, MARL delivered 1.5x to 2.5x better results than the best-performing single-agent alternatives.
Limitations and Future Work
The primary drawback is computational cost, as assigning one neural network per parameter may become expensive for SoCs with thousands of parameters. Future work could involve "pruning" agents for parameters with negligible impact or clustering related parameters under a single agent. Additionally, the authors aim to explore how well these trained policies generalize when workloads or underlying sub-systems change.
Summary updated