arXiv:2610.25519cs.LGOct 2026

Manuscript Offprint

arXiv:2610.25519

ATEST: Adaptive Resource-Aware Test-Time Scaling for LLM Inference

Mobina Kashaniyan, Ali Jannesari

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Mobina Kashaniyan and Ali Jannesari

Department of Computer Science

Iowa State University, USA

{mobina, jannesar}@iastate.edu

Abstract—Test-time scaling (TTS) improves the reasoning of large language models (LLMs) by generating several samples for a query and voting on the answer. However, a fixed sampling budget ignores two facts: different queries need different amounts of reasoning, and the cost of one more sample changes with GPU load. In our measurements, the same four-sample query uses up to 4.1×4.1\times more energy when other jobs load the GPU. Existing adaptive methods mainly set the budget from answer agreement, question structure, or question difficulty. They decide how much reasoning a query needs, but not what that reasoning costs on the GPU right now. We present ATEST, a runtime framework for resource-aware TTS with two modes. Its default mode, ATEST-Online, needs no offline calibration: it starts with one sample, checks whether the plurality answer is stable, reads the live GPU state, predicts the cost of the next step with an online cost model, and decides whether to stop or continue. For stable deployments that can reuse a one-time profile, ATEST also offers an offline mode, ATEST-Calibrated, which picks the budget from accuracy and cost models built offline. We evaluate ATEST with Phi-3-mini on an NVIDIA A100 across four reasoning and question-answering datasets under a controlled idle-to-high GPU load schedule, and repeat the study on an NVIDIA L40S and with a second model, Qwen2.5-3B. On the A100, ATEST-Online answers every query, never exceeds the energy budget, gives the highest or statistically tied accuracy on all four datasets, and uses fewer samples as load rises. The same pattern holds on the L40S and with Qwen2.5-3B, where ATEST-Online again answers every query within the budget. On GSM8K at high load, it keeps 60.0% accuracy, while ATEST-Calibrated drops to 44.0% because it defers 42.4% of the queries. A controlled ablation shows that online cost learning is what makes the budget follow the load. Including offline calibration, ATEST-Online uses 42×42\times less GPU time and 48×48\times less energy than ATEST-Calibrated. Its main costs are higher tail latency and lower throughput on short tasks, and offline calibration remains strong only when the load is stable. These results show that TTS on shared GPUs is a runtime resource-management problem, not only an accuracy problem.

Index Terms—large language models, test-time scaling, GPU load, resource-aware inference, adaptive sampling, energy-aware systems

I. 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 [1], [2]. More samples usually mean better answers, but they also mean more GPU work, more energy, and longer waiting time.

Figure

Fig. 1. The idea of ATEST. Standard test-time scaling (TTS) generates the same number of samples for a query whether the GPU is idle or busy. ATEST looks at the live GPU load. When the GPU is busy and each sample costs more energy, it skips samples that are not worth their cost.

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 [3]–[8]. 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 [9], [10], and the same number of samples can have very different energy, latency, and throughput costs [11].

Many GPUs in clusters and HPC centers are shared: other jobs run on the same GPU at the same time and compete with the LLM for compute, memory bandwidth, and power, and this competition changes over time. In our measurements on an A100, the same four-sample query uses up to 4.1×4.1\times more energy when the GPU is heavily loaded (Fig. 3). For example, a GSM8K query costs 121.7 J on an idle GPU and 455.6 J on a busy one. A controller that ignores this change either wastes energy when the GPU is busy, or uses up its energy budget too early and must defer later queries, which means refusing to answer them.

So a TTS controller on a shared GPU must answer two questions at the same time:

  1. Is one more sample useful for this query?

(a) Standard TTS

(c) ATEST-Online

Figure

(d) Inside ATEST-Online

Fig. 2. Overview of ATEST. (a) Standard TTS generates a fixed number of samples B and does not use the live GPU state. (b) ATEST-Calibrated, the offline mode of ATEST, builds accuracy and cost models offline for each dataset and picks B once per query. (c) ATEST-Online starts with one sample and adds samples step by step (1→3→4→6→8). (d) An illustration of one decision: ① a Monte Carlo look-ahead to Bmax⁡=8B_{\max} = 8 estimates how likely the current winner is to stay the winner, and ΔU\Delta U is how much the next step raises this; ② the online cost model learns from the measured energy of every step, follows the load, and predicts the next step's energy with a safety margin; ③ with the same votes, ATEST-Online continues on an idle GPU but stops on a busy one.

References (36)