TL;DR
Kareus is a novel large model training system that jointly optimizes GPU frequency scaling, Streaming Multiprocessor (SM) allocation, and kernel launch timing to minimize both dynamic and static energy consumption. By recognizing that these three execution factors are deeply interdependent, Kareus pushes the time–energy tradeoff frontier, reducing training energy by up to 28.3% at the same training time, or cutting training time by up to 27.5% under the same energy budget compared to state-of-the-art methods.
What Problem Does This Paper Address?
Training large language models (LLMs) demands massive amounts of electricity, making energy a primary bottleneck for scaling AI. To optimize this, systems must address two types of energy consumption:
- Dynamic energy: The power consumed by actual hardware transitions during computation, memory access, and communication (highly dependent on GPU frequency).
- Static energy: The power leaked continuously as long as the chip is powered on, regardless of utilization (dependent on total execution time).
Prior works optimize these disjointly. For example, systems like Perseus scale down GPU frequencies on non-critical paths to save dynamic energy, but follow a rigid sequential kernel execution model. Conversely, fine-grained kernel scheduling techniques like nanobatching stagger computation and communication to hide latency and reduce static energy, but ignore frequency scaling.
The authors identify a critical gap: frequency scaling and kernel scheduling interdependently impact both energy types. Lowering the GPU frequency slows down computation but leaves memory and communication bandwidth unchanged, completely reshaping how concurrent kernels contend for resources. Naively combining existing techniques yields suboptimal results because the optimal kernel schedule changes at different frequencies.
Methods
To solve the massive search space of combining frequency, SM allocation, and launch timing (which can exceed 85,000 configurations per iteration), Kareus introduces three core components:
- Partitioned Overlap Execution Model: The system breaks down the global optimization problem by identifying repeating patterns in the forward and backward passes (e.g., Attention-AllReduce and MLP-AllReduce blocks) and isolating them into independent "partitions."
- Multi-Objective Bayesian Optimization (MBO): For each partition, Kareus uses a multi-pass MBO algorithm to map out the local time–energy Pareto frontier. It trains two separate XGBoost surrogate models (one for time, one for dynamic energy) and utilizes Hypervolume Improvement (HVI) across multiple targeted passes (total energy, dynamic energy, static energy, and uncertainty exploration) to efficiently discover optimal schedules.
- Hierarchical Composition: Once local partition frontiers are established, Kareus mathematically composes them into microbatch frontiers (enforcing a uniform frequency within a microbatch to avoid millisecond-scale switching overheads) and ultimately into a global iteration-level frontier.
- Thermally Stable Profiling: Because GPU power draw is temperature-dependent, Kareus utilizes a specialized profiler that runs kernels over a stable 5-second window followed by a 5-second cooldown period to prevent thermal drift from biasing the optimization data.
Datasets
The system was evaluated across 14 distinct workloads using prominent open-source LLM architectures:
- Physical Testbed: Evaluated on Llama 3.2 3B and Qwen 3 1.7B using a cluster of 16 NVIDIA A100 (40GB) GPUs.
- Large-Scale Emulation: Evaluated on Llama 3.3 70B scaling up to 10,240 GPUs using the validated simulator from the Perseus framework.
Key Insights and Ideas
- Frequency Reshapes the Roofline: Lowering GPU frequency makes kernels relatively more compute-bound. Consequently, communication kernels (which are often memory-bound) cause less interference when overlapped with computation at lower frequencies than they do at maximum clock speeds.
- Exposed Communication is Worse at Low Frequencies: When communication fails to overlap perfectly with computation, the resulting idle time wastes static power. Because dynamic power drops significantly at lower frequencies while static power remains constant, static power constitutes a larger percentage of the total power draw, making exposed communication disproportionately harmful.
- Steady Frequency Beats Throttling: Due to the cubic relationship between dynamic power and frequency ($P_{dyn} \propto f^3$), operating at a steady, optimized lower frequency is mathematically more energy-efficient than letting the hardware power-throttle and fluctuate around the same average frequency (an application of Jensen's Inequality).
Key Results
Kareus strictly outperforms baseline configurations (Megatron-LM, Perseus, and Nanobatching + Perseus) across all tested scenarios:
- Energy & Time Reductions: Compared to Megatron-LM + Perseus, Kareus achieves up to a 28.3% iso-time energy reduction and up to a 27.5% iso-energy time reduction.
- Max-Throughput Mode: When run at maximum throughput settings, Kareus achieves up to a 14.9% reduction in iteration time and a 22.1% reduction in total energy relative to standard Megatron-LM.
- Scalability: In large-scale 70B parameter emulations, Kareus maintained consistent performance gains, showing that the absolute iteration time growth at scale provides even more slack for dynamic energy savings.
Limitations and Future Work
- Simplified Power Model: Kareus currently relies on a two-component power model (separating constant static power from dynamic power). It does not yet account for voltage-sensitive chip leakage, which the authors note as an area for future extension.
- Profiling Overhead: While significantly faster than an exhaustive search (taking ~2 hours of parallel profiling vs. an estimated 4,912 GPU-hours), the MBO phase still requires dedicated profiling runs before training begins.
- Environment Tuning: The optimal cooldown duration for the thermally stable profiler depends heavily on the specific hardware server's cooling capabilities and requires initial manual tuning.
Summary updated