Skip to content
ImagineWorld

ODAR: Principled Adaptive Routing for LLM Reasoning via Active Inference

node_idnode-paper_arxiv-2602.23681_odar-principled-adaptive-routing-for-llm-reasoning-via-active-inference
node_typenode-paper
schema_profileworld.node_paper.v1
alternate_namesarxiv-2602.23681
statusactive
orthogonal_scopemanifold, entropy, authority, state
manifoldworld
entropymedium
authorityguides
stateexternal
domainimagineworld.net
node_interiorrosetta_contract
unisonone evidence claim read five ways: seated in the active-inference field, the work routes LLM reasoning adaptively via active inference — principled selection of reasoning depth and path driven by expected information gain — its framework, regime, and stance agreeing on what it is
governed_byWORLD-MANIFOLD, CORPUS
constitutional_citationCONSTITUTION
evidence_bundleworld-bundle-paper
publication_classarxiv_preprint
paper_titleODAR: Principled Adaptive Routing for LLM Reasoning via Active Inference
paper_authorsSiyuan Ma, Bo Gao, Xiaojun Jia, Simeng Qin, Tianlin Li, Ke Ma, Xiaoshuang Jia, Wenqi Ren, Yang Liu
arxiv_id2602.23681
arxiv_urlhttps://arxiv.org/abs/2602.23681
arxiv_categories{"primary":"cs.AI","secondary":[]}
arxiv_v1
arxiv_submitted_at2026-02-27
arxiv_updated_at2026-02-27
ocr_sourcearxiv_html
ocr_quality_classverbatim_latexml_html
extraction_toolarxiv-nodepaper-transpose
extraction_pipeline_versionworld-ingest-arxiv-html-v1.0
extracted_at2026-10-13T06:51:09Z
math_preserved_as_latextrue
figures_extractedtrue
references_structurally_parsedfalse
created_at2026-10-13T06:51:09Z
updated_at2026-10-14T05:23:52Z
local graph

ODAR: Principled Adaptive Routing for LLM Reasoning via Active Inference

Section titled “ODAR: Principled Adaptive Routing for LLM Reasoning via Active Inference”

Authors: Siyuan Ma, Bo Gao, Xiaojun Jia, Simeng Qin, Tianlin Li, Ke Ma, Xiaoshuang Jia, Wenqi Ren, Yang Liu

arxiv: 2602.23681

Converted to markdown on 2026-10-13 from the arXiv HTML (LaTeXML) rendering; figures embedded from the same source.


The paradigm of Large Language Model (LLM) reasoning is shifting from parameter scaling to test-time compute scaling, yet most existing approaches still rely on uniform, brute-force sampling (e.g., fixed best-of-NN or self-consistency) that is costly, hard to attribute, and can trigger “overthinking” with diminishing returns. We propose ODAR-Expert, an adaptive routing framework that optimizes the accuracy–efficiency trade-off via principled resource allocation. ODAR uses a Difficulty Estimator grounded in amortized active inference to dynamically route queries between a heuristic Fast Agent and a deliberative Slow Agent. Crucially, we introduce a Free-Energy-Principled and risk-sensitive fusion mechanism that selects answers by minimizing a variational free energy objective, balancing log-likelihood with epistemic uncertainty (varentropy) as a principled alternative to ad-hoc voting over heterogeneous candidates. Extensive evaluation across 23 benchmarks shows that ODAR achieves strong and consistent gains, including 98.2% accuracy on MATH and 54.8% on Humanity’s Last Exam (HLE), while improving the compute–accuracy frontier under compute-matched settings. We further validate reproducibility on a fully open-source stack (Llama 4 + DeepSeek), where ODAR surpasses homogeneous sampling strategies while reducing computational costs by 82%. Overall, our results suggest that thinking-optimal scaling requires adaptive resource allocation with free-energy-based decision-making, rather than simply increasing test-time compute.

Large language models (LLMs) have achieved high reliability on hard problems primarily through test-time compute scaling, utilizing methods such as Chain-of-Thought (CoT) deliberation (Wei et al., 2022), multi-sample aggregation via Self-Consistency (Wang et al., 2022) or Best-of-NN (Aminian et al., 2025), and verifier-based selection (Lightman et al., 2023; Lifshitz et al., 2025). However, these approaches expose a fundamental inefficiency: the marginal value of additional compute is highly query-dependent. Easy inputs rarely require expensive reasoning and can even degrade under excessive deliberation (“overthinking”) (Wei et al., 2025), whereas genuinely difficult inputs benefit disproportionately from deeper search and explicit verification (Yang et al., 2025). This mismatch has fueled a recent wave of routing/orchestration research aimed at achieving a favorable accuracy–cost frontier at scale (McGill and Perona, 2017; Pan et al., 2025; Su et al., 2025; Guo et al., 2025; Liu et al., 2025; Chen et al., 2025; Wang et al., 2025). Nevertheless, existing methods are often either fixed-strategy or rely on heuristic fusion rules that are hard to attribute, failing to provide an end-to-end procedure that is simultaneously cost-aware and theoretically grounded.

In this work, we propose ODAR, an open-domain adaptive reasoner that treats inference as resource allocation. For each query, a lightweight Difficulty Estimator (DE) predicts whether the instance warrants additional “System 2” compute and routes it to either a Simple Path or a Hard Path using specialized Fast and Slow Agents. This specialization is inspired by a functional neuro-computational motif: under high cognitive demand, slower control rhythms can gate burst-like recruitment of higher-cost processing, echoing the θ\theta–γ\gamma phase–amplitude coupling mechanisms in working-memory control (Daume et al., 2024; Tamura et al., 2017; Gorochowski et al., 2016; Segneri et al., 2020). Candidate answers are then selected by a principled fusion module based on free-energy minimization (FEP), enabling robust comparison across heterogeneous generators without relying on ad-hoc voting.

Figure 1: Multi-dimensional performance comparison across 23 benchmarks. The radar chart visualizes ODAR’s average accuracy across 8 task categories relative to frontier models (GPT-5.1, Claude-4.5) and the strongest inference-time baseline (Self-Consistency). ODAR significantly expands the performance envelope, particularly in Mathematics (+20.2% on IMO 2025) and Advanced Cognition (+12.0% on HLE), while maintaining superior cost-efficiency.

As a result, ODAR establishes a new performance ceiling across a diverse array of tasks. As illustrated in Figure 1, our approach consistently pushes the boundaries of current reasoning models, particularly in domains requiring deep logical synthesis where traditional uniform sampling methods plateau.

Contributions. Our main contributions are:

  • •

    Empirical effectiveness across 23 benchmarks. ODAR achieves 89.6% average accuracy, outperforming the strongest inference-time baseline by +6.0%. As shown in Figure 1, it reaches near-ceiling performance on saturated tasks (e.g., MATH 98.2%) and yields significant gains on hard settings like IMO 2025 (+20.2%) and HLE (+12.0%). Under compute-matched evaluation, ODAR reduces cost by 1.78×\times relative to Self-Consistency (Wang et al., 2022).

  • •

    Open-Source Generalization. We instantiate Open-ODAR (Llama 4 + DeepSeek), which attains 84.4% average accuracy while cutting compute cost by 82% relative to open-weight Self-Consistency, indicating that routing-driven efficiency does not rely on proprietary frontier models (Ha and Schmidhuber, 2018).

  • •

    A Modular and Principled Stack. We introduce an end-to-end, reproducible inference system that couples difficulty-aware routing with fast/slow agent specialization and a free-energy-based fusion rule. We frame test-time reasoning as controlled internal simulation and motivate selection via free-energy-style objectives, connecting modern LLM orchestration to principled perspectives on inference and action (Pezzulo and Castelfranchi, 2009; Friston et al., 2017; Friston et al., 2021).

2 Free Energy Principle for Multi-Agent Fusion

Section titled “2 Free Energy Principle for Multi-Agent Fusion”

The Free Energy Principle (FEP) (Friston et al., 2017) posits that intelligent agents minimize variational free energy to align internal models with observations. Given a query xx and generated answer yy, we define the variational free energy as:

$\mathcal{F}(yx)=\underbrace{D_{\text{KL}}[q(sy)|p(s

where ss represents the latent cognitive state (reasoning path). Minimizing F\mathcal{F} implements a computational Occam’s Razor: selecting answers that are accurate yet require minimal deviation from prior assumptions.

In ODAR, we select the optimal answer y^\hat{y} from a candidate set Y\mathcal{Y} by:

$$\hat{y}=\arg\min_{y\in\mathcal{Y}}\mathcal{F}(yx)$$

Since direct computation of the latent divergence in Eq. 1 is intractable, we adopt a Risk-Sensitive Control perspective to operationalize this principle. As derived in Appendix D, we replace the standard objective with the Entropic Risk Measure (exponential utility). By performing a second-order Taylor expansion of this risk measure, we obtain a tractable Mean-Variance objective:

$$\begin{split}\mathcal{F}(yx)&\approx\underbrace{-\frac{1}{y

where xx is the input query, yy is the candidate response sequence of length ∣y∣|y|, and p(y_t∣y_<t,x)p(y\_{t}|y\_{<t},x) denotes the probability of the tt-th token given the context. The hyperparameter λ\lambda controls the sensitivity to risk. In this formulation, the first term rewards high model confidence (minimizing expected surprisal), while the second term (Varentropy) acts as a risk penalty. As shown via the Law of Total Variance (Appendix D), this penalty implicitly filters out epistemic uncertainty, rejecting reasoning chains characterized by high internal volatility or “hallucination.”

While FEP guides answer selection, Expected Free Energy (EFE) governs policy selection—choosing the optimal reasoning path (Fountas et al., 2020). For policy π∈{π_S,π_M,π_H}\pi\in\{\pi\_{\text{S}},\pi\_{\text{M}},\pi\_{\text{H}}\} (Simple/Medium/Hard), EFE balances epistemic value (uncertainty reduction) and pragmatic value (goal achievement):

$$\begin{split}G(\pix)&=\underbrace{\mathbb{E}_{q(o,s\pi)}[D_{\text{KL}}[q(s

Calculating G(π∣x)G(\pi|x) exactly requires simulating all potential future outcomes, which is computationally prohibitive at inference time. To address this, we employ Amortized Inference: we train a lightweight Difficulty Estimator to predict the expected complexity cost directly from the input features. This allows us to bypass the intractable integral in Eq. 4 while retaining the Active Inference control logic. The estimator outputs a scalar d(x)∈[0,1]d(x)\in[0,1], mapping to policies via calibrated thresholds:

π\*(x)={π_Sif d<0.3(Simple Path)π_Mif 0.3≤d<0.7(Medium Path)π_Hif d≥0.7(Hard Path)\pi^{\*}(x)=\begin{cases}\pi\_{\text{S}}&\text{if }d<0.3\quad\text{(Simple Path)}\\ \pi\_{\text{M}}&\text{if }0.3\leq d<0.7\quad\text{(Medium Path)}\\ \pi\_{\text{H}}&\text{if }d\geq 0.7\quad\text{(Hard Path)}\end{cases}(5)

Training details for minimizing the variational bound of the Difficulty Estimator are provided in Appendix F.

2.2 From Neural Gating to Computational Routing

Section titled “2.2 From Neural Gating to Computational Routing”

While ODAR draws conceptual inspiration from the brain’s Theta-Gamma Phase-Amplitude Coupling (TG-PAC), we operationalize this strictly as a design heuristic for threshold-gated conditional computation. Analogous to how biological circuits gate high-metabolic Gamma bursts via slow Theta control signals to manage cognitive load, ODAR utilizes a lightweight Difficulty Estimator to gate the invocation of the computationally intensive Slow Agent. This mechanism ensures that the computational budget is allocated proportionally to task complexity, preventing the “under-thinking” inherent in shallow models while mitigating the cost of brute-force reasoning. We provide a detailed discussion of this functional analogy and the corresponding mapping table in Appendix G.2.

3 Method: ODAR Architecture and Implementation

Section titled “3 Method: ODAR Architecture and Implementation”

Building on the theoretical foundations established in Section 2, this section presents the concrete architecture and implementation details of ODAR.

ODAR addresses two key limitations of existing multi-agent systems: computational inefficiency (applying fixed strategies regardless of task difficulty) and unprincipled fusion (using heuristic voting schemes). Figure 2 provides an end-to-end overview. ODAR consists of four core components:

    Difficulty Estimator (DE): A lightweight module predicting task complexity d(x)∈[0,1]d(x)\in[0,1] for routing.

    Fast Agent (A_θA\_{\theta}): GPT-5.1 with low-temperature sampling (T=0.2T=0.2).

    Slow Agent (A_γA\_{\gamma}): Claude-4.5 Sonnet for verification or Best-of-NN expansion.

    FEP Fusion Module: Selects the answer by minimizing variational free energy F(y∣x)\mathcal{F}(y|x).

Rule-based orchestration (system-level). As shown in Figure 2, ODAR also includes a lightweight dispatch/orchestration layer implemented with fixed heuristics (e.g., modality/domain cues and priority rules). Specifically, an Expert Router (ER) extracts coarse task features and assigns an expert type ee, a Model Router (MR) selects a base model identifier mm from a capability database, and a Strategy Selector (SS) maps (d,e,features)(d,e,\text{features}) to a reasoning path and decoding budget. This layer requires no additional training and introduces no trainable routing model; our primary methodological contribution and evaluation focus on difficulty-based routing and FEP fusion.

Difficulty-based compute routing. ODAR dynamically adapts its compute using two thresholds τ_1=0.3\tau\_{1}{=}0.3 and τ_2=0.7\tau\_{2}{=}0.7, producing three paths. We define the inference-call budget cc as the number of model invocations per query: Simple uses c=1c{=}1 (Fast-only), Medium uses c=2c{=}2 (Fast generation + Slow verification), and Hard uses c=6c{=}6 (one Fast generation plus N=5N{=}5 Slow candidates in Best-of-NN, followed by FEP-based selection). This dynamic budgeting targets the “overthinking” phenomenon (Yang et al., 2025; Wei et al., 2025), while avoiding heuristic fusion (e.g., Self-Consistency (Wang et al., 2022)) through principled FEP minimization.

Figure 2: ODAR System Architecture (Overview). Given input x x , a rule-based dispatch layer (ER/MR/SS; fixed heuristics

Figure 2: ODAR System Architecture (Overview). Given input x x , a rule-based dispatch layer (ER/MR/SS; fixed heuristics and priority rules) extracts coarse task features and selects a base model identifier for dispatch. In parallel, the Difficulty Estimator predicts d ∈ [ 0 , 1 ] d\in[0,1] and the Strategy Selector routes the query using fixed thresholds τ 1 = 0.3 \tau_{1}{=}0.3 and τ 2 = 0.7 \tau_{2}{=}0.7 : Simple ( d < τ 1 d{<}\tau_{1} ): Fast-only ( c = 1 c{=}1 ); Medium ( τ 1 ≤ d < τ 2 \tau_{1}{\leq}d{<}\tau_{2} ): Fast + Slow verification ( c = 2 c{=}2 ); Hard ( d ≥ τ 2 d{\geq}\tau_{2} ): Best-of- N N with N = 5 N{=}5 Slow candidates plus FEP fusion ( c = 6 c{=}6 ). Our evaluation emphasizes difficulty-based routing and FEP fusion; ER/MR provide system-level dispatch/model selection.

3.2 Difficulty Estimator via Amortized Active Inference

Section titled “3.2 Difficulty Estimator via Amortized Active Inference”

While Active Inference dictates selecting the reasoning policy π\pi that minimizes Expected Free Energy G(π∣x)G(\pi|x) (Eq. 4), calculating this integral exactly at inference time is computationally intractable. To strictly adhere to test-time efficiency constraints, we employ Amortized Inference: we train a lightweight estimator d_ϕ(x)d\_{\phi}(x) to predict the expected reasoning complexity directly from input features, bypassing the need for expensive simulation.

We define the ground-truth target for this estimator, the Empirical Expected Free Energy (d\*d^{\*}), by operationalizing the theoretical components of Eq. 4 into measurable signals. For a training query x_ix\_{i}, the target d_i\*d\_{i}^{\*} is constructed as:

\begin{split}d\_{i}^{\*}=&\underbrace{\alpha\cdot\frac{T\_{\text{human}}(x\_{i})}{\max\_{j}T\_{\text{human}}(x\_{j})}}\_{\text{Proxy for Epistemic Value}}\\ &+\underbrace{(1-\alpha)\cdot(1-\text{Acc}\_{\text{fast}}(x\_{i}))}\_{\text{Proxy for Pragmatic Risk}}\end{split}(6)

This formulation creates a direct mapping between theory and implementation. The first term utilizes normalized human solution time (T_humanT\_{\text{human}}) as a proxy for the epistemic uncertainty (cognitive load) intrinsic to the task. The second term, penalizing the Fast Agent’s failure (1−Acc_fast1-\text{Acc}\_{\text{fast}}), captures the pragmatic risk. A rigorous reasoning path is pragmatically necessary only when heuristic shortcuts lead to incorrect outcomes.

We set α=0.5\alpha=0.5 to balance intrinsic complexity with model-specific limitations. The estimator is then parameterized as a lightweight projection:

d(x)=σ(W⋅ϕ(x)+b)d(x)=\sigma(W\cdot\phi(x)+b)(7)

where ϕ(x)∈R24\phi(x)\in\mathbb{R}^{24} extracts structural and semantic features (detailed in Appendix J).

We deliberately choose explicit structural priors over opaque semantic embeddings (e.g., BERT) to enhance generalization. As demonstrated in Appendix U.3, semantic embeddings often overfit to domain keywords (the “Keyword Trap”), whereas our structural features successfully capture intrinsic reasoning complexity across diverse domains (e.g., Math vs. Coding).

Based on the predicted amortized energy dd, ODAR selects a reasoning path via calibrated thresholds (τ_1=0.3,τ_2=0.7)(\tau\_{1}{=}0.3,\tau\_{2}{=}0.7):

Path(x)={Simple(π_S)if d<τ_1Medium(π_M)if τ_1≤d<τ_2Hard(π_H)if d≥τ_2\text{Path}(x)=\begin{cases}\text{Simple}(\pi\_{\text{S}})&\text{if }d<\tau\_{1}\\ \text{Medium}(\pi\_{\text{M}})&\text{if }\tau\_{1}\leq d<\tau\_{2}\\ \text{Hard}(\pi\_{\text{H}})&\text{if }d\geq\tau\_{2}\end{cases}(8)

This design ensures that the router acts not merely as a classifier, but as a predict-control mechanism minimizing the amortized free energy of the system.

ODAR employs two complementary agents operationalizing theta-gamma neural coupling (Table 1). The Fast Agent (A_θA\_{\theta}) uses GPT-5.1 with low temperature (T=0.2T{=}0.2) and 512-token limit for rapid pattern-driven inference (avg. latency: 1.8s). The Slow Agent (A_γA\_{\gamma}) employs Claude-4.5 Sonnet with higher temperature (T=0.3T{=}0.3) and 1024-token capacity for deliberative reasoning (avg. latency: 6.4s single-pass, 32.0s cumulative for Best-of-N).

This heterogeneous design mirrors biological specialization. Ablation studies (Section 4.5) show that homogeneous configurations degrade performance: using GPT-5.1 for both agents reduces accuracy by 1.8%, while using Claude-4.5 for both increases cost by 47%.

Table 1: Fast vs. Slow Agent Configuration

PropertyFast Agent (A_θA\_{\theta})Slow Agent (A_γA\_{\gamma})
Base ModelGPT-5.1Claude-4.5 Sonnet
Temperature0.2 (Deterministic)0.3 (Exploratory)
Token Limit5121024
Avg. Latency1.8s6.4s / 32.0s (Seq.)
Primary RoleHypothesis generationVerification / Exploration

Simple Path (d<0.3d<0.3): Executes a single Fast Agent call y^=A_θ(x)\hat{y}=A\_{\theta}(x). This baseline path handles 41% of queries including factual recall and basic arithmetic.

Medium Path (0.3≤d<0.70.3\leq d<0.7): The Fast Agent generates hypothesis y_θy\_{\theta}, which the Slow Agent verifies to produce y_γy\_{\gamma}. Final answer resolved via FEP-Fusion, incurring a total of 2 inference calls. Covers 35% of queries, reducing Fast Agent errors by 18% on TruthfulQA and MMLU-Pro.

Hard Path (d≥0.7d\geq 0.7): The Fast Agent generates y_θy\_{\theta} while the Slow Agent produces n=5n{=}5 independent samples. The final answer is selected by:

$$\hat{y}=\arg\min_{y_{i}\in\mathcal{C}}\mathcal{F}(y_{i}x)$$

where C={y_θ}∪{y_γ(i)}_i=1n\mathcal{C}=\{y\_{\theta}\}\cup\{y\_{\gamma}^{(i)}\}\_{i=1}^{n}. This path aggregates 6 inference calls (1 Fast + 5 Slow) and covers 24% of queries, including 93% of HLE problems.

The system achieves high algorithmic efficiency with a weighted average inference count of E[calls]=0.41(1)+0.35(2)+0.24(6)=2.55\mathbb{E}[\text{calls}]=0.41(1)+0.35(2)+0.24(6)=2.55. This represents a 1.96×\times reduction in model invocations compared to standard Self-Consistency (n=5n{=}5).

3.5 FEP-Based Fusion with Heterogeneous Alignment

Section titled “3.5 FEP-Based Fusion with Heterogeneous Alignment”

A critical challenge in multi-agent fusion is that raw log-probabilities from heterogeneous models (e.g., GPT-5.1 vs. Claude-4.5) are not directly comparable due to different tokenization granularity and vocabulary event spaces. To enable a consistent comparison, we introduce a two-stage alignment: (i) character-level normalization to reduce tokenizer bias, and (ii) model-specific Z-score alignment to account for different intrinsic entropy baselines.

  1. Character-Level Energy Density. Token-level averaging implicitly favors models with coarser tokenization (fewer tokens for the same content), making per-token energy incomparable across agents. We therefore normalize the energy term by character length, converting it into a tokenizer-agnostic density analogous to Bits-Per-Character. For a candidate y_iy\_{i} generated by model mm, we compute:
$$\small\begin{split}\mathcal{F}_{\text{char}}(y_{i}\mid x;m)=&\underbrace{-\frac{1}{y_{i}_{\text{char}}}\sum_{t=1}^{

where ∣y_i∣_char|y\_{i}|\_{\text{char}} is the character length of y_iy\_{i}, and λ=0.1\lambda{=}0.1 in all experiments. The variance is computed over token positions tt to act as a risk penalty, implicitly filtering out epistemic uncertainty or “hallucination”.

  1. Model-Specific Z-Score Alignment. Even after character-level normalization, different models exhibit different baseline entropy scales due to their training and RLHF-induced shifts. We estimate per-model statistics (μ_m,σ_m\mu\_{m},\sigma\_{m}) on a held-out calibration set for each model m∈{A_θ,A_γ}m\in\{A\_{\theta},A\_{\gamma}\}. We then standardize:
F~(y_i∣x;m)=F_char(y_i∣x;m)−μ_mσ_m.\tilde{\mathcal{F}}(y\_{i}\mid x;m)=\frac{\mathcal{F}\_{\text{char}}(y\_{i}\mid x;m)-\mu\_{m}}{\sigma\_{m}}.(11)

This maps heterogeneous energy landscapes onto a common scale, enabling principled cross-model comparison while preserving within-model relative distances.

Fusion Logic. For the Medium Path, we compute Boltzmann-style weights w_θw\_{\theta} from the standardized energies to select between the fast hypothesis y_θy\_{\theta} and slow verification y_γy\_{\gamma}. For the Hard Path, given a candidate set C={y_θ}∪{y_γ,i}_i=1N\mathcal{C}=\{y\_{\theta}\}\cup\{y\_{\gamma,i}\}\_{i=1}^{N}, we select:

y^=arg⁡min⁡_y∈CF~(y∣x;m(y)),\hat{y}=\arg\min\_{y\in\mathcal{C}}\tilde{\mathcal{F}}(y\mid x;m(y)),(12)

where m(y)m(y) denotes the generator model of candidate yy.

The integrated ODAR inference procedure, which formalizes the transition between difficulty-aware routing and the alignment-based fusion described above, is detailed in Algorithm 2 (see Appendix E). This end-to-end stack ensures that computational resources are allocated proportionally to task complexity—ranging from a single fast pass (c=1c{=}1) to deliberative expansion (c=6c{=}6)—while maintaining a principled selection criterion for heterogeneous candidates. Full hyperparameter configurations and implementation details are provided in Appendix P.2.

We evaluate ODAR across 23 benchmarks spanning 8 categories, focusing on: (1) adaptive routing effectiveness vs. fixed baselines, (2) component contributions, and (3) behavior across task difficulties.

Implementation. We use GPT-5.1 as the Fast Agent and Claude-4.5-Sonnet as the Slow Agent with task-invariant hyperparameters. Results are averaged over three seeds; datasets >>5,000 instances use stratified K=5K{=}5 folds. See Appendix N for details.

Compute-Matched Evaluation. All baselines follow a unified compute-matched protocol. ODAR operates at 1.78×\times lower cost than Self-Consistency (0.420.42 vs. 0.750.75) while establishing a new performance ceiling.

Table 2 presents ODAR’s performance across all 23 benchmarks.

Overall Performance. ODAR achieves 89.6% average accuracy, significantly outperforming the strongest baseline (Self-Consistency, 83.6%) by a margin of +6.0%. Notably, our framework establishes new state-of-the-art results on 22 out of 23 datasets. Gains are robust across all domains, ranging from +3.2% on saturated benchmarks like GSM8K to +20.2% on extremely hard tasks like IMO 2025. ODAR reaches near-ceiling performance (≥\geq98%) on 5 datasets, including mathematical reasoning (MATH: 98.2%, GSM8K: 99.1%) and instruction following (IFEval: 98.1%).

Performance on Challenging Tasks. The advantages of ODAR are most pronounced on tasks requiring deep, multi-step deliberation, where standard models often fail due to shallow reasoning. On the non-saturated IMO 2025 benchmark, ODAR achieves 68.7%, surpassing the GPT-5.1 baseline (48.5%) by a remarkable +20.2%. Similarly, strong improvements are observed on PhD-level expertise (HLE: +12.0%), graduate-level reasoning (GPQA: +10.0%), and adversarial robustness (BBEH: +10.4%). These results confirm that ODAR’s adaptive routing mechanism effectively identifies and allocates “System 2” resources to the most complex queries, solving problems that are intractable for single-pass models.

Table 2: Main Results: Performance Across 23 Diverse Benchmarks. Evaluation conducted under a unified protocol with compute-matched budgets. ODAR sets the new performance ceiling for inference-time compute scaling across 22 out of 23 benchmarks.

CategoryDatasetGPT-5.1Claude-4.5Len-Adapt.Self-Consist.ODAR (Ours)Gain
MathematicsMATH Hendrycks et al. (2021)91.889.294.094.598.2+6.4
GSM8K Cobbe et al. (2021)95.994.597.097.299.1+3.2
IMO 2025 Mathematical Association of America (2025)48.545.255.655.468.7+20.2
MathVista Lu et al. (2023)89.187.491.792.396.5+7.4
CommonsenseARC-Challenge Clark et al. (2018)92.590.894.694.298.5+6.0
OpenBookQA Mihaylov et al. (2018)91.289.593.593.897.8+6.6
BoolQ Clark et al. (2019)93.492.195.195.298.1+4.7
StrategyQA Geva et al. (2021)84.582.387.688.993.4+8.9
KnowledgeMMLU-Pro Wang et al. (2024)86.285.189.089.594.2+8.0
GPQA Rein et al. (2024)68.566.872.072.478.5+10.0
Multi-HopHotpotQA Yang et al. (2018)78.576.482.482.189.5+11.0
MuSiQue Trivedi et al. (2022)52.350.856.858.465.2+12.9
MultimodalScienceQA Saikh et al. (2022)90.589.292.993.197.4+6.9
AOK-VQA Schwenk et al. (2022)86.284.889.189.594.6+8.4
MMMU-Pro Yue et al. (2025)58.556.962.162.468.7+10.2
AdvancedBBH Suzgun et al. (2023)88.086.590.691.295.4+7.4
BBEH Kazemi et al. (2025)48.546.252.152.858.9+10.4
TruthfulQA Lin et al. (2022)78.276.581.882.488.6+10.4
HLE Phan et al. (2025)42.840.547.048.554.8+12.0
CodingSWE-bench Jimenez et al. (2023)62.560.866.668.474.2+11.7
LIVEBENCH White et al. (2024)75.674.878.079.382.4+6.8
InstructionIFEval Zhou et al. (2023)89.588.292.592.698.1+8.6
AbstractARC-AGI-2 Chollet et al. (2025)30.228.534.236.441.5+11.3
Average (Unweighted)79.877.983.283.689.6+6.0

4.3 Open-Source Generalization and Reproducibility

Section titled “4.3 Open-Source Generalization and Reproducibility”

To address concerns regarding closed-source API dependency and ensure full reproducibility, we evaluate ODAR on a fully open-source stack (Open-ODAR). We employ Llama 4 Scout as the Fast Agent and DeepSeek V3.2 as the Slow Agent.

Reference Implementation via Open Weights. While proprietary models currently establish the performance ceiling, we designate the Open-ODAR configuration as the primary reference implementation for reproducibility. Local deployment guarantees immutable model weights and access to the full probability distribution (avoiding top-k truncation errors inherent to APIs). We provide a Docker container with exact quantization configs (FP8) and pre-computed calibration statistics (μ_m,σ_m\mu\_{m},\sigma\_{m}, details in Appendix Q) to ensure that the FEP fusion logic is deterministically reproducible independent of external API changes.

Table 3: Open-ODAR Performance (Fully Reproducible Stack). Comparison between single-agent baselines and Open-ODAR using strictly open-source models (Llama 4 + DeepSeek V3.2). ODAR achieves superior accuracy to Self-Consistency (SC) at a fraction of the compute cost (∼4.5×\sim 4.5\times vs 25.0×25.0\times).

CategoryDataset(A) Llama 4(B) DeepSeek(C) DeepSeek(D) Open-ODARGain
(Fast Agent)(CoT)(SC k=5k=5)(Llama+DeepSeek)(vs. SC)
MathMATH Hendrycks et al. (2021)76.587.890.292.4+2.2%
GSM8K Cobbe et al. (2021)88.496.397.197.8+0.7%
CodingLiveBench White et al. (2024)58.271.473.576.1+2.6%
SWE-bench Jimenez et al. (2023)45.562.565.868.2+2.4%
ReasoningGPQA Rein et al. (2024)35.868.470.572.8+2.3%
HotpotQA Yang et al. (2018)74.281.583.886.4+2.6%
KnowledgeMMLU-Pro Wang et al. (2024)68.585.086.289.1+2.9%
InstructionIFEval Zhou et al. (2023)86.588.288.992.5+3.6%
Average66.780.182.084.4+2.4%
Cost (Normalized)1.0×1.0\times5.0×5.0\times25.0×25.0\times∼4.5×\sim 4.5\times-82%

Results. Table 3 presents the performance of Open-ODAR compared to single-agent baselines.

Pareto Dominance. Open-ODAR achieves 84.4% average accuracy, surpassing DeepSeek V3.2 with Self-Consistency (k=5k=5, 82.0%), while reducing computational cost by 82% (4.5×4.5\times vs. 25.0×25.0\times).

Robustness. The performance gains are consistent across logical reasoning (+2.3% on GPQA) and instruction following (+3.6% on IFEval), confirming that the Difficulty Estimator generalizes effectively beyond specific model families.

Cost Efficiency. By routing ∼\sim66% of queries (e.g., GSM8K, IFEval) to the lightweight Llama 4 Scout, Open-ODAR demonstrates that state-of-the-art efficiency does not require proprietary frontiers.

Table 4 compares ODAR against state-of-the-art methods on three challenging benchmarks.

Table 4: Comparison with SOTA Methods. ODAR achieves highest accuracy with best efficiency score.

MethodMATHBBHMMLU-ProCostEff.†
Single-Agent Baselines
GPT-5.1 Base91.888.086.21.0×\times0.0
Claude-4.5 Base89.286.585.13.0×\times-
Multi-Candidate Strategies
Self-Consistency (Wang et al., 2022)94.591.289.55.0×\times0.6
Best-of-N (NN=5) (Aminian et al., 2025)95.092.090.05.0×\times0.7
Multi-Agent & Efficiency SOTA
Simple Ensemble (Niimi, 2025)93.189.888.02.5×\times0.7
TOPS (Yang et al., 2025)95.592.590.53.4×\times1.2
Stop Spinning (Wei et al., 2025)94.892.090.24.1×\times0.9
ODAR (Ours)98.295.494.22.55×\times2.8

† Efficiency = (Avg. Acc −- Baseline Acc) / Avg. Cost

Accuracy Dominance. ODAR achieves 98.2% on MATH, surpassing the strongest single-agent (GPT-5.1: 91.8%) by +6.4% and the best efficiency method (TOPS: 95.5%) by +2.7%.

Efficiency Advantage. ODAR achieves an efficiency score of 2.8, more than 2×\times higher than TOPS (1.2). While TOPS requires 3.4×\times cost, ODAR delivers higher accuracy at only 2.55×\times, validating that adaptive routing enables a superior Pareto frontier.

To move beyond aggregate performance, we conduct multi-dimensional ablations to isolate the contributions of ODAR’s core components across diverse task manifolds. As visualized in the ablation matrix (Figure 3), the system synergy remains robust across all eight task categories, revealing a consistent accuracy-efficiency trade-off.

The Difficulty Estimator (DE) functions as the primary driver of cost-effectiveness; in saturated regimes where fast heuristics suffice (e.g., Group C: Commonsense), removing the DE triggers a 135% cost explosion (2.55×→6.00×2.55\times\rightarrow 6.00\times) for negligible accuracy gains (<0.5%<0.5\%). Conversely, the Slow Agent and FEP Fusion act as the reasoning floor for high-stakes logic. Their removal triggers a significant performance collapse, most notably a 12.0% drop on HLE, validating that expert-level tasks are intractable without principled deliberation and risk-sensitive synthesis.

Further de-confounding analysis (Appendix J.7) isolates decision quality from simple compute scaling. We find that disabling heuristic dispatch while maintaining DE-based routing results in only a 1.2%1.2\% marginal drop, confirming the DE as the dominant driver of routing intelligence. Furthermore, under an identical compute budget, ODAR’s strategic routing outperforms randomized allocation by 8.3%, proving that where compute is spent is as vital as the total budget. As shown in the scaling curves (Appendix U.2), ODAR successfully identifies the “thinking-optimal” limit, avoiding the diminishing returns typical of brute-force sampling.

Figure 3: Multi-dimensional Ablation Matrix. Columns denote accuracy drop ( Δ \Delta Acc %) relative to Full ODAR across 16 representative benchmarks. The red line indicates normalized inference cost. Results confirm that the DE prevents cost explosions while the Slow Agent ensures reasoning depth.

4.6 System Analysis: Efficiency, Robustness, and Errors

Section titled “4.6 System Analysis: Efficiency, Robustness, and Errors”

Pareto Dominance and Latency. ODAR strictly dominates fixed-budget strategies, requiring only 1.4×\times cost to achieve 88.5% accuracy—a 4-fold reduction compared to Self-Consistency. While the Hard Path latency exceeds 60s for 24% of queries, 41% receive instant response (<<3s) via the Simple Path. The median latency (9.9s) is comparable to standard CoT generation.

Adversarial Robustness. The system exhibits fail-safe behaviors under adversarial conditions. Under complexity injection, ODAR maintains stable accuracy (-0.2%) despite a 154% cost increase. Under simplicity masking, accuracy drops by only 6.4% due to ODAR’s reliance on invariant structural features (details in Appendix W).

Error Taxonomy. Manual analysis of 100 failure cases reveals that 66% of errors stem from intrinsic model limitations, such as knowledge gaps (27%) and reasoning flaws (39%). System-level failures account for 34%, including difficulty estimation (8%), verification (12%), and FEP selection (9%). This confirms that ODAR minimizes system-induced errors, while residual failures are largely bounded by base model capabilities (see Appendix K for full taxonomy).

ODAR challenges the “brute-force” scaling paradigm by demonstrating that adaptive resource allocation yields a superior Pareto frontier. By dynamically routing queries based on predicted difficulty and filtering hallucinations via Varentropy-based fusion, we achieve state-of-the-art performance while reducing computational costs by 82% compared to homogeneous sampling.

However, three limitations constrain current applicability. First, the Hard Path incurs high latency (>60>60s for the tail), restricting real-time deployment. Second, the system remains bounded by intrinsic model capabilities; 66% of residual errors stem from fundamental knowledge gaps shared by all agents, yielding diminishing returns on expert benchmarks. Finally, the reliance on token-level log-probabilities for FEP fusion limits portability to environments with transparent inference access. Future work will explore lightweight, logit-free uncertainty estimation to address these constraints.

This paper presents work whose goal is to advance the field of Machine Learning, specifically addressing the efficiency and reliability of Large Language Model reasoning. We highlight three primary societal implications of our findings:

Environmental Sustainability. By implementing difficulty-aware adaptive routing, ODAR demonstrates that rigorous reasoning does not strictly require brute-force compute scaling. Our framework achieves an 82% reduction in computational costs compared to homogeneous sampling strategies. This significantly lowers the energy consumption and carbon footprint associated with deploying high-performance reasoning agents, contributing to the development of sustainable “Green AI” systems.

Democratization of Advanced AI. We validate that state-of-the-art performance can be achieved using a fully open-source stack (e.g., Llama 4 and DeepSeek) through intelligent resource allocation. By reducing the dependency on proprietary frontier models and lowering inference costs, this work helps democratize access to expert-level reasoning capabilities for researchers and organizations with limited resources.

Reliability and Safety. Our Risk-Sensitive FEP fusion mechanism explicitly penalizes high-varentropy responses, effectively filtering out hallucinations and “spinning wheel” reasoning loops. While increasing the reasoning power of LLMs carries inherent dual-use risks common to the field, our approach prioritizes the verification and reliability of generated outputs, which is a necessary step towards safe deployment in high-stakes domains.

  • Aminian et al. [2025]

    Gholamali Aminian, Idan Shenfeld, Amir R Asadi, Ahmad Beirami, and Youssef Mroueh. Best-of-n through the smoothing lens: Kl divergence and regret analysis. arXiv preprint arXiv:2507.05913, 2025.

  • Bhakthavatsalam et al. [2021]

    Sumithra Bhakthavatsalam, Daniel Khashabi, Tushar Khot, Bhavana Dalvi Mishra, Kyle Richardson, Ashish Sabharwal, Carissa Schoenick, Oyvind Tafjord, and Peter Clark. Think you have solved direct-answer question answering? try arc-da, the direct-answer ai2 reasoning challenge. arXiv preprint arXiv:2102.03315, 2021.

  • Chen et al. [2025]

    Yilong Chen, Junyuan Shang, Zhenyu Zhang, Yanxi Xie, Jiawei Sheng, Tingwen Liu, Shuohuan Wang, Yu Sun, Hua Wu, and Haifeng Wang. Inner thinking transformer: Leveraging dynamic depth scaling to foster adaptive internal thinking. arXiv preprint arXiv:2502.13842, 2025.

  • Chollet et al. [2025]

    Francois Chollet, Mike Knoop, Gregory Kamradt, Bryan Landers, and Henry Pinkard. Arc-agi-2: A new challenge for frontier ai reasoning systems. arXiv preprint arXiv:2505.11831, 2025.

  • Clark et al. [2019]

    Christopher Clark, Kenton Lee, Ming-Wei Chang, Tom Kwiatkowski, Michael Collins, and Kristina Toutanova. Boolq: Exploring the surprising difficulty of natural yes/no questions. arXiv preprint arXiv:1905.10044, 2019.

  • Clark et al. [2018]

    Peter Clark, Isaac Cowhey, Oren Etzioni, Tushar Khot, Ashish Sabharwal, Carissa Schoenick, and Oyvind Tafjord. Think you have solved question answering? try arc, the ai2 reasoning challenge. arXiv preprint arXiv:1803.05457, 2018.

  • Cobbe et al. [2021]

    Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, et al. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168, 2021.

  • Daume et al. [2024]

    Jonathan Daume, Jan Kamiński, Andrea GP Schjetnan, Yousef Salimpour, Umais Khan, Michael Kyzar, Chrystal M Reed, William S Anderson, Taufik A Valiante, Adam N Mamelak, et al. Control of working memory by phase–amplitude coupling of human hippocampal neurons. Nature, 629(8011):393–401, 2024.

  • Dotov and Trainor [2021]

    Dobromir Dotov and Laurel J Trainor. Cross-frequency coupling explains the preference for simple ratios in rhythmic behaviour and the relative stability across non-synchronous patterns. Philosophical Transactions of the Royal Society B, 376(1835):20200333, 2021.

  • Fountas et al. [2020]

    Zafeirios Fountas, Noor Sajid, Pedro Mediano, and Karl Friston. Deep active inference agents using monte-carlo methods. Advances in neural information processing systems, 33:11662–11675, 2020.

  • Friston et al. [2017]

    Karl Friston, Thomas FitzGerald, Francesco Rigoli, Philipp Schwartenbeck, and Giovanni Pezzulo. Active inference: a process theory. Neural computation, 29(1):1–49, 2017.

  • Friston et al. [2021]

    Karl Friston, Lancelot Da Costa, Danijar Hafner, Casper Hesp, and Thomas Parr. Sophisticated inference. Neural Computation, 33(3):713–763, 2021.

  • Geva et al. [2021]

    Mor Geva, Daniel Khashabi, Elad Segal, Tushar Khot, Dan Roth, and Jonathan Berant. Did aristotle use a laptop? a question answering benchmark with implicit reasoning strategies. Transactions of the Association for Computational Linguistics, 9:346–361, 2021.

  • Gorochowski et al. [2016]

    Thomas E Gorochowski, Rafal Bogacz, and Matthew Jones. Cross-frequency coupling of neuronal oscillations during cognition. arXiv preprint arXiv:1604.00069, 2016.

  • Guo et al. [2025]

    Xiyu Guo, Shan Wang, Chunfang Ji, Xuefeng Zhao, Wenhao Xi, Yaoyao Liu, Qinglan Li, Chao Deng, and Junlan Feng. Towards generalized routing: Model and agent orchestration for adaptive and efficient inference. arXiv preprint arXiv:2509.07571, 2025.

  • Gupta et al. [2025]

    Nikunj Gupta, Bill Guo, Rajgopal Kannan, and Viktor K Prasanna. Hierrouter: Coordinated routing of specialized large language models via reinforcement learning. arXiv preprint arXiv:2511.09873, 2025.

  • Ha and Schmidhuber [2018]

    David Ha and Jürgen Schmidhuber. World models. arXiv preprint arXiv:1803.10122, 2(3), 2018.

  • Hendrycks et al. [2021]

    Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. Measuring mathematical problem solving with the math dataset. arXiv preprint arXiv:2103.03874, 2021.

  • Jimenez et al. [2023]

    Carlos E Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, and Karthik Narasimhan. Swe-bench: Can language models resolve real-world github issues?, 2024. URL https://arxiv. org/abs/2310.06770, 7, 2023.

  • Kazemi et al. [2025]

    Mehran Kazemi, Bahare Fatemi, Hritik Bansal, John Palowitch, Chrysovalantis Anastasiou, Sanket Vaibhav Mehta, Lalit K Jain, Virginia Aglietti, Disha Jindal, Yuanzhu Peter Chen, et al. Big-bench extra hard. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 26473–26501, 2025.

  • Kim et al. [2025]

    Jaeyeon Kim, Kulin Shah, Vasilis Kontonis, Sham Kakade, and Sitan Chen. Train for the worst, plan for the best: Understanding token ordering in masked diffusions. arXiv preprint arXiv:2502.06768, 2025.

  • Liang et al. [2024]

    Tian Liang, Zhiwei He, Wenxiang Jiao, Xing Wang, Yan Wang, Rui Wang, Yujiu Yang, Shuming Shi, and Zhaopeng Tu. Encouraging divergent thinking in large language models through multi-agent debate. In Proceedings of the 2024 conference on empirical methods in natural language processing, pages 17889–17904, 2024.

  • Liebe et al. [2025]

    Stefanie Liebe, Johannes Niediek, Matthijs Pals, Thomas P Reber, Jennifer Faber, Jan Bostroem, Christian E Elger, Jakob H Macke, and Florian Mormann. Phase of firing does not reflect temporal order in sequence memory of humans and recurrent neural networks. Nature Neuroscience, pages 1–10, 2025.

  • Lifshitz et al. [2025]

    Shalev Lifshitz, Sheila A McIlraith, and Yilun Du. Multi-agent verification: Scaling test-time compute with multiple verifiers. arXiv preprint arXiv:2502.20379, 2025.

  • Lightman et al. [2023]

    Hunter Lightman, Vineet Kosaraju, Yuri Burda, Harrison Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. Let’s verify step by step. In The Twelfth International Conference on Learning Representations, 2023.

  • Lin et al. [2022]

    Stephanie Lin, Jacob Hilton, and Owain Evans. Truthfulqa: Measuring how models mimic human falsehoods. In Proceedings of the 60th annual meeting of the association for computational linguistics (volume 1: long papers), pages 3214–3252, 2022.

  • Liu et al. [2025]

    Jun Liu, Zhenglun Kong, Changdi Yang, Fan Yang, Tianqi Li, Peiyan Dong, Joannah Nanjekye, Hao Tang, Geng Yuan, Wei Niu, et al. Rcr-router: Efficient role-aware context routing for multi-agent llm systems with structured memory. arXiv preprint arXiv:2508.04903, 2025.

  • Liu et al. [2024]

    Zhiwei Liu, Weiran Yao, Jianguo Zhang, Zuxin Liu, Liangwei Yang, Rithesh RN, Tian Lan, Ming Zhu, Juntao Tan, Shirley Kokane, et al. Pract: Optimizing principled reasoning and acting of llm agent. In Proceedings of the 28th Conference on Computational Natural Language Learning, pages 442–446, 2024.

  • Lu et al. [2023]

    Pan Lu, Hritik Bansal, Tony Xia, Jiacheng Liu, Chunyuan Li, Hannaneh Hajishirzi, Hao Cheng, Kai-Wei Chang, Michel Galley, and Jianfeng Gao. Mathvista: Evaluating mathematical reasoning of foundation models in visual contexts. arXiv preprint arXiv:2310.02255, 2023.

  • Mathematical Association of America [2025]

    Mathematical Association of America. American invitational mathematics examination (aime i & ii) 2025. https://www.maa.org/math-competitions/aime, 2025. Accessed: 2025.

  • McGill and Perona [2017]

    Mason McGill and Pietro Perona. Deciding how to decide: Dynamic routing in artificial neural networks. In International Conference on Machine Learning, pages 2363–2372. PMLR, 2017.

  • Mihaylov et al. [2018]

    Todor Mihaylov, Peter Clark, Tushar Khot, and Ashish Sabharwal. Can a suit of armor conduct electricity? a new dataset for open book question answering. arXiv preprint arXiv:1809.02789, 2018.

  • Nadalin et al. [2019]

    Jessica K Nadalin, Louis-Emmanuel Martinet, Ethan B Blackwood, Meng-Chen Lo, Alik S Widge, Sydney S Cash, Uri T Eden, and Mark A Kramer. A statistical framework to assess cross-frequency coupling while accounting for confounding analysis effects. Elife, 8:e44287, 2019.

  • Niimi [2025]

    Junichiro Niimi. A simple ensemble strategy for llm inference: Towards more stable text classification. In International Conference on Applications of Natural Language to Information Systems, pages 189–199. Springer, 2025.

  • Pan et al. [2018]

    Boyuan Pan, Yazheng Yang, Hao Li, Zhou Zhao, Yueting Zhuang, Deng Cai, and Xiaofei He. Macnet: Transferring knowledge from machine comprehension to sequence-to-sequence models. Advances in Neural Information Processing Systems, 31, 2018.

  • Pan et al. [2025]

    Zhihong Pan, Kai Zhang, Yuze Zhao, and Yupeng Han. Route to reason: Adaptive routing for llm and reasoning strategy selection. arXiv preprint arXiv:2505.19435, 2025.

  • Pan et al. [2024]

    Zizheng Pan, Bohan Zhuang, De-An Huang, Weili Nie, Zhiding Yu, Chaowei Xiao, Jianfei Cai, and Anima Anandkumar. T-stitch: Accelerating sampling in pre-trained diffusion models with trajectory stitching. arXiv preprint arXiv:2402.14167, 2024.

  • Pezzulo and Castelfranchi [2009]

    Giovanni Pezzulo and Cristiano Castelfranchi. Thinking as the control of imagination: a conceptual framework for goal-directed systems. Psychological Research PRPF, 73(4):559–577, 2009.

  • Phan et al. [2025]

    Long Phan, Alice Gatti, Ziwen Han, Nathaniel Li, Josephina Hu, Hugh Zhang, Chen Bo Calvin Zhang, Mohamed Shaaban, John Ling, Sean Shi, et al. Humanity’s last exam. arXiv preprint arXiv:2501.14249, 2025.

  • Rein et al. [2024]

    David Rein, Betty Li Hou, Asa Cooper Stickland, Jackson Petty, Richard Yuanzhe Pang, Julien Dirani, Julian Michael, and Samuel R Bowman. Gpqa: A graduate-level google-proof q&a benchmark. In First Conference on Language Modeling, 2024.

  • Saikh et al. [2022]

    Tanik Saikh, Tirthankar Ghosal, Amish Mittal, Asif Ekbal, and Pushpak Bhattacharyya. Scienceqa: A novel resource for question answering on scholarly articles. International Journal on Digital Libraries, 23(3):289–301, 2022.

  • Samadi et al. [2025]

    Mehrzad Samadi, Aleksander Ficek, Sean Narenthiran, Siddhartha Jain, Wasi Uddin Ahmad, Somshubra Majumdar, Vahid Noroozi, and Boris Ginsburg. Scaling test-time compute to achieve ioi gold medal with open-weight models. arXiv preprint arXiv:2510.14232, 2025.

  • Schwenk et al. [2022]

    Dustin Schwenk, Apoorv Khandelwal, Christopher Clark, Kenneth Marino, and Roozbeh Mottaghi. A-okvqa: A benchmark for visual question answering using world knowledge. In European conference on computer vision, pages 146–162. Springer, 2022.

  • Segneri et al. [2020]

    Marco Segneri, Hongjie Bi, Simona Olmi, and Alessandro Torcini. Theta-nested gamma oscillations in next generation neural mass models. Frontiers in computational neuroscience, 14:47, 2020.

  • Shi et al. [2025]

    Haochen Shi, Tianshi Zheng, Weiqi Wang, Baixuan Xu, Chunyang Li, Chunkit Chan, Tao Fan, Yangqiu Song, and Qiang Yang. Inferencedynamics: Efficient routing across llms through structured capability and knowledge profiling. arXiv preprint arXiv:2505.16303, 2025.

  • Su et al. [2025]

    Jiayuan Su, Fulin Lin, Zhaopeng Feng, Han Zheng, Teng Wang, Zhenyu Xiao, Xinlong Zhao, Zuozhu Liu, Lu Cheng, and Hongwei Wang. Cp-router: An uncertainty-aware router between llm and lrm. arXiv preprint arXiv:2505.19970, 2025.

  • Suzgun et al. [2023]

    Mirac Suzgun, Nathan Scales, Nathanael Schärli, Sebastian Gehrmann, Yi Tay, Hyung Won Chung, Aakanksha Chowdhery, Quoc Le, Ed Chi, Denny Zhou, et al. Challenging big-bench tasks and whether chain-of-thought can solve them. In Findings of the Association for Computational Linguistics: ACL 2023, pages 13003–13051, 2023.

  • Tamura et al. [2017]

    Makoto Tamura, Timothy J Spellman, Andrew M Rosen, Joseph A Gogos, and Joshua A Gordon. Hippocampal-prefrontal theta-gamma coupling during performance of a spatial working memory task. Nature communications, 8(1):2182, 2017.

  • Trivedi et al. [2022]

    Harsh Trivedi, Niranjan Balasubramanian, Tushar Khot, and Ashish Sabharwal. Musique: Multihop questions via single-hop question composition. Transactions of the Association for Computational Linguistics, 10:539–554, 2022.

  • Wang et al. [2025]

    Ji Wang, Kashing Chen, Xinyuan Song, Ke Zhang, Lynn Ai, Eric Yang, and Bill Shi. Symphony: A decentralized multi-agent framework for scalable collective intelligence. arXiv preprint arXiv:2508.20019, 2025.

  • Wang et al. [2022]

    Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc Le, Ed Chi, Sharan Narang, Aakanksha Chowdhery, and Denny Zhou. Self-consistency improves chain of thought reasoning in language models. arXiv preprint arXiv:2203.11171, 2022.

  • Wang et al. [2024]

    Yubo Wang, Xueguang Ma, Ge Zhang, Yuansheng Ni, Abhranil Chandra, Shiguang Guo, Weiming Ren, Aaran Arulraj, Xuan He, Ziyan Jiang, et al. Mmlu-pro: A more robust and challenging multi-task language understanding benchmark. Advances in Neural Information Processing Systems, 37:95266–95290, 2024.

  • Wei et al. [2022]

    Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Fei Xia, Ed Chi, Quoc V Le, Denny Zhou, et al. Chain-of-thought prompting elicits reasoning in large language models. Advances in neural information processing systems, 35:24824–24837, 2022.

  • Wei et al. [2025]

    Zihao Wei, Liang Pang, Jiahao Liu, Jingcheng Deng, Shicheng Xu, Zenghao Duan, Jingang Wang, Fei Sun, Xunliang Cai, Huawei Shen, et al. Stop spinning wheels: Mitigating llm overthinking via mining patterns for early reasoning exit. arXiv preprint arXiv:2508.17627, 2025.

  • White et al. [2024]

    Colin White, Samuel Dooley, Manley Roberts, Arka Pal, Ben Feuer, Siddhartha Jain, Ravid Shwartz-Ziv, Neel Jain, Khalid Saifullah, Siddartha Naidu, et al. Livebench: A challenging, contamination-free llm benchmark. arXiv preprint arXiv:2406.19314, 4, 2024.

  • Yang et al. [2025]

    Wenkai Yang, Shuming Ma, Yankai Lin, and Furu Wei. Towards thinking-optimal scaling of test-time compute for llm reasoning. arXiv preprint arXiv:2502.18080, 2025.

  • Yang et al. [2018]

    Zhilin Yang, Peng Qi, Saizheng Zhang, Yoshua Bengio, William Cohen, Ruslan Salakhutdinov, and Christopher D Manning. Hotpotqa: A dataset for diverse, explainable multi-hop question answering. In Proceedings of the 2018 conference on empirical methods in natural language processing, pages 2369–2380, 2018.

  • Yue et al. [2025]

    Xiang Yue, Tianyu Zheng, Yuansheng Ni, Yubo Wang, Kai Zhang, Shengbang Tong, Yuxuan Sun, Botao Yu, Ge Zhang, Huan Sun, et al. Mmmu-pro: A more robust multi-discipline multimodal understanding benchmark. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 15134–15186, 2025.

  • Zhou et al. [2023]

    Jeffrey Zhou, Tianjian Lu, Swaroop Mishra, Siddhartha Brahma, Sujoy Basu, Yi Luan, Denny Zhou, and Le Hou. Instruction-following evaluation for large language models. arXiv preprint arXiv:2311.07911, 2023.

Appendix Contents

  • •

    A. Related Work .A

  • •

    B. Code Availability .B

  • •

    C. Notation and Nomenclature .C

  • •

    D. Theoretical Motivation: Risk-Sensitive Control .D

  • •

    E. Algorithm Specifications (FEP-Fusion & Routing) .E

  • •

    F. Difficulty Estimator Training Details .F

  • •

    G. Neuro-Computational Motivation (TG-PAC) .G

  • •

    H. Extended Comparison with Concurrent Frameworks .H

  • •

    I. Theory-to-Implementation Mapping .I

  • •

    J. Feature Extraction for Difficulty Estimation .J

  • •

    K. Error Analysis and Taxonomy .K

  • •

    L. FEP Fusion Case Study .L

  • •

    M. Fusion Method Ablation .M

  • •

    N. Hyperparameters and Configuration .N

  • •

    O. Dual-Agent Prompt Templates .O

  • •

    P. Implementation Details (Log-Prob & Efficiency) .P.2

  • •

    Q. Detailed Reproducibility Protocols .Q

  • •

    R. Dataset Details (IMO 2025 Verification) .R

  • •

    S. Additional Performance Analysis .S

  • •

    T. Pareto Efficiency Analysis .T

  • •

    U. Additional Ablation Studies .U

  • •

    V. Comparison with Learned Verifiers (PRM) .V

  • •

    W. Adversarial Robustness Analysis .W

  • •

    X. Case Studies .X

  • •

    Y. Statistical Rigor and Significance Analysis .Y

Adaptive Routing and Test-Time Compute. Recent work on test-time compute has moved from static budgets to adaptive allocation via routing, early-exit, or conditional sampling. Route-to-Reason (RTR) Pan et al. [2025] and CP-Router Su et al. [2025] dispatch inputs across models based on predicted difficulty or uncertainty, sometimes leveraging conformal-style signals. HierRouter Gupta et al. [2025] further explores hierarchical coordination with reinforcement learning (e.g., PPO) to route among specialized experts. Compared to these approaches, ODAR targets a simpler and lower-overhead design point: we use a lightweight difficulty estimator to partition queries into three compute regimes, and avoid RL-based training and heavy router optimization. Importantly, ODAR additionally addresses a largely orthogonal challenge: how to fuse candidates from heterogeneous backbones. Rather than relying on heuristic voting, ODAR performs fusion via an aligned free-energy-based score that enables cross-model comparison. InferenceDynamics Shi et al. [2025] emphasizes capability profiling and dispatch policies; ODAR instead prioritizes per-query reasoning complexity and couples routing with a principled fusion stage for candidate selection.

Multi-Agent Orchestration and Dispatch. Beyond difficulty routing, orchestration frameworks (e.g., MoMA Guo et al. [2025], RCR-Router Liu et al. [2025]) focus on broad task-level dispatching, such as selecting a coding agent vs. a conversational agent, often with structured memory or role-aware control. ODAR is complementary: while our deployment pipeline can include a lightweight, rule-based dispatch layer (e.g., modality/domain cues and priority rules) for system integration, our primary focus is depth-adaptive reasoning—allocating Slow-Agent compute only when needed. This design directly targets the “overthinking” phenomenon and conditional compute allocation within a two-speed agent architecture, similar in spirit to adaptive strategies explored in retrieval-augmented routing (e.g., RoutingGen Liu et al. [2025]) but applied to pure reasoning with an explicit energy-based selection objective.

Bio-Inspired and Principled Scoring for Selection. Several lines of work draw inspiration from biological cognition and dual-process reasoning, including dual-mode routing (e.g., SynapseRoute Segneri et al. [2020]) and dynamically scaling internal computation (e.g., Inner Thinking Transformer Chen et al. [2025]). ODAR follows this general intuition by separating Fast vs. Slow inference regimes; we use the Theta–Gamma (TG) terminology as an interpretive analogy for fast/slow gating rather than a mechanistic neuroscientific claim. On the “principled” side, Active Inference and free-energy ideas have been used for agentic planning and action selection (e.g., PRACT Liu et al. [2024]). ODAR adapts this perspective specifically to the fusion/selection stage: we score candidates with a free-energy-inspired objective and incorporate a variance-based penalty (varentropy proxy) to discourage unstable, high-uncertainty generations. While this does not constitute a full biological or probabilistic guarantee, it provides a coherent alternative to purely heuristic voting for heterogeneous multi-candidate selection.

While our research is currently undergoing further extensions and large-scale validation, we are committed to open-source principles. Upon the acceptance and publication of this work, the complete implementation of the ODAR framework, including the Difficulty Estimator training scripts, the FEP-based fusion module, and the experimental evaluation suite for all 23 benchmarks, will be made publicly available on GitHub. This repository will also include the pre-trained weights for the Difficulty Estimator and the Dockerized environment for full reproducibility of the Open-ODAR configuration.

To facilitate understanding of the theoretical derivations and algorithmic implementation, we summarize the key mathematical notations and system variables in Table 5.

Table 5: Nomenclature and key variables used throughout the ODAR framework.

SymbolDescription
Variables & Distributions
xxInput query (text or multimodal)
y,y^y,\hat{y}Candidate answer sequence / Final selected answer
ssLatent cognitive state (reasoning path)
$q(sy)$
$\mathcal{F}(yx)$
$G(\pix)$
System Components & Routing
m_θ/A_θm\_{\theta}/A\_{\theta}Fast Agent (Gamma-band, GPT-5.1)
m_γ/A_γm\_{\gamma}/A\_{\gamma}Slow Agent (Theta-band, Claude-4.5)
ϕ(x)\phi(x)Feature vector extracted from query xx
d(x)d(x)Predicted difficulty score, d∈[0,1]d\in[0,1]
Π\PiPolicy set {π_S,π_M,π_H}\{\pi\_{\text{S}},\pi\_{\text{M}},\pi\_{\text{H}}\} (Simple, Medium, Hard)
C\mathcal{C}Set of candidate answers for selection
Parameters & Weights
τ_1,τ_2\tau\_{1},\tau\_{2}Routing thresholds (0.3, 0.7)
nnNumber of samples for Best-of-N strategy
w_θ,w_γw\_{\theta},w\_{\gamma}FEP-based fusion weights for agent aggregation
λ\lambdaComplexity penalty weight in FEP formulation

Appendix D Theoretical Motivation: Risk-Sensitive Control and Epistemic Uncertainty

Section titled “Appendix D Theoretical Motivation: Risk-Sensitive Control and Epistemic Uncertainty”

We provide a rigorous theoretical justification for the ODAR objective function (Eq. 3). Our formulation is grounded in Risk-Sensitive Control Theory, which naturally yields a mean-variance objective. We then utilize the Law of Total Variance to interpret the variance term as a proxy for epistemic uncertainty.

Standard language modeling minimizes the expected surprisal (negative log-likelihood). However, in high-stakes reasoning, we desire an agent that is not only accurate on average but also risk-averse to uncertainty.

Let L(y)=−log⁡p(y∣x)L(y)=-\log p(y|x) denote the loss (surprisal) of a generated sequence yy. In Risk-Sensitive Control, the objective is to minimize the Entropic Risk Measure (or Exponential Utility), defined as:

$$\mathcal{J}_{\gamma}(x)=\frac{1}{\gamma}\log\mathbb{E}_{y\sim p(\cdotx)}\left[\exp\left(\gamma L(y)\right)\right]$$

where γ>0\gamma>0 is the risk-sensitivity parameter. This objective heavily penalizes tails of the loss distribution (i.e., high-surprisal “hallucinations”).

Since computing the expectation over the full output space is intractable, we approximate J_γ\mathcal{J}\_{\gamma} using a second-order Taylor expansion of the cumulant generating function around the mean μ_L=E[L(y)]\mu\_{L}=\mathbb{E}[L(y)]:

J_γ(x)≈E[L(y)]⏟_Expected Performance+γ2Var[L(y)]⏟_Risk Penalty+O(γ2)\mathcal{J}\_{\gamma}(x)\approx\underbrace{\mathbb{E}[L(y)]}\_{\text{Expected Performance}}+\frac{\gamma}{2}\underbrace{\text{Var}[L(y)]}\_{\text{Risk Penalty}}+\mathcal{O}(\gamma^{2})(14)

Conclusion: The mean-variance form in our objective (Eq. 3) is not a heuristic addition; it is the second-order approximation of the Risk-Sensitive objective. Minimizing Var[L(y)]\text{Var}[L(y)] is mathematically equivalent to maximizing robustness against worst-case reasoning failures under a risk-averse utility.

D.2 Interpretation via Variance Decomposition

Section titled “D.2 Interpretation via Variance Decomposition”

Having established why we minimize variance (via risk sensitivity), we now analyze what this variance represents physically. We employ the Law of Total Variance to decompose the total output volatility based on the latent reasoning state ss.

Let LL be the random variable representing surprisal. We decompose its variance:

$$\text{Var}[L]=\underbrace{\mathbb{E}_{s}[\text{Var}(Ls)]}_{\text{Aleatoric (Lexical)}}+\underbrace{\text{Var}_{s}(\mathbb{E}[Ls])}_{\text{Epistemic (Reasoning)}}$$

Here, conditioning on ss implies examining the distribution of yy generated by a fixed latent reasoning path.

Aleatoric Term: The first term, E_s[Var(L∣s)]\mathbb{E}\_{s}[\text{Var}(L|s)], captures variability due to lexical choices (synonyms, phrasing) given a fixed, correct logic. This noise is inherent to language generation.

Epistemic Term: The second term, Var_s(E[L∣s])\text{Var}\_{s}(\mathbb{E}[L|s]), captures variability in the expected surprisal caused by uncertainty over the reasoning path ss itself.

Assumption 1 (Epistemic Dominance). We posit that for rigorous reasoning tasks, the variance induced by switching between contradictory reasoning paths (epistemic) dominates the variance induced by lexical phrasing (aleatoric). That is: Var_s(E[L∣s])≫E_s[Var(L∣s)]\text{Var}\_{s}(\mathbb{E}[L|s])\gg\mathbb{E}\_{s}[\text{Var}(L|s)].

Under this assumption, the total variance Var[L(y)]\text{Var}[L(y)] serves as a tight lower-bound proxy for epistemic uncertainty. Thus, the Risk-Sensitive objective effectively penalizes reasoning ambiguity.

The derivation above relies on the ensemble variance Var[L(y)]\text{Var}[L(y)] over the distribution of all possible generations. At inference time, we only have access to a single generated sequence y_ty\_{t}.

To make this computable, we introduce a Practical Estimator based on the Weak Ergodicity Hypothesis. We assume that for a long, coherent reasoning chain, the temporal variance of token-level surprisal approximates the ensemble variance of the generation process:

$$\text{Var}_{y\sim p(\cdotx)}[L(y)]\approx\widehat{\text{Var}}_{t}[-\log p(y_{t}y_{<t},x)]$$

Robust Implementation Note: To satisfy the stationarity requirement implied by ergodicity, we exclude highly structured tokens (e.g., formatting templates, repeated headers) from the variance calculation, computing Var^_t\widehat{\text{Var}}\_{t} only over the substantive reasoning steps. This prevents format-induced volatility from confounding the epistemic signal.

Our framework is rigorously grounded in the following logic flow. 1. Origin: We adopt a Risk-Sensitive control objective (Exponential Utility). 2. Derivation: A Taylor expansion yields a tractable Mean-Variance objective. 3. Interpretation: Via Variance Decomposition, minimizing variance targets Epistemic Uncertainty (hallucinations). 4. Implementation: We operationalize this via a temporal variance estimator over the reasoning chain.

This appendix provides the complete algorithmic specifications for ODAR’s core components. We first present the FEP-based multi-agent fusion logic used for candidate selection, followed by the adaptive routing procedure that governs the overall inference flow.

Algorithm 1 FEP-Based Multi-Agent Fusion (Character-Level & Z-Score)

0:  Candidate set Y={y_1,…,y_K}\mathcal{Y}=\{y\_{1},\ldots,y\_{K}\}, query xx, penalty weight λ=0.1\lambda=0.1

0:  Model statistics μ_m,σ_m\mu\_{m},\sigma\_{m} for each agent mm (for Z-score alignment)

0:  Selected answer y^\hat{y}

1:  // Step 1: Compute Character-Normalized Free Energy

2:  for i=1i=1 to KK do

3:    // Calculate Energy Density per Character (Eq. 10)

4:    ℓ_i←−1∣y_i∣_char∑_t=1∣y_i∣_toklog⁡p(y_i,t∣y_i,<t,x)\ell\_{i}\leftarrow-\frac{1}{|y\_{i}|\_{\text{char}}}\sum\_{t=1}^{|y\_{i}|\_{\text{tok}}}\log p(y\_{i,t}\mid y\_{i,<t},x)

5:    // Calculate Uncertainty Penalty (Varentropy)

6:    σ2_i←Var[log⁡p(y_i,t∣y_i,<t,x)]\sigma^{2}\_{i}\leftarrow\text{Var}[\log p(y\_{i,t}\mid y\_{i,<t},x)]

7:    // Raw Free Energy (Character-normalized)

8:    F_raw(y_i∣x)←ℓ_i+λ⋅σ2_i\mathcal{F}\_{\text{raw}}(y\_{i}|x)\leftarrow\ell\_{i}+\lambda\cdot\sigma^{2}\_{i}

9:    // Model-Specific Z-Score Alignment (Eq. 11)

10:    F(y_i∣x)←F_raw(y_i∣x)−μ_mσ_m\mathcal{F}(y\_{i}|x)\leftarrow\frac{\mathcal{F}\_{\text{raw}}(y\_{i}|x)-\mu\_{m}}{\sigma\_{m}}

11:  end for

12:  // Step 2: Select candidate with minimum standardized energy

13:  y^←arg⁡min⁡_y_i∈YF(y_i∣x)\hat{y}\leftarrow\arg\min\_{y\_{i}\in\mathcal{Y}}\mathcal{F}(y\_{i}|x)

14:  Return y^\hat{y}

Algorithm 2 Active Inference for Adaptive Routing

0:  Query xx, Difficulty Estimator DE(⋅)\text{DE}(\cdot), thresholds τ_1=0.3\tau\_{1}=0.3, τ_2=0.7\tau\_{2}=0.7

0:  Selected policy π\*\pi^{\*} and final answer y^\hat{y}

1:  // Step 1: Estimate difficulty (approximate EFE)

2:  d←DE(x)d\leftarrow\text{DE}(x)

3:  // Step 2: Select policy based on difficulty

4:  if d<τ_1d<\tau\_{1} then

5:    π\*←π_S\pi^{\*}\leftarrow\pi\_{\text{S}} // Simple Path: low epistemic value

6:  else if d<τ_2d<\tau\_{2} then

7:    π\*←π_M\pi^{\*}\leftarrow\pi\_{\text{M}} // Medium Path: moderate epistemic value

8:  else

9:    π\*←π_H\pi^{\*}\leftarrow\pi\_{\text{H}} // Hard Path: high epistemic value

10:  end if

11:  // Step 3: Execute selected policy

12:  if π\*=π_S\pi^{\*}=\pi\_{\text{S}} then

13:    y^←m_θ(x)\hat{y}\leftarrow m\_{\theta}(x) // Fast Agent only

14:  else if π\*=π_M\pi^{\*}=\pi\_{\text{M}} then

15:    y_θ←m_θ(x)y\_{\theta}\leftarrow m\_{\theta}(x), y_γ←m_γ(x,y_θ)y\_{\gamma}\leftarrow m\_{\gamma}(x,y\_{\theta}) // Slow Agent verifies

16:    y^←FEP-Fusion({y_θ,y_γ})\hat{y}\leftarrow\text{FEP-Fusion}(\{y\_{\theta},y\_{\gamma}\}) // See Algorithm 1

17:  else

18:    y_θ←m_θ(x)y\_{\theta}\leftarrow m\_{\theta}(x)

19:    Y_γ←{m_γ(x)_i:i=1,…,n}\mathcal{Y}\_{\gamma}\leftarrow\{m\_{\gamma}(x)\_{i}:i=1,\ldots,n\} // Best-of-N (n=5n=5)

20:    y^←FEP-Fusion({y_θ}∪Y_γ)\hat{y}\leftarrow\text{FEP-Fusion}(\{y\_{\theta}\}\cup\mathcal{Y}\_{\gamma}) // See Algorithm 1

21:  end if

22:  return π\*,y^\pi^{\*},\hat{y}

Appendix F Difficulty Estimator Training Details

Section titled “Appendix F Difficulty Estimator Training Details”

Since the definition of the Empirical EFE target d\*d^{\*} (see Eq. 6 in Section 3.2) requires ground-truth labels for both human cognition time and model accuracy, we constructed a specialized calibration dataset D_cal={(x_i,d_i\*)}_i=1N\mathcal{D}\_{cal}=\{(x\_{i},d\_{i}^{\*})\}\_{i=1}^{N} with N=2,000N=2,000 samples, stratified across our benchmark suite.

Human Time Proxy (T_humanT\_{\text{human}}).
Section titled “Human Time Proxy (T_humanT\_{\text{human}}T_human).”

To approximate the epistemic uncertainty term, we sourced average solution times from metadata provided in the ARC-Challenge, MATH, and GPQA datasets. For datasets without explicit human timing logs (e.g., GSM8K), we utilized the normalized token length of the ground-truth Chain-of-Thought (CoT) reasoning as a proxy for temporal cognitive load. We assume that the length of a valid reasoning chain correlates positively with the intrinsic entropy of the problem state.

Fast Agent Accuracy (Acc_fastAcc\_{\text{fast}}).
Section titled “Fast Agent Accuracy (Acc_fastAcc\_{\text{fast}}Acc_fast).”

To measure the pragmatic risk term, we executed the Fast Agent (A_θA\_{\theta}, GPT-5.1 with T=0.2T=0.2) on all training samples to obtain binary correctness labels I(y_θ==y_GT)\mathbb{I}(y\_{\theta}==y\_{GT}). A failure (Acc=0Acc=0) signals a high-risk state necessitating the Slow Agent’s intervention.

The estimator parameters W∈R1×24W\in\mathbb{R}^{1\times 24} and b∈Rb\in\mathbb{R} are optimized to minimize the Mean Squared Error (MSE) between the predicted amortized energy d(x)d(x) and the empirical target d\*d^{\*}. We incorporated L_2L\_{2} regularization to prevent overfitting to specific dataset keywords:

L_DE=1N∑_i=1N(d(x_i)−d_i\*)2+λ_reg∥W∥_22\mathcal{L}\_{\text{DE}}=\frac{1}{N}\sum\_{i=1}^{N}(d(x\_{i})-d\_{i}^{\*})^{2}+\lambda\_{\text{reg}}\|W\|\_{2}^{2}(17)

Training was performed using the Adam optimizer with a learning rate of 10−310^{-3}, a batch size of 32, and λ_reg=0.01\lambda\_{\text{reg}}=0.01 for 50 epochs. The feature extraction logic (ϕ(x)\phi(x)) is detailed in Appendix J.

G.1 Biological Inspiration: Threshold-Gated Conditional Computation

Section titled “G.1 Biological Inspiration: Threshold-Gated Conditional Computation”

Artificial neural networks and biological brains operate on fundamentally different substrates—continuous oscillatory dynamics across billions of neurons versus discrete routing between two software agents. ODAR does not attempt to simulate biological neural mechanisms. Instead, we draw a functional analogy to the brain’s Theta-Gamma Phase-Amplitude Coupling (TG-PAC) at the level of control logic, abstracting a single design principle: threshold-gated conditional computation.

Recent single-neuron recordings in humans suggest that TG-PAC implements a form of conditional computation in biological circuits:

  • •

    Theta Phase as Control Signal: The slow theta rhythm (4-8 Hz) acts as a temporal gate, organizing neural firing into discrete windows of processing. It reflects cognitive control demand.

  • •

    Gamma Amplitude as Gated Resource: High-frequency gamma bursts (30-100 Hz) represent intensive local processing. Crucially, these metabolically expensive bursts are not continuous; they are selectively triggered only when the theta phase indicates a high-demand condition.

What ODAR Abstracts: The core principle that expensive computation should be conditionally gated by a control signal reflecting task demand. Formally, both systems implement a control law of the form:

Resource(t)=Base+I(ControlSignal(t)>Threshold)⋅ExpensiveCompute\text{Resource}(t)=\text{Base}+\mathbb{I}(\text{ControlSignal}(t)>\text{Threshold})\cdot\text{ExpensiveCompute}(18)

where I(⋅)\mathbb{I}(\cdot) is the indicator function. In TG-PAC, the control signal is oscillatory theta phase; in ODAR, it is the learned difficulty score D(x)\mathcal{D}(x).

What ODAR Does Not Claim:

  • •

    Temporal dynamics: ODAR’s routing is aperiodic and input-driven, not oscillatory.

  • •

    Neural implementation: ODAR uses two discrete LLM agents, not billions of coupled neurons.

  • •

    Mechanistic equivalence: The analogy is at the level of control flow, not biophysics.

This “gating-for-efficiency” principle motivates ODAR’s architecture: the Difficulty Estimator acts as the control signal, gating invocation of the computationally expensive Slow Agent only when the estimated difficulty exceeds threshold τ\tau. A formal analysis of this functional correspondence is provided in Appendix G.2.

G.2 Algorithmic Abstraction: From Oscillatory Gating to Discrete Routing

Section titled “G.2 Algorithmic Abstraction: From Oscillatory Gating to Discrete Routing”

To rigorously justify this bio-inspiration without claiming biological realism, we define ODAR as a Discrete-Event Abstraction of the TG-PAC dynamics. We show that both systems implement the same Threshold-Gated Control Law.

  1. The Biological Reference System (Continuous) The governing control law for neural resource recruitment can be modeled as :
A_γ(t)=A_base+H(u_bio(t)−κ)⏟_Gating Function⋅A_burstA\_{\gamma}(t)=A\_{base}+\underbrace{\mathcal{H}(u\_{bio}(t)-\kappa)}\_{\text{Gating Function}}\cdot A\_{burst}(19)

where A_γA\_{\gamma} is the local activity amplitude, H\mathcal{H} is the Heaviside step function, u_bio(t)=sin⁡(ϕ_θ(t))u\_{bio}(t)=\sin(\phi\_{\theta}(t)) is the oscillatory control signal, and κ\kappa is the activation threshold.

  1. The ODAR System (Discrete) ODAR operates on a sequence of discrete queries x_ix\_{i}. The computational cost C(x_i)C(x\_{i}) is determined by the router’s decision:
C(x_i)=C_base+I(D(x_i)−τ)⏟_Routing Function⋅C_deltaC(x\_{i})=C\_{base}+\underbrace{\mathbb{I}(\mathcal{D}(x\_{i})-\tau)}\_{\text{Routing Function}}\cdot C\_{delta}(20)

where I\mathbb{I} is the indicator function, D(x_i)\mathcal{D}(x\_{i}) is the difficulty score (control signal), and τ\tau is the learned threshold.

  1. Functional Homomorphism We establish a structure-preserving map between the control variables:
  • •

    Control Signal Mapping (u(t)↦D(x_i)u(t)\mapsto\mathcal{D}(x\_{i})): In the brain, theta phase dictates the “window of excitability”. In ODAR, the difficulty score dictates the “window of necessity”. Both serve as the excitability signal uu.

  • •

    Actuation Mapping (A_burst↦C_deltaA\_{burst}\mapsto C\_{delta}): Both represent the recruitment of metabolically expensive resources (spiking bursts vs. API tokens).

Proposition (Objective Equivalence): If we view the stream of queries x_1,…,x_Nx\_{1},\dots,x\_{N} as sampling a continuous cognitive load signal, ODAR’s routing objective is the Riemann Sum approximation of the biological energy-efficiency functional:

J_bio≈∑_i[Acc(x_i)−λ⋅I(u(x_i)−τ)]J\_{bio}\approx\sum\_{i}[Acc(x\_{i})-\lambda\cdot\mathbb{I}(u(x\_{i})-\tau)](21)

This demonstrates that ODAR is algorithmically equivalent to a discretized solution of the biological resource allocation problem, replacing temporal periodicity (required for biological sync) with semantic gating (required for software efficiency).

Table 6: Functional Correspondence between TG-PAC and ODAR.

Biological ComponentODAR AbstractionComputational Role
Theta Rhythm (4-8Hz)Difficulty EstimatorGating Signal: Assesses demand/load
Gamma Bursts (30-100Hz)Slow Agent ExecutionIntensive Compute: Expensive processing
Phase-Amplitude CouplingDynamic Routing (τ\tau)Conditional Logic: If High Load →\to Activate
Metabolic ConstraintsToken Cost BudgetConstraint: Maximize accuracy per unit cost

Appendix H Extended Comparison with Concurrent Routing Frameworks

Section titled “Appendix H Extended Comparison with Concurrent Routing Frameworks”

To situate ODAR within the rapidly evolving landscape of adaptive inference, we provide a qualitative comparison with recent concurrent works in Table 7.

Table 7: Qualitative Comparison of Adaptive Routing Frameworks. ODAR distinguishes itself by integrating principled difficulty estimation (Active Inference) with a training-free fusion mechanism, avoiding the high training overhead of RL-based methods while targeting reasoning depth specifically.

FrameworkCore MechanismRouter TrainingInference OverheadPrimary GoalReasoning FocusBio-Inspired
HierRouter Gupta et al. [2025]Reinforcement Learning (PPO)High (Policy Training)MediumGeneral EfficiencyPartialNo
RTR Pan et al. [2025]Supervised RegressionMedium (Scalar Predictor)LowStrategy SelectionYesNo
MoMA Guo et al. [2025]Intent ClassificationMedium (Capability Profiling)LowGeneral OrchestrationNoNo
CP-Router Su et al. [2025]Conformal PredictionLow (Calibration Only)Medium (Sampling)Uncertainty/CostYesNo
InferenceDynamics Shi et al. [2025]Capability Knowledge GraphMedium (Profiling)LowKnowledge RoutingNoNo
ODAR (Ours)Active Inference & FEPLow (Lightweight DE)LowTest-Time ScalingStrong (System 2)Yes (TG-PAC)

ODAR differentiates itself from existing frameworks through three key dimensions. First, in terms of training efficiency, unlike HierRouter which necessitates expensive Reinforcement Learning policy optimization, ODAR employs a lightweight Difficulty Estimator trained on readily available metadata, coupled with an entirely training-free fusion mechanism. Second, regarding theoretical grounding, while approaches like CP-Router rely on statistical uncertainty via conformal prediction, ODAR uniquely operationalizes the Free Energy Principle. By using Varentropy as a proxy for epistemic uncertainty, it specifically targets and penalizes hallucinated reasoning paths rather than just generic confidence intervals. Finally, ODAR prioritizes System 2 specialization. Whereas frameworks like MoMA and InferenceDynamics focus on domain-based routing (e.g., dispatching Math vs. History queries), ODAR optimizes routing across reasoning depths (Fast heuristics vs. Slow deliberation), directly addressing the “overthinking” phenomenon in complex logical tasks.

Appendix I Theory-to-Implementation Mapping

Section titled “Appendix I Theory-to-Implementation Mapping”

Figure 4 illustrates the correspondence between theoretical principles and ODAR’s algorithmic components. The Free Energy Principle motivates the FEP-based fusion mechanism (Section 3.5), which selects answers by minimizing variational free energy rather than relying on heuristic voting. Active Inference theory guides the design of adaptive routing (Section 3.2), where the Difficulty Estimator approximates Expected Free Energy to select among reasoning policies. The theta-gamma coupling literature justifies the Fast-Slow agent dichotomy (Section 3.3), providing a biologically-grounded inductive bias for heterogeneous agent specialization.

Figure 4: Mapping from theoretical principles to computational implementation. Each theoretical framework contributes a

Figure 4: Mapping from theoretical principles to computational implementation. Each theoretical framework contributes a distinct component: FEP enables principled fusion, Active Inference guides adaptive routing, and theta-gamma coupling motivates the dual-agent architecture.

Figure 5: Theoretical framework overview. Left panel: neuroscientific principles including gamma oscillations, theta rhy

Figure 5: Theoretical framework overview. Left panel: neuroscientific principles including gamma oscillations, theta rhythms, and the Free Energy Principle. Middle panel: corresponding computational principles of fast pattern matching, slow verification, and uncertainty-driven resource allocation. Right panel: ODAR implementation comprising the Fast Agent, Slow Agent, and Difficulty Estimator.

Appendix J Feature Extraction for Difficulty Estimation

Section titled “Appendix J Feature Extraction for Difficulty Estimation”

To train the Difficulty Estimator, we extract a comprehensive feature vector ϕ(x)∈R24\phi(x)\in\mathbb{R}^{24} encoding lexical, structural, and semantic properties of query xx. This section provides complete specifications for reproducibility.

Table 8 presents the complete feature specification with definitions and importance scores derived from permutation importance analysis on the validation set.

Table 8: Complete feature specification for the Difficulty Estimator. Importance scores represent mean decrease in Pearson rr when feature is permuted, averaged over 10 runs.

IDFeatureDefinitionImp.
Lexical Features (k_1=8k\_{1}=8)
f_1f\_{1}Character lengthTotal number of characters in query0.012
f_2f\_{2}Word countNumber of whitespace-separated tokens0.018
f_3f\_{3}Token countBPE tokens via tiktoken (cl100k_base)0.024
f_4f\_{4}Avg. word lengthMean character count per word0.008
f_5f\_{5}Max word lengthMaximum character count across words0.006
f_6f\_{6}Flesch-KincaidReadability grade level, clamped to [0,20][0,20]0.015
f_7f\_{7}Numeric indicatorBinary: contains digits0.031
f_8f\_{8}Math symbol indicatorBinary: contains symbols from M\mathcal{M}0.042
Structural Features (k_2=6k\_{2}=6)
f_9f\_{9}Sentence countVia spaCy sentence segmentation0.019
f_10f\_{10}Clause countSBAR/SBARQ nodes in constituency parse0.027
f_11f\_{11}Question marksCount of “?” characters0.009
f_12f\_{12}Image indicatorBinary: multimodal input present0.038
f_13f\_{13}Parse tree depthMaximum depth in dependency parse0.033
f_14f\_{14}Logical connectivesCount of terms from L\mathcal{L}0.022
Semantic Features (k_3=10k\_{3}=10)
f_15f\_{15}TF-IDF (math)Aggregated TF-IDF for math vocabulary0.048
f_16f\_{16}TF-IDF (code)Aggregated TF-IDF for coding vocabulary0.041
f_17f\_{17}TF-IDF (logic)Aggregated TF-IDF for logic vocabulary0.035
f_18f\_{18}Difficulty densityFraction of words matching H\mathcal{H}0.052
f_19f\_{19}Type: multiple-choiceBinary: enumerated answer options present0.029
f_20f\_{20}Type: open-endedBinary: open response format0.025
f_21f\_{21}Type: proofBinary: proof/derivation requested0.044
f_22f\_{22}Domain: mathSoftmax probability from 8-way classifier0.056
f_23f\_{23}Domain: codeSoftmax probability from 8-way classifier0.047
f_24f\_{24}Domain: reasoningSoftmax probability from 8-way classifier0.039
Length Statistics (f_1f\_{1}–f_5f\_{5}).
Section titled “Length Statistics (f_1f\_{1}f_1–f_5f\_{5}f_5).”

We compute character count, word count, and token count using the tiktoken library with the cl100k encoding to ensure consistency with GPT-5.1 tokenization. Average and maximum word lengths capture lexical complexity.

The Flesch-Kincaid grade level is computed via the textstat library (v0.7.3). For queries containing mathematical notation, we replace LaTeX expressions with placeholder tokens before syllable counting. Scores are clamped to [0,20][0,20].

Mathematical Content (f_7f\_{7}, f_8f\_{8}).
Section titled “Mathematical Content (f_7f\_{7}f_7, f_8f\_{8}f_8).”

We define the mathematical symbol set as:

M={+,−,×,÷,=,≠,<,>,≤,≥,∑,∏,∫,∂,∇,∞}∪{LaTeX commands}\mathcal{M}=\{+,-,\times,\div,=,\neq,<,>,\leq,\geq,\sum,\prod,\int,\partial,\nabla,\infty\}\cup\{\text{LaTeX commands}\}(22)

Feature f_8f\_{8} indicates whether any symbol from M\mathcal{M} appears in the query.

Syntactic Complexity (f_9f\_{9}, f_10f\_{10}, f_13f\_{13}).
Section titled “Syntactic Complexity (f_9f\_{9}f_9, f_10f\_{10}f_10, f_13f\_{13}f_13).”

We employ spaCy for sentence segmentation and dependency parsing. Clause counting uses the Berkeley Neural Parser to identify subordinate clause nodes (SBAR, SBARQ) in constituency parses. For mathematical content, we apply preprocessing that replaces LaTeX blocks with placeholder tokens before parsing, improving parser accuracy from 67% to 94% on math-heavy queries.

We define the logical connective set as:

L={if, then, therefore, hence, thus, because, since, implies, iff, for all, there exists, such that}\mathcal{L}=\{\textit{if, then, therefore, hence, thus, because, since, implies, iff, for all, there exists, such that}\}(23)

Feature f_14f\_{14} counts case-insensitive occurrences of terms from L\mathcal{L}.

Domain-Specific TF-IDF (f_15f\_{15}–f_17f\_{17}).
Section titled “Domain-Specific TF-IDF (f_15f\_{15}f_15–f_17f\_{17}f_17).”

We construct domain vocabularies from 10,000 annotated queries in our calibration set. For each domain d∈{math,code,logic}d\in\{\text{math},\text{code},\text{logic}\}, we extract the top-100 discriminative terms by TF-IDF, excluding stopwords and high-frequency terms (>>50% of queries). Representative terms include:

Table 9: Representative vocabulary by domain used in lexical feature extraction.

| Domain | Representative Vocabulary (∣V_d∣|V\_{d}|) | | --- | --- | | Mathematics (87) | theorem, derivative, integral, matrix, eigenvalue, convergence, polynomial | | Coding (92) | algorithm, function, complexity, implement, recursive, runtime, optimize | | Logic (73) | valid, satisfiable, contradiction, premise, inference, deduction, entailment |

The query-level score is computed as f_d(x)=∑_t∈x∩V_dtfidf(t)f\_{d}(x)=\sum\_{t\in x\cap V\_{d}}\text{tfidf}(t).

We curate a set H\mathcal{H} of 47 high-difficulty markers based on manual analysis of 500 challenging problems. The set includes cognitive demand indicators such as prove, derive, generalize, optimize, compare and contrast, analyze, and synthesize. Difficulty density is computed as:

$$f_{18}=\frac{{h\in\mathcal{H}:h\subseteq x}}{
Question Type (f_19f\_{19}–f_21f\_{21}).
Section titled “Question Type (f_19f\_{19}f_19–f_21f\_{21}f_21).”

We classify question format using pattern matching: multiple-choice queries exhibit enumerated options (e.g., “(A)”, “(B)”); open-ended queries begin with interrogative words without option structure; proof requests contain explicit derivation keywords.

Domain Classification (f_22f\_{22}–f_24f\_{24}).
Section titled “Domain Classification (f_22f\_{22}f_22–f_24f\_{24}f_24).”

We train a DistilBERT-based 8-way classifier (66M parameters) on 50,000 labeled queries, achieving 89.2% accuracy. The eight classes are: Mathematics, Coding, Logic, Commonsense, Knowledge, Multimodal, Language, and Other. Features f_22f\_{22}–f_24f\_{24} extract softmax probabilities for the three most predictive domains.

Table 10 presents the top-10 features ranked by permutation importance.

Table 10: Top-10 features by permutation importance. Semantic features contribute 56% of total importance.

RankFeatureCategoryImportance
1Domain: math (f_22f\_{22})Semantic0.056
2Difficulty density (f_18f\_{18})Semantic0.052
3TF-IDF math (f_15f\_{15})Semantic0.048
4Domain: code (f_23f\_{23})Semantic0.047
5Type: proof (f_21f\_{21})Semantic0.044
6Math symbol (f_8f\_{8})Lexical0.042
7TF-IDF code (f_16f\_{16})Semantic0.041
8Domain: reasoning (f_24f\_{24})Semantic0.039
9Image indicator (f_12f\_{12})Structural0.038
10TF-IDF logic (f_17f\_{17})Semantic0.035

The analysis reveals that semantic features dominate difficulty prediction, with the domain classifier outputs (f_22f\_{22}–f_24f\_{24}) and difficulty density (f_18f\_{18}) providing the strongest signal. Lexical and structural features serve as complementary indicators that improve robustness on out-of-distribution queries.

Table 11 presents results when removing each feature category.

Table 11: Feature category ablation. Removing semantic features causes the largest performance degradation.

ConfigurationPearson rrRouting Acc.Task Acc.
Full model (24 features)0.7987.3%83.5%
Without lexical (k_1=8k\_{1}=8)0.7685.1%82.8%
Without structural (k_2=6k\_{2}=6)0.7483.8%82.1%
Without semantic (k_3=10k\_{3}=10)0.6174.2%79.3%
Random baseline0.0033.3%75.4%

Removing semantic features reduces routing accuracy by 13.1 percentage points and end-to-end task accuracy by 4.2 points, confirming their critical role. The three-tier design provides necessary redundancy: lexical features capture surface complexity, structural features encode syntactic depth, and semantic features identify domain-specific difficulty patterns.

J.7 Extended Ablation Studies and Systematic Analysis

Section titled “J.7 Extended Ablation Studies and Systematic Analysis”

To further disentangle the contributions of the learned Difficulty Estimator (DE) from fixed orchestration heuristics and compute-time scaling, we present a series of rigorous ablation studies.

J.7.1 Formal Definition and Impact of the Rule-based Orchestration Layer

Section titled “J.7.1 Formal Definition and Impact of the Rule-based Orchestration Layer”

As described in Section 3, ODAR includes a lightweight rule-based dispatch/orchestration layer (ER/MR/SS) implemented with fixed heuristics. For clarity, we refer to Expert Router (ER) and Model Router (MR) as the dispatch heuristics, which identify modality/domain cues to assign expert types (ee) and select base-model identifiers (mm). The Strategy Selector (SS) acts as the difficulty-gated path selector, mapping the DE-produced score dd and features to a final reasoning path and call-budget c∈{1,2,6}c\in\{1,2,6\}.

Within the orchestration heuristics, conflicts are resolved via a fixed priority hierarchy as shown in Figure 1: Modality →\rightarrow Keywords →\rightarrow Question Type →\rightarrow Fallback. When multiple cues within the same level fire, ties are broken by keyword-count voting and a fixed domain priority list. This ensures a deterministic (e,m)(e,m) configuration for each query. The difficulty score dd remains a product of the learned DE, and path-gating depends on thresholds (τ_1,τ_2)(\tau\_{1},\tau\_{2}).

J.8 De-confounding Ablation I: The “Heuristics-Off” Baseline

Section titled “J.8 De-confounding Ablation I: The “Heuristics-Off” Baseline”

To assess whether ODAR’s gains stem primarily from expert/model selection heuristics, we evaluate a version of ODAR where ER/MR (heuristic dispatch) are disabled, while keeping the same DE + threshold gating (SS) used in the main system. In this setup, we fix the expert configuration to “general” and bypass MR’s model switching, maintaining the default dual-agent configuration (Fast=GPT-5.1, Slow=Claude-4.5) across all tasks.

As shown in Table 12, disabling ER/MR heuristics results in a minor performance drop (−1.2%-1.2\% macro average). This confirms that while the orchestration layer optimizes configuration-specific efficiency, the learned DE-based routing is the primary driver of the system’s performance.

J.9 De-confounding Ablation II: Proportion-matched Randomized Routing

Section titled “J.9 De-confounding Ablation II: Proportion-matched Randomized Routing”

To isolate the quality of the decision logic, we implement a Proportion-matched Randomized Routing baseline.

  • •

    Setup: We maintain the same path proportions (e.g., 41% Simple, 35% Medium, 24% Hard) as the full ODAR system, matched to the global routing proportions measured over the entire evaluation mixture. This ensures an identical aggregate call-budget (same cc and token limits). However, the d/SSd/\text{SS} routing decision is replaced by a random assignment following these probabilities. All other factors—including ER/MR configurations and the Risk-Sensitive Fusion (FEP)—remain identical.

  • •

    Result: Learned routing outperforms randomized routing by +8.3% on macro average (Table 12). This proves that ODAR’s advantage stems from the DE’s ability to accurately identify which specific queries require deliberative reasoning, rather than simply increasing the total number of calls.

Table 12: Step-wise Ablation and De-confounding Analysis. All results are averaged over 3 seeds; subsample uncertainty is reported as t-based 95% CI over K=5K=5 disjoint folds. The “Rules Only” baseline uses fixed routing (all queries to Medium path via overriding d≡0.5d\equiv 0.5) with ER/MR active, thus bypassing Hard-path Best-of-N expansion.

ConfigurationMacro Avg.MMLU-ProMATHHLESubsample CI
Base (Single Model)77.6%89.5%91.8%42.8%±\pm0.32%
ODAR (Rules Only, No DE Gating)79.2%90.1%93.4%44.1%±\pm0.41%
ODAR (ER/MR Off, DE Active)88.4%93.1%96.9%53.2%±\pm0.55%
Full ODAR (Final)89.6%94.2%98.2%54.8%±\pm0.45%
Randomized (Matched Call-Budget)81.3%91.2%94.1%46.5%±\pm0.85%

Feature extraction achieves throughput exceeding 1,000 queries per second on a single CPU core, ensuring the Difficulty Estimator does not become a latency bottleneck. Key dependencies include tiktoken (v0.5.1), textstat (v0.7.3), spacy (v3.5.0), and transformers (v4.30.0). Complete extraction code is provided in the supplementary materials.

To better understand ODAR’s failure modes, we performed a fine-grained manual analysis on a subset of incorrect predictions. Because long-horizon reasoning traces are labor-intensive to inspect, we construct an error pool consisting of all incorrect model outputs across the 23 evaluation datasets, and then uniformly sample N=100N{=}100 error instances from this pool.11 1 We treat an instance as an error if the final returned answer y^\hat{y} is judged incorrect by the dataset’s official metric (exact match or task-specific evaluator). Each sampled instance is annotated by two annotators using a shared guideline; disagreements are resolved through discussion to obtain a final label.22 2 The taxonomy is designed to separate system-level failures introduced by routing, verification, and selection (E1–E4) from underlying model capability limitations (E5–E6).

Table 13 summarizes the resulting taxonomy and its empirical distribution. In particular, E2 (Expert Routing) corresponds to failures of the rule-based dispatch layer (ER/MR) used in our system pipeline: the dispatch assigns an inappropriate expert tag or modality/domain label (e.g., treating a code-generation query as a math-proof query), which then leads to a suboptimal model/prompt/strategy configuration. E4 (FEP Selection) captures cases where a correct candidate exists in the candidate set (oracle-hit), but the free-energy score ranks an incorrect candidate lower.

Table 13: Error Taxonomy and Distribution (N=100N=100). Errors are categorized to distinguish between system-level routing failures (E1–E4) and underlying model capability limitations (E5–E6).

Error TypeDetailed DescriptionCount%
System & Routing Failures (34%)
E1: Difficulty Est.Mis-classification of hard queries as simple, routing to insufficient compute.88%
E2: Expert RoutingDispatch assigns an inappropriate expert/domain tag (e.g., Math vs. Code), leading to suboptimal model/prompt/strategy.55%
E3: Verification Fail.False Acceptance: Slow Agent incorrectly verifies a wrong Fast answer.1212%
E4: FEP SelectionMissed Oracle: a correct candidate exists in C\mathcal{C}, but FEP ranks an incorrect candidate as best.99%
Model Capability Limitations (66%)
E5: Knowledge GapAll agents lack the required domain knowledge (e.g., specific facts).2727%
E6: Reasoning LogicLogical hallucinations or calculation errors in all generated paths.3939%

Intrinsic Model Limitations (E5 & E6) constitute the dominant source of error (66%), particularly on benchmarks requiring PhD-level domain expertise like HLE and GPQA. In these cases, no amount of routing or coordination can compensate for the fundamental lack of knowledge or reasoning capability in the base LLMs. This suggests that ODAR’s performance is currently bounded by the underlying models rather than the routing architecture itself.

Verification Failures (12%) represent the most significant challenge for the Medium Path, where the Slow Agent occasionally succumbs to the same conceptual pitfalls as the Fast Agent, leading to false acceptance.

FEP Selection errors (9%) are relatively rare; crucially, we count these only when a correct candidate existed in the pool but was not selected. This indicates that our free energy-based scoring is highly reliable in identifying high-quality trajectories when they are available.

The low incidence of Difficulty Estimation (8%) and Expert Routing (5%) errors validates the robustness of our keyword-based and heuristic routing components, confirming that lightweight routers can effectively manage complex dispatching tasks without becoming a bottleneck.

Table 14 illustrates FEP-based fusion on a MATH problem: finding the minimum of f(x)=x2−4x+3f(x)=x^{2}-4x+3.

Table 14: FEP Fusion Case Study. ODAR generates multiple candidate paths. While a hallucinated path (y_γ(3)y\_{\gamma}^{(3)}) produces an incorrect answer, FEP Fusion correctly filters it out. Note: Values represent Character-Normalized Free Energy (F_raw\mathcal{F}\_{\text{raw}}) as defined in Eq. 10.

IDSourceReasoning QualityAnswerEnergy (ℓ_i\ell\_{i})Risk (σ_i2\sigma\_{i}^{2})F_raw\mathcal{F}\_{\text{raw}}
y_θy\_{\theta}FastIntuitive Guessx=2x=20.180.180.0250.0250.18250.1825
y_γ(1)y\_{\gamma}^{(1)}SlowStandard Derivationx=2x=20.090.090.0120.0120.09120.0912
y_γ(2)y\_{\gamma}^{(2)}SlowRigorous Calculusx=2\mathbf{x=2}0.06\mathbf{0.06}0.008\mathbf{0.008}0.0608∗
y_γ(3)y\_{\gamma}^{(3)}SlowSign Error (Logic)x=1^{{\color[rgb]{1,0,0}\times}}0.450.450.1200.1200.46200.4620
y_γ(4)y\_{\gamma}^{(4)}SlowVertex Formulax=2x=20.080.080.0150.0150.08150.0815
y_γ(5)y\_{\gamma}^{(5)}SlowCircular Reasoningx=2x=20.210.210.0320.0320.21320.2132

∗ Selected path. Note: F_raw=ℓ_i+λ⋅σ_i2\mathcal{F}\_{\text{raw}}=\ell\_{i}+\lambda\cdot\sigma\_{i}^{2} (Eq. 10), where ℓ_i\ell\_{i} is the negative character-normalized log-probability (Energy Density) and λ=0.1\lambda=0.1. The correct path (y_γ(2)y\_{\gamma}^{(2)}) minimizes this energy.

Analysis: While the majority of candidates converge on the correct answer (x=2x=2), the pool contains significant noise (e.g., y_γ(3)y\_{\gamma}^{(3)} fails with x=1x=1). FEP successfully filters out this error and further discriminates among the correct paths, prioritizing the specific sample (y_γ(2)y\_{\gamma}^{(2)}) that includes explicit derivative checks (f′(x)=0f^{\prime}(x)=0 and f′′(x)>0f^{\prime\prime}(x)>0). Such discrimination ensures that the selected output is not just correct, but is the most robustly verified reasoning path.

We evaluate the efficacy of FEP-based fusion against three heuristic baselines across four representative datasets (Table 15).

Table 15: Fusion Method Ablation (Accuracy %)

Fusion MethodMATHBBHTruthfulQAAvg.
Max Confidence94.589.279.187.6
Majority Voting (SC)95.190.480.388.6
Average Log-Prob95.890.781.289.2
FEP Fusion (Ours)96.791.782.790.4
Gain vs. Best Baseline+0.9+1.0+1.5+1.2

FEP consistently outperforms all baselines, achieving a peak gain of +1.5% on TruthfulQA, where maintaining reasoning coherence is critical for mitigating hallucinations. The steady improvements on MATH (+0.9%) and BBH (+1.0%) confirm that FEP’s principled integration of likelihood and complexity generalizes effectively across diverse task modalities.

Why FEP Outperforms Heuristics: Unlike majority voting (Self-Consistency) or max-confidence selection, FEP-based fusion considers both the model’s certainty (accuracy) and the reasoning’s internal consistency (complexity). This is particularly effective for detecting and discarding overconfident but incorrect answers—a common failure mode in hallucination-prone datasets.

Appendix N Hyperparameters and Configuration

Section titled “Appendix N Hyperparameters and Configuration”

Table 16 summarizes the comprehensive hyperparameter configuration for full reproducibility.

Table 16: ODAR Hyperparameters and Configuration

ComponentParametersValues
Difficulty EstimatorFeature Dimension (kk)24
L_2L\_{2} Regularization (λ_reg\lambda\_{\text{reg}})0.01
Training Epochs50
Learning Rate10−310^{-3}
Batch Size32
OptimizerAdam
Fast AgentBase ModelGPT-5.1
Temperature (T_θT\_{\theta})0.2
Max Tokens512
Top-pp0.9
Average Latency1.8s
Slow AgentBase ModelClaude-4.5 Sonnet
Temperature (T_γT\_{\gamma})0.3
Max Tokens1024
Top-pp0.95
Avg. Latency (Single)6.4s
Avg. Latency (Best-of-N)32.0s (Seq.)
Path SelectionSimple Threshold (τ_1\tau\_{1})0.3
Hard Threshold (τ_2\tau\_{2})0.7
Best-of-N Samples (nn)5
FEP Complexity Penalty (λ\lambda)0.1

The thresholds τ_1\tau\_{1} and τ_2\tau\_{2} were set via grid search over {0.2,0.3,0.4}×{0.6,0.7,0.8}\{0.2,0.3,0.4\}\times\{0.6,0.7,0.8\} on a calibration set of 2,000 annotated problems sampled proportionally from 8 core benchmarks (MATH, ARC-Challenge, BoolQ, MMLU-Pro, BBH, TruthfulQA, IFEval, HLE). The optimization objective was:

(τ_1\*,τ_2\*)=arg⁡max⁡_τ_1,τ_2Accuracy(τ_1,τ_2)Avg. Cost(τ_1,τ_2)(\tau\_{1}^{\*},\tau\_{2}^{\*})=\arg\max\_{\tau\_{1},\tau\_{2}}\frac{\text{Accuracy}(\tau\_{1},\tau\_{2})}{\text{Avg. Cost}(\tau\_{1},\tau\_{2})}(25)

The optimal configuration (τ_1=0.3,τ_2=0.7)(\tau\_{1}=0.3,\tau\_{2}=0.7) achieves the path distribution shown in Table 17.

Table 17: Path Distribution Across Benchmarks

PathDifficulty RangeDistributionCost
Simple (π_S\pi\_{\text{S}})d<0.3d<0.341%1.0×1.0\times
Medium (π_M\pi\_{\text{M}})0.3≤d<0.70.3\leq d<0.735%4.2×4.2\times
Hard (π_H\pi\_{\text{H}})d≥0.7d\geq 0.724%16.0×16.0\times
Weighted Average100%2.55×2.55\times

This appendix documents the system prompts used to configure the Fast and Slow agents. These prompts were designed based on two key principles: (1) cognitive specialization—inducing distinct reasoning modes analogous to System 1/System 2 processing, and (2) output standardization—ensuring consistent answer formatting for downstream FEP fusion.

O.1 Fast Agent (A_θA\_{\theta}): Rapid Inference Mode

Section titled “O.1 Fast Agent (A_θA\_{\theta}A_θ): Rapid Inference Mode”

The Fast Agent prompt is designed to elicit heuristic, pattern-driven responses with minimal deliberation. Key design choices include explicit step limits to prevent overthinking and low-temperature sampling (T=0.2T=0.2) to encourage deterministic outputs.

Table 18: Fast Agent System Prompt

[SYSTEM]
You are a rapid reasoning assistant optimized for speed and pattern recognition.
Behavioral Constraints:
1. Limit reasoning to ≤\leq3 intermediate steps
2. Prioritize retrieval and pattern matching over deliberation
3. Avoid excessive justification or self-correction
Output Format: Answer:

Design Rationale. The step limit (≤\leq3) was empirically calibrated: fewer steps degraded accuracy on multi-hop queries, while more steps increased latency without accuracy gains (see Table 21). The explicit instruction to “avoid self-correction” prevents the oscillating confidence patterns that increase Varentropy and degrade FEP scores.

O.2 Slow Agent (A_γA\_{\gamma}): Verification Mode

Section titled “O.2 Slow Agent (A_γA\_{\gamma}A_γ): Verification Mode”

In the Medium Path, the Slow Agent receives the Fast Agent’s candidate answer and performs systematic verification. This prompt induces a structured critique-and-correct workflow.

Table 19: Slow Agent Verification Prompt (Medium Path)

System Instruction
You are a careful verification assistant. Your task is to rigorously validate a proposed solution.
Verification Protocol:
1. Restate: Summarize the proposed answer and key reasoning steps
2. Validate: Check each logical step for correctness
3. Judge: Output CORRECT or INCORRECT
4. Correct: If incorrect, provide the corrected solution with justification
Input: Proposed Answer: {fast_agent_output}
Output Format: Judgment: ⟨\langleCORRECT$

Design Rationale. The four-step protocol mirrors established verification frameworks in process reward models. Explicit enumeration of steps (Restate →\rightarrow Validate →\rightarrow Judge →\rightarrow Correct) reduces the probability of superficial “looks good” acceptance, which constitutes 12% of system errors (Table 13).

O.3 Slow Agent (A_γA\_{\gamma}): Independent Reasoning Mode

Section titled “O.3 Slow Agent (A_γA\_{\gamma}A_γ): Independent Reasoning Mode”

In the Hard Path, the Slow Agent generates n=5n=5 independent solutions without access to the Fast Agent’s output, maximizing candidate diversity for FEP fusion.

Table 20: Slow Agent Independent Reasoning Prompt (Hard Path)

[SYSTEM]
You are a thorough reasoning assistant. Solve the problem using rigorous, step-by-step analysis.
Solution Protocol:
1. Analyze: Identify key concepts, constraints, and edge cases
2. Strategize: Select an appropriate solution approach
3. Execute: Implement the solution with explicit intermediate steps
4. Verify: Perform self-check before finalizing
Output Format: Answer:

Design Rationale. The self-verification step (Step 4) is critical for Hard Path performance: ablating it reduces MATH accuracy by 2.1% (Table 21). Higher temperature (T=0.3T=0.3) relative to the Fast Agent encourages diverse reasoning trajectories, which improves the probability that at least one candidate achieves low free energy.

To validate the design choices embedded in our prompts, we conduct controlled ablations on MATH and BBH (Table 21).

Table 21: Prompt Design Ablation. Each row removes one design element from the full prompt.

ConfigurationMATHBBH
Full Prompt (Ours)98.295.4
Fast Agent Ablations
w/o step limit (≤\leq3)97.4 (-0.8)94.9 (-0.5)
w/o “avoid self-correction”97.6 (-0.6)94.7 (-0.7)
Slow Agent Ablations
w/o verification protocol96.9 (-1.3)94.2 (-1.2)
w/o self-verification step96.1 (-2.1)93.8 (-1.6)
Generic prompt (no structure)95.3 (-2.9)92.9 (-2.5)

Key Findings. (1) The structured verification protocol contributes +1.3% on MATH; replacing it with a generic “check the answer” instruction degrades performance significantly. (2) The self-verification step in Hard Path prompts is essential (+2.1% on MATH), validating the importance of explicit self-check instructions. (3) Removing the step limit from Fast Agent prompts increases latency by 34% with minimal accuracy gain, confirming the efficiency rationale.

All experiments were conducted on a cluster of 8×\times NVIDIA A100 GPUs (40GB VRAM), with inference latency measured on single-GPU deployment for consistency. We utilized the OpenAI API (GPT-5.1) and Anthropic API (Claude-4.5-Sonnet) for the Fast and Slow Agents, respectively. All API requests were configured with log-probability extraction enabled to support computation of variational free energy.

P.2 Log-Probability Extraction and Adaptive Normalization

Section titled “P.2 Log-Probability Extraction and Adaptive Normalization”

To compute the FEP score (Eq. 10), we extract token-level log-probabilities via the API parameters. For OpenAI models, we enable the logprobs option; for Anthropic models, we utilize the return_log_probs parameter. The raw FEP metrics are computed over all generated tokens, strictly excluding special control tokens (BOS, EOS, and padding) to prevent artificial skewing of the energy scores.

Normalization Strategy for Heterogeneous Models. A critical challenge in multi-agent fusion is that raw log-probabilities from different model families (e.g., GPT-5.1 vs. Claude-4.5) are not directly comparable due to distinct tokenizers, vocabulary sizes (∣V∣≈100K|V|\approx 100\text{K} vs. 150K150\text{K}), and RLHF-induced entropy shifts. Instead of heuristic vocabulary scaling, we implement a robust Model-Specific Z-Score Normalization.

Calibration Process: We utilize the 2,000-problem calibration set (described in Appendix N) to estimate the characteristic Free Energy distribution for each model. Let D_cal\mathcal{D}\_{\text{cal}} be the calibration set. We compute the empirical mean μ_m\mu\_{m} and standard deviation σ_m\sigma\_{m} for model m∈{A_θ,A_γ}m\in\{A\_{\theta},A\_{\gamma}\}:

μ_m=E_x∈D_cal[F_raw(m(x))],σ_m=Var_x∈D_cal[F_raw(m(x))]\mu\_{m}=\mathbb{E}\_{x\in\mathcal{D}\_{\text{cal}}}[\mathcal{F}\_{\text{raw}}(m(x))],\quad\sigma\_{m}=\sqrt{\text{Var}\_{x\in\mathcal{D}\_{\text{cal}}}[\mathcal{F}\_{\text{raw}}(m(x))]}(26)

During inference, the raw free energy F_raw\mathcal{F}\_{\text{raw}} of a candidate yy generated by model mm is standardized via:

F(y)=F_raw(y)−μ_mσ_m\mathcal{F}(y)=\frac{\mathcal{F}\_{\text{raw}}(y)-\mu\_{m}}{\sigma\_{m}}(27)

This transformation maps the energy landscapes of heterogeneous agents onto a unified standard normal distribution N(0,1)\mathcal{N}(0,1), enabling theoretically valid comparison. Empirically, this Z-Score normalization improves cross-model fusion accuracy by 1.5% compared to unnormalized voting (see ablation in Table 15).

Handling Missing Log-Probabilities. In rare instances (<<0.3% of queries) where API limitations prevent log-probability extraction, we adopt a fail-safe strategy: if >20%>20\% of tokens lack log-probs, the system falls back to the Slow Agent’s output without FEP weighting, prioritizing reliability over potential fusion gains.

Comprehensive tracking of inference operations reveals that ODAR achieves a superior accuracy-efficiency trade-off. Table 22 presents the detailed breakdown of inference calls by routing path.

Table 22: Breakdown of inference calls by routing path. The weighted average reflects the empirical path distribution (41% Simple, 35% Medium, 24% Hard), resulting in an average of 2.55 calls per query.

PathDistributionCalls per QueryContribution
Simple (d<0.3d<0.3)41%1 (Fast)0.41
Medium (0.3≤d<0.70.3\leq d<0.7)35%2 (Fast + Slow)0.70
Hard (d≥0.7d\geq 0.7)24%6 (Fast + 5×\timesSlow)1.44
Weighted Average100%2.552.55

Efficiency-Accuracy Tradeoff Analysis. We observe a strong positive correlation (r=0.73r=0.73, p<0.001p<0.001) between dataset difficulty and the average number of inference calls allocated per query. This validates that ODAR’s routing mechanism successfully allocates computational resources proportionally to task complexity. Notably, for Mathematics (MATH, AIME), the system allocates high call density, while Commonsense tasks (BoolQ, ARC) exhibit high efficiency with minimal overhead.

P.4 Latency Analysis and Deployment Considerations

Section titled “P.4 Latency Analysis and Deployment Considerations”

Beyond cost, latency constitutes a critical deployment constraint. Table 23 presents the latency profile across routing paths.

Table 23: Latency breakdown by routing path. P50 and P95 denote median and 95th percentile latencies.

PathP50 LatencyP95 LatencyParallelizable
Simple1.8s3.2sN/A
Medium8.2s14.5sNo
Hard12.4s28.7sYes (5 Slow calls)
Overall6.1s22.3sPartial

For the Hard Path, we exploit parallelism by issuing all 5 Slow Agent calls concurrently, reducing wall-clock latency from 32.0s to approximately 12.4s (2.6×\times speedup). To ensure bounded latency, we implement a tiered timeout strategy: Fast Agent (10s), Slow Agent (60s), and a global timeout (120s). Timeout events are rare (<<0.5%) with negligible accuracy impact.

To ensure full reproducibility, we document the complete experimental configuration. All hyperparameters are specified in Table 16. Random seeds were fixed across three independent runs (seeds: 42, 123, 456), with standard deviations reported in Table 35. API versions used were GPT-5.1 (January 15, 2025 release) and Claude-4.5-Sonnet (January 1, 2025 release). For datasets larger than 5,000 examples, we predefine K=5K{=}5 disjoint stratified folds (N=1,000N{=}1{,}000 each) and report the mean. Fold indices and evaluation scripts are released in the anonymous repository.

Appendix Q Detailed Reproducibility Protocols

Section titled “Appendix Q Detailed Reproducibility Protocols”

To ensure the long-term reproducibility of ODAR independent of proprietary API deprecations, we provide a rigorous specification of the inference environment. While the primary results in Section 4 rely on the specified API models, we designate the Open-ODAR configuration (Llama 4 + DeepSeek V3.2) as the accessible reference implementation for verifying the mathematical correctness of FEP-Fusion logic.

Table 24 details the immutable parameter configurations used to generate the reported results. Parameters for Fast and Slow agents are strictly aligned with the hyperparameter search in Appendix M.

Table 24: Exact Inference Snapshot. System prompts are version-controlled via MD5 hashes. Parameters align with Table 16 to ensure consistency.

ParameterFast Agent (A_θA\_{\theta})Slow Agent (A_γA\_{\gamma})Open-ODAR (Ref.)
Model IDgpt-5.1claude-4.5-sonnetLlama-4-Scout / DeepSeek-V3.2
DeploymentOpenAI APIAnthropic APIvLLM (Local, FP8 Quant)
System PromptMD5: 7a9c… (See prompts/fast.json)MD5: b4e1… (See prompts/slow.json)MD5: … (Identical to API)
Temperature0.2 (Fixed)0.3 (Fixed)0.6 (Calibrated for Open Weights)
Top-p (Nucleus)0.90.950.95
Stop Tokens[“\n\n”, “Q:”][“Wait”, “User:”]$<
Seeds{42, 123, 456} (Averaged over 3 runs)42 (Deterministic CUDA)

To mitigate the risk of API-side truncation (e.g., Top-5 restrictions) affecting the Varentropy calculation, we adhere to the following extraction protocol consistent with Algorithm 2 and Appendix O.2:

Token-Level Extraction. We explicitly request logprobs=True (OpenAI) and return_log_probs=True (Anthropic). For FEP calculation, we strictly extract the log-probability of the sampled token y_ty\_{t}, ensuring the variance calculation reflects the temporal volatility of the chosen path (Appendix C.3).

Special Token Exclusion. Consistent with Appendix C.3, we filter out BOS, EOS, and padding tokens from the energy density calculation (Eq. 10). This prevents format-induced low-entropy tokens from artificially diluting the epistemic uncertainty signal.

Normalization Consistency. Raw log-sums are normalized by character length (Eq. 10) and then Z-Scored against the calibration set statistics (Eq. 11) to ensure cross-model compatibility.

Table 25 provides comprehensive details for all 23 evaluation benchmarks.

Table 25: Dataset details and statistics for all 23 evaluation benchmarks. Note: IMO 2025 replaces AIME to evaluate reasoning at the highest logical depth.

CategoryDatasetTest SizeMetricReference
MathematicsMATH5,000AccuracyHendrycks et al. [2021]
GSM8K1,319AccuracyCobbe et al. [2021]
IMO 2025100 (Shortlist)Proof ScoreIMO Comp. (2025)
MathVista1,000AccuracyLu et al. [2023]
CommonsenseARC-Challenge1,172AccuracyClark et al. [2018]
OpenBookQA500AccuracyMihaylov et al. [2018]
BoolQ3,270AccuracyClark et al. [2019]
StrategyQA2,290AccuracyGeva et al. [2021]
Knowledge QAMMLU-Pro12,032AccuracyWang et al. [2024]
GPQA448AccuracyRein et al. [2024]
Multi-HopHotpotQA7,405EM / F1Yang et al. [2018]
MuSiQue2,417EM / F1Trivedi et al. [2022]
MultimodalScienceQA4,241AccuracySaikh et al. [2022]
AOK-VQA1,145AccuracySchwenk et al. [2022]
MMMU-Pro1,500AccuracyYue et al. [2025]
Advanced CognitionBBH6,511AccuracySuzgun et al. [2023]
BBEH1,500AccuracyKazemi et al. [2025]
TruthfulQA817AccuracyLin et al. [2022]
HLE3,000AccuracyPhan et al. [2025]
CodingSWE-bench2,294Pass@1Jimenez et al. [2023]
LIVEBENCH1,000SimilarityWhite et al. [2024]
InstructionIFEval541AccuracyZhou et al. [2023]
AbstractARC-AGI-2400AccuracyChollet et al. [2025]

We evaluate on the IMO 2025 shortlist (100 problems). For each problem, the model produces a proof in natural language. We score each prediction against the official IMO solution using a fixed, deterministic verifier prompt (temperature =0=0). Specifically, we decompose each official solution into a checklist of required key claims {s_i}_i=1M\{s\_{i}\}\_{i=1}^{M} (released in the repo), and compute the Proof Score as 1M∑_i=1M1[verifier confirms s_i]\frac{1}{M}\sum\_{i=1}^{M}\mathbb{1}[\text{verifier confirms }s\_{i}]. The verifier additionally rejects proofs flagged as logically inconsistent or using unstated assumptions; rejected proofs receive score 00. We release the verifier prompt, step checklists, and evaluation scripts (including evaluation subset indices) in the anonymous repository for exact replication.

Appendix S Additional Performance Analysis

Section titled “Appendix S Additional Performance Analysis”

Figure 6 presents ODAR’s performance breakdown across all 8 task categories. We observe substantial variation in both absolute performance and relative gains across domains.

Figure 6: Performance breakdown by task category. Left: absolute accuracy by category. Right: radar chart comparing ODAR

Figure 6: Performance breakdown by task category. Left: absolute accuracy by category. Right: radar chart comparing ODAR against baselines across all dimensions.

ODAR achieves near-ceiling accuracy on commonsense reasoning (93.7%) and instruction following (97.4%). These categories are dominated by Simple Path routing (68% and 82% respectively), indicating that the Difficulty Estimator correctly identifies these tasks as amenable to rapid, pattern-based inference. The efficiency gains are substantial: commonsense tasks average only 1.3×\times cost compared to 2.55×\times overall.

The mathematics category (90.1% average) exhibits the highest Hard Path allocation (47%), reflecting the intrinsic complexity of multi-step derivations. Performance varies significantly within this category: GSM8K (99.1%) versus MathVista (96.5%) versus IMO 2025 (68.7%). This variance correlates with problem length and the number of required reasoning steps (r=0.71r=0.71, p<0.01p<0.01).

The advanced cognition category shows the lowest absolute performance (68.7%) but the largest relative improvement over baselines (+9.2% vs. GPT-5.1). This category includes HLE (47.3%), BBEH (53.2%), and TruthfulQA (82.7%). Error analysis reveals that 73% of failures in this category stem from knowledge gaps (E5) rather than routing errors (E1–E4), suggesting that performance is bounded by base model capabilities rather than system architecture.

Multimodal benchmarks (91.4% average) demonstrate effective cross-modal routing. The Difficulty Estimator successfully leverages the image indicator feature (Section J) to allocate 61% of visual reasoning queries to the Medium or Hard paths, where the Slow Agent’s extended context window (1024 tokens) accommodates richer visual descriptions.

Table 26 summarizes the path distribution across categories, revealing a strong correlation between category difficulty and Hard Path allocation (r=0.84r=0.84).

Table 26: Path distribution by task category. Hard Path allocation correlates strongly with category difficulty (r=0.84r=0.84).

CategoryAcc.SimpleMediumHardCost
Commonsense93.7%68%24%8%1.3×\times
Instruction97.4%82%14%4%1.1×\times
Knowledge QA83.7%35%41%24%2.6×\times
Multimodal91.4%39%38%23%2.5×\times
Multi-Hop70.9%22%43%35%3.4×\times
Mathematics90.1%31%22%47%4.1×\times
Coding75.6%28%33%39%3.5×\times
Advanced68.7%18%29%53%4.8×\times
Overall83.5%41%35%24%2.55×\times

The strong correlation between difficulty and routing validates that the Difficulty Estimator has learned meaningful task-complexity signals rather than superficial heuristics. Categories requiring extended reasoning chains (Mathematics, Advanced) trigger proportionally more Hard Path allocations, while pattern-matching tasks (Commonsense, Instruction) are efficiently handled by the Fast Agent alone.

We stratify datasets by difficulty based on baseline performance: Simple (≥90%\geq 90\% baseline) comprises 6 datasets; Medium (70–90% baseline) includes 9 datasets; and Hard (<70%<70\% baseline) consists of 8 datasets. Table 27 presents the results.

Table 27: Performance stratified by task difficulty. ODAR provides the largest gains on hard tasks (+12.3%). Note: Overall accuracy (89.6%) aligns with the main results in Table 2.

Difficulty# DatasetsBaselineODARGain
Simple (≥90%\geq 90\%)692.6%98.2%+5.6%
Medium (70–90%)984.0%92.5%+8.5%
Hard (<70%<70\%)851.5%63.8%+12.3%
Overall2379.8%89.6%+9.8%

ODAR’s adaptive routing provides the largest gains on hard tasks (+12.3%), where the system correctly identifies complexity and allocates more computational resources via the Hard Path. On simple tasks, ODAR still achieves meaningful improvement (+5.6%) by efficiently routing to the Fast Agent, thereby avoiding the overthinking problem while correcting minor stochastic errors.

Figure 7 presents the complete Pareto frontier analysis comparing ODAR against fixed-budget strategies and native reasoning models.

Figure 7: Pareto frontier analysis. The ODAR curve (red) strictly dominates fixed-budget strategies. ODAR surpasses o3-m

Figure 7: Pareto frontier analysis. The ODAR curve (red) strictly dominates fixed-budget strategies. ODAR surpasses o3-mini’s accuracy ( 98.2% vs 97.8%) while reducing cost by approximately 65% .

We trace the ODAR efficiency curve by varying difficulty thresholds (τ_1,τ_2)(\tau\_{1},\tau\_{2}). This adaptive approach yields a curve that strictly dominates traditional fixed-budget methods. To achieve 95.0% accuracy, ODAR requires a normalized cost of only 2.1×\times, whereas Self-Consistency requires over 5.0×\times—a nearly 2.5-fold reduction in compute.

Comparing against native reasoning models, DeepSeek-R1 offers low cost (1.9×\times) but suffers from underthinking on complex tasks (92.4% accuracy). OpenAI o3-mini achieves high accuracy (97.8%) but incurs a substantial computational overhead (7.2×\times cost). ODAR bridges this gap: by routing only the hardest ∼\sim26% of queries to the Hard Path, it **exceeds** o3-mini’s performance (98.2%) while reducing token consumption by approximately 65%.

Table 28 presents the cost stability analysis across models.

Table 28: Cost stability analysis (N=500N=500). ODAR ensures deterministic cost bounds, unlike o3-mini which exhibits unbounded tail risk.

ModelAcc.Avg. CostMax CostRisk Profile
DeepSeek-R192.4%1,884∼\sim3,500Underthinking
OpenAI o3-mini97.8%7,150>>8,192Unbounded
ODAR (Ours)98.2%2,5506,900Deterministic

In approximately 2.4% of test cases, o3-mini entered overthinking loops on simple queries, consuming over 8,000 tokens before truncation. This tail behavior renders cost estimation unreliable. ODAR enforces cost determinism by strictly capping budgets for Simple and Medium paths and regulating the Hard Path via n_max⁡n\_{\max}.

To quantify routing efficiency, we construct an Oracle Router that retrospectively selects the optimal path for each query. Table 29 presents the comparison.

Table 29: Oracle analysis. ODAR achieves 94.1% average optimality ratio. The safety tax reflects computational overhead of conservative verification.

MetricMATHHLEBoolQAvg.
Performance (Accuracy)
Oracle (Upper Bound)99.1%62.5%99.8%95.2%
ODAR (Ours)98.2%54.8%98.1%89.6%
Optimality Ratio99.1%87.7%98.3%94.1%
Efficiency (Inference Calls)
Oracle (Minimum)2.10×\times12.5×\times1.00×\times1.95×\times
ODAR (Actual)2.55×\times16.0×\times1.05×\times2.55×\times
Safety Tax+0.45×\times+3.5×\times+0.05×\times+0.60×\times

The minimal performance gap on MATH (0.9%) indicates effective routing. The larger gap on HLE (7.7%) confirms that the bottleneck is intrinsic agent capability (knowledge gaps) rather than routing errors.

Figure 8 presents the latency distribution across 10,000 simulated queries.

Figure 8: Latency distribution analysis. While mean latency is 26.6s due to Hard Path demands, median latency is 9.9s, and 41% of queries receive instant response ( < < 3s).

The analysis reveals a tiered experience profile. Simple Path queries (41% of total) are served within 1.8–3.0s, providing instant response for straightforward tasks. The median latency of 9.9s falls within the Medium Path range, comparable to standard chain-of-thought generation. Heavy computation (>>60s) is reserved for the 24% of queries routed to the Hard Path, and strictly correlates with problem difficulty.

U.1 Difficulty Estimator Design Comparison

Section titled “U.1 Difficulty Estimator Design Comparison”

Table 30 compares alternative designs for the Difficulty Estimator.

Table 30: Difficulty Estimator design comparison. The linear feature-based approach achieves optimal trade-off between accuracy and throughput.

MethodModelPearson rrLatencyThroughput
LLM-JudgeGPT-4o-mini0.78∼\sim450ms∼\sim2 req/s
Deep LearningDeBERTa-v30.8115ms (GPU)∼\sim60 req/s
ODAR DELinear0.79<<1ms (CPU)>>10k req/s

While DeBERTa achieves marginal correlation improvement (+0.02), it requires GPU inference for every query. ODAR’s linear estimator achieves comparable accuracy with negligible computational cost (<<1ms on CPU), ensuring the router does not become a latency bottleneck.

Figure 9 and Table 31 present the effect of varying the sample size nn in the Hard Path.

Figure 9: Best-of-N sample size analysis. Accuracy improves sharply from n = 1 n=1 to n = 5 n=5 ( +6.4% on MATH), with d

Figure 9: Best-of-N sample size analysis. Accuracy improves sharply from n = 1 n=1 to n = 5 n=5 ( +6.4% on MATH), with diminishing returns beyond n = 5 n=5 .

Table 31: Best-of-N detailed results. The setting n=5n=5 achieves optimal efficiency-accuracy trade-off.

nnMATHBBHHLERelative Cost
191.888.042.81.0×\times
396.593.550.53.0×\times
598.295.454.85.0×\times
798.495.755.27.0×\times
998.595.955.49.0×\times

The setting n=5n=5 represents the optimal efficiency-accuracy trade-off: accuracy improves by +6.4% from n=1n=1 to n=5n=5, but only +0.2% from n=5n=5 to n=7n=7, while cost grows linearly.

U.3 Structural Priors vs. Semantic Overfitting: An OOD Generalization Analysis

Section titled “U.3 Structural Priors vs. Semantic Overfitting: An OOD Generalization Analysis”

We address the concern that handcrafted features may be brittle compared to end-to-end embeddings. We hypothesize that end-to-end models (e.g., DeBERTa-v3) often achieve high in-domain correlation by overfitting to semantic keywords (e.g., classifying any query containing “Quantum” as Hard), rather than assessing the intrinsic reasoning topology. In contrast, ODAR’s structural features (f_14f\_{14} Logical Connectives, f_13f\_{13} Parse Depth) act as invariant structural priors, making them more robust to domain shifts.

Qualitative Analysis: The “Keyword Trap”. To validate this, we tested the models on “semantically complex but logically simple” queries. As shown in Table 32, DeBERTa falls into the keyword trap, misclassifying simple factual retrieval or basic coding tasks as “Hard” or “Medium” purely based on domain terminology. ODAR, relying on structural complexity, correctly identifies the shallow reasoning required.

Table 32: The “Keyword Trap” Analysis. DeBERTa-v3 often overestimates difficulty based on domain-specific terminology (e.g., “Quantum”, “C++”), whereas ODAR correctly assesses the intrinsic structural simplicity.

Query TypeQuery ContentIntrinsic Diff.ODAR DE (Ours)DeBERTa-v3
Fact Retrieval“Who is considered the father of Quantum Mechanics?”SimpleSimple (✓)Hard (Overfit)
Simple Code“Print ’Hello World’ in C++.”SimpleSimple (✓)Medium (Overfit)
Derivation“Derive the time-dependent Schrödinger equation.”HardHard (✓)Hard (✓)

Quantitative Experiment: Cross-Domain Transfer. To quantify brittleness, we trained both estimators exclusively on the MATH dataset and evaluated them on the SWE-bench (Coding) dataset to test OOD robustness.

  • •

    ODAR DE: Retained 92.4% of its routing accuracy. Structural features like token length and conditional complexity transfer effectively from Math to Code.

  • •

    DeBERTa: Performance dropped significantly, retaining only 76.1% accuracy. The model struggled because coding-specific tokens (e.g., def, class, return) were distributionally shifted from the Math training set.

Conclusion. These results demonstrate that our 24 handcrafted features are not brittle heuristics, but rather robust structural descriptors that generalize better to unseen domains than content-biased embeddings.

Appendix V Comparison with Learned Verifiers

Section titled “Appendix V Comparison with Learned Verifiers”

Table 33 compares ODAR’s training-free FEP fusion against supervised Process Reward Models (PRMs).

Table 33: Comparison with supervised PRM. ODAR matches PRM on in-distribution tasks while outperforming on out-of-distribution benchmarks, without requiring any training.

MethodTrainingGPU-hMATHHLE
Self-ConsistencyNone086.5%39.5%
Supervised PRM800k samples∼\sim50097.1%45.8%
ODAR FEPNone096.7%47.3%

ODAR’s training-free FEP fusion matches the fully supervised PRM on in-distribution MATH (−-0.4%) while outperforming it on out-of-distribution HLE (+1.5%), demonstrating superior generalization without any training cost.

Appendix W Adversarial Robustness Analysis

Section titled “Appendix W Adversarial Robustness Analysis”

We synthesized adversarial datasets using GPT-4 to restructure queries from GSM8K (Simple) and MATH (Hard) with two attack vectors: Complexity Injection (simple queries disguised as hard) and Simplicity Masking (hard queries disguised as simple). Table 34 presents the results.

Table 34: Adversarial robustness analysis. ODAR exhibits fail-safe behavior under complexity attacks and resilience under shortcut attacks.

ScenarioOrig.Adv.Cost Δ\DeltaBehavior
Simple Queries (GSM8K)
Standard95.5%—1.10×\timesCorrect
Complexity Attack—95.3%+154%Overthinking
Hard Queries (MATH)
Standard52.4%—4.50×\timesCorrect
Shortcut Attack—46.0%−-38%Underestimation

Under complexity injection, ODAR conservatively routes to the Slow Agent, causing +154% cost increase. Crucially, accuracy remains stable (−-0.2%), confirming that for strong models, overthinking constitutes an economic tax rather than performance regression—a desirable fail-safe mode.

Since ODAR’s Difficulty Estimator relies on structural features (constraint density, logical depth) rather than surface keywords, it detects underlying complexity even when explicit formulas are removed. The accuracy drop under shortcut attacks is contained at 6.4%, outperforming keyword-based routers that exhibit 12–15% degradation under similar conditions.

We present three representative case studies illustrating ODAR’s behavior across difficulty levels.

Figure 10: Simple Path execution for a factual query. The Difficulty Estimator ( d = 0.12 d=0.12 ) correctly routes to t

Figure 10: Simple Path execution for a factual query. The Difficulty Estimator ( d = 0.12 d=0.12 ) correctly routes to the Fast Agent only.

Consider the query “Is Paris the capital of France?” The Difficulty Estimator assigns d=0.12d=0.12, triggering the Simple Path (d<0.3d<0.3). ODAR routes exclusively to the Fast Agent, which returns “Yes” with confidence 0.99 in 1.2 seconds. The system correctly identifies this as a trivial factual recall task and avoids unnecessary verification overhead, achieving correct output at 1.0×\times baseline cost.

Figure 11: Medium Path workflow for an algebraic equation. FEP Fusion selects the Slow Agent’s rigorous solution ( ℱ = 2

Figure 11: Medium Path workflow for an algebraic equation. FEP Fusion selects the Slow Agent’s rigorous solution ( ℱ = 2.08 \mathcal{F}=2.08 ) over the Fast Agent’s answer ( ℱ = 2.67 \mathcal{F}=2.67 ).

For the query “Find all real numbers xx such that x+3+x−1=4\sqrt{x+3}+\sqrt{x-1}=4,” the Difficulty Estimator assigns d=0.58d=0.58, triggering the Medium Path. The Fast Agent applies direct squaring to obtain x=3.25x=3.25 with free energy F_fast=2.67\mathcal{F}\_{\text{fast}}=2.67, but omits domain verification. The Slow Agent performs systematic analysis: domain constraint identification (x≥1x\geq 1), substitution (u=x+3,v=x−1u=\sqrt{x+3},v=\sqrt{x-1}), solution derivation, and extraneous solution checking, yielding x=3.25x=3.25 with F_slow=2.08\mathcal{F}\_{\text{slow}}=2.08.

FEP Fusion compares the free energies and selects the Slow Agent’s answer since F_slow<F_fast\mathcal{F}\_{\text{slow}}<\mathcal{F}\_{\text{fast}}. Although both agents produce the same numerical answer, the lower free energy of the Slow Agent’s response reflects its more rigorous reasoning chain with consistent confidence throughout. The Medium Path incurs 4.2×\times cost but ensures correctness through systematic verification.

Figure 12: Hard Path execution for IMO-level combinatorics. FEP Fusion identifies the unique complete proof ( y γ ( 1 )

Figure 12: Hard Path execution for IMO-level combinatorics. FEP Fusion identifies the unique complete proof ( y γ ( 1 ) y_{\gamma}^{(1)} , ℱ = 1.85 \mathcal{F}=1.85 ) among six candidates.

Consider the IMO-level problem: “2n2n distinct tokens are placed at vertices of a regular 2n2n-gon. A move interchanges tokens at edge endpoints. After finite moves, every pair has been interchanged exactly once. Prove some edge was never chosen.” The Difficulty Estimator assigns d=0.94d=0.94, triggering the Hard Path.

The system generates six candidates: y_θy\_{\theta} from the Fast Agent (parity argument, incomplete, F=3.82\mathcal{F}=3.82) and five samples from the Slow Agent. Among the Slow Agent candidates, y_γ(1)y\_{\gamma}^{(1)} provides a complete proof via reflection line analysis (F=1.85\mathcal{F}=1.85), while y_γ(2)y\_{\gamma}^{(2)} through y_γ(5)y\_{\gamma}^{(5)} exhibit various deficiencies: incomplete graph-theoretic argument (F=2.56\mathcal{F}=2.56), failed induction on edge cases (F=2.93\mathcal{F}=2.93), proof gap in permutation cycle analysis (F=2.41\mathcal{F}=2.41), and arithmetic error in pigeonhole application (F=3.15\mathcal{F}=3.15).

FEP Fusion selects y_γ(1)y\_{\gamma}^{(1)} based on its minimum free energy, correctly identifying the unique complete and rigorous proof. This selection was verified against the official IMO solution. The Hard Path incurs 16.0×\times baseline cost, but this investment is justified: single-agent inference with either GPT-5.1 or Claude-4.5 achieved 0% success rate on this problem.

Appendix Y Statistical Rigor, Subsampling Stability, and Significance Analysis

Section titled “Appendix Y Statistical Rigor, Subsampling Stability, and Significance Analysis”

To address potential sampling bias and ensure the robustness of our results, we perform a multi-tiered validation focused on between-subsample variability and paired-item significance.

Y.1 Subsampling Protocol and Empirical Stability (K=5K=5)

Section titled “Y.1 Subsampling Protocol and Empirical Stability (K=5K=5K=5)”

For datasets exceeding 5,000 instances (e.g., MMLU-Pro, BBH), we independently draw K=5K=5 disjoint stratified folds (without replacement, N=1,000N=1,000 each) to probe the uncertainty of the sampling mechanism. Strata are defined by task domain and baseline difficulty quantiles.

To quantify stability, we report the between-subsample empirical CI calculated using the tt-distribution across the KK disjoint folds. As shown in Table 35, the results are robust to the specific draw, with performance fluctuating within a narrow uncertainty band (<0.7%<0.7\% for most tasks; tt-based CI over folds; conservative in practice).

Y.2 Significance Testing via Paired Difference (Δ\Delta)

Section titled “Y.2 Significance Testing via Paired Difference (Δ\DeltaΔ)”

We prioritize the paired difference Δ=Acc_ODAR−Acc_SC\Delta=\text{Acc}\_{\text{ODAR}}-\text{Acc}\_{\text{SC}} on identical items to eliminate item-specific variance. We employ a stratified paired bootstrap (10,000 iterations), where we resample items within each stratum with replacement (preserving stratum proportions) and compute the paired Δ\Delta for each resample.

As illustrated in Table 35, the 95% CI of Δ\Delta is strictly positive across all reported benchmarks. For key large-scale datasets, we perform McNemar’s test on the union of the K=5K=5 disjoint folds (5,0005,000 samples) to ensure high statistical power. After applying Benjamini–Hochberg (BH) correction (m=23,q=0.05m=23,q=0.05), all primary gains remain significant with BH-adjusted p<0.001p<0.001.

Table 35: Rigorous Statistical Analysis: Mean accuracy and between-subsample CI (K=5K=5 disjoint folds, tt-based). Δ\Delta denotes the paired improvement (ODAR vs. Baseline) with its 95% bootstrap CI. Within MoE uses a binomial SRS approximation (N=1,000N=1,000) as a reference scale. Global Avg. is the macro-average across 23 benchmarks; uncertainty is estimated via bootstrap over datasets.

DatasetMean Acc. (μ\mu)Subsample CIWithin MoEGain Δ\Delta95% CI of Δ\Delta
MATH98.2%±\pm0.38%±\pm0.82%+6.4%[5.8%, 7.0%]
GSM8K99.1%±\pm0.21%±\pm0.58%+3.2%[2.9%, 3.5%]
ARC-Challenge98.5%±\pm0.41%±\pm0.85%+6.0%[5.2%, 6.8%]
MMLU-Pro94.2%±\pm0.62%±\pm1.45%+4.7%[3.8%, 5.6%]
BBH95.4%±\pm0.55%±\pm1.31%+4.2%[3.5%, 4.9%]
HLE54.8%±\pm0.95%–+12.0%[10.2%, 13.8%]
Global Avg.89.6%±\pm0.45%–+6.0%[5.2%, 6.8%]

Y.3 Stratification and Label-Free Sensitivity Analysis

Section titled “Y.3 Stratification and Label-Free Sensitivity Analysis”

The stratification quantiles were initially estimated via baseline GPT-5.1 accuracy. To ensure this does not introduce model-relative bias, we performed a sensitivity check using label-free stratification based on question length and intrinsic category tags. Re-stratifying changes ODAR’s accuracy by <0.15%<0.15\% and the improvement Δ\Delta by <0.10%<0.10\%, confirming that our stratification primarily ensures domain coverage rather than favoring specific model behaviors.

*