Editor’s introduction
The study evaluates ATEST, a framework that dynamically scales sampling during large language model inference by monitoring real-time GPU load and energy costs. ATEST-Online, the default mode, generates samples incrementally, tracks answer stability, and learns energy costs online to avoid exceeding budgets. It serves every query across four reasoning datasets without deferral, achieving up to 60.0% accuracy on GSM8K under high load—outperforming ATEST-Calibrated, which defers queries and drops to 44.0% accuracy. The adaptation is driven by live cost signals, as ablations confirm that online energy learning is key to load responsiveness. ATEST-Online uses 42 times less GPU time and 48 times less energy than the calibrated version for the same workload. However, it incurs higher tail latency and lower throughput on short tasks. The results hold across different GPUs and models, showing transferability to NVIDIA L40S and Qwen2.5-3B.
Introduction
Large language models (LLMs) give better answers when they use more computation at inference time. A simple and popular way to do this is test-time scaling (TTS) with voting: the model generates several answers (samples) for the same question, and the system returns the most common one. More samples usually mean better answers, but they also mean more GPU work, more energy, and longer waiting time.
Because of this cost, recent work makes TTS adaptive. These methods give more samples to hard queries and fewer to easy ones, using signals such as answer agreement, query difficulty, or reasoning progress. They answer one question well: how many samples does this query need? However, they treat the cost of one sample as a fixed number. On a real system, this cost is not fixed. LLM performance depends on batching, scheduling, and memory management, and the same number of samples can have very different energy, latency, and throughput costs.
Test-Time Scaling and Adaptive Sampling
These methods remove many unnecessary samples. However, they decide only from the reasoning side: they ask whether more samples would change the answer, but not what those samples cost on the GPU right now. Recent work shows that the number of samples alone does not describe the systems cost of TTS, because the same samples can have very different energy, latency, and throughput costs depending on how they run. ATEST adds this missing systems side to adaptive TTS.
GPU-Aware and Energy-Efficient LLM Serving
LLM serving systems show that runtime conditions strongly affect inference performance. Orca and vLLM improve batching and GPU memory management. Llumnix moves requests between model instances at runtime to balance load and reduce latency, and Bullet changes GPU resource allocation during execution based on current performance conditions. Energy is also a main goal in LLM serving. Samsi et al. measured the energy cost of LLM inference on V100 and A100 GPUs. POLCA studies power management and power oversubscription in LLM clusters, and DynamoLLM reconfigures inference clusters to save energy while meeting latency targets. throttLL’eM adjusts GPU frequency and resource configuration to reduce inference energy while meeting latency targets. EnerTune studies energy-aware GPU sharing, models how GPU allocation, frequency, and batch size affect power and performance, and shows that large profiling spaces can make offline profiling expensive.
These systems decide how to run a given amount of work: where to place requests, how to batch them, and how to set the hardware. They do not decide how much reasoning work each query should get. ATEST makes this second decision, so it complements these systems and can run on top of them.
Research Gap
Adaptive TTS decides how much reasoning a query needs but treats the cost of a sample as fixed, while inference and energy systems manage the GPU but do not change how much reasoning each query gets. On a shared GPU, these decisions depend on each other: one more sample is worth it only if the answers so far and the current GPU cost justify it. No prior method in Table I reads the live GPU state; the closest, Adaptive-Cal, uses offline-calibrated models. ATEST makes this decision at runtime using both signals, and ATEST-Online learns the cost online without per-dataset profiling.
Overview
ATEST has two modes that share the same budget ladder, GPU monitor (NVML ), and energy accounting. They differ in when they decide and what they learn. The default mode, ATEST-Online, decides step by step, using the samples it has already generated and a cost model that it learns while it runs. The offline mode, ATEST-Calibrated, decides the whole budget once, before generating any sample, using models built offline. Table II summarizes the differences.
When to use the offline mode. ATEST-Online is the right choice when the load changes or new models and datasets arrive often. ATEST-Calibrated is useful in three cases: (1) the model, GPU, and workload stay the same long enough to reuse one profile, where it reaches higher accuracy under stable load (§VII-F); (2) the service needs low tail latency or high throughput on short tasks, since it generates all samples in one batch (§VII-E); and (3) the cost of each query must be known before it runs.
ATEST-Online
Overhead. The controller runs on the host CPU. Per step, it reads NVML, runs a small Monte Carlo estimate, and does one RLS update. The main runtime cost is not this computation, but the fact that samples are generated in several smaller steps instead of one batch (§VII-E).
ATEST-Calibrated
Weakness. ATEST-Calibrated uses the live GPU state, but its cost model was learned from the profiling runs and is never updated. When the real cost moves away from the model, the allocator either overspends early or rejects queries that it could have served.
Datasets
We use four datasets with different answer lengths: two math datasets with long answers, GSM8K and MATH, and two multiple-choice datasets with short answers, ARC-Challenge and CommonsenseQA. Each dataset has a development set and a test set of 500 queries each, which do not overlap; all reported results use the test sets. We report accuracy. All query sets and controller settings were frozen before we looked at the results, and we did no tuning afterwards.
Compared Methods
Choice of baselines. Fixed-budget self-consistency is the base method that all self-consistency methods in Table I build on, and Adaptive-Cal is the closest prior work, as the only one that models energy. The other adaptive methods stop sampling from reasoning signals alone, so their budget cannot react to GPU load; our ReasoningOnly-Strict ablation, which uses only such a signal, keeps the same budget at every load level (§VII-D).
Controlled GPU Load
To create a shared-GPU setting, we run a background load injector on the same GPU. It competes with the LLM for GPU resources, like other jobs on a shared GPU. The injector is a background thread that runs dense FP16 matrix multiplies on the same GPU for a duty fraction of every 0.2 s period and sleeps for the rest. We use four levels: idle (no injector), low, medium, and high, with injector duty settings of 0.25, 0.55, and 0.85. The duty setting controls how hard the injector works; it is not a utilization target. We check the real effect with NVML. For example, in the Fixed-4 runs the measured GPU utilization is about 0%, 24%, 54%, and 85%, and the average GPU power on GSM8K rises from 77 W at idle to 431 W at high load. The 500 queries of each run are split equally: 125 queries per load level, in the order idle, low, medium, high. The schedule is fixed by a hash and is reused exactly for every method. So all methods see the same queries in the same order under the same injector settings.
Metrics
System performance. We report 95th-percentile (p95) latency per query, query throughput (queries per second, QPS), GPU utilization, and power. For ATEST-Online we also report the error of its online cost model as mean absolute percentage error (MAPE).
Calibration Cost
We measure the offline profiling of the calibrated methods separately, because it is paid before serving starts. Over four datasets, it uses 2,000 prompts, 80 settings, and 176,000 generated samples, for a total of 5.73 GPU-hours and 7.16 MJ. ATEST-Online needs no dataset-specific profiling.
Evaluation
We organize the results around seven questions: Q1: Does ATEST-Online keep quality and serve every query under changing load? Q2: How does each controller react as load rises, and why does the offline mode defer? Q3: What does each mode cost in energy, including profiling? Q4: Is the adaptation really caused by the resource signals? Q5: What is the runtime overhead of online control? Q6: When is offline calibration the better choice? Q7: Does the behavior hold on another GPU and another model?
Q1: Overall Results under Changing Load
ATEST-Online serves every query. It has zero deferred queries on all four datasets and stays within the energy budget on all of them (budget used 92–100%). Every other method defers queries on all four datasets, and Fixed-4 and Adaptive-Cal also exceed the budget once each.
Q2: Behavior as the Load Rises
A note on measured load. The injector settings are identical for all methods, but GPU utilization is sampled before each microbatch, so the reading depends on each method’s execution pattern. On GSM8K and MATH, all methods see the same high-load utilization (about 85%); for ATEST-Online on ARC-Challenge and CommonsenseQA the sampled reading at high load is lower (68% and 45%). We therefore base our main high-load comparison on GSM8K and MATH.
Q3: Energy Cost, Including Profiling
Serving energy. ATEST-Online has the lowest joules per correct answer on GSM8K (191.9 J) and MATH (371.2 J), the two long-answer datasets where the energy budget is tight. On ARC-Challenge the two modes are almost equal (19.4 J vs. 19.2 J). On CommonsenseQA, ATEST-Calibrated is more efficient (13.3 J vs. 16.2 J, Table III), but it leaves 4.6% of the queries unanswered. So ATEST-Online is not always the cheapest per correct answer during serving, but it wins the overall trade-off: it gives higher accuracy, answers every query, and, once profiling is counted, uses far less total energy on every dataset.
Q5: Runtime Overhead and Cost-Model Error
Latency and throughput. Online control is not free (Table VI). ATEST-Online has higher p95 latency on three of four datasets, for example 1.08 s vs. 0.51 s on GSM8K and 0.18 s vs. 0.09 s on CommonsenseQA. Its throughput is about the same on GSM8K, higher on MATH, and lower on the two multiple-choice datasets, most clearly on CommonsenseQA (16.6 vs. 29.7 QPS). The reason is the step-by-step execution: ATEST-Online may run several small microbatches with a decision between them, instead of one batch with all samples. For short answers, the fixed cost of each step is large compared with the generation time.
Answer to Q5: The price of online control is higher tail latency and lower throughput on short tasks. The online cost model is accurate enough on long tasks and noisy on short ones, but the controller stays budget-safe.
Q6: When Does Offline Calibration Win?
Offline calibration is a good choice when the GPU load is stable. In the idle phase of the load schedule, ATEST-Calibrated matches or beats ATEST-Online in accuracy on all four datasets (for example, 68.0% vs. 60.0% on GSM8K and 42.4% vs. 39.2% on MATH). Table VIII shows a separate run with no injected load at all. Here ATEST-Calibrated has higher accuracy than ATEST-Online on GSM8K (0.686 vs. 0.632), and they are close on the other datasets. Even Fixed-4 is strong in this setting: it has the lowest J/correct on three of four datasets.
Q7: Does the Behavior Hold on Another GPU and Another Model?
Accuracy. With Phi-3-mini, ATEST-Online reaches almost the same accuracy on the L40S as on the A100 (0.638 vs. 0.626 on GSM8K and 0.448 vs. 0.426 on MATH) and keeps its gains over Fixed-4: +13.2 points on GSM8K, +6.8 on MATH, and +12.0 on ARC-Challenge. With Qwen2.5-3B, it is more accurate than Fixed-4 on every dataset: it doubles GSM8K accuracy (0.138 to 0.280) and raises MATH from 0.242 to 0.348, ARC-Challenge from 0.380 to 0.488, and CommonsenseQA from 0.414 to 0.564.
Energy. ATEST-Online lowers joules per correct answer in seven of eight settings. With Phi-3-mini on the L40S, the drop is 22% on GSM8K (303.0 vs. 386.2 J), 16% on MATH, and 15% on ARC-Challenge; with Qwen2.5-3B it is larger, from 21% on ARC-Challenge to almost half on GSM8K (536 vs. 1019 J).
Answer to Q7: Yes. On a second GPU and a second model, ATEST-Online again answers every query within the budget, is at least as accurate as Fixed-4 in all eight settings, and uses less energy per correct answer in seven of them.
Discussion
Which mode should be used? If the model, GPU, and workload stay the same and the load is stable, the profile of ATEST-Calibrated can be built once and reused, giving strong accuracy, low tail latency, and high throughput. If the GPU is shared, the load changes, or new datasets and models arrive often, ATEST-Online is the safer choice: it needs no profiling, follows the live cost, and serves every query. The two modes can also be combined by starting ATEST-Online from a calibrated cost model.
Service coverage is a systems metric. A controller can look good on the queries it answers while refusing many others, so we count deferred queries as wrong. On GSM8K at high load, this shows the real difference: 44.0% accuracy with 42.4% deferrals for ATEST-Calibrated, against 60.0% with none for ATEST-Online.
Resource awareness is more than “use fewer samples when busy.” ATEST-Online compares the value of the next step with its current cost: it stops on a stable vote even on an idle GPU, and continues on a split vote even under load if the cost is acceptable.
Why not let an LLM decide? A variant in which an LLM makes the continue-or-stop decision reached similar accuracy, but exceeded the energy budget on three of four datasets (by up to 6.2% on GSM8K) and spent extra GPU energy on its decisions. A small numerical controller is cheaper and easier to keep within a hard budget.
Limitations and Future Work
Evaluation scope. Our evaluation is bounded by the available compute. Every setting must be run for every method and load level, together with the stable-load runs, the ablations, and the offline calibration, so the total GPU time grows quickly. We therefore use 500 queries per dataset, four datasets, two open models, and two GPU types, which is enough to compare all methods under the same conditions.
Integration with inference systems. ATEST decides how much reasoning each query gets, while inference engines and power managers decide how that work runs. Running ATEST inside engines such as vLLM or with GPU frequency control could manage both together.


