TL;DR
OpenG2G is an open-source simulation platform that bridges the gap between AI datacenter operations and electrical grid management. By co-simulating real-world machine learning workloads alongside high-fidelity grid simulators, it enables researchers to design and evaluate runtime coordination strategies—such as dynamically adjusting LLM batch sizes—to stabilize the grid without halting AI services.
What Problem Does This Paper Address?
The explosive growth of generative AI has created an insatiable demand for electricity. A single modern AI datacenter can draw hundreds of megawatts, and planned facilities reach into gigawatts. This massive, variable load strains the existing electrical grid, causing tight voltage limits to be breached and leading to multi-year delays in datacenter buildouts.
To get online faster, datacenter operators are willing to offer "power flexibility"—speeding up or slowing down consumption in response to grid stress. However, researching how to coordinate these two massive systems has been heavily fragmented. Computer systems researchers don't understand grid dynamics, and power systems engineers treat datacenters as simple, static loads. There has been no unified, closed-loop framework to simulate how real-time AI workload adjustments impact grid stability, and vice versa.
Methods
The authors introduce OpenG2G, a modular Python-based simulation framework designed to close the loop between AI workloads and the electricity grid.
As shown in Figure 1, the architecture consists of three pluggable components orchestrated by a multi-rate simulation loop:
- Datacenter Backend: Simulates AI clusters running inference or training. Instead of using simplistic power models, it replays real-world power, throughput, and latency measurements.
- Grid Backend: Wraps around OpenDSS, a widely used industry-standard power grid simulator, to track bus voltages and line currents.
- Controller Interface: A generic interface where users can plug in different control paradigms. The controller reads the grid and datacenter states and issues real-time commands (e.g., altering the inference batch size) to balance grid health against AI performance.
The framework supports a variety of control strategies, including classical droop control, Online Feedback Optimization (OFO), and reinforcement learning via Proximal Policy Optimization (PPO).
Datasets
OpenG2G relies on two primary data sources for its simulation environments:
- ML.ENERGY Benchmark Dataset: Provides production-grade power, throughput, and inter-token latency distributions for modern Large Language Models (including Llama 3.1 and Qwen 3) across different hardware (NVIDIA H100 and B200 GPUs), batch sizes, and precisions.
- IEEE Test Feeders: Uses standard grid topologies (IEEE 13-, 34-, and 123-bus systems) modified with time-varying loads and solar generation to create realistic grid stress scenarios.
Key Insights and Ideas
- AI Choices Dictate Grid Flexibility: A datacenter’s "feasible power range" (the span between its minimum and maximum power draw while meeting latency targets) is highly sensitive to model architecture and deployment choices.
- The Downside of Efficiency Optimization: Performance optimizations like Mixture-of-Experts (MoE) architectures or FP8 precision actually reduce a datacenter's power flexibility. Because they keep GPU utilization high even at small batch sizes, they lift the "power floor," leaving less room for the controller to shed load during grid undervoltage events.
- Control Complexity Scales with the Grid: Simple feedback loops (like droop control) work well for a single datacenter on a small grid. However, as the grid topology grows and multiple datacenters must coordinate, information-rich optimization frameworks like OFO become necessary to navigate the complex trade-offs between token throughput and voltage stability.
Key Results
The authors evaluated their controllers across various IEEE feeders to measure how effectively they mitigated integral voltage violations (a metric capturing the duration and severity of grid voltage excursions).
- Significant Violation Reduction: On the complex IEEE 123-bus feeder (Figure 2c), leaving the datacenter uncoordinated resulted in a massive violation of 35.15 pu·s. The OFO controller successfully slashed this violation down to 5.74 pu·s, while the learning-based PPO controller brought it down to 10.64 pu·s.
- Quantifying the Precision Impact: When running Qwen 3 235B on an H100 cluster, switching from BF16 to FP8 precision raised the power floor. Under OFO control, this reduction in flexibility caused a roughly 100× increase in the residual grid voltage violations compared to the more flexible BF16 deployment.
Limitations and Future Work
While OpenG2G is a major step forward, the authors note several limitations:
- Data Dependency: The datacenter backend is purely measurement-driven; it cannot simulate models or hardware configurations that are not already present in the underlying ML.ENERGY benchmark.
- Quasi-Steady-State Grid Modeling: The default OpenDSS backend models steady-state voltage behavior, meaning fast transient phenomena (like sub-cycle events or inrush currents) are currently out of scope.
- Scope of Validation: The current experiments focus entirely on distribution feeders and LLM inference workloads. Future work is needed to validate transmission-level grids and explicitly control large-scale training workloads.
Summary updated