UniScale: Adaptive Unified Inference Scaling via Online Joint Optimization of Model Routing and Test-Time Scaling

arXiv cs.AI Papers

Summary

Proposes UniScale, an online framework that unifies model routing and test-time scaling via contextual bandit optimization for better quality-cost trade-offs in LLM inference.

arXiv:2605.30898v1 Announce Type: new Abstract: In real-world deployments of large language models (LLMs), balancing inference quality and computational cost has become a central challenge. Existing approaches tackle this trade-off along two largely independent dimensions: model routing, which switches among models of different scales to match request complexity, and test-time scaling (TTS), which adjusts inference-time compute within a fixed model for fine-grained control. However, this decoupled design introduces inherent limitations. Model routing yields coarse-grained, discrete performance changes due to the sparse set of model scales, while single-model TTS often encounters capacity ceilings and exhibits diminishing returns as compute increases. Moreover, treating the two mechanisms separately restricts adaptability in dynamic inference environments. To overcome these limitations, we introduce Unified Inference Scaling (UIS), which unifies model routing and TTS in a single optimization space. Building on this formulation, we propose UniScale, an online framework that models adaptive UIS as a contextual multi-armed bandit problem and learns inference policies via LinUCB. The framework incorporates efficiency-aware learning and cost modeling to ensure stable and scalable optimization over high-dimensional action spaces. Evaluation shows that UniScale effectively exploits the synergy in the UIS space to deliver a fine-grained and consistently better quality-cost trade-off across diverse, dynamic inference scenarios.
Original Article
View Cached Full Text

Cached at: 06/01/26, 09:25 AM

# Adaptive Unified Inference Scaling via Online Joint Optimization of Model Routing and Test-Time Scaling
Source: [https://arxiv.org/html/2605.30898](https://arxiv.org/html/2605.30898)
Xingyu WangMingze KongZhubo ShiYuqian HouHong XuZhongxiang DaiMinchen YuQingjiang Shi

###### Abstract

In real\-world deployments of large language models \(LLMs\), balancing inference quality and computational cost has become a central challenge\. Existing approaches tackle this trade\-off along two largely independent dimensions: model routing, which switches among models of different scales to match request complexity, and test\-time scaling \(TTS\), which adjusts inference\-time compute within a fixed model for fine\-grained control\. However, this decoupled design introduces inherent limitations\. Model routing yields coarse\-grained, discrete performance changes due to the sparse set of model scales, while single\-model TTS often encounters capacity ceilings and exhibits diminishing returns as compute increases\. Moreover, treating the two mechanisms separately restricts adaptability in dynamic inference environments\. To overcome these limitations, we introduceUnified Inference Scaling \(UIS\), which unifies model routing and TTS in a single optimization space\. Building on this formulation, we proposeUniScale, an online framework that models adaptive UIS as a contextual multi\-armed bandit problem and learns inference policies via LinUCB\. The framework incorporates efficiency\-aware learning and cost modeling to ensure stable and scalable optimization over high\-dimensional action spaces\. Evaluation shows thatUniScaleeffectively exploits the synergy in the UIS space to deliver a fine\-grained and consistently better quality–cost trade\-off across diverse, dynamic inference scenarios\.

Machine Learning, ICML

![Refer to caption](https://arxiv.org/html/2605.30898v1/x1.png)

Figure 1:Accuracy\-cost trade\-offs under the UIS space\. Squares and dashed lines represent routing nodes and single\-model TTS trajectories, respectively\. By jointly optimizing across both dimensions, UIS enables an expressive quality–cost frontier\.## 1Introduction

In recent years, Large Language Models \(LLMs\) have demonstrated remarkable success across various tasks including complex reasoning, decision making, and multi\-step problem solving\(Guoet al\.,[2025](https://arxiv.org/html/2605.30898#bib.bib4); Jaechet al\.,[2024](https://arxiv.org/html/2605.30898#bib.bib34); Team,[2025](https://arxiv.org/html/2605.30898#bib.bib35)\)\. Real\-world LLM applications span a wide spectrum of task difficulty, and meeting these requirements often demands substantial model capacity\. However, higher capability typically incurs greater computational cost—either by invoking larger models with higher per\-token latency and memory demands, or by increasing inference\-time computation \(e\.g\., longer decoding or additional test\-time strategies\)\. These increased costs can raise response latency and resource consumption, which is particularly consequential for interactive and large\-scale online services\. Therefore, real\-world LLM deployments must navigate a trade\-off between inference quality and computational cost\.

To balance quality and cost, existing approaches typically explore two largely independent dimensions, as shown in[Figure1](https://arxiv.org/html/2605.30898#S0.F1)\.Model routingmethods\(Fenget al\.,[2025](https://arxiv.org/html/2605.30898#bib.bib32)\)select among models of different scales or capabilities, covering a broad quality–cost spectrum; however, they operate at a coarse granularity, as switching models induces discrete changes in both accuracy and cost\. In contrast,Test\-Time Scaling \(TTS\)methods\(Snellet al\.,[2025](https://arxiv.org/html/2605.30898#bib.bib13)\)dynamically adapt the inference procedure of a given model at run time and provide fine\-grained control, but they remain fundamentally constrained by the model’s intrinsic capacity\. Moreover, these two categories are often designed and configured in isolation, limiting their ability to operate in tandem in dynamic inference environments\.

To achieve optimal quality–cost trade\-offs in practice, an ideal approach should satisfy three requirements\. First, it should offer a broad optimization space spanning models of different scales, enabling it to handle queries with diverse difficulty and computational demands \(i\.e\.,broad coverage\)\. Second, it should provide fine\-grained control over the inference procedure to realize precise quality–cost trade\-offs \(i\.e\.,fine granularity\)\. Finally, because online deployments face shifting query distributions, user objectives, and model availability \(i\.e\., environmental drift\), the approach should be able to continually adjust its inference strategy over time \(i\.e\.,online adaptivity\)\.

To realize these requirements, we introduceUnified Inference Scaling \(UIS\), an inference paradigm that treats model routing and TTS not as independent knobs, but as asingle, unified inference\-time decision space\. Under UIS, inference is parameterized by a configuration that jointly specifies the base model and its associated TTS strategy \(see[Section2\.1](https://arxiv.org/html/2605.30898#S2.SS1)\)\. As illustrated in[Figure1](https://arxiv.org/html/2605.30898#S0.F1), the resulting set of UIS configurations forms a rich design space in which routing and TTS interact: TTS can narrow performance gaps between discrete model scales, while routing to larger models when needed mitigates the diminishing returns of increasingly aggressive TTS on smaller models\.

Building on this formulation, we proposeUniScale, an online algorithm for solving the adaptive UIS problem\. We formulate UIS configuration selection as an online contextual bandit task\(Liet al\.,[2010](https://arxiv.org/html/2605.30898#bib.bib2)\), which naturally captures low\-latency decision making under non\-stationary environments \(see[Section2\.2](https://arxiv.org/html/2605.30898#S2.SS2)\)\.UniScaleemploys a Transformer\-based encoder to extract query representations and uses the Linear Upper Confidence Bound \(LinUCB\)\(Abbasi\-Yadkoriet al\.,[2011](https://arxiv.org/html/2605.30898#bib.bib17)\)algorithm to learn inference policies online \(see[Section3](https://arxiv.org/html/2605.30898#S3)\), enabling continuous adaptation to environmental changes\. Optimizing UIS in practice poses significant challenges due to the high\-dimensional, heterogeneous configuration space and the stringent latency constraints of online inference\. To ensure efficient and stable learning, we introduce three tightly integrated mechanisms \(see[Sections3\.3](https://arxiv.org/html/2605.30898#S3.SS3)and[3\.4](https://arxiv.org/html/2605.30898#S3.SS4)\): \(1\)Path\-Aware Early Exitingdynamically identifies and terminates low\-potential inference paths to significantly reduce computational costs while guaranteeing inference quality, thereby optimizing the runtime performance of all UIS configurations; \(2\)Dense Verification Feedbackdensifies sparse binary correctness signals by incorporating native verifier scores from TTS, providing more accurate quality assessments to guide the system in selecting UIS configurations with superior performance; \(3\)UIS Cost Modelutilizes equivalent FLOPs \(eFLOPs\) to map computational and memory overhead into a unified metric\(Sadhukhanet al\.,[2025](https://arxiv.org/html/2605.30898#bib.bib21)\), ensuring consistency between the theoretical and actual costs of UIS configurations by providing accurate cost measurements\.

Extensive experiments demonstrate thatUniScaleconsistently outperforms baseline strategies across multiple settings, including TTS selection under fixed models \([Section4\.1](https://arxiv.org/html/2605.30898#S4.SS1)\), model routing \([Section4\.2](https://arxiv.org/html/2605.30898#S4.SS2)\), and full Unified Inference Scaling \([Section4\.3](https://arxiv.org/html/2605.30898#S4.SS3)\)\. We further analyzeUniScalevia comprehensive ablation studies to clarify the contribution of each component \([Section5](https://arxiv.org/html/2605.30898#S5)\)\.

## 2Background and Problem Setting

### 2\.1Foundations of Unified Inference Scaling

Model Routing\.Model routing aims to dynamically select the most appropriate modelMMfrom a heterogeneous pool of models based on the input query\. However, while model routing methods enable coverage over a broad quality–cost range, they operate at a coarse granularity: switching between models often induces discrete and significant jumps in both inference quality and computational cost\.

![Refer to caption](https://arxiv.org/html/2605.30898v1/x2.png)

Figure 2:Unified parameterization of TTS methods\. Diverse TTS strategies are formalized via question parallelism \(Q​PQP\), candidate parallelism \(C​PCP\), and beam size \(B​SBS\)\.Test\-Time Scaling\.Test\-Time Scaling \(TTS\) techniques enhance model reasoning by allocating additional inference\-time computational budget\(Wuet al\.,[2025](https://arxiv.org/html/2605.30898#bib.bib7)\)\. Utilizing Best\-of\-N \(BoN\)\(Cobbeet al\.,[2021](https://arxiv.org/html/2605.30898#bib.bib8)\)or Process Reward Model \(PRM\)\-based search \(e\.g\., Beam Search and DVTS\), TTS methods refine reasoning via iterative verification and path evaluation \(details in[Section3\.3](https://arxiv.org/html/2605.30898#S3.SS3)\)\. As shown in[Figure2](https://arxiv.org/html/2605.30898#S2.F2), we formalize these strategies into a three\-dimensional parameter space:Question Parallelism\(Q​PQP, the number of subtrees explored\),Candidate Parallelism\(C​PCP, the number of parallel samples per step\), andBeam Size\(B​SBS, the number of validated nodes retained\)\. This parameterization allows for fine\-grained control over quality–cost trade\-offs, though it remains fundamentally upper\-bounded by the base model’s intrinsic capacity\.

Unified Inference Scaling\.To bridge these technical silos, we define Unified Inference Scaling \(UIS\) as a single unified inference\-time decision space\. We parameterize each inference execution through a joint configuration\(M,Q​P,C​P,B​S\)\(M,QP,CP,BS\)\. This formulation constructs an expressive quality–cost frontier \(see[Figure1](https://arxiv.org/html/2605.30898#S0.F1)\) by bridging discrete model gaps with search intensity and surpassing search plateaus through model routing\. This unified space enables inference strategies to be precisely tailored to the unique logical complexity and resource constraints of each query\.

### 2\.2Adaptive Unified Inference Scaling via Bandits

To achieve online adaptivity under environmental drift, we formulate the UIS configuration selection as an online optimization problem through the lens ofcontextual multi\-armed bandits\(Liet al\.,[2010](https://arxiv.org/html/2605.30898#bib.bib2)\)\.

Contextual Information\.For each arriving queryqtq\_\{t\}at steptt, the system observes a context vector𝐱t\\mathbf\{x\}\_\{t\}\. This vector serves as an abstract representation of the query’s complexity, providing the necessary signal for the agent to estimate the potential utility of different UIS configurations\.

Unified Action Space\.We define a discretized action space𝒜\\mathcal\{A\}, where each actiona∈𝒜a\\in\\mathcal\{A\}corresponds to a specific UIS configuration\(M,Q​P,C​P,B​S\)\(M,QP,CP,BS\)\. By treating routing and TTS as a joint action,UniScalecan capture the cross\-dimensional dependencies that independent methods ignore\.

Optimization Objective\.Upon executing actionata\_\{t\}, the agent receives a rewardrtr\_\{t\}, which is characterized by a joint function of inference quality and computational cost\. The agent’s goal is to minimize the cumulative regret:

RT=𝔼​\[∑t=1T\(r​\(qt,at∗\)−r​\(qt,at\)\)\],R\_\{T\}=\\mathbb\{E\}\\left\[\\sum\_\{t=1\}^\{T\}\\left\(r\(q\_\{t\},a\_\{t\}^\{\*\}\)\-r\(q\_\{t\},a\_\{t\}\)\\right\)\\right\],\(1\)whereat∗a\_\{t\}^\{\*\}is the optimal configuration for context𝐱t\\mathbf\{x\}\_\{t\}\. By minimizing this regret, the algorithm learns an adaptive policy that consistently selects the optimal UIS configuration tailored to the evolving environment\.

Algorithm 1UniScale: Adaptive UIS via LinUCB1:Initialize:

𝐀0←λ​𝐈\\mathbf\{A\}\_\{0\}\\leftarrow\\lambda\\mathbf\{I\},

𝐛0←𝟎\\mathbf\{b\}\_\{0\}\\leftarrow\\mathbf\{0\},

𝐱0,a0←𝟎\\mathbf\{x\}\_\{0,a\_\{0\}\}\\leftarrow\\mathbf\{0\},

r0←0r\_\{0\}\\leftarrow 0, action embeddings

\{𝐬a\}a∈𝒜\\\{\\mathbf\{s\}\_\{a\}\\\}\_\{a\\in\\mathcal\{A\}\}
2:for

t=1t=1to

TTdo

3:Update

𝐀t←𝐀t−1\+𝐱t−1,at−1​𝐱t−1,at−1⊤\\mathbf\{A\}\_\{t\}\\leftarrow\\mathbf\{A\}\_\{t\-1\}\+\\mathbf\{x\}\_\{t\-1,a\_\{t\-1\}\}\\mathbf\{x\}\_\{t\-1,a\_\{t\-1\}\}^\{\\top\}
4:Update

𝐛t←𝐛t−1\+rt−1​𝐱t−1,at−1\\mathbf\{b\}\_\{t\}\\leftarrow\\mathbf\{b\}\_\{t\-1\}\+r\_\{t\-1\}\\mathbf\{x\}\_\{t\-1,a\_\{t\-1\}\}
5:Update

𝜽^t←𝐀t−1​𝐛t\\hat\{\\boldsymbol\{\\theta\}\}\_\{t\}\\leftarrow\\mathbf\{A\}\_\{t\}^\{\-1\}\\mathbf\{b\}\_\{t\}
6:Observe query

qtq\_\{t\}and extract embedding

𝐬qt\\mathbf\{s\}\_\{q\_\{t\}\}
7:for all

a∈𝒜a\\in\\mathcal\{A\}do

8:

𝐱t,a←concat​\(𝐬qt,𝐬a\)\\mathbf\{x\}\_\{t,a\}\\leftarrow\\mathrm\{concat\}\(\\mathbf\{s\}\_\{q\_\{t\}\},\\mathbf\{s\}\_\{a\}\)
9:endfor

10:Select UIS configuration

at=arg⁡maxa∈𝒜⁡\(𝜽^t⊤​𝐱t,a\+α​𝐱t,a⊤​𝐀t−1​𝐱t,a\)a\_\{t\}=\\arg\\max\_\{a\\in\\mathcal\{A\}\}\\left\(\\hat\{\\boldsymbol\{\\theta\}\}\_\{t\}^\{\\top\}\\mathbf\{x\}\_\{t,a\}\+\\alpha\\sqrt\{\\mathbf\{x\}\_\{t,a\}^\{\\top\}\\mathbf\{A\}\_\{t\}^\{\-1\}\\mathbf\{x\}\_\{t,a\}\}\\right\)
11:Execute inference with configuration

ata\_\{t\}
12:Obtain reward

rtr\_\{t\}according to[Equation4](https://arxiv.org/html/2605.30898#S3.E4)

13:endfor

## 3TheUniScaleFramework

Overview\.UniScaleoperates as an online closed\-loop system \(see[Algorithm1](https://arxiv.org/html/2605.30898#alg1)\) designed to navigate the joint UIS decision space\. In each iterationtt, the system updates its reward estimator𝜽^t\\hat\{\\boldsymbol\{\\theta\}\}\_\{t\}based on historical feature\-reward pairs \([Section3\.1](https://arxiv.org/html/2605.30898#S3.SS1)\)\. It then selects the optimal UIS configurationata\_\{t\}for the incoming query by maximizing the LinUCB acquisition function \([Section3\.2](https://arxiv.org/html/2605.30898#S3.SS2)\)\. Following selection,UniScaleexecutes the inference procedure on base modelMtM\_\{t\}, utilizing path\-aware early exiting to optimize the runtime quality–cost trade\-off \([Section3\.3](https://arxiv.org/html/2605.30898#S3.SS3)\)\. Finally, the system evaluates the execution via dense verification feedback and the UIS cost model to yield a composite rewardrtr\_\{t\}for continuous policy refinement \([Section3\.4](https://arxiv.org/html/2605.30898#S3.SS4)\)\.

### 3\.1Updating the Reward Estimator

At the beginning of each iterationtt,UniScaleupdates the reward estimator using the feedback\(𝐱t−1,at−1,rt−1\)\(\\mathbf\{x\}\_\{t\-1,a\_\{t\-1\}\},r\_\{t\-1\}\)observed in the previous round\. We formulate the expected reward as a linear relationshipr^t=⟨𝐱t,at,𝜽⟩\\hat\{r\}\_\{t\}=\\langle\\mathbf\{x\}\_\{t,a\_\{t\}\},\\boldsymbol\{\\theta\}\\rangle, where𝜽\\boldsymbol\{\\theta\}is a learnable parameter vector shared across the entire UIS action space\. To refine this estimator, the system incrementally updates the Gram matrix𝐀t\\mathbf\{A\}\_\{t\}and the feature\-reward vector𝐛t\\mathbf\{b\}\_\{t\}to derive the current parameter estimate𝜽^t\\hat\{\\boldsymbol\{\\theta\}\}\_\{t\}, as detailed in[Algorithm1](https://arxiv.org/html/2605.30898#alg1)\(Lines 3–5\)\. In practice, we employ the Sherman–\-Morrison formula to update𝐀t−1\\mathbf\{A\}\_\{t\}^\{\-1\}via efficient rank\-one updates\. This avoids recomputing the inverse from scratch, reducing the per\-round computational complexity from𝒪​\(d3\)\\mathcal\{O\}\(d^\{3\}\)to𝒪​\(d2\)\\mathcal\{O\}\(d^\{2\}\)\. This incremental mechanism ensures that the reward estimator continuously adapts to environmental drift with minimal computational overhead\.

Joint Semantic Representation\.To capture the intrinsic alignment between user requirements and system capabilities,UniScalemaps queries and configurations into a shared latent space via a unified Transformer encoder\. Specifically, we pre\-compute the action semantic representations𝐬a\\mathbf\{s\}\_\{a\}based on the attribute descriptions of each UIS configuration \(see[SectionB\.2](https://arxiv.org/html/2605.30898#A2.SS2)\), which provides rich prior knowledge for online decision\-making\. During the inference phase, the same encoder maps the incoming queryqtq\_\{t\}to its semantic embedding𝐬qt\\mathbf\{s\}\_\{q\_\{t\}\}in real\-time\. These two components are then concatenated to form the joint semantic representation𝐱t,a=\[𝐬qt;𝐬a\]\\mathbf\{x\}\_\{t,a\}=\[\\mathbf\{s\}\_\{q\_\{t\}\};\\mathbf\{s\}\_\{a\}\], providing a high\-dimensional grounding for accurate reward estimation\.

Justification of Linear Reward Modeling\.The motivation for adopting a linear estimator rather than a non\-linear neural architecture is twofold: on the one hand, modern Transformer encoders have already captured the bulk of complex non\-linear semantic structures during the feature extraction stage\(Huet al\.,[2024b](https://arxiv.org/html/2605.30898#bib.bib18)\), rendering a linear mapping sufficient to characterize the relationship between rewards and features; on the other hand, linear estimators offer significant advantages in terms of computational efficiency and theoretical tractability, making them highly suitable for online inference and frequent updates in dynamic system environments\.

### 3\.2Selecting the Next Configurationata\_\{t\}

Upon updating the reward estimator, we determine the optimal UIS configurationata\_\{t\}for the current queryqtq\_\{t\}by maximizing the LinUCB acquisition function \([Equation2](https://arxiv.org/html/2605.30898#S3.E2)\)\. Specifically,UniScaleutilizes the parameters𝜽^t\\hat\{\\boldsymbol\{\\theta\}\}\_\{t\}of the current reward estimator to compute the acquisition values for each action within the candidate configuration set𝒜\\mathcal\{A\}\. The final UIS configurationata\_\{t\}is identified by selecting the action that yields the maximum value:

at=arg⁡maxa∈𝒜⁡\(𝐱t,a⊤​𝜽^t\+α​𝐱t,a⊤​𝐀t−1​𝐱t,a\)\.a\_\{t\}=\\arg\\max\_\{a\\in\\mathcal\{A\}\}\\left\(\\mathbf\{x\}\_\{t,a\}^\{\\top\}\\hat\{\\boldsymbol\{\\theta\}\}\_\{t\}\+\\alpha\\sqrt\{\\mathbf\{x\}\_\{t,a\}^\{\\top\}\\mathbf\{A\}\_\{t\}^\{\-1\}\\mathbf\{x\}\_\{t,a\}\}\\right\)\.\(2\)Within this expression,𝐱t,a⊤​𝜽^t\\mathbf\{x\}\_\{t,a\}^\{\\top\}\\hat\{\\boldsymbol\{\\theta\}\}\_\{t\}denotes the predicted reward for configurationaaunder the given context\. The term𝐱t,a⊤​𝐀t−1​𝐱t,a\\sqrt\{\\mathbf\{x\}\_\{t,a\}^\{\\top\}\\mathbf\{A\}\_\{t\}^\{\-1\}\\mathbf\{x\}\_\{t,a\}\}serves as a principled measure of uncertainty regarding the estimated value, which is derived from the Gram matrix𝐀t\\mathbf\{A\}\_\{t\}accumulated from historical observations \(refer to[SectionD\.1](https://arxiv.org/html/2605.30898#A4.SS1)for details\)\.

By tuning the hyperparameterα\\alpha,UniScalestrikes a precise balance between two critical dimensions: \(1\)Exploitation: Leveraging historical observations to favor configurations with high predicted rewards\. \(2\)Exploration: Encouraging an exhaustive search across the action space by prioritizing configurations with greater uncertainty\. The synergy between reward estimation and principled exploration enablesUniScaleto converge rapidly within the high\-dimensional UIS decision space\. This ensures the consistent selection of configurations on the optimal quality–cost frontier\. We provide a detailed sensitivity analysis of the exploration factorα\\alphain[SectionC\.3](https://arxiv.org/html/2605.30898#A3.SS3)\.

![Refer to caption](https://arxiv.org/html/2605.30898v1/x3.png)

Figure 3:Illustration of the path\-aware early exiting mechanism\.
### 3\.3Executing Unified Inference Scaling

Upon determining the optimal UIS configurationat=\(Mt,Q​Pt,C​Pt,B​St\)a\_\{t\}=\(M\_\{t\},QP\_\{t\},CP\_\{t\},BS\_\{t\}\),UniScaleexecutes a parameterized TTS procedure on the target modelMtM\_\{t\}\. This procedure is abstracted as a search forest consisting ofQ​PtQP\_\{t\}subtrees, which evolves through a cyclical iteration of the following four steps: \(1\)State Generation: For each expansion at stepjj, the system generatesC​PtCP\_\{t\}intermediate inference statessi,j,ks\_\{i,j,k\}for every subtree\. \(2\)Process Verification: Once all intermediate states for the current step are generated, a verifier assigns a scorev​\(si,j,k\)v\(s\_\{i,j,k\}\)to each state\. \(3\)Path Evaluation: An inference pathpi,jp\_\{i,j\}of depthjjis defined as an ordered sequence of states within a subtree\. Its cumulative scoreV​\(pi,j\)V\(p\_\{i,j\}\)is calculated as the arithmetic mean of the scores of all states within the path:V​\(pi,j\)=1j​∑h=1jv​\(si,h,kh\)V\(p\_\{i,j\}\)=\\frac\{1\}\{j\}\\sum\_\{h=1\}^\{j\}v\(s\_\{i,h,k\_\{h\}\}\)\. \(4\)Search Control: The system ranks candidate branches based on their path scores\. To manage computational complexity, only the topB​StBS\_\{t\}paths in each subtree are retained for subsequent expansion\. When a path meets the termination criteria \(e\.g\., generating a complete answer or reaching the maximum depth\), it is added to the set of completed paths𝒫done\\mathcal\{P\}\_\{\\mathrm\{done\}\}\. Finally, the system selects the result with the highest score as the final output:y∗=arg⁡maxp∈𝒫done⁡V​\(p\)y^\{\*\}=\\arg\\max\_\{p\\in\\mathcal\{P\}\_\{\\mathrm\{done\}\}\}V\(p\)\.

Inference Execution with Path\-Aware Early Exiting\.To overcome the straggler effect inherent in traditional TTS workflows, where the system must wait for the slowest path to finish,UniScaleintroduces a path\-aware early exiting mechanism \(see[Figure3](https://arxiv.org/html/2605.30898#S3.F3)\)\. The core of this mechanism lies in leveraging verifier scores as informative indicators of final answer correctness \(detailed experiments in[SectionD\.2](https://arxiv.org/html/2605.30898#A4.SS2)\) to perform real\-time potential assessment of ongoing inference paths\. During execution, the system dynamically maintains the current maximum scoreVmaxV\_\{\\max\}and the depth of the corresponding best pathDbestD\_\{\\text\{best\}\}among all completed paths:Vmax=maxp∈𝒫done⁡V​\(p\)V\_\{\\max\}=\\max\_\{p\\in\\mathcal\{P\}\_\{\\mathrm\{done\}\}\}V\(p\)\. To improve efficiency, the maximum search depthHmaxH\_\{\\mathrm\{max\}\}is dynamically updated as:Hmax=⌈η⋅Dbest⌉H\_\{\\mathrm\{max\}\}=\\lceil\\eta\\cdot D\_\{\\text\{best\}\}\\rceil, whereη≥1\\eta\\geq 1is a tunable expansion factor\. For any incomplete pathpi,jp\_\{i,j\}with lengthjj, the system determines its viability by calculating its theoretical maximum potential score:j⋅V​\(pi,j\)\+\(Hmax−j\)⋅vsupHmax<Vmax\\frac\{j\\cdot V\(p\_\{i,j\}\)\+\(H\_\{\\mathrm\{max\}\}\-j\)\\cdot v\_\{\\mathrm\{sup\}\}\}\{H\_\{\\mathrm\{max\}\}\}<V\_\{\\max\}, wherevsup=1v\_\{\\mathrm\{sup\}\}=1represents the theoretical upper bound of the verifier’s score\. If this condition is met, the system determines that even if the path performs perfectly in all subsequent steps, its final score cannot surpass the current best result\. Consequently, the system terminates the expansion of that path immediately\. By transforming path scores into online search control signals, this rule dynamically eliminates low\-potential branches without altering the final selection criteria\. This ensures that the inference cost of all UIS configurations is significantly reduced while maintaining their intrinsic reasoning quality, thereby optimizing the practical quality–cost frontier\.

### 3\.4Evaluating the Selected Configurationata\_\{t\}

In evaluating the selected UIS configurationata\_\{t\},UniScaleconstructs a composite reward function that precisely reflects the inference utility through a multi\-dimensional metric system\. The core logic of this function lies in the fine\-grained characterization of inference quality and costs\.

Quality Assessment via Dense Verification Feedback\.To address the feedback sparsity of relying solely on binary answer correctnessCorrect​\(at\)\\mathrm\{Correct\}\(a\_\{t\}\),UniScaleintroduces thedense verification feedbackmechanism\. This mechanism reshapes the quality assessment into a multi\-dimensional evaluation framework, jointly driven by the binary correctnessCorrect​\(at\)\\mathrm\{Correct\}\(a\_\{t\}\)of the final outputy∗y^\{\*\}and its intrinsic path scoreV​\(y∗\)V\(y^\{\*\}\)\(denoted asScore​\(at\)\\mathrm\{Score\}\(a\_\{t\}\)\)\. Specifically, as a continuous variable, the verifier score provides a denser supervision signal than binary labels, enabling the agent to perceive nuances in logical rigor across different reasoning paths\. By capturing the evolution of these scores, the system can acutely identify latent progress during the reasoning process, thereby effectively guiding the agent to select better UIS configurations and achieve a final breakthrough in correctness\. A systematic experimental analysis regarding the alignment between verifier scores and answer correctness is provided in[SectionD\.2](https://arxiv.org/html/2605.30898#A4.SS2)\.

Cost Measurement via UIS Cost Model\.To accurately quantify the cost of UIS configurations, we construct aUIS cost modelCUISC\_\{\\mathrm\{UIS\}\}, which incorporates the prefill costCprefillC\_\{\\mathrm\{prefill\}\}, the incremental generation costCinc\(j\)C\_\{\\mathrm\{inc\}\}^\{\(j\)\}of each inference step, and the corresponding verification costCver\(j\)C\_\{\\mathrm\{ver\}\}^\{\(j\)\}\(see[SectionD\.3](https://arxiv.org/html/2605.30898#A4.SS3)for details\)\.

CUIS=Cprefill​\(Lin\)\+∑j=1H\[Cinc\(j\)\+Cver\(j\)\]\.C\_\{\\mathrm\{UIS\}\}=C\_\{\\mathrm\{prefill\}\}\(L\_\{\\mathrm\{in\}\}\)\+\\sum\_\{j=1\}^\{H\}\\left\[C\_\{\\mathrm\{inc\}\}^\{\(j\)\}\+C\_\{\\mathrm\{ver\}\}^\{\(j\)\}\\right\]\.\(3\)Each cost component is calculated using equivalent FLOPs \(eFLOPs\)\(Sadhukhanet al\.,[2025](https://arxiv.org/html/2605.30898#bib.bib21)\), which projects memory access pressure and computational load onto a unified dimension via hardware arithmetic intensity\. This modeling enablesCUISC\_\{\\mathrm\{UIS\}\}to transcend the boundaries between compute\-bound and memory\-bound operations, providing an accurate characterization of the true cost of UIS on heterogeneous hardware\. For subsequent reward computation, the system log\-transforms the outputCUIS​\(at\)C\_\{\\mathrm\{UIS\}\}\(a\_\{t\}\)and applies min\-max normalization to yield the standardized cost termC~UIS​\(at\)\\tilde\{C\}\_\{\\mathrm\{UIS\}\}\(a\_\{t\}\)\.

Composite Reward Function\.The final reward is a convex combination of quality and cost:

rt=w1⋅Correct​\(at\)\+w2⋅Score​\(at\)\+w3⋅\(1−C~UIS​\(at\)\)\.r\_\{t\}=w\_\{1\}\\cdot\\mathrm\{Correct\}\(a\_\{t\}\)\+w\_\{2\}\\cdot\\mathrm\{Score\}\(a\_\{t\}\)\+w\_\{3\}\\cdot\(1\-\\tilde\{C\}\_\{\\mathrm\{UIS\}\}\(a\_\{t\}\)\)\.\(4\)As users adjust reward weightswiw\_\{i\}to redefine priorities,UniScalepromptly captures these shifts and identifies the optimal UIS configuration consistently\.

## 4Empirical Evaluation

Table 1:Default configuration range of the UIS space𝒜\\mathcal\{A\}, utilizing the Qwen3 series\(Yanget al\.,[2025](https://arxiv.org/html/2605.30898#bib.bib22)\)as candidate models and Skywork\-o1\-Open\-PRM\-Qwen\-2\.5\-1\.5B\(Heet al\.,[2024](https://arxiv.org/html/2605.30898#bib.bib51)\)as the verifier\.ComponentConfiguration DetailsModelsQwen3 \(0\.6B, 1\.7B, 4B, 8B, 14B, 32B\)TTSQ​P,C​P∈\{20,…,26\}QP,CP\\\!\\in\\\!\\\{2^\{0\},\\dots,2^\{6\}\\\}, s\.t\.Q​P×C​P≤26QP\\\!\\times\\\!CP\\\!\\leq\\\!2^\{6\}B​S=\{1,2,4\}BS\\\!=\\\!\\\{1,2,4\\\}forC​P≤\{21,23,26\}CP\\\!\\leq\\\!\\\{2^\{1\},2^\{3\},2^\{6\}\\\}VerifierSkywork\-o1\-Open\-PRM\-Qwen\-2\.5\-1\.5BTable 2:Main performance comparison acrossTTS,Routing, andUISscenarios\. Results represent the mean and standard deviation across five random seeds \(3, 23, 42, 50, 57\), excluding the 50\-step warm\-up phase\. Performance is evaluated under Cost\-Sensitive and Quality\-Priority reward modes, withbestandsecond\-bestresults highlighted accordingly\.MethodMetricCost\-SensitiveQuality\-Priority\\cellcolorblue\!10TTS\\cellcolorgreen\!10Routing\\cellcolororange\!10UIS\\cellcolorblue\!10TTS\\cellcolorgreen\!10Routing\\cellcolororange\!10UISRandomReward\(↑\)\(\\uparrow\)\\cellcolorblue\!50\.6937 \(0\.0052\)\\cellcolorgreen\!50\.4733 \(0\.0076\)\\cellcolororange\!50\.5731 \(0\.0143\)\\cellcolorblue\!50\.5726 \(0\.0056\)\\cellcolorgreen\!50\.5055 \(0\.0095\)\\cellcolororange\!50\.6175 \(0\.0116\)Accuracy\(↑\)\(\\uparrow\)\\cellcolorblue\!542\.12 \(1\.22\)\\cellcolorgreen\!543\.50 \(1\.29\)\\cellcolororange\!553\.00 \(1\.70\)\\cellcolorblue\!542\.25 \(1\.09\)\\cellcolorgreen\!543\.25 \(1\.33\)\\cellcolororange\!552\.88 \(1\.79\)Cost\(↓\)\(\\downarrow\)\\cellcolorblue\!576\.7 \(9\.7\)\\cellcolorgreen\!52302\.9 \(190\.6\)\\cellcolororange\!51358\.7 \(220\.1\)\\cellcolorblue\!573\.2 \(7\.0\)\\cellcolorgreen\!52370\.4 \(278\.9\)\\cellcolororange\!51359\.8 \(219\.6\)GreedyReward\(↑\)\(\\uparrow\)\\cellcolorblue\!50\.7184 \(0\.0383\)\\cellcolorgreen\!50\.5873 \(0\.0406\)\\cellcolororange\!50\.5589 \(0\.0616\)\\cellcolorblue\!50\.6184 \(0\.0435\)\\cellcolorgreen\!50\.5459 \(0\.0152\)\\cellcolororange\!50\.5780 \(0\.0441\)Accuracy\(↑\)\(\\uparrow\)\\cellcolorblue\!543\.75 \(1\.58\)\\cellcolorgreen\!534\.12 \(6\.63\)\\cellcolororange\!545\.00 \(4\.66\)\\cellcolorblue\!546\.50 \(2\.46\)\\cellcolorgreen\!550\.00 \(2\.40\)\\cellcolororange\!552\.88 \(2\.26\)Cost\(↓\)\(\\downarrow\)\\cellcolorblue\!554\.0 \(30\.7\)\\cellcolorgreen\!5202\.5 \(145\.9\)\\cellcolororange\!5660\.6 \(219\.0\)\\cellcolorblue\!567\.6 \(44\.4\)\\cellcolorgreen\!52643\.4 \(916\.7\)\\cellcolororange\!53402\.1 \(1305\.0\)MLPReward\(↑\)\(\\uparrow\)\\cellcolorblue\!50\.7006 \(0\.0486\)\\cellcolorgreen\!50\.6161 \(0\.0071\)\\cellcolororange\!50\.6301 \(0\.1032\)\\cellcolorblue\!50\.5752 \(0\.0609\)\\cellcolorgreen\!50\.4963 \(0\.0124\)\\cellcolororange\!50\.6055 \(0\.0329\)Accuracy\(↑\)\(\\uparrow\)\\cellcolorblue\!541\.75 \(6\.91\)\\cellcolorgreen\!529\.75 \(2\.08\)\\cellcolororange\!547\.00 \(5\.02\)\\cellcolorblue\!542\.38 \(5\.18\)\\cellcolorgreen\!542\.00 \(3\.25\)\\cellcolororange\!547\.50 \(4\.95\)Cost\(↓\)\(\\downarrow\)\\cellcolorblue\!548\.6 \(20\.4\)\\cellcolorgreen\!5154\.7 \(105\.6\)\\cellcolororange\!5644\.0 \(769\.8\)\\cellcolorblue\!546\.1 \(19\.9\)\\cellcolorgreen\!51807\.3 \(1238\.6\)\\cellcolororange\!5353\.4 \(340\.3\)k\-NNReward\(↑\)\(\\uparrow\)\\cellcolorblue\!50\.6966 \(0\.0055\)\\cellcolorgreen\!50\.5819 \(0\.0047\)\\cellcolororange\!50\.6590 \(0\.0108\)\\cellcolorblue\!50\.5146 \(0\.0107\)\\cellcolorgreen\!50\.5273 \(0\.0149\)\\cellcolororange\!50\.5807 \(0\.0180\)Accuracy\(↑\)\(\\uparrow\)\\cellcolorblue\!536\.50 \(1\.51\)\\cellcolorgreen\!534\.62 \(3\.68\)\\cellcolororange\!541\.38 \(2\.83\)\\cellcolorblue\!536\.25 \(2\.27\)\\cellcolorgreen\!547\.38 \(1\.99\)\\cellcolororange\!546\.75 \(2\.72\)Cost\(↓\)\(\\downarrow\)\\cellcolorblue\!549\.0 \(3\.4\)\\cellcolorgreen\!5522\.9 \(65\.6\)\\cellcolororange\!5326\.0 \(94\.4\)\\cellcolorblue\!547\.8 \(4\.5\)\\cellcolorgreen\!52046\.8 \(327\.9\)\\cellcolororange\!51113\.4 \(253\.0\)NeuralUCBReward\(↑\)\(\\uparrow\)\\cellcolorblue\!50\.6984 \(0\.0185\)\\cellcolorgreen\!50\.4849 \(0\.0194\)\\cellcolororange\!50\.5880 \(0\.0291\)\\cellcolorblue\!50\.5580 \(0\.0087\)\\cellcolorgreen\!50\.4991 \(0\.0199\)\\cellcolororange\!50\.5929 \(0\.0132\)Accuracy\(↑\)\(\\uparrow\)\\cellcolorblue\!542\.00 \(2\.14\)\\cellcolorgreen\!542\.62 \(2\.66\)\\cellcolororange\!550\.75 \(1\.50\)\\cellcolorblue\!541\.12 \(0\.25\)\\cellcolorgreen\!542\.75 \(3\.66\)\\cellcolororange\!550\.25 \(2\.61\)Cost\(↓\)\(\\downarrow\)\\cellcolorblue\!570\.6 \(13\.8\)\\cellcolorgreen\!52216\.6 \(726\.5\)\\cellcolororange\!51558\.2 \(1120\.7\)\\cellcolorblue\!568\.4 \(6\.1\)\\cellcolorgreen\!52679\.1 \(594\.7\)\\cellcolororange\!51819\.7 \(838\.1\)TSReward\(↑\)\(\\uparrow\)\\cellcolorblue\!50\.7022 \(0\.0075\)\\cellcolorgreen\!50\.4541 \(0\.0086\)\\cellcolororange\!50\.5549 \(0\.0102\)\\cellcolorblue\!50\.5901 \(0\.0089\)\\cellcolorgreen\!50\.5292 \(0\.0124\)\\cellcolororange\!50\.6243 \(0\.0050\)Accuracy\(↑\)\(\\uparrow\)\\cellcolorblue\!544\.50 \(1\.55\)\\cellcolorgreen\!548\.37 \(1\.16\)\\cellcolororange\!552\.12 \(2\.11\)\\cellcolorblue\!544\.88 \(1\.55\)\\cellcolorgreen\!547\.00 \(2\.00\)\\cellcolororange\!554\.00 \(1\.09\)Cost\(↓\)\(\\downarrow\)\\cellcolorblue\!567\.9 \(11\.3\)\\cellcolorgreen\!52992\.7 \(395\.3\)\\cellcolororange\!51762\.8 \(389\.2\)\\cellcolorblue\!563\.9 \(8\.4\)\\cellcolorgreen\!53065\.1 \(495\.0\)\\cellcolororange\!51875\.7 \(396\.7\)UniScale\(ours\)Reward\(↑\)\(\\uparrow\)\\cellcolorblue\!50\.7535 \(0\.0071\)\\cellcolorgreen\!50\.6196 \(0\.0039\)\\cellcolororange\!50\.7079 \(0\.0110\)\\cellcolorblue\!50\.6450 \(0\.0265\)\\cellcolorgreen\!50\.5347 \(0\.0183\)\\cellcolororange\!50\.6306 \(0\.0212\)Accuracy\(↑\)\(\\uparrow\)\\cellcolorblue\!546\.50 \(1\.02\)\\cellcolorgreen\!529\.00 \(1\.61\)\\cellcolororange\!546\.88 \(1\.72\)\\cellcolorblue\!548\.12 \(1\.05\)\\cellcolorgreen\!547\.87 \(2\.64\)\\cellcolororange\!557\.37 \(1\.94\)Cost\(↓\)\(\\downarrow\)\\cellcolorblue\!523\.3 \(2\.7\)\\cellcolorgreen\!582\.9 \(4\.5\)\\cellcolororange\!549\.4 \(11\.6\)\\cellcolorblue\!526\.6 \(9\.6\)\\cellcolorgreen\!51924\.6 \(969\.1\)\\cellcolororange\!51374\.7 \(437\.5\)OracleReward\(↑\)\(\\uparrow\)\\cellcolorblue\!50\.8297 \(0\.0031\)\\cellcolorgreen\!50\.6226 \(0\.0044\)\\cellcolororange\!50\.8337 \(0\.0030\)\\cellcolorblue\!50\.7426 \(0\.0047\)\\cellcolorgreen\!50\.6121 \(0\.0093\)\\cellcolororange\!50\.7924 \(0\.0048\)Accuracy\(↑\)\(\\uparrow\)\\cellcolorblue\!554\.87 \(0\.92\)\\cellcolorgreen\!537\.50 \(1\.85\)\\cellcolororange\!557\.38 \(0\.92\)\\cellcolorblue\!559\.12 \(0\.75\)\\cellcolorgreen\!556\.12 \(2\.07\)\\cellcolororange\!568\.12 \(0\.79\)Cost\(↓\)\(\\downarrow\)\\cellcolorblue\!510\.5 \(0\.3\)\\cellcolorgreen\!5106\.4 \(6\.1\)\\cellcolororange\!510\.6 \(0\.3\)\\cellcolorblue\!520\.3 \(0\.7\)\\cellcolorgreen\!51911\.1 \(86\.4\)\\cellcolororange\!5115\.7 \(3\.0\)We evaluateUniScale’s online decision\-making performance within a joint UIS space comprising multiple candidate models and diverse TTS strategies \(see[Table1](https://arxiv.org/html/2605.30898#S4.T1)\)\. The evaluation encompasses three deployment scenarios derived from practical requirements: optimizing TTS strategies for a specific model \([Section4\.1](https://arxiv.org/html/2605.30898#S4.SS1)\), routing queries across distinct candidate models \([Section4\.2](https://arxiv.org/html/2605.30898#S4.SS2)\), and performing full joint optimization within the complete UIS space \([Section4\.3](https://arxiv.org/html/2605.30898#S4.SS3)\)\.

Our experiments are conducted on a total of 210 instances curated from the AIME’24\(Zhang and Math\-AI,[2024](https://arxiv.org/html/2605.30898#bib.bib54)\), AIME’25\(Zhang and Math\-AI,[2025](https://arxiv.org/html/2605.30898#bib.bib55)\), and MATH\-500\(Aggarwalet al\.,[2023](https://arxiv.org/html/2605.30898#bib.bib44)\)datasets\. Specifically, for MATH\-500, we randomly sample 30 instances from each difficulty level \(Levels 1–5\)\. These 210 instances directly correspond to the experimental workflow, which consists of a 50\-step warm\-up followed by 160 policy\-driven iterations\. We compareUniScaleagainst two categories of baselines: \(1\) Multi\-armed Bandit baselines, includingRandomexploration, aGreedystrategy based onUniScale’s reward estimator,Thompson Sampling \(TS\)\(Chapelle and Li,[2011](https://arxiv.org/html/2605.30898#bib.bib59)\)that maintains posterior reward distributions for exploration,NeuralUCB\(Zhouet al\.,[2020](https://arxiv.org/html/2605.30898#bib.bib58)\)that utilizes neural networks for non\-linear function approximation with optimistic exploration, and anOraclethat represents the theoretical performance upper bound\. \(2\) Predictive Routing baselines inspired by RouterBench\(Huet al\.,[2024a](https://arxiv.org/html/2605.30898#bib.bib57)\), consisting of onlineMLPandk\-NNrouters that estimate performance based on historical observations\. We additionally compare against BEST\-Route\(Dinget al\.,[2025](https://arxiv.org/html/2605.30898#bib.bib33)\)under compatible settings in[SectionB\.5](https://arxiv.org/html/2605.30898#A2.SS5)\. To evaluate the algorithm’s versatility, we conduct primary experiments under two practical reward modes,Quality\-PriorityandCost\-Sensitive\. We also employCost\-LeaningandQuality\-Leaningvariants solely for the Pareto analysis in[Section4\.3](https://arxiv.org/html/2605.30898#S4.SS3)\.

We evaluateUniScaleusing two categories of metrics\. Forstatic performance, we report the mean Reward \(see[Equation4](https://arxiv.org/html/2605.30898#S3.E4)\), Accuracy \(in percentage points, pp\), and Cost \(in Tera\-eFLOPs, see[SectionD\.3](https://arxiv.org/html/2605.30898#A4.SS3)\) over the 160 policy\-driven iterations\. Fordynamic learning efficiency, we track the cumulative Regret \(see[Equation1](https://arxiv.org/html/2605.30898#S2.E1)\), Correct counts, and Cost \(including the 50\-step warm\-up phase\)\. The cumulative regret is further analyzed by defining Reg\.@130 and Reg\.@210 as the regret measured up to the 130th and 210th steps, respectively\.

Detailed experimental settings and results are provided in[SectionsB\.1](https://arxiv.org/html/2605.30898#A2.SS1),[B\.2](https://arxiv.org/html/2605.30898#A2.SS2),[B\.3](https://arxiv.org/html/2605.30898#A2.SS3)and[B\.4](https://arxiv.org/html/2605.30898#A2.SS4)\. Additionally, we demonstrateUniScale’s inherent task\-agnostic generalizability through experiments across diverse tasks \([SectionB\.6](https://arxiv.org/html/2605.30898#A2.SS6)\)\.

### 4\.1Scenario I: Adaptive Test\-Time Scaling Selection

We evaluate the fine\-grained quality–cost trade\-offs by dynamically selecting configurations within the TTS subspace under a fixed Qwen3\-0\.6B capacity\.[Table2](https://arxiv.org/html/2605.30898#S4.T2)shows that while the TTS subspace offers sufficient flexibility to achieve high rewards in Cost\-Sensitive mode \(matching global UIS performance\), a significant gap persists in Quality\-Priority mode\. This confirms thatthe TTS subspace is ultimately limited by the base model capacity, preventing the realization of wide\-range quality–cost trade\-offs\. Notably,UniScalesignificantly outperforms all baseline methods across both reward modes, consistently securing the highest reward by identifying optimal configurations that yield the lowest inference cost in the Cost\-Sensitive mode and the highest accuracy in the Quality\-Priority mode\.

### 4\.2Scenario II: Adaptive Model Routing

We evaluate the algorithm’s capability for dynamic query routing across various model scales within the routing subspace under a fixed inference structure \(e\.g\., CoT\)\. The lower rewards compared to the global UIS space in[Table2](https://arxiv.org/html/2605.30898#S4.T2)highlight the inherent limitations of the routing subspace, as it lacks the logical compensation provided by TTS andsuffers from performance jumps due to the sparsity of available model configurations\. WhileUniScaleremains robust, its performance is comparable to the Greedy baseline\. This reflects the low\-dimensional nature of this routing subspace, where the exploration factor inUniScaleincurs a slight penalty once the optimal model for the current distribution is rapidly identified during the warm\-up phase\. Crucially, as the Greedy strategy represents a special case ofUniScalewithout exploration and relies on the same linear reward estimator, its competitive performance directlyvalidates the estimator’s effectivenessin accurately characterizing model capability boundaries and identifying query complexity\.

![Refer to caption](https://arxiv.org/html/2605.30898v1/x4.png)

Figure 4:Cumulative regret and efficiency curves forUniScaleand baselines in the Adaptive UIS scenario under Cost\-Sensitive mode \(including the 50\-step warm\-up phase\)\.![Refer to caption](https://arxiv.org/html/2605.30898v1/x5.png)

Figure 5:Accuracy\-cost trade\-offs ofUniScaleand baselines in the Adaptive UIS scenario\. Distinct marker shapes represent four distinct reward modes: Cost\-Sensitive \(C\-Sen\.\), Cost\-Leaning \(C\-Lean\.\), Quality\-Leaning \(Q\-Lean\.\), and Quality\-Priority \(Q\-Pri\.\)\.
### 4\.3Scenario III: Unified Inference Scaling

We evaluate the effectiveness of the UIS paradigm through the joint optimization of model and TTS selection within the global UIS space\.[Table2](https://arxiv.org/html/2605.30898#S4.T2)confirms that the UIS space yields the highest global rewards, validating the deep synergy between the two dimensions\. Specifically, diverse TTS configurations smooth the discrete performance jumps of the routing subspace, while model switching breaks the capacity ceiling of single\-model TTS\. In this complex joint space,UniScaleexcels across both reward modes, consistently securing the highest rewards \(and thus the minimum cumulative regret\) by identifying configurations that yield the minimum cost in the Cost\-Sensitive mode \(see[Figure4](https://arxiv.org/html/2605.30898#S4.F4)\) and the maximum accuracy in the Quality\-Priority mode\.

This trend is further illustrated in[Figure5](https://arxiv.org/html/2605.30898#S4.F5), which presents the accuracy\-cost frontier under different reward modes\. Overall,UniScaleconsistently achieves a superior Pareto trade\-off compared with all baselines, demonstrating its ability to adaptively exploit the joint UIS space\. Compared with existing baselines, it exhibits a steeper improvement trend, indicating more efficient configuration selection across diverse reward modes\. Moreover, all variants ofUniScaleremain on the Pareto frontier across different reward weights, demonstrating strong robustness to coefficient variations while avoiding undesirable trade\-offs between inference cost and generation quality\. These results demonstrate that online joint optimization fullyunleashes the UIS paradigm’s potential for wide\-range, fine\-grained trade\-offs\.

## 5Ablation Study

Table 3:Performance comparison betweenUniScaleand a non\-semantic baseline \(w/o Sem\.\) across reward modes\.ModeConfig\.Reg\.@130Reg\.@210Acc\.CostQ\-Pri\.UniScale20\.3833\.9857\.501303\.3w/o Sem\.23\.1838\.2450\.62906\.4C\-Sen\.UniScale23\.4334\.4346\.2548\.2w/o Sem\.26\.7441\.5646\.88629\.7![Refer to caption](https://arxiv.org/html/2605.30898v1/x6.png)

Figure 6:Cumulative regret and efficiency curves forUniScaleand a non\-semantic baseline under Cost\-Sensitive mode\.Effectiveness of Action Semantic Representations\.We assess the impact of action semantic representations \(see[Section3\.1](https://arxiv.org/html/2605.30898#S3.SS1)\) on learning efficiency and decision quality by comparingUniScaleagainst a baseline that represents actions as independent one\-hot vectors \(w/o Sem\.\)\.[Table3](https://arxiv.org/html/2605.30898#S5.T3)shows that incorporating semantic features consistently yields lower cumulative regret across both reward modes\. By evaluating results across different objectives, we find thatUniScalefacilitates a significantly broader range of quality–cost trade\-offs: the accuracy difference between Quality\-Priority and Cost\-Sensitive modes reaches 11\.25pp, with the latter’s cost being only 3\.7% of the former\. In contrast, the baseline achieves a narrower accuracy gap of 4\.37pp, with its Cost\-Sensitive cost remaining at 69\.5% of its Quality\-Priority cost\. These results demonstrate that action semantic representations effectively enhanceUniScale’s understanding of both inference quality and cost across diverse UIS configurations\. By enabling cross\-action knowledge transfer, this approach significantly accelerates policy optimization within high\-dimensional search spaces\. In addition to the Cost\-Sensitive mode shown in[Figure4](https://arxiv.org/html/2605.30898#S4.F4), we provide the full set of results in[SectionC\.1](https://arxiv.org/html/2605.30898#A3.SS1)\.

Table 4:The impact of applying path\-aware early exiting on accuracy, computational load \(TFLOPs\), memory access volume \(TB\), and inference cost\.ConfigurationAcc\.Comp\.Mem\.CostStandard TTS65\.43667\.426\.84851\.4w/ Early Exit64\.5285\.05\.91002\.9Change\-0\.91pp\-87\.26%\-78\.06%\-79\.33%Efficiency Gains from Path\-Aware Early Exiting\.We evaluate the impact of the path\-aware early exiting mechanism \([Section3\.3](https://arxiv.org/html/2605.30898#S3.SS3)\) by comparing the average performance across all UIS configurations\. To balance exploration depth and pruning aggressiveness, we set the expansion factorη=1\.2\\eta=1\.2\.[Table4](https://arxiv.org/html/2605.30898#S5.T4)shows that this strategy significantly optimizes inference efficiency by performing real\-time potential assessment of ongoing inference paths\. By dynamically eliminating redundant steps, the mechanism reduces computational load and memory access volume, which lowers the total inference cost with negligible impact on final accuracy\. These findings confirm the efficacy of the mechanism in identifying logical convergence points and achieving high efficiency by pruning ineffective inference paths\.

Table 5:Effectiveness of dense verification feedback compared to binary correctness \(w/o Dense Feedback\) across reward modes\.ModeConfigurationAccuracy\(↑\)\(\\uparrow\)Cost\(↓\)\(\\downarrow\)Q\-Pri\.UniScale57\.501303\.3w/o Dense Feedback51\.882674\.9C\-Sen\.UniScale46\.2548\.2w/o Dense Feedback43\.7547\.4Effectiveness of Dense Verification Feedback\.We examine the role of dense verification feedback \(see[Section3\.4](https://arxiv.org/html/2605.30898#S3.SS4)\) in guiding policy convergence compared to a baseline relying on sparse binary correctness \(w/o Dense Feedback\)\.[Table5](https://arxiv.org/html/2605.30898#S5.T5)demonstrates that verification feedback provides a denser supervision source, allowing the system to perceive subtle nuances in logical rigor\. Specifically,UniScaleachieves a 5\.62pp accuracy improvement and a 51\.3% reduction in inference cost in Quality\-Priority mode, while achieving a 2\.5pp accuracy gain with nearly identical computational expenditure in Cost\-Sensitive mode\. This validates that dense feedback effectively anticipates breakthroughs in final correctness, mitigating the reward sparsity inherent in traditional binary signals\.

Robustness to Non\-stationary Environmental Drifts\.We evaluate the online adaptability ofUniScaleby simulating four non\-stationary environments where environmental drifts are introduced at the 51st iteration, immediately following the warm\-up phase\. These encompass action space dynamics, involving the addition and removal \(Add\./Rem\.\) of 0\.6B and 1\.7B model nodes under the Cost\-Sensitive mode, as well as bidirectional reward mode shifts \(Q↔\\leftrightarrowC\)\. Compared to the k\-NN predictive router \(the strongest baseline in the global UIS space\),UniScaleconsistently maintains significantly lower stage\-wise and final cumulative regret \(see[Table6](https://arxiv.org/html/2605.30898#S5.T6)\)\. Specifically, in the model removal environment \([Figure7](https://arxiv.org/html/2605.30898#S5.F7)\), although the system loses its previously preferred low\-cost nodes,UniScalerapidly explores and identifies new optimal configurations, achieving a 75\.1% reduction in inference cost compared to the baseline while maintaining superior accuracy \(\+2\.50pp\)\. In the model additional and reward shift environments,UniScaleexhibits exceptional agility by automatically triggering re\-exploration mechanisms to fit new distributions\. Further details on the dynamic evolution ofUniScaleare available in[SectionC\.2](https://arxiv.org/html/2605.30898#A3.SS2), which provides a granular analysis of the policy recalibration process and recovery slopes following environmental drifts\. This robustness confirms that the combination of semantic mapping and principled exploration allows the framework to consistently maintain an optimal quality–cost trade\-off even under severe environmental perturbations\.

For further comprehensive evaluations, please refer to[SectionC\.4](https://arxiv.org/html/2605.30898#A3.SS4)for sensitivity to the verifier and[SectionC\.5](https://arxiv.org/html/2605.30898#A3.SS5)for the physical latency breakdown\.

Table 6:Robustness comparison betweenUniScaleand k\-NN under non\-stationary drifts involving action space dynamics \(Add\./Rem\.\) and reward mode shifts \(Q↔\\leftrightarrowC\)\.Env\.MethodReg\.@130Reg\.@210Acc\.CostAdd\.UniScale27\.4338\.5243\.7559\.6k\-NN34\.4251\.7345\.62805\.1Rem\.UniScale27\.5641\.1553\.12255\.9k\-NN35\.5257\.4950\.621027\.9Q→\\rightarrowCUniScale27\.5938\.8651\.25347\.7k\-NN27\.9846\.9143\.13874\.3C→\\rightarrowQUniScale24\.7136\.7750\.62220\.8k\-NN30\.1548\.1143\.75452\.4![Refer to caption](https://arxiv.org/html/2605.30898v1/x7.png)

Figure 7:Cumulative regret and efficiency curves forUniScaleand k\-NN under a model removal environment\. The 0\.6B and 1\.7B models are removed from the candidate set at the 51st iteration\.
## 6Related Work and Discussion

LLM Routing\.Early methods such as FrugalGPT\(Chenet al\.,[2024a](https://arxiv.org/html/2605.30898#bib.bib27)\)and AutoMix\(Aggarwalet al\.,[2024](https://arxiv.org/html/2605.30898#bib.bib28)\)relied on cost\-ordered cascading, sequentially querying models until a quality threshold was met\. More recent work shifted toward data\-driven routing, training lightweight predictors to assign queries to appropriate models, as exemplified by HybridLLM\(Dinget al\.,[2024](https://arxiv.org/html/2605.30898#bib.bib29)\)and RouteLLM\(Onget al\.,[2025](https://arxiv.org/html/2605.30898#bib.bib30)\)\. Subsequent extensions improved the routing performance via contrastive learning or structured representations, e\.g\., RouterDC\(Chenet al\.,[2024b](https://arxiv.org/html/2605.30898#bib.bib31)\)and GraphRouter\(Fenget al\.,[2025](https://arxiv.org/html/2605.30898#bib.bib32)\)\. While BEST\-Route\(Dinget al\.,[2025](https://arxiv.org/html/2605.30898#bib.bib33)\)takes an initial step toward incorporating test\-time scaling by using Best\-of\-N sampling, existing routers largely remain model\-centric and rely on offline training\.

Test\-Time Scaling\.TTS is generally categorized into two primary implementation pathways: serial scaling and parallel scaling\. Serial scaling is characterized by the extension of reasoning chains\(Weiet al\.,[2022](https://arxiv.org/html/2605.30898#bib.bib3)\), a strategy effectively employed by recent state\-of\-the\-art models such as DeepSeek\-R1\(Guoet al\.,[2025](https://arxiv.org/html/2605.30898#bib.bib4)\), OpenAI\-o1\(Jaechet al\.,[2024](https://arxiv.org/html/2605.30898#bib.bib34)\), and QwQ\(Team,[2025](https://arxiv.org/html/2605.30898#bib.bib35)\)to bolster complex reasoning capabilities\. In contrast, parallel scaling encompasses techniques like repeated sampling and self\-consistency\(Wanget al\.,[2023](https://arxiv.org/html/2605.30898#bib.bib9); Brownet al\.,[2024](https://arxiv.org/html/2605.30898#bib.bib36)\), as well as reward\-guided methods including Best\-of\-N, weighted voting, and tree search\(Wanet al\.,[2024](https://arxiv.org/html/2605.30898#bib.bib37); Snellet al\.,[2025](https://arxiv.org/html/2605.30898#bib.bib13); Wuet al\.,[2025](https://arxiv.org/html/2605.30898#bib.bib7)\)\. While these approaches showcase the paradigm\-shifting potential of TTS, current research remains largely confined to exploring performance ceilings of fixed models under static budgets\(Snellet al\.,[2025](https://arxiv.org/html/2605.30898#bib.bib13); Liuet al\.,[2025](https://arxiv.org/html/2605.30898#bib.bib14)\)\. The challenge of dynamically selecting optimal TTS strategies tailored to varying queries remains an open problem\.UniScaleis orthogonal to these techniques and can be combined with them\. A detailed discussion is deferred to[AppendixA](https://arxiv.org/html/2605.30898#A1)\.

## 7Conclusion

We propose theUnified Inference Scaling \(UIS\)paradigm, which integrates model routing and Test\-Time Scaling \(TTS\) into a unified decision space\. To solve this complex online optimization problem, we designUniScale,an adaptive framework based on the contextual multi\-armed bandit\. By introducing efficiency\-aware learning and cost modeling mechanisms,UniScaleexploits the synergies between model routing and TTS to optimize the quality–cost frontier\. Extensive experimental results demonstrate thatUniScaleachieves fine\-grained trade\-offs across a broad spectrum in dynamic environments\. While the performance is currently modulated by the precision of Process Reward Models \(PRMs\), future work will explore more generalizable verification mechanisms to further enhance the framework’s effectiveness across a broader range of tasks\.

## Acknowledgements

We thank the anonymous reviewers for their insightful comments that helped improve this work\. We also thank Zhaoyu Fan, Bowen Han, Zehua He, and Runze Lu for their helpful comments\. This work was supported in part by the National Key Research and Development Program of China \(Grant No\. 2022YFA1003900\), the Joint Funds of the National Natural Science Foundation of China \(Grant No\. U25A20394\), the Science and Technology Commission of Shanghai Municipality \(Grant Nos\. 24DP1500704 and 24YL1901100\), the ”Medical\+X” Interdisciplinary Research Project of Tongji University \(Grant No\. 2025\-0674\-YB\-02\), the Fundamental Research Funds for the Central Universities \(Grant No\. 22120230311\), CUHK\-Shenzhen Research Grant \(Grant No\. UDF01003466\), the Guangdong Provincial Key Laboratory of Mathematical Foundations for Artificial Intelligence \(Grant No\. 2023B1212010001\), the National Natural Science Foundation of China \(Grant No\. 62506319\), the Guangdong Basic and Applied Basic Research Foundation \(Grant No\. 2026A1515030032\), the Shenzhen Science and Technology Program \(Grant No\. JCYJ20250604141031003\) , and the Pearl River Talent Program of Guangdong Province \(Grant No\. 2024QN11X069\)\.

## Impact Statement

The profound significance of this work lies in proposing theUnified Inference Scaling \(UIS\)paradigm to break down technical silos between model routing and TTS, providing a unified theoretical foundation and aunified decision spacefor large\-scale AI inference orchestration\.UniScale, as a concrete implementation mechanism, shifts inference optimization from heuristic\-based rules to data\-driven automated policies, laying the groundwork for building intelligent and standardized AI infrastructure\.

Environmental Sustainability \(Green AI\)\.UniScaledirectly addresses the energy consumption challenges in the deployment of LLMs\. By leveraging theUIS Cost Modelto provide a unified equivalent FLOPs metric, the framework enables hardware\-aware optimization across diverse execution environments\. Furthermore, thePath\-Aware Early Exitingmechanism minimizes redundant computation by dynamically terminating low\-potential inference branches\. This ensures that computational resources are concentrated on high\-marginal\-gain configurations, significantly reducing the carbon footprint of global inference services by preventing over\-computation on suboptimal base models\.

Technological Democratization and Inclusivity\.This framework fosters a more inclusive AI ecosystem by providing a universal orchestration mechanism applicable to heterogeneous environments\. By offeringfine\-grained controlover the quality–cost trade\-off,UniScaledemonstrates significant potential in edge\-cloud collaboration scenarios\. Itsonline adaptivityallows resource\-constrained edge hardware to intelligently determine when to leverage local capabilities and when to pursue cloud upgrades\. This bridges the digital divide, enabling personal devices to perform complex reasoning tasks previously reserved for high\-end clusters, thus allowing a broader user base to access advanced AI intelligence with lower barriers to entry\.

Data Privacy and Decentralized Governance\.While this research focuses on online learning, the standardized decision space abstracted byUniScaleis inherently compatible with the federated orchestration paradigm\(Daiet al\.,[2023](https://arxiv.org/html/2605.30898#bib.bib25); Huanget al\.,[2026](https://arxiv.org/html/2605.30898#bib.bib26)\)\. Since the Transformer\-based encoder only processes abstract semantic features to determine configuration parameters without requiring access to raw corpora, it creates the possibility for building privacy\-preserving cross\-organizational inference networks\. Sensitive query contexts and inference paths remain on local nodes, allowing global policy evolution to occur solely through the exchange of anonymized parameter updates\.

## References

- Y\. Abbasi\-Yadkori, D\. Pál, and C\. Szepesvári \(2011\)Improved algorithms for linear stochastic bandits\.Advances in neural information processing systems24\.Cited by:[§D\.1](https://arxiv.org/html/2605.30898#A4.SS1.p5.2),[§1](https://arxiv.org/html/2605.30898#S1.p5.1)\.
- P\. Aggarwal, A\. Madaan, A\. Anand, S\. P\. Potharaju, S\. Mishra, P\. Zhou, A\. Gupta, D\. Rajagopal, K\. Kappaganthu, Y\. Yang,et al\.\(2024\)AutoMix: automatically mixing language models\.InAdvances in Neural Information Processing Systems,Vol\.38\.Cited by:[§6](https://arxiv.org/html/2605.30898#S6.p1.1)\.
- P\. Aggarwal, A\. Madaan, Y\. Yang, and Mausam \(2023\)Let’s sample step by step: adaptive\-consistency for efficient reasoning and coding with LLMs\.InProceedings of the 2023 Conference on Empirical Methods in Natural Language Processing,H\. Bouamor, J\. Pino, and K\. Bali \(Eds\.\),Singapore,pp\. 12375–12396\.External Links:[Link](https://aclanthology.org/2023.emnlp-main.761/),[Document](https://dx.doi.org/10.18653/v1/2023.emnlp-main.761)Cited by:[Appendix A](https://arxiv.org/html/2605.30898#A1.p2.1),[§4](https://arxiv.org/html/2605.30898#S4.p2.1)\.
- Z\. Bi, K\. Han, C\. Liu, Y\. Tang, and Y\. Wang \(2025\)Forest\-of\-thought: scaling test\-time compute for enhancing LLM reasoning\.InForty\-second International Conference on Machine Learning,External Links:[Link](https://openreview.net/forum?id=BMJ3pyYxu2)Cited by:[Appendix A](https://arxiv.org/html/2605.30898#A1.p1.1)\.
- B\. Brown, J\. Juravsky, R\. Ehrlich, R\. Clark, Q\. V\. Le, C\. Ré, and A\. Mirhoseini \(2024\)Large language monkeys: scaling inference compute with repeated sampling\.arXiv preprint arXiv:2407\.21787\.Cited by:[§6](https://arxiv.org/html/2605.30898#S6.p2.1)\.
- O\. Chapelle and L\. Li \(2011\)An empirical evaluation of thompson sampling\.Advances in neural information processing systems24\.Cited by:[item 3](https://arxiv.org/html/2605.30898#A2.I3.i3.p1.1),[§4](https://arxiv.org/html/2605.30898#S4.p2.1)\.
- L\. Chen, M\. Zaharia, and J\. Zou \(2024a\)FrugalGPT: how to use large language models while reducing cost and improving performance\.Transactions on Machine Learning Research\.External Links:[Link](https://openreview.net/forum?id=cSimKw5p6R)Cited by:[§6](https://arxiv.org/html/2605.30898#S6.p1.1)\.
- S\. Chen, W\. Jiang, B\. Lin, J\. Kwok, and Y\. Zhang \(2024b\)Routerdc: query\-based router by dual contrastive learning for assembling large language models\.Advances in Neural Information Processing Systems37,pp\. 66305–66328\.Cited by:[§6](https://arxiv.org/html/2605.30898#S6.p1.1)\.
- K\. Cobbe, V\. Kosaraju, M\. Bavarian, M\. Chen, H\. Jun, L\. Kaiser, M\. Plappert, J\. Tworek, J\. Hilton, R\. Nakano,et al\.\(2021\)Training verifiers to solve math word problems\.arXiv preprint arXiv:2110\.14168\.Cited by:[§2\.1](https://arxiv.org/html/2605.30898#S2.SS1.p2.3)\.
- Z\. Dai, Y\. Shu, A\. Verma, F\. X\. Fan, B\. K\. H\. Low, and P\. Jaillet \(2023\)Federated neural bandits\.InThe Eleventh International Conference on Learning Representations,External Links:[Link](https://openreview.net/forum?id=38m4h8HcNRL)Cited by:[Impact Statement](https://arxiv.org/html/2605.30898#Sx2.p4.1)\.
- D\. Ding, A\. Mallick, C\. Wang, R\. Sim, S\. Mukherjee, V\. Rühle, L\. V\. S\. Lakshmanan, and A\. H\. Awadallah \(2024\)Hybrid LLM: cost\-efficient and quality\-aware query routing\.InThe Twelfth International Conference on Learning Representations,External Links:[Link](https://openreview.net/forum?id=02f3mUtqnM)Cited by:[§6](https://arxiv.org/html/2605.30898#S6.p1.1)\.
- D\. Ding, A\. Mallick, S\. Zhang, C\. Wang, D\. Madrigal, M\. D\. C\. H\. Garcia, M\. Xia, L\. V\. S\. Lakshmanan, Q\. Wu, and V\. Rühle \(2025\)BEST\-route: adaptive LLM routing with test\-time optimal compute\.InForty\-second International Conference on Machine Learning,External Links:[Link](https://openreview.net/forum?id=tFBIbCVXkG)Cited by:[§4](https://arxiv.org/html/2605.30898#S4.p2.1),[§6](https://arxiv.org/html/2605.30898#S6.p1.1)\.
- T\. Feng, Y\. Shen, and J\. You \(2025\)GraphRouter: a graph\-based router for LLM selections\.InThe Thirteenth International Conference on Learning Representations,External Links:[Link](https://openreview.net/forum?id=eU39PDsZtT)Cited by:[§1](https://arxiv.org/html/2605.30898#S1.p2.1),[§6](https://arxiv.org/html/2605.30898#S6.p1.1)\.
- T\. Fu, Y\. Ge, Y\. You, E\. Liu, Z\. Yuan, G\. Dai, S\. Yan, H\. Yang, and Y\. Wang \(2025\)R2R: efficiently navigating divergent reasoning paths with small\-large model token routing\.InAdvances in Neural Information Processing Systems,D\. Belgrave, C\. Zhang, H\. Lin, R\. Pascanu, P\. Koniusz, M\. Ghassemi, and N\. Chen \(Eds\.\),Vol\.38,pp\. 124108–124145\.External Links:[Link](https://proceedings.neurips.cc/paper_files/paper/2025/file/b39cef2ef90591cffdc9c674cd55bebe-Paper-Conference.pdf)Cited by:[Appendix A](https://arxiv.org/html/2605.30898#A1.p2.1)\.
- D\. Guo, D\. Yang, H\. Zhang, J\. Song, P\. Wang, Q\. Zhu, R\. Xu, R\. Zhang, S\. Ma, X\. Bi,et al\.\(2025\)DeepSeek\-r1 incentivizes reasoning in LLMs through reinforcement learning\.Nature645,pp\. 633–638\.External Links:[Document](https://dx.doi.org/10.1038/s41586-025-09422-z),[Link](https://doi.org/10.1038/s41586-025-09422-z)Cited by:[§1](https://arxiv.org/html/2605.30898#S1.p1.1),[§6](https://arxiv.org/html/2605.30898#S6.p2.1)\.
- S\. Hao, Y\. Gu, H\. Ma, J\. Hong, Z\. Wang, D\. Wang, and Z\. Hu \(2023\)Reasoning with language model is planning with world model\.InProceedings of the 2023 Conference on Empirical Methods in Natural Language Processing,pp\. 8154–8173\.Cited by:[Appendix A](https://arxiv.org/html/2605.30898#A1.p1.1)\.
- J\. He, T\. Wei, R\. Yan, J\. Liu, C\. Wang, Y\. Gan, S\. Tu, C\. Y\. Liu, L\. Zeng, X\. Wang, B\. Wang, Y\. Li, F\. Zhang, J\. Xu, B\. An, Y\. Liu, and Y\. Zhou \(2024\)Skywork\-o1 open series\.Zenodo\.External Links:[Document](https://dx.doi.org/10.5281/zenodo.16998085),[Link](https://doi.org/10.5281/zenodo.16998085)Cited by:[Table 11](https://arxiv.org/html/2605.30898#A4.T11),[Table 1](https://arxiv.org/html/2605.30898#S4.T1),[Table 1](https://arxiv.org/html/2605.30898#S4.T1.2.1)\.
- Q\. J\. Hu, J\. Bieker, X\. Li, N\. Jiang, B\. Keigwin, G\. Ranganath, K\. Keutzer, and S\. K\. Upadhyay \(2024a\)RouterBench: a benchmark for multi\-LLM routing system\.InAgentic Markets Workshop at ICML 2024,External Links:[Link](https://openreview.net/forum?id=IVXmV8Uxwh)Cited by:[§B\.3](https://arxiv.org/html/2605.30898#A2.SS3.p3.1),[§4](https://arxiv.org/html/2605.30898#S4.p2.1)\.
- W\. Hu, Y\. Shu, Z\. Yu, Z\. Wu, X\. Lin, Z\. Dai, S\. Ng, and B\. K\. H\. Low \(2024b\)Localized zeroth\-order prompt optimization\.Advances in Neural Information Processing Systems37,pp\. 86309–86345\.Cited by:[§3\.1](https://arxiv.org/html/2605.30898#S3.SS1.p3.1)\.
- X\. Huang, Y\. Hu, Z\. Li, Z\. Wang, and Z\. Dai \(2026\)Federated linear dueling bandits\.InProceedings of the AAAI Conference on Artificial Intelligence,Vol\.40,pp\. 22066–22074\.Cited by:[Impact Statement](https://arxiv.org/html/2605.30898#Sx2.p4.1)\.
- A\. Jaech, A\. Kalai, A\. Lerer, A\. Richardson, A\. El\-Kishky, A\. Low, A\. Helyar, A\. Madry, A\. Beutel, A\. Carney,et al\.\(2024\)Openai o1 system card\.arXiv preprint arXiv:2412\.16720\.Cited by:[§1](https://arxiv.org/html/2605.30898#S1.p1.1),[§6](https://arxiv.org/html/2605.30898#S6.p2.1)\.
- N\. Jain, Han, A\. Gu, W\. Li, F\. Yan, T\. Zhang, S\. Wang, A\. Solar\-Lezama, K\. Sen, and I\. Stoica \(2025\)LiveCodeBench: holistic and contamination free evaluation of large language models for code\.InInternational Conference on Learning Representations,Y\. Yue, A\. Garg, N\. Peng, F\. Sha, and R\. Yu \(Eds\.\),Vol\.2025,pp\. 58791–58831\.External Links:[Link](https://proceedings.iclr.cc/paper_files/paper/2025/file/94074dd5a072d28ff75a76dabed43767-Paper-Conference.pdf)Cited by:[§B\.2](https://arxiv.org/html/2605.30898#A2.SS2.p2.1),[§B\.6](https://arxiv.org/html/2605.30898#A2.SS6.p1.1)\.
- W\. Kwon, Z\. Li, S\. Zhuang, Y\. Sheng, L\. Zheng, C\. H\. Yu, J\. Gonzalez, H\. Zhang, and I\. Stoica \(2023\)Efficient memory management for large language model serving with pagedattention\.InProceedings of the 29th Symposium on Operating Systems Principles,SOSP ’23,New York, NY, USA,pp\. 611–626\.External Links:ISBN 9798400702297,[Link](https://doi.org/10.1145/3600006.3613165),[Document](https://dx.doi.org/10.1145/3600006.3613165)Cited by:[§B\.1](https://arxiv.org/html/2605.30898#A2.SS1.p1.1)\.
- L\. Li, W\. Chu, J\. Langford, and R\. E\. Schapire \(2010\)A contextual\-bandit approach to personalized news article recommendation\.InProceedings of the 19th international conference on World wide web,pp\. 661–670\.Cited by:[§1](https://arxiv.org/html/2605.30898#S1.p5.1),[§2\.2](https://arxiv.org/html/2605.30898#S2.SS2.p1.1)\.
- B\. Y\. Lin, R\. L\. Bras, K\. Richardson, A\. Sabharwal, R\. Poovendran, P\. Clark, and Y\. Choi \(2025\)ZebraLogic: on the scaling limits of LLMs for logical reasoning\.InForty\-second International Conference on Machine Learning,External Links:[Link](https://openreview.net/forum?id=sTAJ9QyA6l)Cited by:[§B\.2](https://arxiv.org/html/2605.30898#A2.SS2.p2.1)\.
- R\. Liu, J\. Gao, J\. Zhao, K\. Zhang, X\. Li, B\. Qi, W\. Ouyang, and B\. Zhou \(2025\)Can 1b LLM surpass 405b LLM? rethinking compute\-optimal test\-time scaling\.InWorkshop on Reasoning and Planning for Large Language Models,External Links:[Link](https://openreview.net/forum?id=CvjX9Lhpze)Cited by:[§B\.1](https://arxiv.org/html/2605.30898#A2.SS1.p1.1),[§6](https://arxiv.org/html/2605.30898#S6.p2.1)\.
- K\. Misaki, Y\. Inoue, Y\. Imajuku, S\. Kuroki, T\. Nakamura, and T\. Akiba \(2025\)Wider or deeper? scaling LLM inference\-time compute with adaptive branching tree search\.InICLR 2025 Workshop on Foundation Models in the Wild,External Links:[Link](https://openreview.net/forum?id=3HF6yogDEm)Cited by:[Appendix A](https://arxiv.org/html/2605.30898#A1.p1.1)\.
- I\. Ong, A\. Almahairi, V\. Wu, W\. Chiang, T\. Wu, J\. E\. Gonzalez, M\. W\. Kadous, and I\. Stoica \(2025\)RouteLLM: learning to route LLMs from preference data\.InThe Thirteenth International Conference on Learning Representations,External Links:[Link](https://openreview.net/forum?id=8sSqNntaMr)Cited by:[§6](https://arxiv.org/html/2605.30898#S6.p1.1)\.
- R\. Pan, Y\. Dai, Z\. Zhang, G\. Oliaro, Z\. Jia, and R\. Netravali \(2025\)SpecReason: fast and accurate inference\-time compute via speculative reasoning\.InAdvances in Neural Information Processing Systems,D\. Belgrave, C\. Zhang, H\. Lin, R\. Pascanu, P\. Koniusz, M\. Ghassemi, and N\. Chen \(Eds\.\),Vol\.38,pp\. 12730–12749\.External Links:[Link](https://proceedings.neurips.cc/paper_files/paper/2025/file/12c45a68e8433b21b91cd47731387fa4-Paper-Conference.pdf)Cited by:[Appendix A](https://arxiv.org/html/2605.30898#A1.p2.1)\.
- D\. Rein, B\. L\. Hou, A\. C\. Stickland, J\. Petty, R\. Y\. Pang, J\. Dirani, J\. Michael, and S\. R\. Bowman \(2024\)Gpqa: a graduate\-level google\-proof q&a benchmark\.InFirst Conference on Language Modeling,Cited by:[§B\.2](https://arxiv.org/html/2605.30898#A2.SS2.p2.1)\.
- R\. Sadhukhan, Z\. Chen, H\. Zheng, and B\. Chen \(2025\)Kinetics: rethinking test\-time scaling law\.InAdvances in Neural Information Processing Systems,D\. Belgrave, C\. Zhang, H\. Lin, R\. Pascanu, P\. Koniusz, M\. Ghassemi, and N\. Chen \(Eds\.\),Vol\.38,pp\. 84346–84379\.External Links:[Link](https://proceedings.neurips.cc/paper_files/paper/2025/file/79ada0f9bc4e41192ad5a80d13c8ca7e-Paper-Conference.pdf)Cited by:[§D\.3](https://arxiv.org/html/2605.30898#A4.SS3.p1.1),[§1](https://arxiv.org/html/2605.30898#S1.p5.1),[§3\.4](https://arxiv.org/html/2605.30898#S3.SS4.p3.7)\.
- C\. V\. Snell, J\. Lee, K\. Xu, and A\. Kumar \(2025\)Scaling LLM test\-time compute optimally can be more effective than scaling parameters for reasoning\.InThe Thirteenth International Conference on Learning Representations,External Links:[Link](https://openreview.net/forum?id=4FWAwZtd2n)Cited by:[§1](https://arxiv.org/html/2605.30898#S1.p2.1),[§6](https://arxiv.org/html/2605.30898#S6.p2.1)\.
- Q\. Team \(2025\)QwQ\-32b: embracing the power of reinforcement learning\.External Links:[Link](https://qwenlm.github.io/blog/qwq-32b/)Cited by:[§1](https://arxiv.org/html/2605.30898#S1.p1.1),[§6](https://arxiv.org/html/2605.30898#S6.p2.1)\.
- Z\. Wan, X\. Feng, M\. Wen, S\. M\. McAleer, Y\. Wen, W\. Zhang, and J\. Wang \(2024\)AlphaZero\-like tree\-search can guide large language model decoding and training\.InForty\-first International Conference on Machine Learning,External Links:[Link](https://openreview.net/forum?id=C4OpREezgj)Cited by:[§6](https://arxiv.org/html/2605.30898#S6.p2.1)\.
- J\. Wang, M\. Fang, Z\. Wan, M\. Wen, J\. Zhu, A\. Liu, Z\. Gong, Y\. Song, L\. Chen, L\. M\. Ni,et al\.\(2024\)OpenR: an open source framework for advanced reasoning with large language models\.arXiv preprint arXiv:2410\.09671\.Cited by:[§B\.1](https://arxiv.org/html/2605.30898#A2.SS1.p1.1)\.
- J\. Wang \(2024\)A tutorial on llm reasoning: relevant methods behind chatgpt o1\.Note:Available on GitHubExternal Links:[Link](https://github.com/openreasoner/openr/blob/main/reports/tutorial.pdf)Cited by:[§B\.1](https://arxiv.org/html/2605.30898#A2.SS1.p1.1)\.
- X\. Wang, J\. Wei, D\. Schuurmans, Q\. Le, E\. Chi, S\. Narang, A\. Chowdhery, and D\. Zhou \(2023\)Self\-consistency improves chain of thought reasoning in language models\.InThe Eleventh International Conference on Learning Representations,Cited by:[§6](https://arxiv.org/html/2605.30898#S6.p2.1)\.
- J\. Wei, X\. Wang, D\. Schuurmans, M\. Bosma, F\. Xia, E\. Chi, Q\. V\. Le, D\. Zhou,et al\.\(2022\)Chain\-of\-thought prompting elicits reasoning in large language models\.Advances in neural information processing systems35,pp\. 24824–24837\.Cited by:[§6](https://arxiv.org/html/2605.30898#S6.p2.1)\.
- C\. White, S\. Dooley, M\. Roberts, A\. Pal, B\. Feuer, S\. Jain, R\. Shwartz\-Ziv, N\. Jain, K\. Saifullah, S\. Dey, Shubh\-Agrawal, S\. S\. Sandha, S\. V\. Naidu, C\. Hegde, Y\. LeCun, T\. Goldstein, W\. Neiswanger, and M\. Goldblum \(2025\)LiveBench: a challenging, contamination\-limited LLM benchmark\.InThe Thirteenth International Conference on Learning Representations,External Links:[Link](https://openreview.net/forum?id=sKYHBTAxVa)Cited by:[§B\.2](https://arxiv.org/html/2605.30898#A2.SS2.p2.1)\.
- Y\. Wu, Z\. Sun, S\. Li, S\. Welleck, and Y\. Yang \(2025\)Inference scaling laws: an empirical analysis of compute\-optimal inference for LLM problem\-solving\.InThe Thirteenth International Conference on Learning Representations,External Links:[Link](https://openreview.net/forum?id=VNckp7JEHn)Cited by:[Appendix A](https://arxiv.org/html/2605.30898#A1.p1.1),[§2\.1](https://arxiv.org/html/2605.30898#S2.SS1.p2.3),[§6](https://arxiv.org/html/2605.30898#S6.p2.1)\.
- A\. Yang, A\. Li, B\. Yang, B\. Zhang, B\. Hui, B\. Zheng, B\. Yu, C\. Gao, C\. Huang, C\. Lv,et al\.\(2025\)Qwen3 technical report\.arXiv preprint arXiv:2505\.09388\.Cited by:[Table 11](https://arxiv.org/html/2605.30898#A4.T11),[Table 1](https://arxiv.org/html/2605.30898#S4.T1),[Table 1](https://arxiv.org/html/2605.30898#S4.T1.2.1)\.
- Z\. Yu, T\. Xu, D\. Jin, K\. A\. Sankararaman, Y\. He, W\. Zhou, Z\. Zeng, E\. Helenowski, C\. Zhu, S\. Wang, H\. Ma, and H\. Fang \(2025\)Think smarter not harder: adaptive reasoning with inference aware optimization\.InForty\-second International Conference on Machine Learning,External Links:[Link](https://openreview.net/forum?id=0ERw2196o1)Cited by:[Appendix A](https://arxiv.org/html/2605.30898#A1.p2.1)\.
- Y\. Zhang and T\. Math\-AI \(2024\)American invitational mathematics examination \(aime\) 2024\.Cited by:[§B\.2](https://arxiv.org/html/2605.30898#A2.SS2.p2.1),[§4](https://arxiv.org/html/2605.30898#S4.p2.1)\.
- Y\. Zhang and T\. Math\-AI \(2025\)American invitational mathematics examination \(aime\) 2025\.Cited by:[§B\.2](https://arxiv.org/html/2605.30898#A2.SS2.p2.1),[§4](https://arxiv.org/html/2605.30898#S4.p2.1)\.
- D\. Zhou, L\. Li, and Q\. Gu \(2020\)Neural contextual bandits with UCB\-based exploration\.InProceedings of the 37th International Conference on Machine Learning,H\. D\. III and A\. Singh \(Eds\.\),Proceedings of Machine Learning Research, Vol\.119,pp\. 11492–11502\.External Links:[Link](https://proceedings.mlr.press/v119/zhou20a.html)Cited by:[item 4](https://arxiv.org/html/2605.30898#A2.I3.i4.p1.4),[§4](https://arxiv.org/html/2605.30898#S4.p2.1)\.

## Appendix AAdditional Related Work

Efficient Test\-Time Scaling Strategies\.In the realm of efficient TTS strategies, researchers focus on constructing optimized reasoning spaces to enhance search efficiency\. Monte Carlo Tree Search \(MCTS\) models the reasoning process as a heuristic search within a state space, leveraging reward models to guide the model beyond the limitations of traditional greedy decoding\(Haoet al\.,[2023](https://arxiv.org/html/2605.30898#bib.bib41)\)\. AB\-MCTS\(Misakiet al\.,[2025](https://arxiv.org/html/2605.30898#bib.bib42)\)further introduces an adaptive mechanism that dynamically adjusts the search width and depth based on node uncertainty, achieving superior efficiency compared to standard MCTS\. Forest of Thoughts \(FoT\)\(Biet al\.,[2025](https://arxiv.org/html/2605.30898#bib.bib43)\)designs a multi\-tree reasoning framework based on sparse activation\. By maintaining reasoning trees in parallel and expanding only the most relevant paths, it significantly reduces computational overhead while maintaining search breadth\. From a theoretical perspective, Rebase\(Wuet al\.,[2025](https://arxiv.org/html/2605.30898#bib.bib7)\)derives an optimal allocation strategy for TTS and proposes a reward\-balanced tree search algorithm, proving that it outperforms traditional majority voting under a fixed FLOPs budget\. However, existing works often remain confined to local optimizations of specific algorithms or fixed configurations, lacking a universal optimization of TTS\. Bridging this gap, we adopt a unified perspective of the TTS inference process and propose UIS\. This framework integrates model routing and TTS, facilitating a paradigm shift from algorithm\-specific tuning to global parameterized search\.

Adaptive Resource Allocation in Test\-Time Scaling\.Research in adaptive resource allocation aims to balance reasoning latency and computational cost through dynamic mechanisms\. Adaptive\-Consistency\(Aggarwalet al\.,[2023](https://arxiv.org/html/2605.30898#bib.bib44)\)introduces a dynamic stopping mechanism based on statistical confidence \(e\.g\., Beta distribution approximation\), allowing the model to terminate sampling early once a consensus is reached, thereby drastically reducing redundant computation\. IBPO\(Yuet al\.,[2025](https://arxiv.org/html/2605.30898#bib.bib45)\)models the reasoning process as a utility maximization problem under budget constraints, enabling the model to perceive task difficulty and adaptively allocate reasoning length\. This approach achieves significantly higher efficiency in solving complex mathematical problems compared to standard self\-consistency methods\. To further accelerate the generation process for complex tasks, SpecReason\(Panet al\.,[2025](https://arxiv.org/html/2605.30898#bib.bib46)\)applies speculative decoding at the reasoning\-step level, utilizing a small model to quickly generate Chain\-of\-Thought \(CoT\) drafts which are then verified in parallel by a large model\. R2R\(Fuet al\.,[2025](https://arxiv.org/html/2605.30898#bib.bib47)\)proposes a neural token routing method that invokes the LLM only on identified divergent tokens along the critical path\. Through dynamic collaboration with a Small Language Model \(SLM\), it achieves reasoning performance and speed that surpasses medium\-sized models and approaches large\-scale models with minimal active parameters\. Despite these advances, most current mechanisms rely on offline training or static heuristic rules, making it difficult to respond in real\-time to the environmental drift\.UniScaleaddresses this via an online contextual bandit framework, achieving real\-time joint optimization of model routing and TTS configurations\.

## Appendix BAdditional Main Experimental Details and Results

### B\.1Infrastructure and Computational Environment

Execution Framework\.All TTS strategies in this study are implemented within OpenR\(Wang,[2024](https://arxiv.org/html/2605.30898#bib.bib48); Wanget al\.,[2024](https://arxiv.org/html/2605.30898#bib.bib49); Liuet al\.,[2025](https://arxiv.org/html/2605.30898#bib.bib14)\), an open\-source framework specifically engineered for LLM reasoning\. To facilitate efficient inference tasks, we optimized the model deployment engine by integrating the vLLM \(v0\.11\.2\) inference backend\(Kwonet al\.,[2023](https://arxiv.org/html/2605.30898#bib.bib50)\)\. This engine implements highly efficient prefix caching and prefix sharing mechanisms and supports dynamic batching, significantly enhancing the computational efficiency of TTS strategies\. All model weights and KV caches are loaded in BFloat16 \(BF16\) format to strike an optimal balance between numerical stability and memory efficiency\.

Hardware Platform\.Experimental evaluations were conducted on an NVIDIA A800 80GB SXM GPU cluster\. To ensure hardware\-referenced cost assessments, we utilize the eFLOPs \(equivalent Floating Point Operations\) cost model \([SectionD\.3](https://arxiv.org/html/2605.30898#A4.SS3)\)\. We calibrated the base computational units according to the ratio of peak FP16/BF16 throughput to memory bandwidth of the NVIDIA A800 80GB SXM GPU \(i\.e\., arithmetic intensityI=156I=156\), ensuring that eFLOPs accurately reflect the hardware\-level resource consumption across different model scales and TTS strategies\.

### B\.2Semantic Representation of the Unified Inference Scaling Space

To enable effective reasoning across heterogeneous model capabilities and TTS strategies, we propose a semanticization pipeline that maps UIS space into a continuous manifold\. Each UIS configurationa=\(M,Q​P,C​P,B​S\)a=\(M,QP,CP,BS\)is first transformed into a structured textual description that captures the functional essence of both the backbone modelMMand the TTS strategy\(Q​P,C​P,B​S\)\(QP,CP,BS\)\. This description is then projected into a vector space\.

Model Specification\.For the model componentMM, we construct a capability\-oriented description that includes both architectural scale and empirical performance anchors, utilizing a key–value format that contains parameter scale \(Params\) and benchmark scores grouped by task categories such as expert reasoning\(Reinet al\.,[2024](https://arxiv.org/html/2605.30898#bib.bib52); Whiteet al\.,[2025](https://arxiv.org/html/2605.30898#bib.bib56)\), mathematics\(Zhang and Math\-AI,[2024](https://arxiv.org/html/2605.30898#bib.bib54),[2025](https://arxiv.org/html/2605.30898#bib.bib55)\), logic\(Linet al\.,[2025](https://arxiv.org/html/2605.30898#bib.bib53)\), and coding\(Jainet al\.,[2025](https://arxiv.org/html/2605.30898#bib.bib61)\)\. To improve semantic alignment in the embedding space, each benchmark score is annotated with an explicit task\-domain prefix, such asExpertReasoning\_GPQAorMath\_AIME24\. These task\-level anchors serve as semantic references that allow the embedding model to associate a backbone LLM with its relative strengths across different reasoning dimensions, rather than treating the model identifier as an opaque symbol\.

> Example \(model description\): Model: qwen3\-14b \| Params: 14B \| ExpertReasoning\_GPQA: 54\.80 \| GeneralMixed\_LiveBench: 59\.60 \| Math\_AIME24: 31\.70 \| Logic\_Zebra: 33\.00 \| Coding\_LCB: 29\.00

TTS Configuration\.The TTS component\(Q​P,C​P,B​S\)\(QP,CP,BS\)is translated into a structured description that emphasizes its functional semantics rather than its raw numerical values\. We reinterpretQ​PQPas the number ofParallel\_Trees,C​PCPas the number ofPath\_Candidates, andB​SBSas the effectiveBeam\_Widthcontrolling pruning granularity\. In addition, we introduce derived attributes that make implicit interactions explicit\. For instance, the effective resource amplification factor is computed asmin⁡\(Q​P⋅C​P,64\)\\min\(QP\\cdot CP,64\), and the number of expansions per step is derived fromC​P/B​SCP/BS\. Based on these quantities, each configuration is assigned a high\-levelStrategy\_Mode\(e\.g\.,Fast\-Inference,Balanced\-Search,Deep\-Reasoning\) and an associatedOptimization\_Priority\(e\.g\.,Latency\-First,Balanced\-Efficiency,Accuracy\-First\)\.

> Example \(TTS description\): Parallel\_Trees\(QP\): 4 \| Path\_Candidates\(CP\): 16 \| Beam\_Width\(BS\): 4 \| Expansions\_per\_Step: 4 \| Resource\_Impact: 16x \| Strategy\_Mode: Balanced\-Search \| Optimization\_Priority: Balanced\-Efficiency

Action Semantic Representation\.We concatenate the model and TTS descriptions to form the final semantic description, which is then mapped into a 1024\-dimensional semantic vector for each action using a pretrained text embedding model \(qwen\-text\-embedding\-v4\)\. This embedding process transforms the discrete, high\-dimensional configuration space into a continuous latent space where semantic proximity reflects functional similarity\. Unlike direct numerical encodings, this approach enables cross\-model generalization by embedding diverse backbone models into a unified representation based on their empirical capability profiles\. It also facilitates strategy\-level similarity awareness, ensuring that TTS configurations with analogous resource allocation patterns are positioned closely in the vector space, regardless of their specific parameter values\. Furthermore, the 1024\-dimensional action embedding serves as a rich input for downstream bandit or regression models, allowing them to effectively model the complex non\-linear interactions between model strength and inference\-time scaling strategies\. Consequently, the resulting vector provides a coherent and information\-dense representation that supports efficient reward estimation and exploration within theUniScaleframework\.

### B\.3Hyperparameters and Baseline Configurations

Hyperparameter Details forUniScale\.We established the following key hyperparameters:

1. 1\.Exploration Factor\(α\\alpha\): Set to1\.01\.0to ensure sufficient exploration of the action space during the initial stages while facilitating rapid convergence to the optimal policy in later stages\.
2. 2\.Regularization Term\(λ\\lambda\): The regularization coefficient for ridge regression is set to1\.01\.0to maintain numerical stability during the Gram matrix𝐀\\mathbf\{A\}inversion\.

Reward Function Hyperparameters\.We defined two typical reward modes:

1. 1\.Cost\-Sensitive:w1=w2=0\.1,w3=0\.8w\_\{1\}=w\_\{2\}=0\.1,w\_\{3\}=0\.8\. This mode aims to identify the most cost\-effective UIS configuration\.
2. 2\.Cost\-Leaning:w1=w2=0\.2,w3=0\.6w\_\{1\}=w\_\{2\}=0\.2,w\_\{3\}=0\.6\. This mode is designed to favor cost efficiency while preserving acceptable performance\.
3. 3\.Quality\-Leaning:w1=w2=0\.3,w3=0\.4w\_\{1\}=w\_\{2\}=0\.3,w\_\{3\}=0\.4\. This mode aims to emphasize inference quality while incorporating moderate cost considerations\.
4. 4\.Quality\-Priority:w1=w2=0\.4,w3=0\.2w\_\{1\}=w\_\{2\}=0\.4,w\_\{3\}=0\.2\. This mode is designed to identify the UIS configurations with the highest inference quality\.

Baseline Configurations\.Following the predictive routing paradigms in RouterBench\(Huet al\.,[2024a](https://arxiv.org/html/2605.30898#bib.bib57)\), we configured the predictive routing baselines as follows:

1. 1\.MLP: The MLP has an input dimension of 2048, an output dimension of 1, and a hidden layer of size 100\. We train the MLP to minimize the mean squared error \(MSE\) loss for 1000 iterations after each new observation point\(𝐱t,at,rt\)\(\\mathbf\{x\}\_\{t,a\_\{t\}\},r\_\{t\}\)\. A default learning rate of 0\.001 is used\.
2. 2\.k\-NN: We implement a k\-NN router withk=5k=5, which estimates the reward by averaging the outcomes of thekkmost similar historical instances in the joint feature space: at=arg⁡maxa∈𝒜⁡\(1k​∑i∈𝒩​\(𝐱t,a\)ri\),a\_\{t\}=\\arg\\max\_\{a\\in\\mathcal\{A\}\}\\left\(\\frac\{1\}\{k\}\\sum\_\{i\\in\\mathcal\{N\}\(\\mathbf\{x\}\_\{t,a\}\)\}r\_\{i\}\\right\),\(5\)where𝒩​\(𝐱t,a\)\\mathcal\{N\}\(\\mathbf\{x\}\_\{t,a\}\)denotes the set ofkkindicesi<ti<twhose historical vectors𝐱i,ai\\mathbf\{x\}\_\{i,a\_\{i\}\}exhibit the highest cosine similarity to the current candidate vector𝐱t,a\\mathbf\{x\}\_\{t,a\}\.
3. 3\.Thompson Sampling\(Chapelle and Li,[2011](https://arxiv.org/html/2605.30898#bib.bib59)\): We implement a linear Thompson Sampling strategy with Gaussian posterior sampling\. At each iteration, the algorithm samples a parameter vector𝜽~t\\tilde\{\\boldsymbol\{\\theta\}\}\_\{t\}from the posterior distribution: 𝜽~t∼𝒩​\(𝜽^t,α2​𝐀t−1\),\\tilde\{\\boldsymbol\{\\theta\}\}\_\{t\}\\sim\\mathcal\{N\}\(\\hat\{\\boldsymbol\{\\theta\}\}\_\{t\},\\alpha^\{2\}\\mathbf\{A\}\_\{t\}^\{\-1\}\),\(6\)where𝜽^t=𝐀t−1​𝐛t\\hat\{\\boldsymbol\{\\theta\}\}\_\{t\}=\\mathbf\{A\}\_\{t\}^\{\-1\}\\mathbf\{b\}\_\{t\}denotes the posterior mean estimated from historical observations\. The action is then selected according to: at=arg⁡maxa∈𝒜⁡𝐱t,a⊤​𝜽~t\.a\_\{t\}=\\arg\\max\_\{a\\in\\mathcal\{A\}\}\\mathbf\{x\}\_\{t,a\}^\{\\top\}\\tilde\{\\boldsymbol\{\\theta\}\}\_\{t\}\.\(7\)After observing the rewardrtr\_\{t\}, the posterior statistics are updated online using the newly observed tuple\(𝐱t,at,rt\)\(\\mathbf\{x\}\_\{t,a\_\{t\}\},r\_\{t\}\)\. We use the same regularization termλ\\lambdaasUniScale, withλ=1\.0\\lambda=1\.0, and set the exploration factorα\\alphato 1\.0\.
4. 4\.NeuralUCB\(Zhouet al\.,[2020](https://arxiv.org/html/2605.30898#bib.bib58)\): We implement NeuralUCB based on the same MLP architecture and training configuration as the MLP baseline\. At each iteration, the action is selected according to the upper confidence bound: at=arg⁡maxa∈𝒜⁡\(f​\(𝐱t,a;𝜽t\)\+α​𝐠​\(𝐱t,a\)⊤​𝐙t−1​𝐠​\(𝐱t,a\)\),a\_\{t\}=\\arg\\max\_\{a\\in\\mathcal\{A\}\}\\left\(f\(\\mathbf\{x\}\_\{t,a\};\\boldsymbol\{\\theta\}\_\{t\}\)\+\\alpha\\sqrt\{\\mathbf\{g\}\(\\mathbf\{x\}\_\{t,a\}\)^\{\\top\}\\mathbf\{Z\}\_\{t\}^\{\-1\}\\mathbf\{g\}\(\\mathbf\{x\}\_\{t,a\}\)\}\\right\),\(8\)wheref​\(𝐱t,a;𝜽t\)f\(\\mathbf\{x\}\_\{t,a\};\\boldsymbol\{\\theta\}\_\{t\}\)denotes the neural reward predictor, and𝐠​\(𝐱t,a\)=∇𝜽f​\(𝐱t,a;𝜽t\)\\mathbf\{g\}\(\\mathbf\{x\}\_\{t,a\}\)=\\nabla\_\{\\boldsymbol\{\\theta\}\}f\(\\mathbf\{x\}\_\{t,a\};\\boldsymbol\{\\theta\}\_\{t\}\)represents the gradient feature used for uncertainty estimation\. After each interaction step, the model is updated online using all historical observations\. We set the exploration factorα\\alphato 1\.0\.

![Refer to caption](https://arxiv.org/html/2605.30898v1/x8.png)

Figure 8:Performance comparison ofUniScaleand baselines across various scaling paradigms\. The columns represent Adaptive TTS, Model Routing, and Adaptive UIS, respectively\. The top two rows display the cumulative regret versus iterations, while the bottom two rows illustrate the cost\-benefit efficiency \(Cumulative Correct counts versus Cumulative Cost in TeFLOPs\)\. Results are evaluated under both Quality\-Priority and Cost\-Sensitive reward modes\.
### B\.4Detailed Results on Main Experiment

The dynamic curves in[Figure8](https://arxiv.org/html/2605.30898#A2.F8)reveal distinct behavioral patterns for each baseline across different scaling scenarios and reward modes\.

Greedy Baseline\.This approach excels in low\-dimensional and sparse action spaces, such as Model Routing\. Its performance closely matchesUniScalein these settings, as the reward estimator accurately identifies optimal models during the warm\-up phase without requiring further exploration\. However, in high\-dimensional spaces \(TTS and UIS\), Greedy suffers from a significant exploration gap, resulting in higher cumulative regret as it fails to navigate complex configuration boundaries\.

MLP Baseline\.MLP shows competitive performance only in Adaptive TTS, where the reward landscape is relatively smooth and monotonic with respect to the scale of inference structures\. In the more complex scenarios, it exhibits high variance and instability\. The discrete performance jumps between heterogeneous model architectures lead to prolonged performance plateaus and erratic jumps in efficiency, highlighting the difficulty of fitting non\-continuous joint spaces with sparse online samples\.

k\-NN Baseline\.k\-NN is highly effective in Cost\-Sensitive mode across all scenarios\. This is because inference costs are naturally clustered in the semantic space, allowing passive similarity matching to efficiently locate low\-cost configurations\. Conversely, it underperforms in Quality\-Priority mode because the lack of an active exploration mechanism likeUniScaleprevents it from proactively discovering non\-linear, query\-specific accuracy peaks, leaving it limited by the distribution of historical samples\.

Table 7:Main performance comparison across BEST\-Route\* and UIS scenarios\. Results are reported under Cost\-Sensitive and Quality\-Priority reward modes \(excluding the 50\-step warm\-up phase\)\.MethodMetricCost\-SensitiveQuality\-PriorityBEST\-Route\*UISBEST\-Route\*UISUniScale\(ours\)Reward\(↑\)\(\\uparrow\)0\.55000\.69730\.55070\.6326Accuracy\(↑\)\(\\uparrow\)35\.0046\.2550\.6357\.50Cost\(↓\)\(\\downarrow\)1119\.848\.23537\.71303\.3OracleReward\(↑\)\(\\uparrow\)0\.62790\.83350\.65040\.7899Accuracy\(↑\)\(\\uparrow\)42\.5056\.8759\.3867\.50Cost\(↓\)\(\\downarrow\)103\.610\.43163\.9113\.9
### B\.5Additional Comparisons with BEST\-Route

To comprehensively evaluate the advantages of the UIS paradigm, we conduct an additional comparison against BEST\-Route\. To ensure a compatible evaluation, we define a BEST\-Route\* scenario that adopts a restricted search space consistent with the original BEST\-Route framework\. Specifically, the router is constrained to select a single configuration from 120 candidates \(6 models × 20 TTS actions\)\. These include six Qwen3 models \(0\.6B, 1\.7B, 4B, 8B, 14B, 32B\) and a Best\-of\-N strategy withN∈\{1,…,20\}N\\in\\\{1,\\dots,20\\\}, parameterized asQ​P∈\{1,…,20\}QP\\in\\\{1,\\dots,20\\\}withC​P=B​S=1CP=BS=1\. Furthermore, Skywork\-o1\-Open\-PRM\-Qwen\-2\.5\-1\.5B is employed as the underlying verifier for process evaluation\.

As demonstrated by the theoretical Oracle performance, BEST\-Route’s space has a significantly lower upper bound than the global UIS space\. Under the Cost\-Sensitive mode, the full UIS space achieves a notable accuracy improvement \(\+14\.37pp\) while consuming only roughly 10% of the computational cost compared to the BEST\-Route\* space\. Similarly, in the Quality\-Priority mode, the UIS space elevates the accuracy ceiling \(\+8\.12pp\) at only 3\.6% of the corresponding cost\. This confirms that relying solely on one\-dimensional test\-time scaling restricts the system’s capacity to optimize the fine\-grained quality–cost frontier\.

Notably,UniScalealso performs effectively when exploring within the BEST\-Route\* space, efficiently identifying the best available configurations given the spatial constraints\. However, the framework’s full potential is uniquely unlocked when operating in the joint UIS space\. In the Cost\-Sensitive mode,UniScaleoperating in the full UIS space achieves a double\-digit accuracy gain \(\+11\.25pp\) while eliminating over 95% of the inference overhead compared to its performance in the restricted space\. In the Quality\-Priority mode, the unified approach yields an additional accuracy boost \(\+6\.87pp\) while simultaneously reducing the computational cost by more than 60%\. These empirical results validate that our joint optimization fundamentally expands the efficiency boundaries beyond earlier routing paradigms\.

### B\.6Generalization Across Diverse Tasks

Table 8:Main performance comparison on the coding task under the Cost\-Sensitive reward mode within the UIS scenario\.MethodReward\(↑\)\(\\uparrow\)Accuracy\(↑\)\(\\uparrow\)Cost\(↓\)\(\\downarrow\)k\-NN0\.794353\.1314039\.5UniScale0\.812552\.505619\.6Relative Change\+0\.0182\-0\.63pp\-59\.97%To validate the task\-agnostic generalizability ofUniScale, we conduct an empirical evaluation on a coding benchmark as a representative case study\. For this setup, the candidate model pool is selected as a subset of those in[Table1](https://arxiv.org/html/2605.30898#S4.T1), specifically comprising Qwen3\-4B and Qwen3\-8B, while the available TTS strategies and the verifier remain identical to our primary experiments\. The evaluation dataset comprises 210 instances sampled from LiveCodeBench\(Jainet al\.,[2025](https://arxiv.org/html/2605.30898#bib.bib61)\)\. Following the official evaluation paradigm, it consists of 77 standard\-input and 133 call\-based instances, classified into 91 easy and 119 medium problems\. These 210 instances directly correspond to the experimental workflow, which consists of a 50\-step warm\-up followed by 160 policy\-driven iterations\. All trials are evaluated under the Cost\-Sensitive reward mode within the full joint UIS optimization space\.

The empirical comparisons are reported in[Table8](https://arxiv.org/html/2605.30898#A2.T8)\. The results clearly highlightUniScale’s exceptional data efficiency and orchestration capability under a completely different task profile\. Compared to the competitive k\-NN baseline,UniScaleyields a remarkable improvement in operational efficiency, slashing the total computational cost by \-59\.97%\. Although this stringent cost restriction leads to a marginal degradation in absolute accuracy \(\-0\.63pp\), the joint optimization mechanism effectively balances the quality–cost trade\-off, culminating in an overall gain of \+0\.0182 in mean reward\. This successful alignment under a non\-mathematical task configuration firmly substantiates thatUniScale’s core scheduling logic is inherently task\-agnostic\. We leave the extensive evaluation and methodological scaling toward broader open\-ended task environments to future work\.

## Appendix CDetailed Results on Ablation Study

![Refer to caption](https://arxiv.org/html/2605.30898v1/x9.png)

Figure 9:Performance comparison betweenUniScaleand a non\-semantic baseline \(w/o Sem\.\) across different reward modes\. The left panels display cumulative regret versus iterations, while the right panels illustrate cumulative correct counts versus cumulative inference cost \(TeFLOPs\)\.### C\.1Detailed Results for Effectiveness of Action Semantic Representations

[Figure9](https://arxiv.org/html/2605.30898#A3.F9)provides the comprehensive performance visualizations for action semantic representations across both Cost\-Sensitive and Quality\-Priority modes\.

Learning Trajectory \(Left Panels\)\.The cumulative regret curves illustrate that the advantage of action semantics emerges immediately following the warm\-up phase\. The consistently lower slope ofUniScalecompared to thew/o Sem\.baseline confirms that mapping configurations into a unified semantic space allows for efficient cross\-action knowledge transfer, reducing the exploration overhead in high\-dimensional action spaces\.

Marginal Cost\-Benefit \(Right Panels\)\.The efficiency curves visualize the trade\-off range discussed in[Section5](https://arxiv.org/html/2605.30898#S5)\. Notably, in Cost\-Sensitive mode,UniScaleexhibits a near\-vertical ascent in cumulative correctness at extremely low cost levels\. In Quality\-Priority mode, the curves demonstrate thatUniScaleachieves a higher performance ceiling than the baseline, proving that semantic awareness allows the system to identify high\-quality configurations that are otherwise difficult to locate via independent one\-hot encoding\.

![Refer to caption](https://arxiv.org/html/2605.30898v1/x10.png)

Figure 10:Robustness comparison betweenUniScaleand k\-NN under non\-stationary drifts\. The top row displays cumulative regret versus iterations, and the bottom row shows cumulative correct counts versus inference cost \(TeFLOPs\)\. Environmental drifts are introduced at the 51st iteration, encompassing action space dynamics \(Model Addition/Removal\) and reward mode shifts \(between Quality\-Priority and Cost\-Sensitive\)\.
### C\.2Detailed Results for Robustness to Non\-stationary Environmental Drifts

[Figure10](https://arxiv.org/html/2605.30898#A3.F10)illustrates the dynamic performance evolution ofUniScaleand k\-NN across four typical non\-stationary environments\. The online adaptability of the framework is intuitively reflected through the changes in the slopes of the cumulative regret curves \(top row\) and efficiency curves \(bottom row\)\. During the warm\-up phase \(iterations 1–50\), the cumulative regret slopes are nearly identical and rise consistently across all subplots, reflecting the parity in environmental perception when both algorithms employ the same random exploration strategy\. Upon reaching the environmental drift point at the 51st iteration, their decision trajectories diverge sharply:

Action Space Dynamics\.In the Model Additional environment \(under Cost\-Sensitive mode\),UniScalerapidly identifies and exploits the newly introduced low\-cost Qwen\-0\.6B and 1\.7B nodes\. Consequently, its cumulative regret slope flattens significantly immediately after the drift, whereas the reduction in the slope of k\-NN’s regret growth lags behind, indicating weaker adaptability to action space expansion\. In the Model Removal environment, the loss of low\-cost nodes causes a sudden spike in the regret slopes for both methods\. However,UniScaleleverages policy recalibration within the semantic space to quickly bring its slope back down to a level lower than that of the warm\-up phase\. In contrast, the regret slope for k\-NN remains consistently higher than its initial warm\-up rate\.

Reward Mode Shifts\.When transitioning from Quality\-Priority to Cost\-Sensitive,UniScaleinitially maintains a regret slope slightly higher than that of k\-NN due to the activation of its re\-exploration mechanism\. However, it eventually converges to a much flatter slope than the baseline, allowing its cumulative regret to overtake k\-NN before the 130th iteration\. In the transition from Cost\-Sensitive to Quality\-Priority,UniScalesimilarly demonstrates agile adaptability\. Its regret slope stabilizes rapidly after a brief fluctuation, proving the algorithm’s ability to precisely locate and smoothly migrate to high\-performance configuration regions, thereby effectively compensating for the performance loss caused by the mode switch\.

Collectively, these results demonstrate thatUniScalecan consistently select superior UIS configurations through wide\-range, fine\-grained quality–cost trade\-offs in dynamic and non\-stationary production environments, thereby maximizing the overall efficacy of the UIS paradigm\.

![Refer to caption](https://arxiv.org/html/2605.30898v1/x11.png)

Figure 11:Sensitivity analysis of the exploration factorα\\alpha\. The left panels show the cumulative regret over iterations, while the right panels illustrate the cumulative correct counts versus cumulative inference cost \(TeFLOPs\)\. Results are compared across Cost\-Sensitive and Quality\-Priority modes\.α=1\\alpha=1represents the default configuration ofUniScale, whileα=0\\alpha=0corresponds to a purely Greedy strategy\.
### C\.3Sensitivity analysis of the exploration factorα\\alpha

[Figure11](https://arxiv.org/html/2605.30898#A3.F11)illustrates the impact of the exploration factorα\\alphaon algorithm performance\.α\\alphagoverns the trade\-off between exploiting known high\-reward configurations and exploring uncertain regions of the action space\.

α=0\\alpha=0\(Purely Greedy\)\.In the left panel, the cumulative regret curves forα=0\\alpha=0\(dotted line\) exhibit a higher growth rate following the warm\-up phase\. This suggests that without an active exploration mechanism, the system becomes trapped in local optima, failing to discover higher\-reward actions within the UIS space and resulting in suboptimal efficiency boundaries in the right panel\.

α=10\\alpha=10\(Excessive Exploration\)\.While covering more of the search space, the left panel shows thatα=10\\alpha=10consistently maintains a high level of cumulative regret\. The efficiency curves in the right panel reveal a significant exploration overhead, where the algorithm consumes excessive computational budget on suboptimal configurations, leading to a slower ascent in cumulative correctness compared toα=1\\alpha=1\.

α=1\\alpha=1\(Balanced Exploration\)\.Across all reward modes,α=1\\alpha=1\(solid line\) consistently achieves the lowest cumulative regret \(left panel\) and the steepest efficiency trajectory \(right panel\)\. These results confirm that a balanced, principled exploration intensity is essential for accelerating policy optimization and achieving superior wide\-range quality–cost trade\-offs\.

Table 9:Main performance comparison across different PRMs under Cost\-Sensitive and Quality\-Priority reward modes \(excluding the 50\-step warm\-up phase\)\. Specifically, PRM\-1\.5B and PRM\-7B denote configurations using Skywork\-o1\-Open\-PRM\-Qwen\-2\.5\-1\.5B and Skywork\-o1\-Open\-PRM\-Qwen\-2\.5\-7B as the verifiers, respectively\.Bestresults are highlighted\.MethodMetricCost\-SensitiveQuality\-PriorityUIS \(PRM\-7B\)UIS \(PRM\-1\.5B\)UIS \(PRM\-7B\)UIS \(PRM\-1\.5B\)k\-NNReward\(↑\)\(\\uparrow\)0\.66150\.65420\.61280\.5740Accuracy\(↑\)\(\\uparrow\)41\.2539\.3755\.6343\.75Cost\(↓\)\(\\downarrow\)249\.8148\.71235\.3996\.2UniScale\(ours\)Reward\(↑\)\(\\uparrow\)0\.70920\.69730\.65620\.6326Accuracy\(↑\)\(\\uparrow\)48\.1346\.2563\.7557\.50Cost\(↓\)\(\\downarrow\)79\.948\.21485\.81303\.3
### C\.4Sensitivity to the Underlying Verifier

To verify the robustness and compatibility of the framework within the adaptive UIS scenario, we evaluateUniScaleagainst the k\-NN baseline across different Process Reward Model \(PRM\-7BandPRM\-1\.5B\), as detailed in[Table9](https://arxiv.org/html/2605.30898#A3.T9)\. The empirical results demonstrate thatUniScaleconsistently delivers superior trade\-off efficiency while highlighting distinct behaviors across varying verifier capacities:

Cost\-Sensitive Mode\.Under this configuration,UniScaleachieves a remarkable reduction in inference overhead while simultaneously improving accuracy over the baseline\. Specifically, it cuts the computational cost significantly \(\-68%\) for both thePRM\-7BandPRM\-1\.5Bverifiers\. When comparingUniScale’s performance across the two PRM scales in this mode \(where LLM inference is lightweight\), the additional cost of using the larger verifier is more pronounced \(cost \+66%, accuracy \+1\.88 pp\)\. This highlightsUniScale’s capability to effectively steer policies toward low\-cost configuration spaces under constrained budgets\.

Quality\-Priority Mode\.When the system shifts toward prioritizing generation accuracy,UniScaleeffectively pushes the performance ceiling of the UIS paradigm\. Compared to the k\-NN baseline, it elevates the evaluation accuracy \(\+8\.12 pp\) for thePRM\-7Bverifier and yields a significant absolute improvement \(\+13\.75 pp\) for the PRM\-1\.5B verifier\. Furthermore, scaling up the underlying PRM withinUniScalein this mode \(where LLM inference dominates\) results in a modest cost increase \(\+14%\) alongside a significant accuracy improvement \(\+6\.25 pp\)\. Although prioritizing quality inherently drives up the absolute test\-time cost,UniScaleconsistently maintains a superior overall reward\-cost trade\-off compared to the baseline\.

Overall, these results show that while stronger PRMs can further enhance performance,UniScaleremains highly effective even with weaker verifiers, indicating limited sensitivity to PRM quality and robustness to verification noise\.

Table 10:Latency breakdown ofUniScalecomponents in the UIS space \(Quality\-Priority mode\)\. Results show the cumulative execution time across 160 post\-warm\-up iterations\.MetricQuery EmbeddingBandit OverheadLLM InferencePRM VerificationTTS OverheadsTotal TimeTime \(s\)16\.793\.151941\.84175\.3149\.232186\.31Ratio0\.77%0\.14%88\.82%8\.02%2\.25%100\.00%
### C\.5System Overhead and Latency Breakdown

To assess the practical deployment efficiency ofUniScale, we analyze the cumulative latency across internal components\. In[Table10](https://arxiv.org/html/2605.30898#A3.T10), Query Embedding corresponds to the semantic mapping defined in[Section3\.1](https://arxiv.org/html/2605.30898#S3.SS1)\. Bandit Overhead encompasses both the reward estimator update in[Section3\.1](https://arxiv.org/html/2605.30898#S3.SS1)and the action acquisition step using the LinUCB algorithm in[Section3\.2](https://arxiv.org/html/2605.30898#S3.SS2)\. Within the execution phase outlined in[Section3\.3](https://arxiv.org/html/2605.30898#S3.SS3), LLM Inference maps to State Generation, PRM Verification corresponds to Process Verification, and TTS Overheads encapsulate the remaining operational steps\.

Crucially, the total online overhead introduced byUniScale’s core orchestration modules, specifically the combined latency of Query Embedding and Bandit Overhead, accounts for a mere 0\.91% of the total execution time\. This exceptional efficiency is primarily achieved through two mechanisms: first, action semantic embeddings are pre\-computed offline and excluded from the runtime overhead, meaning that real\-time processing only requires a query embedding process to form the final joint representation of dimensiond=2048d=2048; second, we utilize the Sherman\-Morrison formula for rank\-1 bandit updates, which requires only𝒪​\(d2\)\\mathcal\{O\}\(d^\{2\}\)operations instead of an explicit𝒪​\(d3\)\\mathcal\{O\}\(d^\{3\}\)matrix inversion\. This confirms that the framework components introduced byUniScaleimpose a negligible computational footprint relative to the core generative process\.

## Appendix DMore Details onUniScaleAlgorithm

### D\.1More Details on Principled Uncertainty Measure

This section provides a formal derivation of the principled uncertainty metric𝐱t,a⊤​𝐀t−1​𝐱t,a\\sqrt\{\\mathbf\{x\}\_\{t,a\}^\{\\top\}\\mathbf\{A\}\_\{t\}^\{\-1\}\\mathbf\{x\}\_\{t,a\}\}\(also denoted as‖𝐱t,a‖𝐀t−1\\\|\\mathbf\{x\}\_\{t,a\}\\\|\_\{\\mathbf\{A\}\_\{t\}^\{\-1\}\}\), alongside its physical interpretation within the UIS space\.

Mathematical Derivation\.To establish a rigorous foundation for the reward prediction mechanism inUniScale, we begin by characterizing the underlying reward generating process\.

###### Assumption D\.1\(Linear Reward and sub\-Gaussian Noise\)\.

There exists an unknown true parameter vector𝜽∗∈ℝd\\boldsymbol\{\\theta\}^\{\*\}\\in\\mathbb\{R\}^\{d\}such that for any actionaawith its feature vector𝐱t,a\\mathbf\{x\}\_\{t,a\}, the observed rewardrt,ar\_\{t,a\}satisfies a linear relationship:

rt,a=𝐱t,a⊤​𝜽∗\+ηt,r\_\{t,a\}=\\mathbf\{x\}\_\{t,a\}^\{\\top\}\\boldsymbol\{\\theta\}^\{\*\}\+\\eta\_\{t\},\(9\)whereηt\\eta\_\{t\}represents aσ\\sigma\-sub\-Gaussian random noise reflecting the stochastic nature of the environment\.

Based on this linear assumption, we can utilize ridge regression to estimate the unknown vector𝜽∗\\boldsymbol\{\\theta\}^\{\*\}from historical observations\.

###### Definition D\.2\(Ridge Regression Estimator\)\.

Given the history of observations up to timet−1t\-1, denoted asℋt−1=\{\(𝐱τ,aτ,rτ\)\}τ=1t−1\\mathcal\{H\}\_\{t\-1\}=\\\{\(\\mathbf\{x\}\_\{\\tau,a\_\{\\tau\}\},r\_\{\\tau\}\)\\\}\_\{\\tau=1\}^\{t\-1\}, we define the Gram matrix𝐀t\\mathbf\{A\}\_\{t\}and the cumulative reward\-weighted vector𝐛t\\mathbf\{b\}\_\{t\}as:

𝐀t=λ​𝐈\+∑τ=1t−1𝐱τ,aτ​𝐱τ,aτ⊤,\\mathbf\{A\}\_\{t\}=\\lambda\\mathbf\{I\}\+\\sum\_\{\\tau=1\}^\{t\-1\}\\mathbf\{x\}\_\{\\tau,a\_\{\\tau\}\}\\mathbf\{x\}\_\{\\tau,a\_\{\\tau\}\}^\{\\top\},\(10\)𝐛t=∑τ=1t−1rτ​𝐱τ,aτ,\\mathbf\{b\}\_\{t\}=\\sum\_\{\\tau=1\}^\{t\-1\}r\_\{\\tau\}\\mathbf\{x\}\_\{\\tau,a\_\{\\tau\}\},\(11\)whereλ\>0\\lambda\>0is the regularization parameter\. The ridge regression estimate of the parameter vector𝜽\\boldsymbol\{\\theta\}, denoted as𝜽^t\\hat\{\\boldsymbol\{\\theta\}\}\_\{t\}, is given by:

𝜽^t=𝐀t−1​𝐛t\.\\hat\{\\boldsymbol\{\\theta\}\}\_\{t\}=\\mathbf\{A\}\_\{t\}^\{\-1\}\\mathbf\{b\}\_\{t\}\.\(12\)

To quantify the uncertainty of this estimate, we introduce the following norm to measure distances in the feature\-weighted space\.

###### Definition D\.3\(Mahalanobis Norm\)\.

For a positive definite matrix𝐀\\mathbf\{A\}, the weighted norm of a vector𝐳\\mathbf\{z\}is defined as‖𝐳‖𝐀=𝐳⊤​𝐀𝐳\\\|\\mathbf\{z\}\\\|\_\{\\mathbf\{A\}\}=\\sqrt\{\\mathbf\{z\}^\{\\top\}\\mathbf\{A\}\\mathbf\{z\}\}\.

Building upon linear bandit theory\(Abbasi\-Yadkoriet al\.,[2011](https://arxiv.org/html/2605.30898#bib.bib17)\), the relationship between our estimate𝜽^t\\hat\{\\boldsymbol\{\\theta\}\}\_\{t\}and the true parameter𝜽∗\\boldsymbol\{\\theta\}^\{\*\}can be bounded within a high\-probability region\.

###### Lemma D\.4\(Confidence Ellipsoid\)\.

Under Assumption[D\.1](https://arxiv.org/html/2605.30898#A4.Thmtheorem1), for anyδ∈\(0,1\)\\delta\\in\(0,1\), the true parameter𝛉∗\\boldsymbol\{\\theta\}^\{\*\}resides within a confidence ellipsoidℰt\\mathcal\{E\}\_\{t\}centered at𝛉^t\\hat\{\\boldsymbol\{\\theta\}\}\_\{t\}with probability at least1−δ1\-\\delta:

ℰt=\{𝜽:‖𝜽^t−𝜽‖𝐀t≤βt\},\\mathcal\{E\}\_\{t\}=\\left\\\{\\boldsymbol\{\\theta\}:\\\|\\hat\{\\boldsymbol\{\\theta\}\}\_\{t\}\-\\boldsymbol\{\\theta\}\\\|\_\{\\mathbf\{A\}\_\{t\}\}\\leq\\beta\_\{t\}\\right\\\},\(13\)whereβt\\beta\_\{t\}is a scaling factor that depends on the time stepttand the desired confidence levelδ\\delta\.

By projecting this ellipsoid onto the direction of a new action’s feature vector, we obtain a formal bound for the reward prediction error\.

###### Proposition D\.5\(Reward Deviation Bound\)\.

For any candidate feature vector𝐱t,a\\mathbf\{x\}\_\{t,a\}, the deviation between the predicted reward𝐱t,a⊤​𝛉^t\\mathbf\{x\}\_\{t,a\}^\{\\top\}\\hat\{\\boldsymbol\{\\theta\}\}\_\{t\}and the expected true reward𝐱t,a⊤​𝛉∗\\mathbf\{x\}\_\{t,a\}^\{\\top\}\\boldsymbol\{\\theta\}^\{\*\}is bounded by the uncertainty of the action in the current semantic space:

\|𝐱t,a⊤​𝜽^t−𝐱t,a⊤​𝜽∗\|≤‖𝐱t,a‖𝐀t−1​‖𝜽^t−𝜽∗‖𝐀t≤βt​𝐱t,a⊤​𝐀t−1​𝐱t,a\|\\mathbf\{x\}\_\{t,a\}^\{\\top\}\\hat\{\\boldsymbol\{\\theta\}\}\_\{t\}\-\\mathbf\{x\}\_\{t,a\}^\{\\top\}\\boldsymbol\{\\theta\}^\{\*\}\|\\leq\\\|\\mathbf\{x\}\_\{t,a\}\\\|\_\{\\mathbf\{A\}\_\{t\}^\{\-1\}\}\\\|\\hat\{\\boldsymbol\{\\theta\}\}\_\{t\}\-\\boldsymbol\{\\theta\}^\{\*\}\\\|\_\{\\mathbf\{A\}\_\{t\}\}\\leq\\beta\_\{t\}\\sqrt\{\\mathbf\{x\}\_\{t,a\}^\{\\top\}\\mathbf\{A\}\_\{t\}^\{\-1\}\\mathbf\{x\}\_\{t,a\}\}\(14\)

###### Proof\.

This follows from the generalized Cauchy\-Schwarz inequality,\|𝐮⊤​𝐯\|≤‖𝐮‖𝐀−1​‖𝐯‖𝐀\|\\mathbf\{u\}^\{\\top\}\\mathbf\{v\}\|\\leq\\\|\\mathbf\{u\}\\\|\_\{\\mathbf\{A\}^\{\-1\}\}\\\|\\mathbf\{v\}\\\|\_\{\\mathbf\{A\}\}, by setting𝐮=𝐱t,a\\mathbf\{u\}=\\mathbf\{x\}\_\{t,a\}and𝐯=𝜽^t−𝜽∗\\mathbf\{v\}=\\hat\{\\boldsymbol\{\\theta\}\}\_\{t\}\-\\boldsymbol\{\\theta\}^\{\*\}\. ∎

Physical Interpretation\.This exploration term carries explicit semantic meaning within the UIS space:

1. 1\.Data\-Driven Exploration Decay: The Gram matrix𝐀t\\mathbf\{A\}\_\{t\}encodes the density of historical samples in the semantic space\. When the system frequently samples a specific UIS configuration, the eigenvalues of𝐀t\\mathbf\{A\}\_\{t\}along the corresponding feature dimensions increase\.
2. 2\.Semantic Knowledge Transfer: SinceUniScaleemploys a Transformer encoder to extract action semantic features𝐬a\\mathbf\{s\}\_\{a\}, the exploration term‖𝐱t,a‖𝐀t−1\\\|\\mathbf\{x\}\_\{t,a\}\\\|\_\{\\mathbf\{A\}\_\{t\}^\{\-1\}\}can recognize actions with structural similarities\. For instance, even if a specific UIS configuration has never been selected, the system can automatically infer its uncertainty based on its proximity to previously explored actions in the semantic embedding space \(e\.g\., similar model specifications or TTS strategies\), thereby accelerating convergence\.
3. 3\.Robustness under Environmental Drift: In the event of environmental drift, newly emerging feature vectors𝐬qt\\mathbf\{s\}\_\{q\_\{t\}\}will have low coverage in the historical data\. This causes‖𝐱t,a‖𝐀t−1\\\|\\mathbf\{x\}\_\{t,a\}\\\|\_\{\\mathbf\{A\}\_\{t\}^\{\-1\}\}to increase instantaneously, triggering a re\-exploration mechanism that allows the system to rapidly adapt to the new environment\.

![Refer to caption](https://arxiv.org/html/2605.30898v1/x12.png)

Figure 12:Distribution of verifier scores for correctness assessment\. Correct answers \(blue\) cluster near 1\.0 with higher confidence, while incorrect answers \(red\) show a flatter distribution\.
### D\.2Verifier Scores as an Indicator of Correctness

Statistical analysis based on 105840 large\-scale samples \(encompassing 210 questions across 168 configurations with 3 sampling iterations each\) reveals that verifier scores exhibit significant distributional discretizations across different correctness categories, as shown in[Figure12](https://arxiv.org/html/2605.30898#A4.F12)\. Correct answers demonstrate a pronounced high\-confidence clustering effect, characterized by a high mean score of 0\.8818 and a narrow standard deviation of 0\.1830, with samples highly skewed toward a narrow frequency band near 1\.0\. This reflects the verifier’s consistent preference and stable confidence regarding correct logical paths\. In contrast, the scoring distribution for incorrect answers is notably flatter and more dispersed, with the mean decreasing to 0\.5961 and the standard deviation expanding to 0\.2934, indicating substantially higher uncertainty and volatility\. This systematic shift in distribution morphology suggests that when encountering incorrect answers, the verifier’s scoring behavior is driven by uncertainty\-induced random diffusion rather than systematic high\-score misjudgment\. These distributional phenomena are further corroborated by robust quantitative metrics: the point\-biserial correlation coefficient between Verifier Score and answer correctness reaches 0\.5061 \(P<0\.001P<0\.001\), indicating a significant and moderately strong statistical relationship, while the corresponding AUROC \(Area Under the Receiver Operating Characteristic curve\) of 0\.8067 confirms the score’s reliable discriminative capacity\. Consequently, the verifier score provides a stable and exploitable signal for overall ranking and selection, effectively distinguishing correctness\.

### D\.3Unified Inference Scaling Cost Model

To evaluate the resource consumption of theUniScaleframework, we propose a cost model based on equivalent FLOPs \(eFLOPs\)\(Sadhukhanet al\.,[2025](https://arxiv.org/html/2605.30898#bib.bib21)\)\. This section formalizes the derivation of the total inference costCUISC\_\{\\mathrm\{UIS\}\}through a series of definitions, assumptions, and propositions\.

###### Definition D\.6\(Equivalent FLOPs, eFLOPs\)\.

To unify compute\-bound and memory\-bound overheads in LLM inference, we define eFLOPs as:

eFLOPs=Ccomp\+Cmem⋅I,\\mathrm\{eFLOPs\}=C\_\{\\mathrm\{comp\}\}\+C\_\{\\mathrm\{mem\}\}\\cdot I,\(15\)whereCcompC\_\{\\mathrm\{comp\}\}denotes the number of floating\-point operations,CmemC\_\{\\mathrm\{mem\}\}represents the memory access volume in bytes,IIdenotes the arithmetic intensity of the hardware \(e\.g\., NVIDIA A800 80GB SXM GPU\), which is defined as the ratio between peak FLOPS and memory bandwidth\.

###### Definition D\.7\(Intermediate State\)\.

An intermediate state during the inference process is denoted assi,j,ks\_\{i,j,k\}, representing thekk\-th state at thejj\-th step within theii\-th subtree\. Specifically, each statesi,j,ks\_\{i,j,k\}is characterized by the following length attributes:

1. 1\.Incremental Length\(Δ​Li,j,k\\Delta L\_\{i,j,k\}\): The number of tokens generated bysi,j,ks\_\{i,j,k\}during stepjj\.
2. 2\.Initial Context Length\(Linit\(i,j,k\)L^\{\(i,j,k\)\}\_\{\\mathrm\{init\}\}\): The total length of the prefix inherited from its ancestors: Linit\(i,j,k\)=Lin\+∑j′<jΔ​Li,j′,kj′,L^\{\(i,j,k\)\}\_\{\\mathrm\{init\}\}=L\_\{\\mathrm\{in\}\}\+\\sum\_\{j^\{\\prime\}<j\}\\Delta L\_\{i,j^\{\\prime\},k\_\{j^\{\\prime\}\}\},\(16\)wherekj′k\_\{j^\{\\prime\}\}denotes the index of the ancestor state at stepj′j^\{\\prime\}on the unique path tosi,j,ks\_\{i,j,k\}\.
3. 3\.Final Context Length\(Lfinal\(i,j,k\)L^\{\(i,j,k\)\}\_\{\\mathrm\{final\}\}\): The total length after completing stepjj, defined as Lfinal\(i,j,k\)=Linit\(i,j,k\)\+Δ​Li,j,k\.L^\{\(i,j,k\)\}\_\{\\mathrm\{final\}\}=L^\{\(i,j,k\)\}\_\{\\mathrm\{init\}\}\+\\Delta L\_\{i,j,k\}\.\(17\)

Table 11:Architectural parameters for the candidate models and verifiers, including the Qwen3 series\(Yanget al\.,[2025](https://arxiv.org/html/2605.30898#bib.bib22)\)and the Skywork PRM series\(Heet al\.,[2024](https://arxiv.org/html/2605.30898#bib.bib51)\)\.Model IdentifierPP\(B\)NlayerN\_\{\\mathrm\{layer\}\}NqN\_\{\\mathrm\{q\}\}NkvN\_\{\\mathrm\{kv\}\}dheadd\_\{\\mathrm\{head\}\}precp\\mathrm\{prec\}\_\{\\mathrm\{p\}\}preckv\\mathrm\{prec\}\_\{\\mathrm\{kv\}\}Candidate ModelsQwen3\-0\.6B0\.752816812822Qwen3\-1\.7B2\.032816812822Qwen3\-4B4\.023632812822Qwen3\-8B8\.193632812822Qwen3\-14B14\.774040812822Qwen3\-32B32\.766464812822VerifiersSkywork\-o1\-Open\-PRM\-Qwen\-2\.5\-1\.5B1\.542812212822Skywork\-o1\-Open\-PRM\-Qwen\-2\.5\-7B7\.612828412822To maintain theoretical tractability while capturing the advanced characteristics of modern inference engines \(e\.g\., vLLM\), we establish the following assumptions:

###### Assumption D\.8\(Atomic Cost Components\)\.

The inference cost of LLM is fundamentally decoupled into four atomic components\. Given the batch sizebb, the model\-specific architectural parameters including total parameter countPP, number of layersNlayerN\_\{\\mathrm\{layer\}\}, number of query headsNqN\_\{\\mathrm\{q\}\}, number of KV headsNkvN\_\{\\mathrm\{kv\}\}, and head dimensiondheadd\_\{\\mathrm\{head\}\}\(detailed configurations for evaluated models are provided in[Table11](https://arxiv.org/html/2605.30898#A4.T11)\), and the storage precisionprecp\\mathrm\{prec\}\_\{\\mathrm\{p\}\}andpreckv\\mathrm\{prec\}\_\{\\mathrm\{kv\}\}, we define the following components:

1. 1\.Parameter Computation \(fp​\_​compf\_\{\\mathrm\{p\\\_comp\}\}\):The floating\-point operations \(FLOPs\) required to process a single token through the linear layers: fp​\_​comp​\(b\)=2​P⋅b,f\_\{\\mathrm\{p\\\_comp\}\}\(b\)=2P\\cdot b,\(18\)where the factor of22accounts for theFused Multiply\-Add \(FMA\)operation, representing one multiplication and one addition for each parameter per token\.
2. 2\.Parameter Memory Access \(fp​\_​memf\_\{\\mathrm\{p\\\_mem\}\}\):The volume of data \(Bytes\) moved when loading the full model parameters from memory: fp​\_​mem=P⋅precp\.f\_\{\\mathrm\{p\\\_mem\}\}=P\\cdot\\mathrm\{prec\}\_\{\\mathrm\{p\}\}\.\(19\)
3. 3\.Attention Computation \(fa​\_​compf\_\{\\mathrm\{a\\\_comp\}\}\):The FLOPs required for a single query token to compute attention scores and weighted sums against a context of lengthll: fa​\_​comp​\(b,l\)=4⋅b⋅l⋅Nlayer⋅Nq⋅dhead,f\_\{\\mathrm\{a\\\_comp\}\}\(b,l\)=4\\cdot b\\cdot l\\cdot N\_\{\\mathrm\{layer\}\}\\cdot N\_\{\\mathrm\{q\}\}\\cdot d\_\{\\mathrm\{head\}\},\(20\)where the factor of44accounts for two distinct matrix multiplication operations within the attention mechanism \(𝐐⋅𝐊⊤\\mathbf\{Q\\cdot K^\{\\top\}\}and𝐒⋅𝐕\\mathbf\{S\\cdot V\}\), each contributing 2 FLOPs per element\-wise dimension\.
4. 4\.Attention Memory Access \(fa​\_​memf\_\{\\mathrm\{a\\\_mem\}\}\):The volume of data \(Bytes\) corresponding to the KV cache of lengthll: fa​\_​mem​\(b,l\)=2⋅b⋅l⋅Nlayer⋅Nkv⋅dhead⋅preckv,f\_\{\\mathrm\{a\\\_mem\}\}\(b,l\)=2\\cdot b\\cdot l\\cdot N\_\{\\mathrm\{layer\}\}\\cdot N\_\{\\mathrm\{kv\}\}\\cdot d\_\{\\mathrm\{head\}\}\\cdot\\mathrm\{prec\}\_\{\\mathrm\{kv\}\},\(21\)where the factor of22accounts for Key Cache and Value Cache\.

###### Assumption D\.9\(Advanced Engine Features\)\.

We assume the inference engine supports the following advanced features:

1. 1\.Prefix Sharing: Multiple concurrent reasoning branches can logically share the same physical KV cache of their common prefix to minimize memory redundancy\.
2. 2\.Prefix Caching: KV caches for common prefixes are automatically retained in memory and reused across discrete inference steps to avoid redundant computation\.
3. 3\.Dynamic Batching: The engine supports real\-time adjustment of the effective batch size as individual sequences within a reasoning step terminate at different lengths\.

Note that the optimizations of prefix sharing and prefix caching are limited to generative architectures \(e\.g\., modelMtM\_\{t\}\), whereas they remain inapplicable to discriminative models such as the verifier\.

Under the support of dynamic batching \(Assumption[D\.9](https://arxiv.org/html/2605.30898#A4.Thmtheorem9)\), we can now formally define the time\-varying characteristics of tree\-based decoding\.

###### Definition D\.10\(Effective Batch Sizebj​\(n\)b\_\{j\}\(n\)\)\.

In a step\-synchronous reasoning stepjj, we define the effective batch size at token positionnnas

bj​\(n\)=∑i,k𝟏​\[Δ​Li,j,k≥n\]\.b\_\{j\}\(n\)=\\sum\_\{i,k\}\\mathbf\{1\}\[\\Delta L\_\{i,j,k\}\\geq n\]\.\(22\)

###### Definition D\.11\(Average Context LengthL¯j​\(n\)\\bar\{L\}\_\{j\}\(n\)\)\.

In stepjj, we define the average context length at token positionnnas

L¯j​\(n\)=1bj​\(n\)​∑i,k\(Linit\(i,j,k\)\+n\)⋅𝟏​\[Δ​Li,j,k≥n\]\.\\bar\{L\}\_\{j\}\(n\)=\\frac\{1\}\{b\_\{j\}\(n\)\}\\sum\_\{i,k\}\(L^\{\(i,j,k\)\}\_\{\\mathrm\{init\}\}\+n\)\\cdot\\mathbf\{1\}\[\\Delta L\_\{i,j,k\}\\geq n\]\.\(23\)

###### Definition D\.12\(Maximum Decoding StepNjN\_\{j\}\)\.

In stepjj, we define the maximum decoding step as

Nj=maxi,k⁡Δ​Li,j,k\.N\_\{j\}=\\max\_\{i,k\}\\Delta L\_\{i,j,k\}\.\(24\)

Guided by the eFLOPs principle \(Definition[D\.6](https://arxiv.org/html/2605.30898#A4.Thmtheorem6)\), we derive the costs for each inference stage by identifying their unique operational characteristics\.

###### Proposition D\.13\(Prefill Phase Cost\)\.

Given an input sequence of lengthLinL\_\{\\mathrm\{in\}\}, the costCprefill​\(1,Lin\)C\_\{\\mathrm\{prefill\}\}\(1,L\_\{\\mathrm\{in\}\}\)for the shared prefix processing is defined as:

Cprefill​\(1,Lin\)=Lin⋅fp​\_​comp​\(1\)\+∑i=1Linfa​\_​comp​\(1,i\)\+\(fp​\_​mem\+fa​\_​mem​\(1,Lin\)\)⋅IC\_\{\\mathrm\{prefill\}\}\(1,L\_\{\\mathrm\{in\}\}\)=L\_\{\\mathrm\{in\}\}\\cdot f\_\{\\mathrm\{p\\\_comp\}\}\(1\)\+\\sum\_\{i=1\}^\{L\_\{\\mathrm\{in\}\}\}f\_\{\\mathrm\{a\\\_comp\}\}\(1,i\)\+\\left\(f\_\{\\mathrm\{p\\\_mem\}\}\+f\_\{\\mathrm\{a\\\_mem\}\}\(1,L\_\{\\mathrm\{in\}\}\)\\right\)\\cdot I\(25\)

###### Proof\.

Under prefix sharing mechanism \(Assumption[D\.9](https://arxiv.org/html/2605.30898#A4.Thmtheorem9)\), the prefill phase processes the initial prompt as a single contiguous batch \(b=1b=1\)\.

- •Computation: The linear projections are executed for allLinL\_\{\\mathrm\{in\}\}tokens \(Lin⋅fp​\_​comp​\(1\)L\_\{\\mathrm\{in\}\}\\cdot f\_\{\\mathrm\{p\\\_comp\}\}\(1\)\)\. Due to the causal mask, attention FLOPs follow a discrete summation over the growing context:∑i=1Linfa​\_​comp​\(1,i\)\\sum\_\{i=1\}^\{L\_\{\\mathrm\{in\}\}\}f\_\{\\mathrm\{a\\\_comp\}\}\(1,i\)\.
- •Memory Access: Model weights are loaded exactly once \(fp​\_​memf\_\{\\mathrm\{p\\\_mem\}\}\)\. The resulting KV cache for the entire prompt is then serialized to memory \(fa​\_​mem​\(1,Lin\)f\_\{\\mathrm\{a\\\_mem\}\}\(1,L\_\{\\mathrm\{in\}\}\)\)\.

∎

###### Proposition D\.14\(Incremental Decoding Cost\)\.

The total decoding cost for stepjjacrossNjN\_\{j\}token positions is:

Cinc\(j\)=∑n=1Nj\(fp​\_​comp​\(bj​\(n\)\)\+fa​\_​comp​\(bj​\(n\),L¯j​\(n\)\)\+\(fp​\_​mem\+fa​\_​mem​\(bj​\(n\),L¯j​\(n\)\)\)⋅I\)C\_\{\\mathrm\{inc\}\}^\{\(j\)\}=\\sum\_\{n=1\}^\{N\_\{j\}\}\\left\(f\_\{\\mathrm\{p\\\_comp\}\}\(b\_\{j\}\(n\)\)\+f\_\{\\mathrm\{a\\\_comp\}\}\(b\_\{j\}\(n\),\\bar\{L\}\_\{j\}\(n\)\)\+\\left\(f\_\{\\mathrm\{p\\\_mem\}\}\+f\_\{\\mathrm\{a\\\_mem\}\}\(b\_\{j\}\(n\),\\bar\{L\}\_\{j\}\(n\)\)\\right\)\\cdot I\\right\)\(26\)

###### Proof\.

Enabled by prefix caching \(Assumption[D\.9](https://arxiv.org/html/2605.30898#A4.Thmtheorem9)\), decoding is performed as an incremental step\-by\-step process\.

- •Computation: At each positionnn,bj​\(n\)b\_\{j\}\(n\)new tokens are projected \(fp​\_​compf\_\{\\mathrm\{p\\\_comp\}\}\) and attend to their respective historical contexts of average lengthL¯j​\(n\)\\bar\{L\}\_\{j\}\(n\)\(fa​\_​compf\_\{\\mathrm\{a\\\_comp\}\}\)\.
- •Memory Access: Since decoding is memory\-bound, each stepnnincurs a mandatory reload of model weights \(fp​\_​memf\_\{\\mathrm\{p\\\_mem\}\}\) and a full retrieval of the active KV cache \(fa​\_​memf\_\{\\mathrm\{a\\\_mem\}\}\) from VRAM\.

∎

###### Proposition D\.15\(Verification Cost\)\.

The verification cost at stepjjis:

Cver\(j\)=∑i,k\(Lfinal\(i,j,k\)⋅fp​\_​comp​\(1\)\+∑n=1Lfinal\(i,j,k\)fa​\_​comp​\(1,n\)\)\+I⋅\(fp​\_​mem\+∑i,kfa​\_​mem​\(1,Lfinal\(i,j,k\)\)\)C^\{\(j\)\}\_\{\\mathrm\{ver\}\}=\\sum\_\{i,k\}\\left\(L^\{\(i,j,k\)\}\_\{\\mathrm\{final\}\}\\cdot f\_\{\\mathrm\{p\\\_comp\}\}\(1\)\+\\sum\_\{n=1\}^\{L^\{\(i,j,k\)\}\_\{\\mathrm\{final\}\}\}f\_\{\\mathrm\{a\\\_comp\}\}\(1,n\)\\right\)\\ \+I\\cdot\\left\(f\_\{\\mathrm\{p\\\_mem\}\}\+\\sum\_\{i,k\}f\_\{\\mathrm\{a\\\_mem\}\}\(1,L^\{\(i,j,k\)\}\_\{\\mathrm\{final\}\}\)\\right\)\(27\)

###### Proof\.

The verifier functions as a discriminative model requiring a complete forward pass over each sequence\.

- •Computation: For each branch\(i,k\)\(i,k\), the verifier computes the full log\-likelihood of the final sequenceLfinal\(i,j,k\)L^\{\(i,j,k\)\}\_\{\\mathrm\{final\}\}, treating it as a new prefill\-style operation \(Assumption[D\.9](https://arxiv.org/html/2605.30898#A4.Thmtheorem9)\)\.
- •Memory Access: Verifier weights are loaded once per verification task \(fp​\_​memf\_\{\\mathrm\{p\\\_mem\}\}\)\. However, since branches are evaluated as independent contexts in discriminative mode, the memory cost includes the total volume of KV data processed across all branches\.

∎

Similar Articles

LLMs Improving LLMs: Agentic Discovery for Test-Time Scaling

Hugging Face Daily Papers

This paper introduces AutoTTS, an environment-driven framework that automates the discovery of test-time scaling strategies for LLMs by formulating it as controller synthesis. It demonstrates improved accuracy-cost tradeoffs on mathematical reasoning benchmarks with minimal computational overhead.

ThinkBooster: A Unified Framework for Seamless Test-Time Scaling of LLM Reasoning

arXiv cs.CL

ThinkBooster is a unified framework for test-time compute scaling of LLM reasoning, providing a modular Python library, a performance-efficiency benchmark, an OpenAI-compatible proxy service, and a visual debugger. Empirical results on math and coding tasks demonstrate practical gains with quality-cost trade-offs.