Introduction
Modern deep learning (DL) research is increasingly defined by the scale of its models. Training state-of-the-art architectures like GPT-3 or BERT requires massive computational resources, often spanning weeks of continuous GPU time. However, most high-performance computing (HPC) centers operate under strict "wall-clock" time limits—typically ranging from 12 to 48 hours—to ensure fair access for all users.
To navigate these constraints, researchers are forced into a cycle of manual job management: checkpointing a model before a session expires and submitting a new job to resume from that checkpoint. This reactive approach often results in significant "dead time" or interruptions, as the subsequent job must wait in a queue that is notoriously difficult to predict due to the stochastic nature of job arrivals and cluster utilization. This paper introduces Mirage, a proactive resource provisioner that leverages reinforcement learning (RL) to navigate queue dynamics and eliminate the gap between consecutive batch jobs.
The Problem: The Cost of Interruption
In a standard HPC environment, a researcher typically submits a follow-up job only after the current one has finished. This reactive strategy is inefficient; if the cluster is under heavy load, the wait time for the next available slot can stretch into hours or even days, stalling productivity. While one might attempt to predict wait times using statistical models, the complexity of modern schedulers and the randomness of user behavior make this a non-linear problem that traditional methods struggle to solve. Mirage shifts the paradigm from reacting to the queue to proactively navigating it by learning to submit follow-up jobs at the optimal moment.
Methodology
Mirage frames proactive provisioning as a Reinforcement Learning problem where an agent decides the timing of job submissions within a chain.
The RL Framework
The authors evaluated two primary RL architectures: Deep Q-Network (DQN) and Policy Gradient (PG). The agent’s state space includes critical cluster metrics such as current queue length, the age of running jobs, and overall node utilization. Based on these observations, the agent chooses between two actions: "submit" the next job in the chain or "do nothing."
Neural Architectures and MoE
To process the complex temporal dependencies of cluster history, Mirage utilizes Transformers. Furthermore, the authors introduced a Mixture-of-Experts (MoE) foundation model. Recognizing that cluster workloads are non-stationary—varying significantly by the week or month—the MoE approach employs multiple specialized "expert" networks. These experts specialize in different cluster load levels (e.g., high-congestion vs. low-congestion), allowing the system to adapt its submission strategy dynamically.
Reward Function and Simulation
The agent is trained using a reward function designed to balance two competing objectives:
- Minimizing Interruption: Reducing the time gap between the end of one job and the start of the next.
- Avoiding Overlap: Preventing two jobs in the same chain from running simultaneously, which would waste expensive and limited GPU resources.
Because training RL agents on live production supercomputers is impractical, the researchers developed a high-fidelity, low-overhead Slurm simulator. This simulator replays historical job traces, providing a realistic environment for the agent to learn optimal submission policies.
Experimental Setup and Datasets
The study utilized 20 months of production job traces from three distinct GPU clusters at the Texas Advanced Computing Center (TACC):
- Longhorn (V100): 88 nodes, each with four Nvidia V100 GPUs.
- Frontera (RTX): 84 nodes, each with four Nvidia RTX 5000 GPUs.
- Lonestar6 (A100): 76 nodes, each with three Nvidia A100 GPUs (5 months of data).
These datasets represent a diverse range of hardware and user behaviors, providing a robust testing ground for the RL agents.
Key Results
Mirage demonstrated significant improvements over both reactive baselines and traditional statistical methods like XGBoost and Random Forest. Key findings include:
- Interruption Reduction: Mirage reduced average interruption times by 17% to 100% compared to reactive strategies.
- Zero-Interruption Success: The system successfully achieved "zero-interruption" transitions—where the next job starts the moment the previous one ends—for 23% to 76% of jobs across various load levels.
- Model Performance: The Transformer+PG model proved most effective under heavy loads due to its more "aggressive" submission policy. However, the MoE+DQN model emerged as the best overall performer, offering a superior balance between reducing wait times and minimizing resource overlap.
- Adaptability: The MoE architecture successfully allowed the system to adjust its aggression based on real-time cluster congestion, a feat that monolithic models struggled to replicate.
Discussion and Limitations
While Mirage represents a significant step toward automated HPC resource management, several challenges remain. Currently, the models are cluster-specific; an agent trained on V100 traces does not automatically generalize to an A100 cluster without retraining. Additionally, the study focused on clusters with fewer than 100 nodes. Scaling these RL techniques to massive systems with thousands of nodes and more complex scheduling policies remains an area for future research.
Finally, Mirage currently relies solely on external scheduler data. Integrating "internal" job telemetry—such as a training job's current epoch or loss convergence—could provide the agent with even more precise signals for timing submissions, potentially further narrowing the gap toward a truly seamless training experience.
Summary updated