Abstract
Modern GPU cluster schedulers often operate with limited visibility, relying on surface-level metadata to manage multi-million-dollar resources. This "semantic gap" leads to significant inefficiencies in job scheduling and failure recovery. We introduce SchedMate, a novel framework that utilizes Large Language Models (LLMs) to extract deep semantic context from job source code and runtime logs. SchedMate features three primary components: a Scheduling Advisor for zero-shot duration prediction, a Metric Tracker for non-intrusive observability, and an automated Failure Handler for root-cause analysis. Our evaluations demonstrate that SchedMate can reduce average job completion times (JCT) by up to 1.91× in large-scale simulations and 23.2% on physical clusters, without requiring user-side code modifications.
Introduction: The Semantic Gap in GPU Scheduling
Managing workloads on massive Deep Learning (DL) GPU clusters is a complex optimization problem. While current schedulers employ techniques like job-packing and elastic scaling to improve GPU utilization, they are fundamentally limited by a lack of understanding of the workloads they manage. This lack of insight results in several critical challenges:
- High Profiling Overhead: Schedulers often "profile" jobs by running them briefly to estimate resource needs. However, as shown in Figure 4(a), a significant portion of production jobs are short-lived, making profiling a wasteful expenditure of compute.
- Unreliable Duration Estimation: Efficient scheduling requires accurate runtime predictions. Current methods rely on often-inaccurate user estimates or assume jobs will run to completion, ignoring the high rates of cancellation and failure (Figure 4(b) and 4(c)).
- Inadequate Failure Handling: Infrastructure and user-code failures are common. Treating all failures identically leads to idle GPUs and delayed debugging.
- Limited Observability: Schedulers cannot easily determine if a job is underperforming due to resource contention without intrusive instrumentation.
Methodology: The SchedMate Framework
SchedMate addresses these challenges by acting as a plug-and-play enhancement for existing schedulers. It leverages LLM agents to interpret unstructured data—source code and logs—to inform scheduling decisions.
Core Components
- Scheduling Advisor (Code Analysis): Instead of active profiling, an LLM agent explores the job's repository to extract semantic metadata such as model architecture, dataset, and batch size. By comparing these features against a vector database of historical jobs, SchedMate provides immediate, accurate predictions of resource needs and duration.
- Metric Tracker (Log Observability): To monitor jobs without code changes, SchedMate parses standard output logs. It uses a "filter-then-extract" pipeline: a lightweight embedding model discards noise, while a more capable LLM extracts structured metrics like
step_time. This allows the scheduler to detect performance degradation from job-packing in real-time. - Failure Handler (Automated RCA): When a job fails, SchedMate uses binary search and LLM classification to identify the root cause. It distinguishes between user errors and infrastructure failures (e.g., hardware faults), automatically restarting jobs affected by the latter on healthy nodes.
Evaluation and Results
The authors evaluated SchedMate using diverse traces, including a new proprietary trace (Mars) from a 1,024 GPU cluster, and public traces from Microsoft (Philly), SenseTime (Helios), and Alibaba (Acme).
Key Performance Metrics
- JCT Reduction: In physical cluster deployments (128 GPUs), SchedMate reduced average JCT by 23.2% over the Lucid scheduler. In large-scale simulations using the Acme trace, improvements reached up to 1.91×.
- Estimation Accuracy: The Scheduling Advisor achieved a relative error of less than 100% for 85.7% of jobs, significantly outperforming traditional ML-based profilers (27.7%).
- Log Parsing Robustness: The Metric Tracker's two-stage pipeline successfully extracted metrics from noisy logs with 84.3% accuracy, surpassing pure LLM approaches (59.2%) while maintaining low latency (~8.7s).
Discussion and Conclusion
SchedMate demonstrates that "semantic-aware scheduling"—understanding what a job is doing—is a powerful paradigm for cluster management. Key insights include the fact that code-level features are highly predictive of hardware behavior, and that a "filter-then-extract" approach makes LLM-based log monitoring computationally feasible for production environments.
While SchedMate relies on the presence of informative logs and incurs some LLM inference overhead, its ability to improve efficiency without user intervention makes it a compelling solution for modern DL clusters. Future work may extend these semantic agents to other domains like big data analytics and serverless computing.
Summary updated