TL;DR
Hyperscale AI data centers now gulp down 250–500 MW—enough to power a mid-sized city—putting immense strain on regional power grids. DC2GRID is a new hierarchical reinforcement learning (RL) benchmark that turns this problem into a solution: it couples 15-minute energy-market bidding with 5-second hardware control (throttling compute, adjusting cooling, and dispatching batteries) so data centers can earn revenue by stabilizing the grid while keeping servers cool and AI workloads running.
What Problem Does This Paper Address?
Power grids must maintain a strict frequency (60 Hz in the US, 50 Hz in the EU). When supply and demand wobble, grid operators pay flexible assets to absorb or inject power on a second-by-second basis—a service called frequency regulation. Data centers have huge, controllable loads, thermal inertia in their cooling loops, and on-site batteries, making them ideal candidates for this job.
The catch? Previous benchmarks (like SustainGym and SustainDC) focused on "inside-the-fence" optimization—scheduling jobs or saving energy—without connecting those physical decisions to real-time market bidding. Conversely, market-bidding studies often ignore the messy physics of server temperatures, battery wear, and workload backlogs. DC2GRID bridges this gap by coupling coarse-timescale market commitments with fine-timescale hardware actuation in a single, reproducible testbed.
Methods
DC2GRID models a 250 MW, two-zone data center using six coupled physics engines (workload, thermal, electrical, battery, grid signal/market, and weather) and exposes them through two linked Gymnasium environments:
DC2GridMacroEnv(15-minute timescale): Acts as the grid manager. Every 15 minutes, it observes aggregated facility stats and market prices, then bids a capacity commitment (in MW) and an asking price into the regulation market.DC2GridFastEnv(5-second timescale): Acts as the hardware controller. It takes the cleared commitment and actuates four physical levers every 5 seconds: Dynamic Voltage and Frequency Scaling (DVFS) throttling on batch jobs, Coolant Distribution Unit (CDU) pump speed, HVAC fan effort, and a 15 MWh / 5 MW battery energy storage system (BESS).
The authors benchmarked rule-based, PID, LLM-based (Qwen3-32B using in-context RL), and RL-based (SAC and PPO) controllers. Because training both levels from scratch is unstable, they used a two-phase bootstrap: first pre-training the low-level SAC agent under a fixed rule-based macro controller, then freezing the low-level policy and fine-tuning the macro agent.
Datasets
DC2GRID is driven by open-access, 5-minute-resolution traces:
- Workloads: Real Alibaba cluster traces for GPU batch jobs (
v2023), DLRM inference (v2025), and generative AI/LLM inference (v2026, which includes spiky traffic). - Grid & Weather: Real zonal load data from six major grid markets across three continents (NYISO, PJM, CAISO, ERCOT, ENTSO-E, and AEMO) paired with NOAA dry-bulb temperature data.
- Evaluation Suite: Four stress-test scenarios (default, GenAI demand spikes, 40°C extreme heat, and compound battery/cooling faults) across all six markets.
Key Insights and Ideas
- Active low-level control is non-negotiable: Holding hardware levers fixed ("no hardware agent") yields a massive tracking error (2,737 kW RMSE). Adding an RL-based low-level controller cuts that error 12-fold to 229 kW with zero thermal violations.
- The revenue-accuracy trade-off: When both levels are learned (Phase 2), the macro RL agent learns to bid more aggressively, boosting revenue from $6,287 to $8,550. However, it over-commits relative to what the frozen low-level policy can reliably deliver, pushing tracking RMSE back up to 780 kW.
- LLMs are too slow for 5-second control (for now): Using Qwen3-32B for 15-minute market bidding works reasonably well (296 kW RMSE, though conservative on revenue), but at 2–3 seconds per inference call, it is currently too slow for 5-second hardware actuation.
- Grid destressing works: When the regulation signal is biased to cut load during peak grid demand, the SAC controller reduces stress-window demand by 6.01 MW (18.5% more than rule-based control) with virtually no loss in regulation revenue.
Key Results
On the default NYISO-NYC 250 MW scenario (5 episodes, 24 hours each), all configurations achieved 100% survival (no thermal, frequency, voltage, or SLA faults):
- Best tracking: Rule-based macro + SAC low-level achieved 229 ± 18 kW RMSE and $6,287 ± 353 revenue.
- Highest revenue: SAC macro + frozen SAC low-level achieved $8,550 ± 553 revenue, 780 ± 626 kW RMSE, and the lowest battery degradation (18.38 × 10⁻⁴).
- Classical baselines: Rule-based and PID low-level controllers trailed at 621 kW and 813 kW RMSE, respectively.
Limitations and Future Work
The simulator uses a lumped-mass thermal model per zone (so it cannot resolve spatial hot spots), empirical battery efficiency curves, and synthetic AR(1) regulation signals rather than live ISO feeds. Communication latency, grid topology, multi-agent coordination, and hardware-in-the-loop validation are left for future work. Policies trained here are intended for scientific evaluation and will require real-hardware validation before live grid deployment.
Summary updated