TL;DR
PALS (Power-Aware LLM Serving) is a novel runtime framework that treats GPU power caps as a dynamic control knob rather than a static constraint. By jointly optimizing hardware power limits and software scheduling parameters (like batch size), PALS improves LLM serving energy efficiency by up to 26.3% and reduces Quality-of-Service (QoS) violations by 4×–7× under strict power budgets.
What Problem Does This Paper Address?
Large Language Model (LLM) inference has become a dominant and incredibly expensive workload in modern data centers. To cope with this, existing serving frameworks (like vLLM) heavily optimize software-level metrics via continuous batching, request scheduling, and tensor parallelism. However, they almost universally treat GPU power as a static, external constraint.
In reality, data centers face highly dynamic environments: facility-level power caps, fluctuating electricity prices, and carbon-aware demand-response signals. Relying on static power caps leads to a lose-lose scenario: operators either over-provision power (wasting energy) or under-provision it (causing massive throughput drops and QoS violations). This problem is severely amplified in Mixture-of-Experts (MoE) models, where tokens are dynamically routed to different experts, introducing highly unpredictable communication overheads alongside raw computation.
Methods
The authors introduce PALS, a plug-and-play, power-aware runtime integrated directly into vLLM without requiring model retraining or API modifications. PALS operates as a closed-loop control system across two main phases:
- Offline Power-Performance Modeling: The system profiles various LLMs across a wide configuration space—varying power caps (150W–400W), batch sizes (1–64), and parallelism strategies. It trains a lightweight Random Forest regression model to map these configurations to predicted performance metrics (tokens/second and power consumption).
- Online Closed-Loop Control: Operating at a 500ms interval, the PALS controller queries the offline model to identify candidate configurations that satisfy the current throughput target ($T_{target}$). From the valid candidates, it selects the configuration that maximizes energy efficiency (tokens per Joule). To handle real-world workload fluctuations and modeling inaccuracies, PALS incorporates a PID feedback controller that dynamically adjusts decisions based on real-time throughput errors.
Datasets
The framework was evaluated using standard, representative datasets to generate realistic inference workloads:
- HellaSwag and GSM8K were utilized to simulate diverse sequence lengths and reasoning complexities.
- Workloads were fed into the system using a Poisson arrival process to mimic the bursty request patterns typical of production environments.
- Models Evaluated: Dense models (GPT-2, Llama-2-7B, Mistral-7B) and MoE models (OLMoE-1B-7B, Qwen1.5-MoE, DeepSeek-MoE, Phi-3.5-MoE, Mixtral-8x7B).
Key Insights and Ideas
- The MoE Power Cap "Knee": For compute-bound models like Mixtral, increasing GPU power consistently yields more throughput. However, for communication-bound MoE models (like Qwen-MoE and OLMoE), efficiency peaks around 200W and then declines. Shoving more power into the GPU past this point simply accelerates communication overhead (like NCCL all-to-all traffic) rather than performing useful math.
- Co-Optimization Expands the Pareto Frontier: Optimizing hardware (power caps) or software (batch size) in isolation restricts performance to sub-optimal operating regimes. Combining them allows the system to navigate a much wider, strictly dominant Pareto frontier, filling the gaps between high-throughput and high-efficiency states.
Key Results
- Single-Node Efficiency: PALS achieves up to a 26.3% energy efficiency improvement (averaging 1.26× across tested models) compared to an un-capped baseline, capturing 95% of the theoretical maximum achieved by an exhaustive offline oracle search.
- Robust QoS Under Constraints: In a multi-node cluster limited to a strict 4,800W budget, PALS reduced QoS violations by 4×–7×, keeping violations between a low 3.2%–5.3% while baselines suffered up to 35.2% violation rates.
- Grid-Interactive Tracking: During simulated 1-hour demand-response events, PALS successfully tracked highly dynamic power budgets. By dynamically shrinking batch sizes during low-power periods, it maintained up to 22% higher throughput than static-batch alternatives.
Limitations and Future Work
While PALS represents a major step forward, the authors note a few limitations:
- Offline Model Drift: If a live workload deviates drastically from the offline profiling data (e.g., highly adversarial inputs or extreme prompt lengths), the Random Forest model can mispredict throughput or power.
- Abrupt Burst Handling: The PID controller effectively corrects steady-state mismatches but can struggle to adapt instantaneously to sudden, massive spikes in request volume.
Future Work: The authors point toward incorporating lightweight online model updates and uncertainty-aware prediction mechanisms to make the runtime even more resilient to highly volatile production traffic.
Summary updated