arXiv is now an independent nonprofit! Learn more
License: CC BY 4.0
arXiv:2609.23085v1 [cs.PF] 19 Sep 2026

Measured Joules, Learned Routes: Learning to Route for Energy-Efficient LLM Serving

DOI: XXXXXXX.XXXXXXXConference: Make sure to enter the correct conference title from your rights confirmation email; Publication time; Publishing venueISBN: 978-1-4503-XXXX-X/2018/06
Muhammad Abdur Rab Siddiqui email: msiddiq6@ualberta.ca Affiliation: University of Alberta, Edmonton, Alberta, Canada , Daniela Rojas email: d2rojas@ucsd.edu Affiliation: University of California San Diego, La Jolla, California, USA , Chen Yang email: cyang529@connect.hkust-gz.edu.cn Affiliation: Hong Kong University of Science and Technology (Guangzhou), Guangzhou, China , Wenqi Cui email: wenqicui@nyu.edu Affiliation: New York University, New York, New York, USA , Yuanyuan Shi email: yyshi@ucsd.edu Affiliation: University of California San Diego, La Jolla, California, USA and Yize Chen email: yize.chen@ualberta.ca Affiliation: University of Alberta, Edmonton, Alberta, Canada
2027
Abstract.

Large language models (LLMs) and agentic AI systems are creating rapidly growing inference energy demands as model sizes grow and reasoning trajectories extend. While in practice, many queries do not require the capabilities of the largest available model, and routinely directing such queries to a high-capability model can introduce unnecessary, considerable computation and energy consumption. In this paper, we investigate whether adaptive routing across a heterogeneous pool of LLMs can reduce this energy burden without substantially compromising task performance. We design a language-model-based router that reads in each query and selects an answer model from a fixed candidate pool. The candidate models are first profiled through an offline tournament that records their correctness, latency, power, and GPU energy for each query. Using these measurements, the router is trained through supervised fine-tuning followed by group relative policy optimization (GRPO) with the tailored paradigms. Results demonstrate that learned routing can selectively allocate expensive model capacity based on query contexts, and effectively improve the accuracy–energy trade-off of multi-LLM serving. Across seven benchmark tasks, we also observe a sharp accuracy–energy phase transition among routers, providing practical insights in terms of striking the energy efficiency while still keeping LLM performance.

1. Introduction

Artificial intelligence (AI), particularly large language models (LLMs), already places substantial demands on computing infrastructure and its electricity supply. Inference is becoming the central part of this energy burden. As deployed models with billions or trillions of parameters repeatedly process requests throughout their operational lifetime, so even modest energy costs per response accumulate at service scale (Oviedo et al., 2026; Chung et al., 2026a). Longer reasoning outputs and agentic workflows can increase this demand further by generating more tokens and invoking models multiple times for a single user request (Chung et al., 2026b). These workloads make inference efficiency an important concern for sustainable AI serving with regard to cutting down energy spent answering queries while preserving task performance.

As current LLMs vary by model sizes, specialized areas, and associated computing demands, model routing offers one approach to this challenge. Instead of assigning every query to the same LLM, in practice, a router can select an answer model from a heterogeneous pool according to the query’s requirements and characteristics (Song et al., 2025; Li et al., 2026). As modern AI models differ to a significant extent in their capabilities across reasoning, coding, and knowledge-intensive tasks, it creates opportunities to allocate computational effort selectively (Hu et al., 2024). Always sticking to a high-capability model can spend unnecessary energy on queries that a smaller model could answer correctly, whereas always using a small model can sacrifice accuracy on more demanding inputs. Query-dependent LLM model selection therefore offers a way to exploit model diversity and adjust the quality-cost trade-off (Ong et al., 2025; Jitkrittum et al., 2026; Hu et al., 2024).

However, making routing effective and tailored for energy reduction presents a few challenges. Indeed, the cost of a model invocation depends on both models and queries. Input and output lengths, hardware, and serving configurations affect energy consumption, so current practices like parameter counts, API prices, and fixed model-level costs do not fully expose the joules consumed by the underlying generation task (Wilkins et al., 2024; Chung et al., 2026a). This issue becomes especially important in agentic LLM systems, where one user request may trigger multiple model calls for planning, tool use, verification, and revision (Yang et al., 2026). Moreover, an energy-centric router shall be able to judge and evaluate whether a candidate will answer correctly before observing its output. Reducing energy by systematically choosing weaker models can undermine the service’s purpose, and the useful routing requires learning when additional model capacity is warranted. Another concern is routing itself consumes computation, while most of recent works on router design may not distinguish the selected model’s consumption from the overhead of making and executing that decision (Ong et al., 2025; Jitkrittum et al., 2026).

In this work, we study whether a tailored small language model can learn the unique energy-aware routing policy from measured AI serving outcomes. To achieve this router training, we first conduct an offline tournament in which every candidate answer model processes every training question, producing logs of correctness, latency, power, and GPU energy. These logs define an oracle route and a gated reward, where we propose that incorrect answers receive a fixed penalty, while correct answers receive a reward reduced by the selected model’s within-query energy rank. Built upon recent advancements in agentic post-training paradigms (Luo et al., 2025; Jiang et al., 2025) together with this novel profiling data, the routing controller is trained through supervised fine-tuning (SFT) followed by group relative policy optimization (GRPO) (Shao et al., 2024), including a variant regularized toward the SFT policy. Rather than guided to output complete final answers, based on query contexts, we design the training paradigm to let the router only output the routing decision, which is both lightweight and highly generalizable after finetuning on the small energy-aware datasets. During training and evaluation, model outcomes are replayed from the tournament logs, so answer models do not need to be invoked repeatedly. Figure 1 illustrates our proposed router training and implementation workflow.

Refer to caption
Figure 1. Overview of LLM-based routing learned from measured inference outcomes and RL feedbacks. We collect and construct offline profiling dataset from LLM queries to record correctness, GPU energy, and latency to train a small LLM routing controller through SFT and GRPO; At serving time, the intended controller selects one candidate from the fixed executer pool, which achieves improved tradeoff between LLM serving energy and performance.

This work makes three main contributions. First, we formulate LLM model routing around measured GPU energy rather than model size or monetary price alone. Second, we illustrate a practical way of profiling LLM energy and performance during inference, and develop a compact LLM-based routing controller trained through an SFT-to-RL pipeline under a gated accuracy-energy reward. Third, we evaluate proposed and classical model routers on a nine-model pool across a diverse held-out mixture of seven benchmarks. Results indicate a sharp accuracy-energy transition near 60% accuracy, where LLM models below this region can remain relatively inexpensive, whereas higher accuracy requires substantially more frequent use of capable models. Our proposed policy trained via the mixed KL-GRPO scheme reaches similar accuracy as UniRoute (Jitkrittum et al., 2026) , while consistently using about 23%23\% less mean answer energy (1692​J1692\,\mathrm{J} vs. 2192​J2192\,\mathrm{J}). Ablation studies also indicate interesting observations regarding reward selection, model collapse, and tradeoff between AI performance and energy footprints. We will open-source the proposed router after reviewing period.

1.1. Related Work

1.1.1. Energy-efficient LLM inference

Due to the surging energy demand associated with AI usage, research start to investigate the power and energy impact of AI training and AI serving (Chung et al., 2026a; Li et al., 2024). Inference energy costs are alarming as agentic tasks involve complicated reasoning loops, long reasoning chains, and tendency of using larger sizes of LLMs (Luccioni et al., 2024). Researchers have identified hardware selection (Wilkins et al., 2024), AI model training (You et al., 2023), LLM model caching and serving strategies (Wang et al., 2025; He et al., 2025), preemptive power management (Patel et al., 2024) as opportunities of energy reduction. Prior work has measured substantial variation in LLM inference energy across tasks, models, and deployment configurations (Chung et al., 2026a; Oviedo et al., 2026). Such measurement literature shows that energy depends on model size, batching, hardware, precision, and generation length. For instance, most routers shown in Table 2 still optimize accuracy, embedding similarity, or API-style cost proxies rather than measured GPU energy on the serving stack. GreenServ (Ziller et al., 2026) is the main exception among our baselines because it explicitly trades accuracy against normalized inference cost in the bandit reward. We evaluate classical and learned routers on the same held-out mix with logged GPU energy, power, and latency, and we study how reward shaping and RL reshape the accuracy–energy frontier over a multi-model local pool.

1.1.2. Routers for AI Serving

A growing line of work considers practical serving systems, and treats model selection as a first-class inference problem instead of fixing one backend for every query. Most of these routers are designed to optimize efficiency (Jitkrittum et al., 2026), while outputs with least token outputs may not be directly translated to energy consumption. RouterBench formalizes this setting with a large offline benchmark of per-model outcomes and popular routing baselines (Hu et al., 2024). Among them, kk-nearest-neighbour routing scores each candidate from the error rates of models on embedding neighbours of the test prompt. UniRoute (Jitkrittum et al., 2026) represents each LLM through its errors on representative prompt clusters, so a model can be scored and routed to even when it was not in the original training pool. Smoothie (Guha et al., 2024) takes a label-free route. It embeds each candidate’s prompt–output pair and estimates per-sample quality without correctness labels on the routing split. RouteLLM (Ong et al., 2025) learns a binary strong–weak router from preference data and thresholds a win probability to trade cost against quality. In our design, we adapt that rule to a strong–weak pair from the local candidate pool rather than the paper’s API checkpoints. GreenServ (Ziller et al., 2026) targets energy-aware serving. It models routing as a contextual bandit and uses LinUCB (Li et al., 2010) is a classical bandit-based approach that maintains a disjoint linear reward model per arm and explores with an uncertainty bonus. GreenServ’s reward mixes accuracy with normalized inference cost, which is close in spirit to our gated accuracy–energy objective, while our controller is a learned language model rather than a hand-built feature vector.

The broader AI serving system’s goal is not a single router knob, posing challenges to router design. Indeed, agentic serving has two coupled controls. One is which model answers a query. The other is how much reasoning that call is allowed to spend. Most routers named above decide only the first. ARES (Yang et al., 2026) decides the second, and it does so adaptively. It chooses how much reasoning effort an agent should spend on the current query, so harder items can think longer and easier items can stop sooner. It does not assign one fixed thinking budget to every call. That split is part of what motivates this work. A fixed model wastes energy on easy items and still fails hard ones and a fixed thinking budget has the same problem inside one model. ARES is the closest prior statement of that second failure, and it treats reasoning effort as something the system should choose rather than freeze. Our controller attacks the first control with a small language model and a gated accuracy–energy reward on measured GPU logs. Together the two controls point to the same end goal. Agentic inference should spend compute only when the task justifies it.

1.1.3. Agentic RL

Training the router as a policy rather than only as a classifier connects our setup to agentic RL for language models. Recent advances have shown effectiveness of RL in post training which go beyond text imitation usually happening in SFT approaches. AgentLightning (Luo et al., 2025) is an agent training framework that wraps rollout generation and policy optimization for multi-step workflows. Hugging Face TRL (von Werra et al., 2020) is a separate library that implements GRPO and related on-policy algorithms for language models. We explored both stacks on the same offline tournament reward. Our reported SFT, GRPO, and KL-GRPO numbers use TRL, so training, checkpoints, and held-out evaluation stay in one consistent pipeline. Agent Lightning experiments served as a cross-check on the same reward design rather than as a second training path in the main tables. The distinction between supervised fine-tuning (SFT) and on-policy RL matters here (Yu et al., 2026). Prior analyses show that RL can improve exploration and reward shaping beyond imitation of static routing labels, while SFT remains a stable warm start (Chu et al., 2025). To that end, in this work we study whether RL on replayed tournament rewards can learn when extra answer-model cost is worth higher accuracy under measured energy constraints.

2. Problem Formulation

2.1. Heterogeneous model pool

For modern AI model serving, it is hard to apply one LLM model fit all inputs. This is due to the fact that it becomes challenging to strike a balance between being accurate on hard items and staying efficient on easy queries. For instance, a small, open-weight model generates few tokens and spends little energy, but it can fail queries which need more model and reasoning capacity. Whereas a large, reasoning-based model does the reverse, because they may overthink, and can waste significant amount of joules on items a smaller model would have easily answered (Zhao et al., 2026).

To this end, we study a serving system that selects one answer LLM for each incoming query. Let ℳ={m1,…,mK}\mathcal{M}=\{m_{1},\ldots,m_{K}\} denote a fixed pool of KK candidate LLMs, and let 𝒜={1,…,K}\mathcal{A}=\{1,\ldots,K\} index the available routes. A query context xx contains the question and any metadata provided to the router. The routing policy πθ​(a∣x)\pi_{\theta}(a\mid x) selects a candidate index aa, after which model mam_{a} generates an answer yy. The router makes the model-selection decision; the selected candidate performs the task. Each evaluated query involves one routing decision and one answer-model outcome. Multi-turn recovery and tool use could also be applied to our framework with proper extensions.

The pool of candidate LLMs is heterogeneous by design, and the model card is illustrated in Table 1. Candidates differ in model family, parameter count, and reasoning style, from sub-billion Qwen2.5 drafts through mid-size models such as Gemma2-2B, Qwen2.5-7B, and Llama 3.1 8B, up to DeepSeek-R1 8B and 32B. That spread is what makes routing meaningful. These differences create opportunities for query-dependent selection, since a model that is effective for one task need not offer the best accuracy–energy trade-off for another. For example, Figure 2 shows a GSM8K query answered correctly by Qwen2.5-0.5B using 82​J82\,\mathrm{J} and by DeepSeek-R1-8B using 2864​J2864\,\mathrm{J}, while Llama 3.1-8B answers incorrectly using 638​J638\,\mathrm{J}. For this question, though Llama model has larger size, its overthinking and extra steps around equation modeling causes both inefficient and inaccurate inference. Such an example motivates measuring outcomes for each query-energy-model triplet rather than inferring suitability from model size alone. We assume all answer models are open-weight checkpoints served locally through Ollama on that device, so each candidate can be invoked under the same power logger rather than billed as a separate API price.

GSM8K, question 31.  Gunter is trying to count the jelly beans in a jar. He asks his friends how many they think are in the jar. One says 80. Another says 20 more than half the first one. A third says 25% more than the first one. What is their average guess?

Qwen2.5-0.5B (correct) 8282 J | 3.83.8 s Answer: 80 Response: “First, let’s calculate each friend’s guess: (1) The first friend guesses 80 jelly beans. (2) The second friend guesses 20 more than half of 80, which is (80/2)+20=60(80/2)+20=60. (3) The third friend guesses 25% more than the first one, which is 1.25×80=1001.25\times 80=100. The average is (80+60+100)/3=80(80+60+100)/3=80.”

Llama 3.1-8B (wrong) 638638 J | 7.87.8 s Answer: 106.67 Response: “Let’s denote Gunter’s friend who said 80 as F1, the second friend as F2, and the third friend as F3. F2 =(1/2)⋅=(1/2)\cdotF1+20+20. F3 =1.25⋅=1.25\cdotF1. Now we can find the average of their guesses by adding up all three guesses and dividing by 3: Average = (F1 + ((1/2) * F1 + 20) + (1.25 * F1))/3 Combine like terms. Average = (F1 + (0.5 * F1) + 20 + (1.25 * F1))/3 Simplify the numerator. Average = (3.75 * F1 + 20)/3 Now we can plug in the value of F1, which is 80. Average = (3.75 * 80 + 20)/3 Multiply 3.75 and 80. Average = (300 + 20)/3 Add 300 and 20. Average = 320/3 Divide 320 by 3. Average = 106.67”

DeepSeek-R1-8B (correct) 2,8642{,}864 J | 22.822.8 s Answer: 80 Response: “The first friend guesses 80 jelly beans. The second friend guesses 20 more than half of the first guess: half of 80 is 40, so 40+20=6040+20=60. The third friend guesses 25% more than the first guess: 25% of 80 is 20, so 80+20=10080+20=100. The average is (80+60+100)/3=80(80+60+100)/3=80.”

Figure 2. Same benchmark query from GSM8K, different profilings of three local models. Responses are truncated tournament logs; energy and duration are measured effective GPU cost for that answer call.

2.2. Recorded outcomes and energy measurement

For query ii and candidate aa, let yi​ay_{ia} be the recorded answer and yi⋆y_{i}^{\star} its reference. We denote correctness by

(1) Ci​a=gb⁡(i)​(yi​a,yi⋆)∈{0,1},C_{ia}=g_{b(i)}(y_{ia},y_{i}^{\star})\in\{0,1\},

where gb⁡(i)g_{b(i)} is the evaluator for benchmark b⁡(i)b(i). This notation covers task-specific answer matching and code-test evaluation without requiring exact and literal string equality. Let Ei​aE_{ia}, Li​aL_{ia}, and P¯i​a\bar{P}_{ia} denote the each answer call ii’s incremental GPU energy in joules, wall-clock duration in seconds, and mean incremental GPU power in watts, respectively.

The candidate models are served locally through Ollama on NVIDIA A100-SXM4-80GB GPUs with tensor parallelism. During profiling, the logger polls board power through NVML using pynvml at a 200​ms200\,\mathrm{ms} interval and subtracts an idle-power baseline. We adopt nvidia-ml-py bindings, which read the same device counters as nvidia-smi. Let Pi​aboard​(t)P_{ia}^{\mathrm{board}}(t) denote the board power trace and Pi​aidleP_{ia}^{\mathrm{idle}} the baseline associated with the query call ii, the measurement quantities of power, energy, and duration are modeled as

(2) Pi​ainc​(t)\displaystyle P_{ia}^{\mathrm{inc}}(t) =Pi​aboard​(t)−Pi​aidle;\displaystyle=P_{ia}^{\mathrm{board}}(t)-P_{ia}^{\mathrm{idle}};
(3) Ei​a\displaystyle E_{ia} =∫ti​astartti​aendPi​ainc​(t)​𝑑t;\displaystyle=\int_{t_{ia}^{\mathrm{start}}}^{t_{ia}^{\mathrm{end}}}P_{ia}^{\mathrm{inc}}(t)\,\mathrm{d}t;
(4) Li​a\displaystyle L_{ia} =ti​aend−ti​astart,P¯i​a=Ei​aLi​a.\displaystyle=t_{ia}^{\mathrm{end}}-t_{ia}^{\mathrm{start}},\qquad\bar{P}_{ia}=\frac{E_{ia}}{L_{ia}}.

The energy integral is estimated from the sampled trace. Note these quantities describe idle-subtracted GPU consumption within the measured query call interval, which is the core energy associated with AI inference. They do not represent total server or data-center-level energy consumption.

We first profile AI model’s energy and performance through an offline tournament of mild size, which records the outcomes of the candidate models on the collected questions. With given query input xix_{i}, the per-query record is profiled as

(5) 𝒟i=(xi,{(Ci​a,Ei​a,Li​a,P¯i​a)}a=1K).\mathcal{D}_{i}=\left(x_{i},\{(C_{ia},E_{ia},L_{ia},\bar{P}_{ia})\}_{a=1}^{K}\right).

These are realized outcomes of the underlying LLM inference generations. Replaying a record reproduces that recorded outcome, rather than estimating the answer model’s stochastic behavior or measurement variation. The complete outcome vector provides feedback for all candidates on a training query, although the learned policy selects only one candidate at inference time.

2.3. Energy-Aware AI serving objectives

In this work, we explore the possibilities of meeting LLM service objectives at low energy cost. On a fixed logged dataset 𝒟\mathcal{D} of NN queries, the expected accuracy and answer energy of a feasible routing policy are

(6a) A^𝒟​(θ)\displaystyle\widehat{A}_{\mathcal{D}}(\theta) =1N​∑i=1N∑a=1Kπθ​(a∣xi)​Ci​a,\displaystyle=\frac{1}{N}\sum_{i=1}^{N}\sum_{a=1}^{K}\pi_{\theta}(a\mid x_{i})\,C_{ia},
(6b) E^𝒟​(θ)\displaystyle\widehat{E}_{\mathcal{D}}(\theta) =1N​∑i=1N∑a=1Kπθ​(a∣xi)​Ei​a.\displaystyle=\frac{1}{N}\sum_{i=1}^{N}\sum_{a=1}^{K}\pi_{\theta}(a\mid x_{i})\,E_{ia}.

For deterministic routing, these expressions reduce to averages of the selected candidates’ outcomes. For sampled decisions, the corresponding sample averages estimate these expectations. Handling of invalid controller outputs is discussed in Section 3.1.

One design to handle the desired accuracy-energy trade-off is

(7) maxθ⁡A^𝒟​(θ)subject toE^𝒟​(θ)≤B;\max_{\theta}\ \widehat{A}_{\mathcal{D}}(\theta)\quad\text{subject to}\quad\widehat{E}_{\mathcal{D}}(\theta)\leq B;

where BB is an average answer-energy budget in joules per query. This constraint expresses a service goal, not a guarantee made by the training algorithm. The reported method instead optimizes the gated rank-based surrogate defined in Section 3.2 and evaluates its resulting accuracy and measured answer energy. Problem (7) can be treated as a single-step contextual decision problem. A contextual-bandit formulation accommodates either a classical or a text-conditioned neural policy. In addition, our logged training data provide detailed outcomes for every candidate. We therefore distinguish the routing problem, the controller’s representation, and the feedback used to train it.

We note with the addition of the router policy πθ\pi_{\theta}, the complete serving energy also depends on the controller and deployment costs, including model loading and residency under the chosen serving configuration. Those costs is measured use the consistent metric to establish end-to-end savings, and they are not supplied by the lookup of Ei​aE_{ia} alone. More importantly, as LLM’s consumed energy are strongly dependent on input queries and output contexts, it requires dedicated design and investigation of the router.

Table 1. Candidate language models used in the evaluation, with ARC Challenge (Clark et al., 2018) accuracy and mean effective answer energy per query on all 472 collected questions.
Model Nominal Size ARC Acc. Energy (J)
Qwen 2.5 0.5B 0.314 66.1
Qwen 2.5 1.5B 0.665 84.3
Qwen 2.5 3B 0.727 131.7
Phi-3 Mini 3.8B 0.803 170.5
Gemma 2 2B 0.722 56.2
Qwen 2.5 7B 0.871 140.8
Llama 3.1 8B 0.803 196.1
DeepSeek-R1 8B 0.932 2142.2
DeepSeek-R1 32B 0.939 3307.9
Table 2. Held-out avg. results by routing policies.
Policy Accuracy Reward Duration (ms) Model Energy (J) Power (W)
always_smallest 0.189 - 3780 91.8 23.2
always_medium 0.791 - 28672 4127.9 125.9
always_large 0.735 - 25706 5112.4 174.5
K-NN 0.790 - 23366 3697.6 121.3
UniRoute 0.618 - 15371 2192.2 84.8
Smoothie 0.599 - 9269 1070.6 59.4
RouteLLM 0.721 - 25053 4958.6 170.3
GreenServ (λ=0.5\lambda{=}0.5) 0.567 - 5584 277.0 41.4
SFT (λe=0.5\lambda_{e}{=}0.5) 0.502 0.400 7821 822.8 45.9
KL-GRPO (sft λe=0.5\lambda_{e}{=}0.5, rl λe=0.4\lambda_{e}{=}0.4, step 500) 0.591 0.686 10932 1339.8 47.1
KL-GRPO (sft λe=0.5\lambda_{e}{=}0.5, rl λe=0.4\lambda_{e}{=}0.4, step 1500) 0.609 0.720 13118 1691.9 55.2
GRPO (sft λe=0.5\lambda_{e}{=}0.5, rl λe=0.4\lambda_{e}{=}0.4, step 750) 0.584 0.666 7942 811.8 48.5
GRPO (both λe=0.3\lambda_{e}{=}0.3, step 1000) 0.573 0.612 6002 297.0 46.8

3. Agentic Learning to Route

3.1. Router’s environment

To fully release the routing controller’s effectiveness, we propose to utilize a lightweight, finetuned LLM in a text-conditioned approach. Its role is to interpret a query and select a candidate from the fixed pool, using a smaller LLM than most of the candidate answer models. The controller prompt contains the question like in Figure 9, a fixed legend mapping labels to candidate indices, and an optional difficulty field when available. Recorded correctness and energy are regarded as training feedback rather than inputs supplied to the controller when selecting a model.

Let pθ​(o∣x)p_{\theta}(o\mid x) denote the probability of a controller completion oo given query context xx, and let f⁡(o)f(o) parse its route label into an index in 𝒜\mathcal{A}. The induced route probabilities are

(8) πθ(a∣x)=∑o:f⁡(o)=apθ(o∣x).\pi_{\theta}(a\mid x)=\sum_{o:\,f(o)=a}p_{\theta}(o\mid x).

This separates probabilities over generated texts from probabilities over candidate models. The reported variants use either a short rationale with a Choice: <letter> field or a choice-only completion. Both formats produce the same model-selection action. An un-parseable output is an invalid action and receives a negative training reward. If multi-turn routing is enabled, the router also sees any prior user-assistant turns on the same item, the current turn number, the model chosen last time, and whether that attempt was correct. The router can output Stop when a satisfactory answer already exists and does not require to route to candidate LLMs. In all reported experiments we use a single routing turn per question, so each item produces one letter choice. Probability on invalid outputs is separate from the valid-route probabilities in Eq. (8).

The tournament contains approximately 3,0003,000 collected questions from MMLU, GSM8K, BBH, ARC Challenge, HellaSwag, MATH-500, and HumanEval. The reported training and held-out subsets contain 20502050 and 913913 questions, respectively; benchmark counts are given in Table 5 in Appendix. The training subset supplies oracle labels and policy rewards. We use Qwen2.5-1.5B-Instruct as a text-conditioned routing controller, and find it achieve desired post-training behaviors with respect to routing decisions. During policy optimization, the controller generates new completions, but answer-model outcomes are retrieved from the fixed training records. Thus, router sampling is on-policy with respect to the rollout controller, while its environmental feedback is replayed.

3.2. Router reward design

To ensure in the RL post-training, the router can effectively evaluate the input queries’ contexts and make decisions, we come up with a ranking-based reward for energy, which is in the same scale as of performance reward. Such a reward combines task correctness with preferences over inference costs (e.g., energy, task completion time and etc). For query ii and candidate aa, Ci​aC_{ia} denotes correctness, Li​aL_{ia} denotes answer latency in seconds, and P¯i​a\bar{P}_{ia} denotes mean incremental GPU power in watts. The measured answer energy Ei​aE_{ia} is expressed in joules.

We derive a bounded energy penalty from the ascending rank ki​ak_{ia} of Ei​aE_{ia} among the KK candidates for the same query:

(9) zi​a=ki​a−1K−1∈[0,1].z_{ia}=\frac{k_{ia}-1}{K-1}\in[0,1].

With distinct energies, zero corresponds to the cheapest candidate and one to the most expensive. For example, energies of 8585, 9595, 280280, and 3800​J3800\,\mathrm{J} produce penalties of 00, 1/31/3, 2/32/3, and 11. zi​az_{ia} denotes rank throughout. It is distinct from energy Ei​aE_{ia}. Ranking bounds the training penalty but discards the magnitude of differences in joules.

Let 𝝀=(λt,λe,λp)\boldsymbol{\lambda}=(\lambda_{t},\lambda_{e},\lambda_{p}) denote nonnegative cost coefficients associated with session duration, energy rank, and average GPU power. The general gated reward is

(10) ri​agen​(𝝀)={Rcorrect−λt​Li​a−λe​zi​a−λp​P¯i​a,Ci​a=1,−Rwrong,Ci​a=0.r^{\mathrm{gen}}_{ia}(\boldsymbol{\lambda})=\begin{cases}R_{\mathrm{correct}}-\lambda_{t}L_{ia}-\lambda_{e}z_{ia}-\lambda_{p}\bar{P}_{ia},&C_{ia}=1,\\ -R_{\mathrm{wrong}},&C_{ia}=0.\end{cases}

Latency, energy, and power describe related but different aspects of a session call. The same energy can be consumed over different durations and at different mean power levels. Thus, separate latency and power coefficients can express preferences over those quantities, but an average-power penalty alone does not enforce an instantaneous device or rack power limit. We distinguish this general reward form from the configuration used in the reported experiments as follows.

Reported experimental configuration.

In our paper, all reported reward configurations set λt=λp=0\lambda_{t}=\lambda_{p}=0 to focus on energy analysis, with Rcorrect=2R_{\mathrm{correct}}=2 and Rwrong=1R_{\mathrm{wrong}}=1. The active training reward therefore reduces to

(11) ri​a​(λe)=ri​agen​(0,λe,0)={2−λe​zi​a,Ci​a=1,−1,Ci​a=0.r_{ia}(\lambda_{e})=r^{\mathrm{gen}}_{ia}(0,\lambda_{e},0)=\begin{cases}2-\lambda_{e}z_{ia},&C_{ia}=1,\\ -1,&C_{ia}=0.\end{cases}

Latency and mean GPU power are consequently measured and reported but do not contribute to the optimization signal in these runs. The oracle and policy-optimization descriptions below use this specialization. Invalid controller outputs and unavailable outcomes receive a separate negative penalty rather than the valid-route score above. Equivalently, the active reward can be expressed as

(12) ri​a​(λe)=3​Ci​a−1−λe​Ci​a​zi​a.r_{ia}(\lambda_{e})=3C_{ia}-1-\lambda_{e}C_{ia}z_{ia}.

Our reward design distinguishes the costs of correct routes, while it assigns equal reward to cheap and expensive failures. It is an empirical learning surrogate instead of a guarantee of meeting the joule budget in Eq. (7). Evaluation counts measured answer energy for successful and unsuccessful answers alike. Joint optimization with nonzero latency or power weights is not demonstrated by the reported experiments.

3.3. Oracle construction and supervised initialization

For each training query, the oracle target is selected from

(13) ai⋆∈arg​maxa∈𝒜⁡ri​a​(λeSFT),a_{i}^{\star}\in\operatorname*{arg\,max}_{a\in\mathcal{A}}\;r_{ia}(\lambda_{e}^{\mathrm{SFT}}),

where λeSFT\lambda_{e}^{\mathrm{SFT}} is the coefficient used during target construction. Under the reported positive coefficients 0<λeSFT≤10<\lambda_{e}^{\mathrm{SFT}}\leq 1, every correct route receives a larger reward than every incorrect route. The oracle therefore selects a lowest-energy correct candidate whenever one exists. Changing the positive coefficient within this range does not change that hard target if the logs and tie-breaking rule are fixed. For λeSFT=0\lambda_{e}^{\mathrm{SFT}}=0, correct candidates tie, and the draft’s accuracy-only configuration selects the largest correct model. When all candidates are wrong, every valid route ties under the reward.

Let oi⋆o_{i}^{\star} be the target completion encoding the selected route in the chosen output format. Supervised fine-tuning initializes the controller by minimizing the completion negative log likelihood

(14) ℒSFT(θ)=−1Ntr∑i∈ℐtrlogpθ(oi⋆∣xi),\mathcal{L}_{\mathrm{SFT}}(\theta)=-\frac{1}{N_{\mathrm{tr}}}\sum_{i\in\mathcal{I}_{\mathrm{tr}}}\log p_{\theta}(o_{i}^{\star}\mid x_{i}),

where ℐtr\mathcal{I}_{\mathrm{tr}} indexes the NtrN_{\mathrm{tr}} training queries. We can include two variations of the target during SFT. In the choice-only variant, the target contains the route field; in the rationale variant, it also contains an explanation. The resulting checkpoint is evaluated as an SFT baseline and initializes policy optimization. SFT learns to imitate target completions, whereas the next stage uses the rewards of the controller’s sampled decisions.

3.4. Group-relative policy optimization

We fine-tune the controller using GRPO (Shao et al., 2024), which is based on groupwise comparisons instead of using a separate critic model. For each training query ii, a rollout policy pθoldp_{\theta_{\mathrm{old}}} samples GG completions {oi​g}g=1G\{o_{ig}\}_{g=1}^{G}. Each completion is parsed and scored using its selected candidate’s logged outcome and coefficient λeRL\lambda_{e}^{\mathrm{RL}}, or the invalid-action penalty. Denote these completion rewards by ri​gr_{ig}. Their group statistics and advantages are

(15) μi\displaystyle\mu_{i} =1G​∑g=1Gri​g,σi2=1G​∑g=1G(ri​g−μi)2,\displaystyle=\frac{1}{G}\sum_{g=1}^{G}r_{ig},\qquad\sigma_{i}^{2}=\frac{1}{G}\sum_{g=1}^{G}(r_{ig}-\mu_{i})^{2},
(16) Ai​g\displaystyle A_{ig} =ri​g−μiσi+δ,\displaystyle=\frac{r_{ig}-\mu_{i}}{\sigma_{i}+\delta},

where δ>0\delta>0 stabilizes the denominator. A completion receives positive advantage when its reward exceeds the group mean. If all group rewards are equal, all advantages are zero and that group supplies no reward-driven update.

At the completion level, the clipped policy surrogate is expressed using importance sampling ratio

(17) ρi​g​(θ)=pθ​(oi​g∣xi)pθold​(oi​g∣xi),\rho_{ig}(\theta)=\frac{p_{\theta}(o_{ig}\mid x_{i})}{p_{\theta_{\mathrm{old}}}(o_{ig}\mid x_{i})},

with the resulting loss function

(18) ℒclip(θ)=−𝔼i,oi​1:G∼pθold[1G∑g=1Gmin{ρi​g​(θ)​Ai​g,clip(ρi​g(θ),1−ε,1+ε)Ai​g}],\begin{split}\mathcal{L}_{\mathrm{clip}}(\theta)=-\mathbb{E}_{i,\,o_{i1:G}\sim p_{\theta_{\mathrm{old}}}}\bigg[\frac{1}{G}\sum_{g=1}^{G}\min\big\{&\rho_{ig}(\theta)A_{ig},\\[-2.0pt] &\operatorname{clip}(\rho_{ig}(\theta),1-\varepsilon,1+\varepsilon)A_{ig}\big\}\bigg],\end{split}

where ε\varepsilon controls ratio clipping and is distinct from the advantage stabilizer δ\delta. This surrogate favors higher-reward completions while limiting the incentive for large policy-ratio changes.

The KL-regularized variant additionally anchors the controller to the SFT reference distribution prefp_{\mathrm{ref}}. At the distribution level its regularized objective is

(19) ℒKL​-​GRPO(θ)=ℒclip(θ)+β𝔼i[DKL(pθ(⋅∣xi)∥pref(⋅∣xi))],\begin{split}\mathcal{L}_{\mathrm{KL\text{-}GRPO}}(\theta)=\mathcal{L}_{\mathrm{clip}}(\theta)+\beta\,\mathbb{E}_{i}\big[D_{\mathrm{KL}}(&p_{\theta}(\cdot\mid x_{i})\|p_{\mathrm{ref}}(\cdot\mid x_{i}))\big],\end{split}

with regularization coefficient β≥0\beta\geq 0. This expression concerns controller completions rather than the marginal distribution over model indices in Eq. (8). Note KL regularization discourages departure from the reference policy. It does not by itself guarantee diverse routing or prevent concentration on a single candidate. Some configurations center rewards by subtracting a query-specific mean candidate reward. If the same scalar is subtracted from every reward before the group normalization in Eq. (16), it cancels from the advantages. Such centering is therefore distinct from any additional reward scaling or clipping used by the trainer.

3.5. Training configurations and evaluation

In this paper, we unify and use TRL to conduct main SFT, GRPO, and KL-GRPO post-training (von Werra et al., 2020). Policy optimization starts from the corresponding SFT checkpoint, and samples multiple controller completions per training prompt. The main reported configuration uses λeSFT=0.5\lambda_{e}^{\mathrm{SFT}}=0.5 and λeRL=0.4\lambda_{e}^{\mathrm{RL}}=0.4 as we find these hyperparameters give the best overall SFT and RL performances. The experiments also examine matched coefficients and alternative checkpoints. These coefficients identify the oracle-construction and policy-reward settings, respectively. Their effects on hard targets, sampled rewards, and learned policies should be distinguished. The output format is also part of each configuration, where choice-only and rationale-generating controllers have different generation costs, and should be compared with their matching SFT initializations.

On held-out queries, the router can be treated as the lightweight add-on to inference engines, where it selects a LLM model and the evaluator retrieves that candidate’s stored outcome. We report accuracy, mean answer-model energy, latency, power, and model-selection frequencies. Reward comparisons require a common evaluation coefficient: reward values computed with different λe\lambda_{e} are different metrics even when the policies share an SFT initialization. Accuracy and measured joules provide the primary comparison across configurations and baselines.

The replay protocol isolates model-selection behavior on a fixed outcome table. It does not measure live changes in answer generation, model-loading cost, queueing, or concurrent serving. Controller measurements and answer-model measurements must therefore be distinguished when discussing complete serving costs. The evaluation addresses single-turn routing on the profiled pool. Adaptation to new deployment conditions and multi-turn agent workflows would require additional experiments.

Refer to caption
Figure 3. Model selection mix on the held-out set.

4. Numerical Studies

4.1. Simulation setup

We evaluate routing policies on a mixed held-out set drawn from seven standard LLM benchmarks that span knowledge, reasoning, math, and code: MMLU (Hendrycks et al., 2020), GSM8K (Cobbe et al., 2021), BBH (Suzgun et al., 2023), ARC Challenge (Clark et al., 2018), HellaSwag (Zellers et al., 2019), MATH-500 (Lightman et al., 2024), and HumanEval (Chen et al., 2021). These tasks stress different answer-model costs, from short multiple-choice items to long generative math and code solutions, which is what makes energy-aware routing nontrivial on the shared nine-model pool.

Power measurements are based on NVML11 1 https://docs.nvidia.com/deploy/nvml-api/. To keep energy and performance comparable across runs, we place all router training and inference on instances of 1x NVIDIA A100-SXM4-8080,GB GPU. Answer models are served locally with Ollama on that device. The routing controller is trained and run with Hugging Face Transformers and TRL on the same GPU. Offline tournament collection used a separate machine with the same A100-SXM4-8080,GB specification. During each answer-model generation we poll board power at a 200,ms200,\mathrm{ms} interval via pynvml, subtract a short idle baseline, and record instantaneous effective power P⁡(t)P(t) in watts. Effective energy for the call is EcallE_{\mathrm{call}} as defined in Eq. (3), and latency is the wall-clock duration of the same generation. Table 2 reports mean accuracy together with measured duration, energy, and power summaries.

All methods in Table 2 are scored on the same 913 held-out test questions covering a spectrum of difficulty and categories. Scoring is an offline lookup from pre-logged tournament outcomes, so no live answer models are called at evaluation time.

K-NN estimates per-model error from embedding neighbours on the train split. UniRoute matches the prompt to a train K-means cluster and uses per-cluster error plus a cost term. Smoothie is label-free and scores candidates from embeddings of [prompt,output][\mathrm{prompt},\mathrm{output}]. Unlike the others, Smoothie uses all logged generations on the test item to decide, so we treat it as an output-informed diagnostic rather than a deployable pre-generation router. We still charge only the chosen model’s energy. GreenServ is a local LinUCB adaptation using task, semantic-cluster, and complexity features. Its reward is (1−λ)​Acc−λ⋅energy(1-\lambda)\mathrm{Acc}-\lambda\cdot\mathrm{energy} and is warmed on train and frozen before test. It is not the paper’s online serving stack. RouteLLM is a binary router over two fixed answer models, not a classifier over the full pool. We set the strong arm to DeepSeek-R1-32B and the weak arm to the smallest pool model, train a prompt classifier for P⁡(strong wins∣q)P(\text{strong wins}\mid q) on train outcomes, and route to the strong arm when P≥αP\geq\alpha. Fixed-model baselines always route every question to one predetermined answer model (always-smallest, always-medium, or always-large).

Table 2’s methods and results can be split into three categories. High-accuracy part is K-NN and always-medium, near 79%79\% at about 3.73.7–4.1​kJ4.1\,\mathrm{kJ}. Always-large and RouteLLM spend even more and do worse. The mid-accuracy band is UniRoute, Smoothie, and our λe=0.5→0.4\lambda_{e}{=}0.5{\to}0.4 GRPO runs, about 5858 to 62%62\% at 0.80.8 to 2.2​kJ2.2\,\mathrm{kJ}. The cheap accuracy band is GreenServ λ=0.5\lambda{=}0.5 and matched GRPO λe=0.3\lambda_{e}{=}0.3, about 57%57\% at about 280280–300​J300\,\mathrm{J}. SFT sits below that mid accuracy band. Always-smallest is cheap in energy but achieves poor accuracy.

Reward parameters.

We instantiate Eq. (11) with Rcorrect=2R_{\mathrm{correct}}=2, Rwrong=1R_{\mathrm{wrong}}=1, λt=λp=0\lambda_{t}=\lambda_{p}=0, and energy-rank mode for zi​az_{ia} in Eq. (9), so the training signal is the gated rank surrogate rather than raw joules. Baselines do not train on this gated reward, so the Reward column is blank for them. For SFT and TRL the Reward column is therefore ri​a​(λe)=2−λe​zi​ar_{ia}(\lambda_{e})=2-\lambda_{e}z_{ia} when Ci​a=1C_{ia}=1 and ri​a​(λe)=−1r_{ia}(\lambda_{e})=-1 when Ci​a=0C_{ia}=0. SFT uses λeSFT=0.5\lambda_{e}^{\mathrm{SFT}}=0.5. The 0.5→0.40.5{\to}0.4 runs use λeRL=0.4\lambda_{e}^{\mathrm{RL}}=0.4. Matched GRPO uses λe=0.3\lambda_{e}=0.3 at both stages. Therefore, the Reward column should only be compared among SFT and RL inside that block. Acc., duration, energy, and power are the columns to compare across the whole table.

4.2. Results and discussion

Accuracy–energy trade-off among routers

Figure 4 plots mean answer energy against held-out accuracy for the multi-model routers and learned controllers in Table 2. Blue markers are TRL sweeps over λe\lambda_{e} (von Werra et al., 2020). Among these methods, policies near 60%60\% accuracy generally report higher mean answer energy than policies that remain below that range by relying more on smaller candidate models. The additional energy is associated with more frequent selection of higher-capacity models when the query requires it. This comparison is restricted to the routers and learned controllers under study, and does not describe every fixed model in the candidate pool. Under that scope, KL-GRPO step 1500 nearly matches UniRoute (60.9%60.9\% vs. 61.8%61.8\%) at about 23%23\% lower mean answer energy (1.691.69 vs. 2.19​kJ2.19\,\mathrm{kJ}), and GRPO step 750 is close to Smoothie (58.4%58.4\% vs. 59.9%59.9\%) at about 24%24\% lower mean answer energy (0.810.81 vs. 1.07​kJ1.07\,\mathrm{kJ}).

Role of a mid-size fixed arm

A single mid-size model can look strong in aggregate. For instance, Always-Qwen2.5-7B reaches 64.0%64.0\% at 281.6​J281.6\,\mathrm{J} on the same held-out pool (Appendix Table 8), yet it falls to 26.2%26.2\% on BBH, so locking every query to 7B can be a weak suite-wide policy even when the overall mean is high. Our question is not whether one fixed arm can beat a router on the mean, but whether a controller can allocate capacity across the pool. Figure 3 shows that the learned and classical routers still call 7B when it helps. About one third of GreenServ traffic, about 30%30\% for GRPO step 750, and about 19%19\% for both KL-GRPO step 1500 and UniRoute use that arm. In that sense 7B is a useful pool member, not a substitute for routing.

Refer to caption
Figure 4. Energy–Accuracy Pareto comparison.
always smallest GreenServ (λ=0.5\lambda{=}0.5) Smoothie SFT (λe=0.5\lambda_{e}{=}0.5) GRPO (step 750) KL-GRPO (step 1500) GRPO (λe=0.3\lambda_{e}{=}0.3) UniRoute K-NN RouteLLM always largest
MMLU 14.8 51.7 49.0 40.9 38.9 45.6 50.3 58.4 63.1 65.1 65.1
GSM8K 27.1 82.6 86.8 38.2 75.7 61.8 81.2 70.8 89.6 89.6 89.6
BBH 2.1 15.2 42.8 33.8 40.7 52.4 37.9 19.3 69.7 27.6 27.6
ARC Challenge 35.4 77.6 76.2 74.8 76.2 78.2 78.9 87.1 88.4 91.2 92.5
HellaSwag 20.4 57.1 53.7 40.8 57.8 58.5 57.8 62.6 72.8 66.7 72.8
Math500 17.2 57.4 62.3 73.0 67.8 73.8 36.9 78.7 86.1 85.2 86.9
HumanEval 10.2 54.2 33.9 57.6 47.5 54.2 50.8 52.5 93.2 94.9 94.9
Overall 18.9 56.7 59.9 50.2 58.4 60.9 57.3 61.8 79.0 72.1 73.5
Table 3. Held-out accuracy (%) by benchmark and method.
MATH-500 accounts for most energy

Table 4 breaks energy down by benchmark and shows how uneven the cost is. Although MATH-500 is only about 13%13\% of the held-out questions, it accounts for roughly 5252–57%57\% of the total energy for SFT and KL-GRPO. For KL-GRPO step 1500 the mean MATH-500 cost is about 6.6​kJ6.6\,\mathrm{kJ}, while MMLU, GSM8K, ARC, and HellaSwag each sit near 0.150.15–0.49​kJ0.49\,\mathrm{kJ}. This concentration is why the mid-accuracy rows still appear expensive in the aggregate table. Collapsed cheap policies reduce the MATH-500 spend, but Table 3 shows that their MATH-500 accuracy also drops sharply, from 73.8%73.8\% under KL-GRPO step 1500 to 36.9%36.9\% under GRPO λe=0.3\lambda_{e}{=}0.3.

Accuracy is as uneven as energy

Table 3 is the matching accuracy view of the same methods. The Overall row recovers Table 2, but the benchmark mix is not uniform. K-NN is the only method that stays high on both BBH (69.7%69.7\%) and HumanEval (93.2%93.2\%); RouteLLM and always-large look strong in the aggregate table while BBH falls to 27.6%27.6\%. SFT’s 50.2%50.2\% overall hides a GSM8K collapse to 38.2%38.2\%, whereas GRPO step 750 recovers GSM8K to 75.7%75.7\% without moving into the high-energy band of Table 4. GreenServ λ=0.5\lambda{=}0.5 and GRPO λe=0.3\lambda_{e}{=}0.3 remain close overall (56.7%56.7\% against 57.3%57.3\%), yet GreenServ keeps MATH-500 at 57.4%57.4\% while the collapsed GRPO run does not. KL-GRPO step 1500 is the mixed mid-band policy that is even on ARC (78.2%78.2\%) and MATH-500 (73.8%73.8\%), weaker on MMLU (45.6%45.6\%), and still far cheaper than K-NN.

Refer to caption
Figure 5. SFT versus KL-GRPO effective GPU power on four held-out questions. Each panel shows the controller decode followed by the answer-model draft, with energy for the router, the answer, and their sum. Title deltas are relative to that total.
Choice of energy coefficient

Our main-table schedule uses λe=0.5\lambda_{e}{=}0.5 at SFT and λe=0.4\lambda_{e}{=}0.4 at RL. The SFT stage is meant to warm-start an energy-aware hybrid policy that still under-routes toward cheap drafts. Softening the RL weight to 0.40.4 and adding a KL term to that SFT policy is what lets the controller abandon the 0.50.5B model and move into the mid-accuracy band without jumping to always-large energy. Setting both stages to λe=0.3\lambda_{e}{=}0.3 instead collapses onto Llama 3.1 8B on every scored item, with zero selection entropy and the weak MATH-500 accuracy in Table 3. Under our hybrid energy-rank setup, any positive λe\lambda_{e} yields the same hard oracle labels (cheapest correct), so the SFT tags 0.3/0.5/0.70.3/0.5/0.7 share supervision targets. What changes across these runs is the learned policy and, during RL training, the reward scale. In Table 2, KL-GRPO step 1500 is the run among our own policies that reaches above 60%60\% held-out accuracy at the lowest mean answer energy in that band. The fuller sweep is in Table 6.

SFT versus RL

Reinforcement learning improves the controller from 50.2%50.2\% accuracy under SFT to 60.9%60.9\% at KL-GRPO step 1500. This gain raises mean answer energy from 0.820.82 to 1.69​kJ1.69\,\mathrm{kJ} because the policy is more willing to pay for a capable answer model rather than fail cheaply. GRPO step 750 provides a different operating point, improving accuracy to 58.4%58.4\% while reducing mean answer energy to 0.81​kJ0.81\,\mathrm{kJ}. The four examples in Figure 5 show that this trade-off is question dependent. In HumanEval q149, RL is correct and cheaper overall; in HellaSwag q395 and ARC-Challenge q438 it is also cheaper once router energy is included with the answer; and in MATH-500 q351, RL avoids an expensive failed R1-32B call by selecting R1-8B. Thus, the effect of RL is not a uniform increase in model size or energy, but a change in when additional answer-model cost is justified for higher accuracy.

always smallest GreenServ (λ=0.5\lambda{=}0.5) Smoothie SFT (λe=0.5\lambda_{e}{=}0.5) GRPO (step 750) KL-GRPO (step 1500) GRPO (λe=0.3\lambda_{e}{=}0.3) UniRoute K-NN RouteLLM always largest
MMLU 116.5 213.6 228.8 146.3 123.9 154.2 263.4 2.8k 1.1k 3.9k 3.9k
GSM8K 91.1 306.0 1.5k 159.5 389.2 489.1 331.9 572.6 2.3k 2.4k 2.4k
BBH 62.7 122.2 1.4k 1.6k 2.3k 2.5k 305.8 234.0 3.6k 4.3k 4.4k
ARC Challenge 72.0 157.3 161.8 77.6 129.7 180.1 204.4 1.9k 2.0k 3.2k 3.3k
HellaSwag 45.5 127.5 154.3 100.5 382.0 162.3 176.6 1.5k 2.9k 3.4k 3.8k
Math500 167.6 854.0 3.8k 3.5k 2.0k 6.6k 571.4 6.3k 9.6k 8.6k 9.1k
HumanEval 110.3 223.7 388.0 312.1 178.3 3.9k 238.0 3.3k 7.8k 16.5k 16.5k
Overall 91.8 277.0 1.1k 822.8 811.8 1.7k 297.0 2.2k 3.7k 5.0k 5.1k
Table 4. Mean effective answer energy (J) by benchmark and method.

The more direct training effect appears in the controller itself, which is the only component updated by SFT and RL. On the held-out evaluation, the majority of SFT controller decisions take about 2.4​s2.4\,\mathrm{s}, whereas after KL-GRPO the majority take about 0.8​s0.8\,\mathrm{s}, a reduction of more than 50%50\%, which is also visible as the shorter controller band in every panel of Figure 5. Because we train only this decoder, that drop is a change in how the router writes. Indeed, SFT still spends time on a longer reasoning plus choice generation, while RL concentrates the policy on a short, decisive letter, so the routing step itself becomes cheaper even when the chosen answer model is not. The effective controller power in the plotted traces is consistent across more than thirty checkpoints from various policies collected on that A100-SXM4-8080 GB machine; a later session on the same GPU class produced a different effective draw for otherwise similar decisions, so controller watts follow machine condition more than the training method. Latency, not power, is therefore the reliable signal of how RL changed the controller in our runs.

LLM controller versus bandits and plug-in routers

Figure 3 highlights the difference between an LLM-based router and the baselines visible through their model-selection patterns. K-NN, UniRoute, Smoothie, GreenServ, and RouteLLM never decode a routing token. They instead score embeddings, clusters, or a small contextual vector, and then apply an explicit knob such as λ\lambda, α\alpha, or a cost term. For instance, GreenServ λ=0.5\lambda{=}0.5 stays cheap while still mixing mid-size models, K-NN stays R1-heavy because neighbours vote for correctness (418418 calls to R1-8B and 294294 to R1-32B), and RouteLLM mostly sends traffic to its strong arm. In contrast, the LLM controller directly reads the question and generates a routing decision, enabling task-dependent model selection without a hand-built feature map. Under KL-GRPO, this results in structured routing, with MATH-500 favoring R1-8B, ARC favoring Gemma, and GSM8K favoring the 1.51.5B model, which is the mix behind the even ARC and MATH-500 accuracies in Table 3. KL-GRPO step 1500 distributes traffic across eight models and rarely selects R1-32B, while GRPO step 750 is more 7B-heavy and achieves lower energy at similar accuracy. Therefore, it can match UniRoute without large energy. GRPO step 750 is likewise mixed but more 7B-heavy, and therefore cheaper at similar accuracy. This flexibility can also lead to policy collapse. With GRPO λe=0.3\lambda_{e}{=}0.3, the controller routes every item to Llama 3.1 8B, yielding zero selection entropy despite competitive aggregate energy and accuracy. SFT with λe=0.5\lambda_{e}{=}0.5 exhibits a different failure mode by over-selecting the 0.50.5B model, resulting in low energy but poor accuracy. These results show that effective learned routing requires maintaining task-dependent model diversity rather than collapsing to a single low-cost decision.

Latency and Power Profile

Latency and power follow the same three sections as accuracy. The high accuracy rows draw about 121121–175​W175\,\mathrm{W} and take roughly 2323–29​s29\,\mathrm{s}, the middle rows draw about 4848–85​W85\,\mathrm{W} over 88–15​s15\,\mathrm{s}, and the cheap rows draw about 2323–47​W47\,\mathrm{W} over 44–6​s6\,\mathrm{s}. The TRL policies sit with Smoothie and GreenServ on power, at 4747–55​W55\,\mathrm{W}, rather than with K-NN, and KL-GRPO step 1500 is faster than UniRoute while GRPO step 750 is faster than Smoothie. As before, the duration column reflects answer model time only and does not include the controller.

Controller Energy and Training Cost

Tables report answer-model energy because that is the quantity every baseline shares once a model is chosen. Most competing methods are lookup-like mechanisms rather than generative controllers like the proposed router, so we do not invent a controller cost for them or leave the comparison on a guess. To visualize detailed per-session power trajectories and investigate where the energy savings come from, Figure 5 and Figure 10 (in Appendix) use the same four held-out questions, the same 200​ms200\,\mathrm{ms} NVML protocol, and NVIDIA A100-SXM4-8080,GB GPUs. Across those sessions, the occupancy of the board actively change. SFT remains the longer decode (about 2.42.4–2.8​s2.8\,\mathrm{s} versus about 0.80.8–1.0​s1.0\,\mathrm{s}) because the warm-start samples emit more tokens, so SFT controller energy stays higher even when both runs sit on the same GPU class. KL-GRPO controller energy is a few hundred joules in Fig. 5 and about 30​J30\,\mathrm{J} in Fig. 10. Latency, not watts, is the stable signature of the training paradigm shift. That add-on is why we keep answer model energy in the main table. That cost grows if the controller itself is scaled (larger routers, more candidates, or multi-turn routing) or if the pool moves to still heavier answer models (4848B and above), where choosing which call to issue matters more than zeroing the router’s own watts. Depending on steps, total training cost varied from 0.32 to 0.40 kWh, and remains a one-time investment for a reusable local controller.

5. Conclusion and Future Works

In this work, we look into the energy-efficient serving of LLMs, and investigate novel energy-aware model routing over a heterogeneous pool of LLMs via measured GPU energy rank. Instead of using model size or monetary cost as the routing objective, we propose to let the small language-model router evaluate the whole input queries’ contexts and energy profiles and finetune the router model with tailored reward. Such a router firstly undergoes supervised fine-tuning followed by reinforcement learning-based policy optimization, and it is evaluated on a held-out mixture of seven benchmarks using offline tournament logs. Our results show that routing policies can substantially alter the accuracy–energy trade-off by changing how frequently different answer models are selected, leading to a promising energy-efficient LLM serving paradigm while preserving model performance. Compared with router trained via SFT, selected GRPO and KL-GRPO checkpoints achieve higher held-out accuracy while maintaining lower energy than several existing routing baselines at comparable operating points. These results suggest that just with a mild-size finetuning dataset collected, measured-energy-aware routing is effective for realizing heterogeneous LLM serving, which is both flexible and generalizable across task domains. Future work will evaluate the approach in online and multi-turn agent settings and account for the full end-to-end routing overhead.

References

  • Chen et al. (2021) M. Chen, J. Tworek, H. Jun, Q. Yuan, H. P. D. O. Pinto, J. Kaplan, H. Edwards, Y. Burda, N. Joseph, G. Brockman, et al. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374. Cited by: §4.1.
  • Chu et al. (2025) T. Chu, Y. Zhai, J. Yang, S. Tong, S. Xie, D. Schuurmans, Q. V. Le, S. Levine, and Y. Ma Sft memorizes, rl generalizes: a comparative study of foundation model post-training. arXiv preprint arXiv:2501.17161. Cited by: §1.1.3.
  • Chung et al. (2026a) J. Chung, J. J. Ma, R. Wu, J. Liu, O. J. Kweon, Y. Xia, Z. Wu, and M. Chowdhury The ml. energy benchmark: toward automated inference energy measurement and optimization. Advances in Neural Information Processing Systems 38. Cited by: §1.1.1, §1, §1.
  • Chung et al. (2026b) J. Chung, R. Wu, J. J. Ma, and M. Chowdhury Where do the joules go? diagnosing inference energy consumption. arXiv preprint arXiv:2601.22076. Cited by: §1.
  • Clark et al. (2018) P. Clark, I. Cowhey, O. Etzioni, T. Khot, A. Sabharwal, C. Schoenick, and O. Tafjord Think you have solved question answering? try arc, the ai2 reasoning challenge. arXiv preprint arXiv:1803.05457. Cited by: Table 1, §4.1.
  • Cobbe et al. (2021) K. Cobbe, V. Kosaraju, M. Bavarian, M. Chen, H. Jun, L. Kaiser, M. Plappert, J. Tworek, J. Hilton, R. Nakano, et al. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168. Cited by: §4.1.
  • Guha et al. (2024) N. Guha, M. F. Chen, T. Chow, I. S. Khare, and C. Re Smoothie: label free language model routing. Advances in Neural Information Processing Systems 37, pp. 127645–127672. Cited by: §1.1.2.
  • He et al. (2025) X. He, Z. Fang, J. Lian, D. H. Tsang, B. Zhang, and Y. Chen Freesh: fair, resource-and energy-efficient scheduling for llm serving on heterogeneous gpus. arXiv preprint arXiv:2511.00807. Cited by: §1.1.1.
  • Hendrycks et al. (2020) D. Hendrycks, C. Burns, S. Basart, A. Zou, M. Mazeika, D. Song, and J. Steinhardt Measuring massive multitask language understanding. arXiv preprint arXiv:2009.03300. Cited by: §4.1.
  • Hu et al. (2024) Q. J. Hu, J. Bieker, X. Li, N. Jiang, B. Keigwin, G. Ranganath, K. Keutzer, and S. K. Upadhyay Routerbench: a benchmark for multi-llm routing system. arXiv preprint arXiv:2403.12031. Cited by: §1.1.2, §1.
  • Jiang et al. (2025) D. Jiang, Y. Lu, Z. Li, Z. Lyu, P. Nie, H. Wang, A. Su, H. Chen, K. Zou, C. Du, et al. Verltool: towards holistic agentic reinforcement learning with tool use. arXiv preprint arXiv:2509.01055. Cited by: §1.
  • Jitkrittum et al. (2026) W. Jitkrittum, H. Narasimhan, A. S. Rawat, J. Juneja, C. Wang, Z. Wang, A. Go, C. Lee, P. Shenoy, R. Panigrahy, et al. Universal model routing for efficient llm inference. In International Conference on Learning Representations, Vol. 2026, pp. 10169–10218. Cited by: §1.1.2, §1, §1, §1.
  • Li et al. (2026) H. Li, Y. Zhang, Z. Guo, C. Wang, S. Tang, Q. Zhang, Y. Chen, B. Qi, P. Ye, L. Bai, et al. LLMRouterBench: a massive benchmark and unified framework for llm routing. In Findings of the Association for Computational Linguistics: ACL 2026, pp. 37733–37754. Cited by: §1.
  • Li et al. (2010) L. Li, W. Chu, J. Langford, and R. E. Schapire A contextual-bandit approach to personalized news article recommendation. In Proceedings of the 19th international conference on World wide web, pp. 661–670. Cited by: §1.1.2.
  • Li et al. (2024) Y. Li, M. Mughees, Y. Chen, and Y. R. Li The unseen ai disruptions for power grids: llm-induced transients. arXiv preprint arXiv:2409.11416. Cited by: §1.1.1.
  • Lightman et al. (2024) H. Lightman, V. Kosaraju, Y. Burda, H. Edwards, B. Baker, T. Lee, J. Leike, J. Schulman, I. Sutskever, and K. Cobbe Let’s verify step by step. In International Conference on Learning Representations, Vol. 2024, pp. 39578–39601. Cited by: §4.1.
  • Luccioni et al. (2024) S. Luccioni, Y. Jernite, and E. Strubell Power hungry processing: watts driving the cost of ai deployment?. In Proceedings of the 2024 ACM conference on fairness, accountability, and transparency, pp. 85–99. Cited by: §1.1.1.
  • Luo et al. (2025) X. Luo, Y. Zhang, Z. He, Z. Wang, S. Zhao, D. Li, L. K. Qiu, and Y. Yang Agent lightning: train any ai agents with reinforcement learning. arXiv preprint arXiv:2508.03680. Cited by: §1.1.3, §1.
  • Ong et al. (2025) I. Ong, A. Almahairi, V. Wu, W. Chiang, T. Wu, J. E. Gonzalez, M. Kadous, and I. Stoica Routellm: learning to route llms from preference data. In International Conference on Learning Representations, Vol. 2025, pp. 34433–34448. Cited by: §1.1.2, §1, §1.
  • Oviedo et al. (2026) F. Oviedo, F. Kazhamiaka, E. Choukse, A. Kim, A. Luers, M. Nakagawa, R. Bianchini, and J. M. L. Ferres Energy use of ai inference, efficiency pathways, and test-time scaling. Joule. Cited by: §1.1.1, §1.
  • Patel et al. (2024) P. Patel, E. Choukse, C. Zhang, Í. Goiri, B. Warrier, N. Mahalingam, and R. Bianchini Characterizing power management opportunities for llms in the cloud. In Proceedings of the 29th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 3, pp. 207–222. Cited by: §1.1.1.
  • Shao et al. (2024) Z. Shao, P. Wang, Q. Zhu, R. Xu, J. Song, X. Bi, H. Zhang, M. Zhang, Y. Li, Y. Wu, et al. Deepseekmath: pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300. Cited by: §1, §3.4.
  • Song et al. (2025) W. Song, Z. Huang, C. Cheng, W. Gao, B. Xu, G. Zhao, F. Wang, and R. Wu Irt-router: effective and interpretable multi-llm routing via item response theory. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 15629–15644. Cited by: §1.
  • Suzgun et al. (2023) M. Suzgun, N. Scales, N. Schärli, S. Gehrmann, Y. Tay, H. W. Chung, A. Chowdhery, Q. Le, E. H. Chi, D. Zhou, et al. Challenging big-bench tasks and whether chain-of-thought can solve them. In Findings of the Association for Computational Linguistics: ACL 2023, pp. 13003–13051. Cited by: §4.1.
  • von Werra et al. (2020) TRL: Transformers Reinforcement Learning External Links: Link Cited by: §1.1.3, §3.5, §4.2.
  • Wang et al. (2025) D. Wang, B. Liu, R. Lu, Z. Zhang, and S. Zhu Storellm: energy efficient large language model inference with permanently pre-stored attention matrices. In Proceedings of the 16th ACM International Conference on Future and Sustainable Energy Systems, pp. 398–406. Cited by: §1.1.1.
  • Wilkins et al. (2024) G. Wilkins, S. Keshav, and R. Mortier Hybrid heterogeneous clusters can lower the energy consumption of llm inference workloads. In Proceedings of the 15th ACM international conference on future and sustainable energy systems, pp. 506–513. Cited by: §1.1.1, §1.
  • Yang et al. (2026) J. Yang, B. Hou, W. Wei, Y. Bao, and S. Chang Ares: adaptive reasoning effort selection for efficient llm agents. arXiv preprint arXiv:2603.07915. Cited by: §1.1.2, §1.
  • You et al. (2023) J. You, J. Chung, and M. Chowdhury Zeus: understanding and optimizing {\{gpu}\} energy consumption of {\{dnn}\} training. In 20th USENIX Symposium on Networked Systems Design and Implementation (NSDI 23), pp. 119–139. Cited by: §1.1.1.
  • Yu et al. (2026) Q. Yu, Z. Zhang, R. Zhu, Y. Yuan, X. Zuo, Y. Yue, W. Dai, T. Fan, G. Liu, L. Liu, et al. Dapo: an open-source llm reinforcement learning system at scale. Advances in Neural Information Processing Systems 38, pp. 113222–113244. Cited by: §1.1.3.
  • Zellers et al. (2019) R. Zellers, A. Holtzman, Y. Bisk, A. Farhadi, and Y. Choi Hellaswag: can a machine really finish your sentence?. In Proceedings of the 57th annual meeting of the association for computational linguistics, pp. 4791–4800. Cited by: §4.1.
  • Zhao et al. (2026) H. Zhao, Y. Yan, Y. Shen, H. Xu, W. Zhang, K. Song, J. Shao, W. Lu, J. Xiao, and Y. Zhuang Let lrms break free from overthinking via self-braking tuning. Advances in Neural Information Processing Systems 38, pp. 1861–1887. Cited by: §2.1.
  • Ziller et al. (2026) T. Ziller, S. Ilager, A. Tundo, E. Bartocci, L. Mariani, and I. Brandic GreenServ: energy-efficient context-aware dynamic routing for multi-model llm inference. arXiv preprint arXiv:2601.17551. Cited by: §1.1.1, §1.1.2.

Appendix A Simulation Details

Table 5 lists how many questions we collected per benchmark and how they split into train and held-out. We originally collected 3,0003{,}000 tournament items. Before building the final evaluation set we dropped 3737 questions where at least one pool model failed to load or return a usable log, so those incomplete items never enter train or held-out scoring. The retained mix is 2,0502{,}050 train and 913913 held-out questions. Train prefixes and held-out suffixes are benchmark-specific as in the table. Every retained question was run through all nine answer models to build the offline correctness and energy logs used for oracle labeling, SFT, RL, and replay evaluation.

Table 5. Number of questions per benchmark used for training and held-out evaluation. Collected counts are before removing 3737 incomplete tournament items.
Benchmark Collected Train Held-out
MMLU 475 325 149
GSM8K 473 325 144
BBH 472 325 145
ARC Challenge 472 325 147
HellaSwag 472 325 147
MATH-500 472 325 122
HumanEval 164 100 59
Total 3,000 2,050 913
Refer to caption
Figure 6. Held-out answer-duration band counts by benchmark for KL-GRPO step 1500 and UniRoute.
Refer to caption
Figure 7. Held-out answer-duration band counts aggregated over all benchmarks for KL-GRPO step 1500 and UniRoute.

Appendix B Additional Simulation Results

The duration plots explain why KL-GRPO step 1500 is cheaper than UniRoute at almost the same held-out accuracy. Figure 7 shows that 564564 of 913913 KL-GRPO answers finish in 00–5​s5\,\mathrm{s}, versus 212212 for UniRoute, while UniRoute places 307307 items in the 1515–30​s30\,\mathrm{s} band against 114114 for KL-GRPO. The stacks are model-specific. KL-GRPO fills the short bins with Qwen2.5-1.5B, Gemma2-2B, and Qwen2.5-7B. UniRoute fills the 1515–30​s30\,\mathrm{s} band with DeepSeek-R1-8B and DeepSeek-R1-32B. Neither policy uses many calls above 60​s60\,\mathrm{s} (2727 versus 1616). Figure 7 splits the same bins by task. KL-GRPO’s short bin is mostly GSM8K, ARC, and HellaSwag. UniRoute’s 55–8​s8\,\mathrm{s} peak is BBH-heavy, and its 1515–30​s30\,\mathrm{s} peak mixes MMLU, ARC, and HellaSwag. MATH-500 and HumanEval dominate the 30​s30\,\mathrm{s} and longer bands for both policies, which is why a minority of items still drive mean energy.

Figure 8 shows two cases where the controller picks a small correct arm instead of a large one. GSM8K q448 goes to Qwen2.5-1.5B at 87.6​J87.6\,\mathrm{J}. MMLU q358 goes to Gemma2-2B at 108.8​J108.8\,\mathrm{J}. The traces are illustrative. The written reasons are generic and should not be read as causal explanations of the policy.

Example 1. GSM8K, question 448.
A salesman bought 4848 sneakers for $576\$576. He sold 1717 at a Monday flash sale for $20\$20 each and the remaining 3131 to a department store for $25\$25 each. What was his profit?

Qwen2.5-1.5B (correct) 87.6​J87.6\,\mathrm{J} Controller. Choice: B
REASONING:
The chosen model (qwen2.5:1.5b) has been shown to perform well on tasks involving financial calculations.
Answer. Cost per pair $576/48=$12\$576/48=\$12. Flash sale 17×$20=$34017\times\$20=\$340. Store 31×$25=$77531\times\$25=\$775. Profit $340+$775−$576=$539\$340+\$775-\$576=\$539. Final answer: 539539

Example 2. MMLU, question 358.
Why does the sky appear blue? (multiple choice; correct option D: molecules scatter blue light more effectively than red light.)

Gemma2-2B (correct) 108.8​J108.8\,\mathrm{J} Controller. Choice: E
REASONING:
The chosen model (gemma2:2b) is known for its large language model capacity.
Answer. Blue light is scattered more by air molecules than other colors. Final answer: D

Figure 8. Two held-out routing examples. GSM8K q448 to Qwen2.5-1.5B (87.6​J87.6\,\mathrm{J}). MMLU q358 to Gemma2-2B (108.8​J108.8\,\mathrm{J}). Controller text is from a free-form run. Answers and joules are tournament logs.

Figure 9 is the task-conditional view of the same mix. KL-GRPO step 1500 uses Qwen2.5-1.5B on GSM8K, DeepSeek-R1-8B on MATH-500, and Gemma2-2B on ARC. GRPO step 750 is 7B-heavy on GSM8K and MATH and Gemma-heavy on ARC. SFT still puts mass on Qwen2.5-0.5B on GSM8K. RouteLLM stays on R1-32B. GRPO λe=0.3\lambda_{e}{=}0.3 locks onto Llama 3.1 8B on every task. That is why aggregate mid-band rows can hide collapse or under-routing.

Refer to caption
Figure 9. Held-out model-selection mix on GSM8K, MATH-500, and ARC Challenge for the non-always policies. KL-GRPO step 1500 is mostly Qwen2.5-1.5B on GSM8K, DeepSeek-R1-8B on MATH-500, and Gemma2-2B on ARC; GRPO step 750 is 7B-heavy on GSM8K/MATH and Gemma-heavy on ARC; SFT still places mass on the 0.50.5B model on GSM8K. RouteLLM stays on R1-32B and GRPO λe=0.3\lambda_{e}{=}0.3 locks onto Llama 3.1 8B on every task.

Table 6 orders the TRL sweep by mean answer energy. Matched λe=0.3\lambda_{e}{=}0.3 is cheap and collapsed (57.3%57.3\% at 297​J297\,\mathrm{J}). Matched λe=0.7\lambda_{e}{=}0.7 stays below 44%44\% accuracy. The 0.5→0.40.5{\to}0.4 family occupies the mid band. KL-GRPO step 1500 is the highest-accuracy run in that family at 60.9%60.9\% and 1691.9​J1691.9\,\mathrm{J}. GRPO step 750 is the cheaper 0.5→0.40.5{\to}0.4 operating point at 58.4%58.4\% and 811.8​J811.8\,\mathrm{J}. Runs warmed from SFT (λe=1.0\lambda_{e}{=}1.0) jump to about 74%74\% accuracy at more than 5​kJ5\,\mathrm{kJ} because that warm start is the accuracy-oracle policy, not a hybrid λe=1.0\lambda_{e}{=}1.0 label set. Table 7 makes the same split at SFT. Hybrid warm starts sit near 4545–54%54\% and 0.750.75–0.82​kJ0.82\,\mathrm{kJ}. SFT (λe=1.0\lambda_{e}{=}1.0) is sft_acc at 73.8%73.8\% and 4706.6​J4706.6\,\mathrm{J}.

Table 6. TRL RL checkpoints from Table 2 and the blue-circle sweep in Fig. 4, ordered by increasing mean energy. Choice only means the controller is trained to emit a route letter (Choice: A) without a free-form reasoning line.
Checkpoint Acc. Dur. (ms) Energy (J) Power (W)
GRPO step 1000 (SFT λe=0.3\lambda_{e}{=}0.3, RL λe=0.3\lambda_{e}{=}0.3) 0.573 6002 297.0 46.8
GRPO step 750 (SFT λe=0.7\lambda_{e}{=}0.7, RL λe=0.7\lambda_{e}{=}0.7, run2) 0.421 5634 354.7 30.4
GRPO step 1000 (SFT λe=0.7\lambda_{e}{=}0.7, RL λe=0.7\lambda_{e}{=}0.7, run3) 0.432 6821 561.8 31.8
GRPO step 1500 (SFT λe=0.7\lambda_{e}{=}0.7, RL λe=0.7\lambda_{e}{=}0.7) 0.384 6070 569.3 27.9
KL-GRPO step 500 (SFT λe=0.7\lambda_{e}{=}0.7, RL λe=0.7\lambda_{e}{=}0.7) 0.527 7286 648.7 45.5
KL-GRPO step 1536 (SFT λe=0.3\lambda_{e}{=}0.3, RL λe=0.3\lambda_{e}{=}0.3) 0.503 7410 719.2 44.4
KL-GRPO step 500 (SFT λe=0.5\lambda_{e}{=}0.5, RL λe=0.4\lambda_{e}{=}0.4, choice only) 0.524 7987 786.6 46.0
GRPO step 750 (SFT λe=0.5\lambda_{e}{=}0.5, RL λe=0.4\lambda_{e}{=}0.4, choice only) 0.584 7942 811.8 48.5
KL-GRPO step 1750 (SFT λe=0.5\lambda_{e}{=}0.5, RL λe=0.4\lambda_{e}{=}0.4, choice only) 0.563 8703 986.8 50.9
KL-GRPO step 500 (SFT λe=0.3\lambda_{e}{=}0.3, RL λe=0.3\lambda_{e}{=}0.3) 0.549 9814 1296.8 48.6
KL-GRPO step 500 (SFT λe=0.5\lambda_{e}{=}0.5, RL λe=0.4\lambda_{e}{=}0.4) 0.591 10932 1339.8 47.1
KL-GRPO step 500 (SFT λe=0.2\lambda_{e}{=}0.2, RL λe=0.2\lambda_{e}{=}0.2) 0.552 11809 1526.8 49.8
GRPO step 1500 (SFT λe=0.5\lambda_{e}{=}0.5, RL λe=0.4\lambda_{e}{=}0.4, choice only) 0.581 11860 1588.5 54.8
GRPO step 1000 (SFT λe=0.5\lambda_{e}{=}0.5, RL λe=0.4\lambda_{e}{=}0.4) 0.575 12561 1599.5 49.2
KL-GRPO step 1500 (SFT λe=0.5\lambda_{e}{=}0.5, RL λe=0.4\lambda_{e}{=}0.4) 0.609 13118 1691.9 55.2
GRPO step 1750 (SFT λe=0.5\lambda_{e}{=}0.5, RL λe=0.4\lambda_{e}{=}0.4, choice only) 0.589 11764 1796.2 78.9
GRPO step 1250 (SFT λe=0.2\lambda_{e}{=}0.2, RL λe=0.2\lambda_{e}{=}0.2) 0.590 14076 1875.9 52.9
GRPO step 2000 (SFT λe=1.0\lambda_{e}{=}1.0, RL λe=0.3\lambda_{e}{=}0.3) 0.744 25574 5033.7 170.9
GRPO step 1250 (SFT λe=1.0\lambda_{e}{=}1.0, RL λe=0.6\lambda_{e}{=}0.6) 0.736 25581 5051.1 173.5
GRPO step 500 (SFT λe=1.0\lambda_{e}{=}1.0, RL λe=1.0\lambda_{e}{=}1.0) 0.738 25825 5126.7 174.2
Table 7. SFT warm-start checkpoints for the TRL sweep and Table 2. The labelled SFT λe=0.5\lambda_{e}{=}0.5 marker in Fig. 4 matches the λe=0.5\lambda_{e}{=}0.5 row. SFT (λe=1.0\lambda_{e}{=}1.0) is the accuracy-oracle warm start sft_acc, not a hybrid λe=1.0\lambda_{e}{=}1.0 label set.
Checkpoint Acc. Dur. (ms) Energy (J) Power (W)
SFT (λe=0.7\lambda_{e}{=}0.7) 0.468 7517 749.9 45.5
SFT (λe=0.3\lambda_{e}{=}0.3) 0.456 7588 776.7 45.0
SFT (λe=0.5\lambda_{e}{=}0.5, choice only) 0.544 7912 779.9 47.0
SFT (λe=0.5\lambda_{e}{=}0.5) 0.502 7821 822.8 45.9
SFT (λe=1.0\lambda_{e}{=}1.0) 0.738 24414 4706.6 160.3

Table 8 is the pool profile that those policies draw from. On held-out testing, Always-Qwen2.5-7B is 64.0%64.0\% at 281.6​J281.6\,\mathrm{J}, but BBH is only 26.2%26.2\%, indicating Qwen2.5-7B’s imbalanced performance across benchmarks. DeepSeek-R1-8B is the strongest overall arm (79.1%79.1\%), but also comes as the expensive always-medium baseline (4127.9​J4127.9\,\mathrm{J}). DeepSeek-R1-32B is weaker than R1-8B on BBH (27.6%27.6\% versus 69.7%69.7\%) despite higher energy. Train and held-out accuracy ranks are similar. Train energy is higher because long MATH generations are more common in the train prefix.

Table 8. Held-out per-model accuracy (%) and mean effective answer energy (J) on 913913 questions. Overall is item-weighted.
Model MMLU GSM8K BBH ARC HellaSwag MATH-500 HumanEval Overall
Qwen 2.5 0.5B Acc. 14.8 27.1 2.1 35.4 20.4 17.2 10.2 18.9
Energy 116.5 91.1 62.7 72.0 45.5 167.6 110.3 91.8
Qwen 2.5 1.5B Acc. 37.6 59.0 8.3 68.7 44.9 32.8 30.5 41.4
Energy 126.5 129.7 84.0 92.9 66.1 226.7 105.0 117.1
Qwen 2.5 3B Acc. 53.7 64.6 11.0 74.8 59.9 49.2 33.9 51.2
Energy 198.4 233.5 195.3 136.7 124.4 497.6 167.7 219.6
Phi-3 Mini 3.8B Acc. 49.0 50.0 6.2 78.9 55.1 18.0 20.3 42.2
Energy 236.1 297.0 233.8 177.5 172.3 471.4 246.7 257.8
Gemma 2 2B Acc. 38.3 55.6 10.3 74.8 56.5 20.5 25.4 42.2
Energy 108.5 141.3 100.6 63.2 46.4 227.1 92.1 109.9
Qwen 2.5 7B Acc. 59.1 84.0 26.2 84.4 61.9 67.2 67.8 64.0
Energy 219.9 311.6 263.4 149.2 141.0 701.0 221.5 281.6
Llama 3.1 8B Acc. 50.3 81.2 37.9 78.9 57.8 36.9 50.8 57.3
Energy 263.4 331.9 305.8 204.4 176.6 571.4 238.0 297.0
DeepSeek-R1 8B Acc. 59.7 92.4 69.7 93.2 70.7 86.1 89.8 79.1
Energy 2997.6 3318.5 3626.6 2095.0 3744.1 8882.8 6379.1 4127.9
DeepSeek-R1 32B Acc. 65.1 89.6 27.6 92.5 72.8 86.9 94.9 73.5
Energy 3874.6 2354.2 4403.3 3276.1 3750.8 9080.4 16475.5 5112.4
Table 9. Train per-model accuracy (%) and mean effective answer energy (J) on 2,0502{,}050 questions. Overall is item-weighted.
Model MMLU GSM8K BBH ARC HellaSwag MATH-500 HumanEval Overall
Qwen 2.5 0.5B Acc. 20.9 34.5 6.8 29.5 29.5 11.7 30.0 22.5
Energy 125.8 300.7 859.4 63.4 57.6 2063.2 117.1 555.8
Qwen 2.5 1.5B Acc. 42.5 61.5 18.8 65.5 40.0 32.0 64.0 44.4
Energy 151.3 888.4 803.3 80.4 72.9 2000.3 100.8 638.5
Qwen 2.5 3B Acc. 45.8 52.0 23.7 71.7 56.6 46.2 52.0 49.5
Energy 203.6 250.4 698.4 129.4 135.1 1198.4 172.6 423.1
Phi-3 Mini 3.8B Acc. 41.8 58.5 16.9 80.9 55.4 11.1 30.0 43.4
Energy 249.5 1806.7 4574.7 167.4 181.6 2971.3 238.2 1589.2
Gemma 2 2B Acc. 40.9 51.7 21.2 71.1 53.5 14.8 45.0 42.3
Energy 112.5 153.5 92.3 53.1 56.2 1740.8 111.5 355.5
Qwen 2.5 7B Acc. 59.4 86.2 24.6 88.3 64.6 59.4 70.0 64.0
Energy 273.4 338.7 241.0 137.0 159.4 1292.8 213.4 397.6
Llama 3.1 8B Acc. 43.7 76.6 40.6 80.9 55.4 31.4 56.0 54.8
Energy 336.8 1242.2 1905.0 192.4 188.0 16106.0 223.4 3176.9
DeepSeek-R1 8B Acc. 66.8 95.1 71.4 93.2 72.9 85.8 85.0 81.1
Energy 3812.9 3586.1 5815.8 2163.6 4468.3 13004.1 8476.1 5621.5
DeepSeek-R1 32B Acc. 70.8 94.2 32.6 94.5 69.8 79.1 93.0 74.4
Energy 4981.8 2448.9 6337.2 3322.3 3862.0 12974.5 13168.3 6021.0

Figure 10 repeats the four-question layout of Fig. 5 on a later A100-SXM4-8080GB session using the KL-GRPO step 1500 of a different KL beta variation and the matching SFT eval. The KL-GRPO controller is still about 0.8​s0.8\,\mathrm{s} and here about 2727–32​J32\,\mathrm{J}. SFT is still about 2.8​s2.8\,\mathrm{s} and about 470470–560​J560\,\mathrm{J}. Answer traces for HumanEval q149 and ARC q438 overlap because both policies pick the same model. The large SFT fill is extra controller tokens, not a different GPU. The two figures disagree on absolute watts because board occupancy differed across sessions on the same SKU. Controller energy is therefore a mild add-on to Table 2, not a reason to move the main comparison off answer joules.

Refer to caption
Figure 10. Same four held-out questions as Fig. 5 on a later NVIDIA A100-SXM4-8080,GB session. KL-GRPO step 1500 of a different KL beta variation versus SFT. Router energy is about 30​J30\,\mathrm{J} for KL-GRPO and a few hundred joules for the longer SFT decode. Answer curves reuse tournament logs.