TL;DR
The GPU-to-Grid (G2G) framework leverages the inherent flexibility of Large Language Model (LLM) inference to provide fast, fine-grained voltage regulation for power grids. By dynamically adjusting GPU batch sizes using an online feedback optimization controller, data centers can act as "flexible loads" that balance grid stability with user latency and throughput requirements.
What Problem Does This Paper Address?
The explosive growth of AI is driving a massive surge in data center power demand, with individual GPUs like the NVIDIA H100 consuming up to 700W. This concentrated load creates significant headaches for power grid operators, particularly at the distribution level, where rapid fluctuations in demand can lead to voltage violations.
Existing research is siloed: power systems researchers often treat data centers as simple "black box" aggregate loads, while computer systems researchers focus on maximizing GPU efficiency without considering grid impacts. This paper bridges the gap by identifying batch size—a standard configuration in LLM serving—as a powerful "control knob" to modulate power consumption in real-time to support the grid.
Methods
The authors propose the G2G framework, which uses Online Feedback Optimization (OFO) to bridge device-level control and grid-level needs.
Key components include:
- The Control Knob: The system adjusts the logarithmic batch size ($x = \log_2(b)$). Increasing batch size improves throughput but increases both power consumption and inter-token latency (ITL).
- Empirical Modeling: Using real-world measurement data, the authors modeled the non-linear relationships between batch size and performance metrics (power, latency, throughput) using logistic functions.
- OFO Controller: Instead of relying on a perfect static model of the grid, the controller uses real-time measurements of grid voltage and GPU latency. It iteratively updates batch sizes to maximize throughput while staying within strict voltage and latency bounds.
- Simulation Environment: The authors developed a cluster simulator based on real GPU traces and integrated it with OpenDSS, a standard power system simulator, using the IEEE 13-bus distribution feeder as a testbed.
Datasets
The study relies on high-resolution, real-world measurements rather than theoretical models:
- ML.ENERGY Benchmark v3.0: Provides detailed power, latency, and throughput data for modern GPUs (NVIDIA H100 80GB SXM5).
- LLM Models: The framework was tested on a diverse set of models, including the Llama 3.1 family (8B, 70B, 405B) and Qwen3 models (30B A3B, 235B A22B), covering both dense and Mixture-of-Experts (MoE) architectures.
- Grid Model: The IEEE 13-bus distribution feeder was used to simulate realistic voltage dynamics in a local power network.
Key Insights and Ideas
- Batch Size as a Predictable Lever: The paper demonstrates that batch size induces predictable, albeit non-linear, trade-offs across different model architectures. As shown in Figure 3, these metrics eventually saturate, providing a clear operational envelope for control. Fitted relationships between batch size and performance metrics
- Challenging the "Low Power is Always Better" Myth: A key insight is that while reducing GPU power helps with undervoltage, increasing GPU power can actually mitigate overvoltage events (e.g., during periods of high solar generation). This makes GPUs valuable two-way tools for grid stability.
- Fast vs. Slow Actuation: Traditional grid hardware like "tap changers" are mechanical and slow, often restricted by "dwell times" (e.g., 30 minutes) to prevent wear and tear. GPU batch size control can react in seconds, providing a fast complementary resource.
- Robustness through Feedback: By using OFO, the system remains robust to "workload stochasticity"—the unpredictable nature of how users submit prompts and how models respond.
Key Results
The G2G framework significantly outperformed traditional grid regulation methods in simulations:
- Voltage Stability: Compared to a baseline using only mechanical tap changers, the GPU-based control reduced the integral voltage violation (a measure of both the duration and magnitude of deviations) by orders of magnitude (from ~22.15 pu·s down to 0.0848 pu·s).
- Speed of Recovery: GPU control enabled much faster and smoother voltage recovery after abrupt load changes (like a training job starting or stopping) compared to the delayed response of traditional equipment.
- Efficiency: The system successfully maximized throughput during "non-critical" grid periods while automatically throttling back (reducing batch size) only when latency or voltage constraints were threatened.
Limitations and Future Work
- Trace-Based Simulation: The current study uses pre-measured traces and fitted models. While realistic, these may not capture every nuance of live GPU operations.
- Hardware-in-the-Loop: The authors suggest that the next logical step is a hardware-in-the-loop deployment, where the controller interacts with actual running GPU clusters in real-time.
- Communication Overhead: Future work could explore the communication requirements and potential delays involved in sending grid signals to data center operators at scale.
Summary updated