Paper deep dive
Hermes: Learning Contextual Reasoning Unlocks Test-Time Scaling
Xinyu Li, Mononito Goswami, Hao Liu, Nikos Kanakaris, Langlin Huang, Prithwish Jana, Patrick BlĂśbaum, Purak Jain
Intelligence
Status: succeeded | Model: Gemma-4-26B-A4B | Prompt: intel-v1 | Confidence: 93%
Last extracted: 10/1/2026, 7:47:40 AM
Summary
The paper introduces Hermes, a framework for test-time scaling that shifts contextual reasoning control from the harness to the model. It defines two mechanisms: delegation (allocating fresh contexts) and digestion (carrying information forward). The authors propose Hermes-Learn, a two-stage learning framework (SFT followed by RL) to teach models adaptive contextual reasoning strategies. Experiments show that while capable models can exploit this flexibility, smaller models suffer without training; Hermes-Learn closes this gap, enabling models to scale with additional inference-time compute across various benchmarks.
Entities (13)
Relation Signals (9)
Hermes â enablescapability â Contextual Reasoning
confidence 96% ¡ We introduce 1) Hermes... that progressively varies model control over context allocation and reuse... We call a model's ability to make these decisions contextual reasoning.
Hermes â usesmechanism â Delegation
confidence 95% ¡ Hermes exposes two generic mechanisms: delegation, for allocating fresh context, and digestion, for carrying useful information forward.
Hermes â usesmechanism â Digestion
confidence 95% ¡ Hermes exposes two generic mechanisms: delegation, for allocating fresh context, and digestion, for carrying useful information forward.
Hermes-Learn â includesmethod â Reinforcement Learning
confidence 93% ¡ We introduce Hermes-Learn, a two-stage framework combining supervised fine-tuning and curriculum reinforcement learning
Hermes-Learn â includesmethod â Supervised Fine-Tuning
confidence 93% ¡ We introduce Hermes-Learn, a two-stage framework combining supervised fine-tuning and curriculum reinforcement learning
Hermes â evaluatedon â HMMT
confidence 90% ¡ We evaluate Hermes and Hermes-Learn... on mathematical reasoning benchmarks spanning AIME, HMMT
Hermes â evaluatedon â AIME
confidence 90% ¡ We evaluate Hermes and Hermes-Learn... on mathematical reasoning benchmarks spanning AIME
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract:Test-time scaling improves model performance by allocating additional compute during inference. Using this compute effectively across multiple context windows requires deciding how to allocate fresh contexts and what information to carry between them. We call a model's ability to make these decisions contextual reasoning. Existing approaches largely prescribe these decisions through their harness; we instead shift them to the model. We introduce 1) Hermes, a family of simple, configurable harnesses that progressively varies model control over context allocation and reuse, and 2) Hermes-Learn, a two-stage framework for learning these capabilities. We find that capable models can exploit this flexibility to scale with additional inference-time compute, while smaller open-source models initially struggle to do so. Training with Hermes-Learn closes this gap, inducing adaptive contextual reasoning strategies that vary with both the problem and the progress of reasoning. These gains generalize across benchmarks and models, extrapolate beyond the inference-time compute seen during training, and transfer to complementary test-time scaling methods beyond Hermes.
Tags
Links
- Source: https://arxiv.org/abs/2609.38332v1
- Canonical: https://arxiv.org/abs/2609.38332v1
Trouble viewing inline? Open PDF directly â
Full Text
147,812 characters extracted from source content.
Expand or collapse full text
HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling , Xinyu Li 1,â ,⥠, Mononito Goswami 2,â , Hao Liu 2 , Nikos Kanakaris 2 , Langlin Huang 3,⥠, Prithwish Jana 4,⥠, Patrick BlĂśbaum 2 , Purak Jain 2 1 Carnegie Mellon University 2 AWS AI Labs 3 Washington University in St. Louis 4 Georgia Institute of Technology Test-time scaling improves model performance by allocating additional compute during inference. Using this compute effectively across multiple context windows requires deciding how to allocate fresh contexts and what information to carry between them. We call a modelâs ability to make these decisions contextual reasoning. Existing approaches largely prescribe these decisions through their harness; we instead shift them to the model. We introduce 1) Hermes, a family of simple, configurable harnesses that progressively varies model control over context allocation and reuse, and 2) Hermes-Learn, a two-stage framework for learning these capabilities. We find that capable models can exploit this flexibility to scale with additional inference-time compute, while smaller open-source models initially struggle to do so. Training with Hermes- Learn closes this gap, inducing adaptive contextual reasoning strategies that vary with both the problem and the progress of reasoning. These gains generalize across benchmarks and models, extrapolate beyond the inference-time compute seen during training, and transfer to complementary test-time scaling methods beyond Hermes. Date: October 1, 2026 1 Introduction âThe capacity of the human mind for formulating and solving complex problems is very small compared with the size of the problems . . . â â Herbert A. Simon, Models of Man [1] Large language models have made impressive progress on complex reasoning, increasingly con- tributing to mathematical research [2,3]. This progress is fueled by test-time scaling: allocating additional computation during inference to improve model performance [4]. Recent advances have involved thousands of agents reasoning in separate contexts, with harnesses coordinating how those contexts are allocated and how intermediate results are carried forward. This highlights two complementary dimensions of reasoning. Mathematical reasoning determines how to make progress given the information available within a context, while contextual reasoning determines how separate contexts should be allocated, coordinated, and reused as reasoning unfolds. In this work, we focus on contextual reasoning. â Xinyu Li and Mononito Goswami contributed equally. Correspondence to xinyul2@andrew.cmu.edu or monon- ito@amazon.com. ⥠Xinyu Li, Langlin Huang, and Prithwish Jana were interns at AWS when this work was carried out. 1 arXiv:2609.38332v1 [cs.LG] 29 Sep 2026 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling Concretely, contextual reasoning requires two types of decisions: i) How should additional contexts be used in order to explore an alternative solution, verify prior work, or continue an existing line of reasoning? i) What information should be carried forward into those contexts? Existing approaches typically encode these decisions in their harnesses. For example, Reasoning Cache repeatedly compresses prior reasoning and continues from the resulting summary in a fresh context [5], while Recursive Agent Optimization uses recursive delegation to create fresh contexts for subproblems and learns when and how to invoke them [6]. Yet the best use of additional contexts may change across stages of problem solving. For instance, a difficult proof may initially benefit from exploring several approaches in parallel, then verifying a promising intermediate result, and finally continuing a successful line of reasoning. This motivates a flexible harness for contextual reasoning that exposes multiple ways to use additional contexts and allows the model to choose among them based on the current state of the solution. To this end, we introduce Hermes, a family of simple, flexible, and configurable harnesses that progressively shifts contextual reasoning control from the harness to the model. Hermes exposes two generic mechanisms: delegation, for allocating fresh context, and digestion, for carrying useful information forward. By varying how strongly the harness steers these decisions, Hermes defines a hierarchy ranging from prescribed strategies to increasingly flexible and model-driven contextual reasoning. We observe that capable models can exploit this flexibility, while small open-source models perform worse under Hermes than when reasoning inline, revealing a contextual reasoning gap. This motivates a learning framework for developing flexible contextual reasoning. Crucially, the same hierarchy provides a natural learning curriculum: models first learn under strongly steered harnesses with a simplified contextual reasoning decision space, then progressively assume greater control as harness steering is reduced during training. We therefore introduce Hermes-Learn, a two-stage framework for learning flexible contextual reasoning. Together, Hermes and Hermes- Learn provide a rigorous framework for studying contextual reasoning and a practical approach for teaching models to acquire this distinct capability. We evaluate Hermes and Hermes-Learn across model families and scales, from Qwen3-4B to frontier models, on mathematical reasoning benchmarks spanning AIME, HMMT, BeyondAIME [7], and IMO-AnswerBench [8], as well as the out-of-domain FrontierScience benchmark [9]. We deliberately constrain each context to 8K tokens, creating a setting where effective long-horizon reasoning requires models to allocate and reuse context well. Our results show that: (1) Hermes unlocks test-time scaling for capable models, while revealing a substantial contextual reasoning gap in smaller open-source models; (2) Hermes-Learn closes this gap, improving contextual reasoning without degrading the modelâs mathematical reasoning; (3) trained models learn adaptive contextual reasoning strategies that vary with both the problem structure and the reasoning progress; and (4) the learned contextual reasoning capabilities extend beyond the inference-time compute seen during training and transfer to complementary test-time scaling methods beyond Hermes. Contributions(1)Contextual reasoning. We study contextual reasoning as a modelâs capability to organize and sustain reasoning over long horizons.(2)Her mes. We introduce a simple, configurable family of harnesses built on delegation and digestion, with a steering hierarchy that progressively shifts control from the harness to the model.(3)A learning framework to close contextual reasoning gap. We show that capable models can turn additional inference-time compute into better perfor- mance under Hermes, while smaller open-source models struggle despite reasonable mathematical reasoning. We introduce Hermes-Learn, a two-stage framework combining supervised fine-tuning and curriculum reinforcement learning to close this gap by learning to select and compose dele- 2 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling gation strategies.(4)Adaptive and generalizable contextual reasoning. Learned strategies adapt to the problem and current reasoning state, generalize across benchmarks and model families, scale beyond the inference-time compute seen during training, and transfer to complementary test-time scaling methods. 2 Related Work Contextual reasoning Prior test-time scaling approaches typically allocate additional contexts through inference primitives such as sequential reasoning [10,11], parallel exploration [12,13], and aggregation [14], or compose multiple primitives within a single inference procedure [15,16]. Another line of work uses search to guide context allocation, such as tree-based search [17,18] using self-reflection and verifier-guided search [19] using process reward models. When reasoning extends across multiple context windows, existing work primarily relies on delegation and compaction to coordinate context allocation and reuse. Prior methods typically prescribe specific delegation strategies, such as delegating recursively decomposed tasks [20], recursively spawned work [21], or concurrently executable structures [22] to fresh contexts. A complementary line of work [23,24] focuses on compressing prior reasoning into compact states for reuse in later contexts. While prior work relies on external search procedures or prescribes contextual reasoning strategies in the inference procedure, Hermes studies contextual reasoning as a model capability. Hermes enables models to adaptively choose among multiple strategies for allocating additional contexts as reasoning progresses. Moreover, our experiments (Sec. 6.2) show that this capability can also benefit complementary test-time scaling methods that use search with self-reflection. Table 1 Comparison of Hermes with existing methods. Prior methods mostly prescribe contextual reasoning strate- gies for allocating and reusing contexts, then train models for that particular harness. Hermes-Learn instead trains models to select among different contextual reasoning strate- gies through the learning curriculum induced by the varying steering of the Hermes hierarchy. Model-driven strategy selection captures whether contextual reasoning strategies are decided by the model rather than by the harness; Context compaction, whether prior reasoning can be compressed and reused; Recursive delegation, whether further contexts can be allocated recursively through the same delegation interface. Method Model-driven strategy selection Context compaction Recursive delegation SPIRALâ PaCoReâââ RAOââ Context-Foldingââ â â Reasoning Cacheâââ Hermesâ â Context-Folding compacts a delegated branch when it returns. Learning contextual reasoning Recent work shows that explicitly training models to use the test-time inference procedures can improve test-time scaling. For ex- ample,MRTshapes long reasoning tra- jectories with progress-sensitive rewards [25], and e3 trains models to com- pose generation, verification, and refine- ment during exploration [26]. Other methods train models for particular in- ference harnesses:SPIRALtrains par- allel generation and aggregation [27], PaCoRetrains synthesis across parallel branches [15],RAOtrains recursive dele- gation [6],Context-Foldingtrains del- egation of subtasks to fresh branches to- gether with compaction of intermediate reasoning [28], andReasoning Cache trains continuation from compacted rea- soning progress [5]. While these methods demonstrate the value of aligning training with inference harnesses, they typically encode contextual reasoning strategies in the harness, leaving models to learn how to execute them effectively (App. B). In contrast, Hermes-Learn 3 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling teaches models to autonomously select, instantiate, and compose different contextual reasoning strategies, through the natural curriculum induced by the progressively reduced steering of the Hermes hierarchy. 3 HERMES: A Family of Simple, Flexible Harnesses Figure 1 Overview of Hermes. Hermes enables contex- tual reasoning across multiple context windows through two mechanisms: delegation, which allocates fresh contexts to search or verification strategies, and digestion, which com- pacts accumulated progress for reuse in later contexts. The Hermes hierarchy (L3âL1) progressively shifts control over delegation decisions from the harness to the model. L3 pre- scribes the strategy; L2 prescribes a strategy category (search or verification) while allowing the model to select strategies within it; and L1 lets the model choose both as reasoning unfolds. In this section, we introduce Hermes and evaluate how different language models can leverage its harnesses for test-time scaling. Desiderata We design Hermes to be simple, flexible, and configurable. Sim- ple: Hermes introduces only two generic mechanisms, delegation and digestion to allocate fresh contexts and carry useful information across them. Flexible: these mechanisms do not prescribe a fixed form of computation; instead, they allow the model to decide how additional contexts should be used as reasoning unfolds. Con- figurable: steering controls how much guidance the harness provides for delega- tion, from prescribing a specific strategy to letting the model choose one itself. Contextual reasoning via delegation and digestion Hermes gives a model two ways to continue reasoning beyond a single context window. It can assign tasks to fresh contexts and use the results, or carry its own progress into a fresh context and continue working. We call these operations delegation and digestion, respectively. Delegation and digestion are complementary primitives for contextual reasoning, expanding reasoning across contexts in parallel and sequentially (Fig. 1). Within each context window, Hermes runs a ReAct-style interaction loop [29] (Fig. 1). At stept, the agent receives an inputu t , such as the original problem, a message from the harness, or a result from a subagent. It then produces an actiona t : it may continue reasoning, return an answer, or call launch_subagent(task). This tool is how the agent delegates work. The harness invokes the same model on the specified task in a fresh context and returns a compact report as the agentâs next input. We call this model working on the specified task a subagent. Formally,h t = (u 1 , a 1 , . . . , u t )is the history available when the agent choosesa t ; under harnessHwith configurationc, the action is sampled fromĎ Î¸ (¡| h t ; H c ). An agent has up toTsteps in each context window. At each of the firstTâ 1steps, it may launch up toBsubagents; at stepT, it can no longer delegate and returns its best current answer. Subagents use the same delegation interface, so they may launch further subagents up to depthD. At the maximum depth, they reason inline without further delegation. The interaction can also end earlier if the context window is exhausted. Digestion allows the agent to continue its own work across windows. At the end of a window, it 4 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling compresses its accumulated progress into a digest. If reasoning continues, the harness starts a fresh window with the original problem and that digest, rather than the full interaction history, for up to Wwindows. Thus,BandDgovern how work branches across contexts in parallel, whileWgoverns how long it can continue sequentially. Steerable control over delegation Effective delegation requires more than sound mathematical reasoning. An agent must also decide when to delegate, what task to assign, and how to use each fresh context, for example by independently searching for a solution, exploring a different approach, decomposing the problem, or verifying existing reasoning. These contextual reasoning decisions can be challenging, particularly for smaller open-source models. Hermes therefore varies how strongly the harness steers delegation, progressively shifting these decisions from the harness to the model. We organize delegation strategies into two broad categories: search through independent attempts on the full problem, alternative approaches, or decomposition into simpler subproblems, and verification of complete solutions, specific reasoning steps, or disagreements between candidate solutions. These categories induce three steering levelsââL3, L2, L1 (Fig. 1). At L3, the harness specifies a strategy and the agent instantiates it as a concrete task. At L2, the harness specifies only the strategy category, while the agent selects one or more strategies within it. At L1, the agent selects from the full strategy set, deciding how to formulate tasks for its subagents as reasoning unfolds. Thus, L3âL1 progressively shift control over delegation from the harness to the agent, while providing a natural curriculum for learning these contextual reasoning decisions. Several prior methods can be viewed as fixed-strategy special cases of Hermes [5, 6, 27]. Together, these parameters define a harness configurationc = (T, B, D, W, â), making Hermes configurable in both how much additional context is available and how much control over its use is given to the model. Additional details can be found in App. C. Test-time scaling with HERMES relies on contextual reasoning Hermes provides additional test-time compute, but models must use it effectively to improve performance. We compareQwen3-4B- Instruct-2507(hereafterQwen3-4B), our base model, with ClaudeSonnet5andDeepSeek- V3.2under inline reasoning and Hermes L1 and L2. Inline reasoning measures mathematical Table 2 Her mes enables test-time scaling for capable models. Avg@16(%,â) under inline reasoning and Hermes L1 and L2 on the pooled and synthetic benchmarks. Inline reasoning measures mathematical reasoning within a single 8K-token context, while Hermes provides up to 56K tokens across contexts. ClaudeSonnet 5andDeepSeek-V3.2match or improve over inline reasoning with Hermes;Qwen3-4B degrades, exposing a contextual reasoning gap. Pooled (n = 238) Synthetic (n = 88) ModelInline L1 L2 Inline L1L2 Qwen3-4B37.116.215.150.726.826.0 Sonnet 555.3 76.7 76.5 87.0 94.7 96.2 DeepSeek-V3.2 56.2 58.4 57.4 78.1 86.2 83.7 reasoning within a single 8K-token con- text, where a non-thinking model solves the problem directly without delegation or digestion. For both Hermes harnesses, we useT = 3,B = 3,D = 1, andW = 1, with an 8K-token context per agent. We setD = 1andW = 1, so only the root agent delegates and digestion is disabled. WithT = 3andB = 3, Hermes can use up to 56K tokens 1 of total context, com- pared with 8K tokens for inline reasoning. We evaluate whether models can trans- late this additional context into improved performance on a pooled set of AIME and HMMT problems (App. E.1) and a syn- 1 WithT = 3,B = 3,D = 1, andW = 1, the root agent uses one 8K-token window and may launch up to six subagents, each with its own 8K-token window. This yields a maximum of 7Ă 8K = 56K tokens. 5 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling thetic benchmark constructed to benefit from different contextual reasoning strategies (App. D.2). As shown in Tab. 2, ClaudeSonnet 5andDeepSeek-V3.2match or exceed their inline per- formance with Hermes, showing that they can combine additional context with mathematical reasoning effectively. In contrast,Qwen3-4Bdegrades substantially despite reasonable inline mathe- matical reasoning, revealing a gap in the contextual reasoning needed to benefit from additional context. On the synthetic benchmark,Sonnet 5also performs slightly better under the more pre- scriptive L2 harness than under L1, suggesting that even capable models may benefit from different levels of steering. These results motivate learning contextual reasoning capabilities directly. 4 Learning Contextual Reasoning Hermes exposes several learning problems in contextual reasoning. Given the current historyh t , a model must learn what to delegate to fresh contexts, what to preserve when generating a digest, and how to reason from the resulting digest. Prior work has studied the latter two problems: models can be trained to continue reasoning from compressed histories [5,30], while recent instruction-tuned models already exhibit summarization capabilities that enable effective digest generation in many cases. Further improving digestion through downstream task outcomes can suffer from difficult credit assignment across multiple subsequent context windows. In this work, we focus on learning delegation. Unlike digestion, delegation decisions are made by the root agent as reasoning unfolds and can be optimized directly from task outcomes. We introduce Hermes-Learn, a two-stage framework that first teaches useful delegation behaviors through supervised fine-tuning (SFT), then develops autonomous strategy selection through reinforcement learning (RL). For digestion, we rely on the modelâs existing ability to summarize its accumulated reasoning and continue from the resulting digest instead of explicitly training it. Stage I: Supervised Fine-Tuning We first warm-start the base model with supervised fine-tuning on successful teacher trajectories. We collect trajectories from strong models operating under L1 and L2, exposing the model to delegation under different levels of steering. We retain trajectories in which the root agent delegates at least once and produces the correct final answer. During training, since we setD = 1, all delegation decisions occur at the root, so we train only on root-agent trajectories and retain subagent outputs only as part of the root historyh t . LetTdenote these retained root-agent trajectories. Then the SFT stage optimizes arg min θ â âď¸ ĎâT T âď¸ t=1 |a t | âď¸ j=1 log Ď Î¸ (ď¸ a t,j | h t , a t,<j )ď¸ , where loss is computed only over assistant tokens. This stage exposes the model to successful delegation under different levels of steering and provides a strong initialization for RL. Stage I: Reinforcement learning Initializing from the SFT policyĎ Î¸ SFT , we use on-policy rein- forcement learning with outcome-based rewards to learn more autonomous delegation. We use Dr. GRPO [31] with the DAPO clip-higher strategy and dynamic sampling [32]. For each problem p â Dand Hermes harnessH, we sampleGroot-agent rollouts from the current policy. Each rollout receives a binary reward of1if its final answer is correct and0otherwise. Following dynamic sampling [32], we train only on groups containing both correct and incorrect rollouts. 6 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling As in Stage I, we optimize only the root-agent trajectory. Extending training to subagent trajectories would additionally require optimizing reasoning over policy-generated subtasks and assigning credit to individual subagent outcomes. Recursive Agent Optimization (RAO) [6], for example, addresses this setting by jointly optimizing nodes in a recursive execution tree using node-local rewards and trajectory weighting. In this work, we focus on learning root-level delegation decisions and leave joint rootâsubagent optimization to future work. We optimize root-agent trajectories with the following Dr. GRPO objective: J (Ď Î¸ ) =E pâźD,HâźS(H),o i G i=1 âźĎ θ old (¡|p;H) [ď¸ 1 G G âď¸ i=1 T âď¸ t=1 |a i t | âď¸ j=1 min (ď¸ r i t,j (Ď Î¸ ) Ë A i , clip (ď¸ r i t,j (Ď Î¸ ), 1â Îľ low , 1 + Îľ high )ď¸ Ë A i )ď¸ ]ď¸ , where r i t,j (Ď Î¸ ) = Ď Î¸ (a i t,j | h i t , a i t,<j ) Ď Î¸ old (a i t,j | h i t , a i t,<j ) , Ë A i = R i â 1 G G âď¸ k=1 R k . Here,R i is the binary outcome reward for rollouti. Since the reward is defined at the rollout level, the same advantage Ë A i is applied to all root-agent tokens in that rollout. The samplerS(H)defines a curriculum over the Hermes hierarchy. We begin RL with L2 and gradually increase the proportion of L1, while retaining a small fraction of L2 throughout training. This progressively reduces harness steering, requiring the model to take greater control over which delegation strategies to use as reasoning unfolds. Letnbe a natural number, and letf (n)denote the sum of the digits ofn 2 + 1when written in base10. Define the iteratesf (1) (n) = f (n)and f (k+1) (n) = f ( f (k) (n))fork ⼠1. Letmbe the value of f (100) (1990). Letpbe the number of four-digit numbers whose digits sum to 12. Find the remainder whenm + pis divided by1000. Golden answer: 353 Figure 2 Synthetic splitting example. Constructed by combining two independentAceReasonquestions into a single problem whose final answer depends on both, encouraging parallel delegation. Data augmentation Competition math prob- lems often do not expose delegation strategies uniformly: for example, independent attempts may arise more frequently than decomposition. To provide more balanced coverage of delega- tion strategies during training, we generate syn- thetic problems with structures designed to fa- vor different search and verification strategies. Splitting combines multiple independent prob- lems into a single instance whose final answer depends on all of them, creating opportunities for parallel delegation (Fig. 2). Chaining intro- duces dependencies that favor sequential del- egation; verifying introduces potentially incor- rect intermediate results; and multi- and single- attempt problems vary whether additional in- dependent attempts are useful (see details in App. D). These controlled structures expose the model to a broader and more balanced range of contextual reasoning behaviors and encourage it to adapt its delegation strategy to the problem. We use the same generation procedure to construct both synthetic training examples and a held-out synthetic evaluation set. 7 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling 5 Experimental Setup and Main Results We focus on answering fourresearch questions: (RQ1) Does Hermes-Learn improve contextual reasoning? (RQ2) What contextual reasoning behaviors emerge through training? (RQ3) Which components of the training recipe drive these improvements? (RQ4) Do these gains generalize to new settings? We first describe the training and evaluation setup and baselines, and then address each question in turn. Training setup We train theQwen3-4B-Instruct-2507base model on AceReason-5K, a cleaned subset of AceReason-Math [33] containing 5,239 mathematical reasoning problems. For SFT, we train on teacher trajectories collected from bothSonnet 5andDeepSeek-V3.2, using L1 and L2 harnesses. For RL, we use a curriculum that shifts from L2 to L1 while retaining balanced exposure to both harnesses throughout training, and augment training set with 500 synthetic problems. See App. E.3 for details. Evaluation benchmarks and protocols We evaluate on a suite of mathematical reasoning benchmarks: (1)a cleaned pooled benchmark of 238 AIME and HMMT problems from competitions between 2023 and 2026;(2)a synthetic benchmark of 88 problems generated from the pooled benchmark using the same augmentation pipeline as our training data; and(3)advanced benchmarks, BeyondAIME [7] and IMO-AnswerBench [8], together with the out-of-domain FrontierScience benchmark [9]. We use an 8K-token context per agent, a practical and deliberately constrained setting that makes reasoning across multiple contexts necessary. We report average accuracy over 16 sampled solutions (Avg@16) under both inline reasoning and Hermes L1. Inline performance reflects mathematical reasoning within a single context, while improvements under L1 reflect the modelâs ability to use additional contexts effectively. Training and evaluation use the default Hermes configuration: T = 3, B = 3, D = 1, and W = 1. Under this configuration, only the root agent delegates, with up to three subagents per delegation step, and digestion is disabled (see App. E). Baselines In addition to the base model, we include two baselines designed to isolate the source of improvements from Hermes-Learn. First, we evaluate inline reasoning with a56K-token context, matching the maximum total context available to a 3-step Hermes run 2 . Second, we train with GRPO under inline reasoning with an8K-token context, controlling for improvements from RL without training the model to reason across contexts. (RQ1) HERMES-LEARN enables test-time scaling with HERMES It transforms additional context from a liability into a source of test-time scaling (Tab. 3). The base model performs substantially worse under L1 than inline reasoning across all benchmarks, showing that access to additional contexts alone is insufficient. SFT reverses this trend, and RL further improves L1 performance. In contrast, inline performance changes relatively little through Hermes-Learn, indicating that the gains primarily come from learning to use additional contexts rather than from improved mathematical reasoning. This distinction is reinforced by the inline GRPO baseline, which improves inline perfor- mance but continues to degrade under L1. Finally, SFT + RL under L1 outperforms the 56K inline reference of both the base and GRPO models across all four mathematical benchmarks, showing that 2 WithT = 3andB = 3, Hermes uses one root context and up to six subagent contexts, for a maximum of 7Ă 8K = 56Ktokens. We include this baseline to distinguish gains from reasoning across contexts from those obtained by simply providing a larger single context. 8 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling Table 3 SFT and RL progressively improve L1 performance (Avg@16(%,â)), while inline performance changes relatively little. SFT + RL under L1 also exceeds the base modelâs 56K inline reference on all four mathematical benchmarks. Trained results are meanÂąstandard deviation over three seeds. Bold andunderlinedmark the best and second-best point estimates per dataset. PooledSyntheticBeyondAIMEIMO-AnswerFrontierScience ModelInlineL1InlineL1InlineL1InlineL1InlineL1 Base37.116.250.726.824.812.236.218.223.68.8 GRPO40.4Âą 1.016.5Âą 1.6 61.5Âą 1.627.9Âą 1.5 31.1Âą 0.614.1Âą 1.4 37.4Âą 0.619.0Âą 1.4 24.6Âą 1.58.9Âą 0.6 Base (56K)41.8â59.7â31.1â40.3â24.6â GRPO (56K)41.3Âą 1.2â62.2Âą 2.1â30.9Âą 1.2â37.5Âą 0.6â25.1Âą 1.5â Hermes-Learn SFT35.3Âą 0.339.9Âą 0.7 52.7Âą 1.657.2Âą 2.4 23.5Âą 0.431.0Âą 0.6 36.7Âą 0.539.2Âą 0.2 18.4Âą 1.418.9Âą 0.5 SFT + RL36.4Âą 0.1 47.3Âą 1.3 55.2Âą 0.974.0Âą 2.9 27.5Âą 1.338.5Âą 0.5 36.4Âą 0.444.0Âą 0.8 19.1Âą 0.424.1Âą 0.9 improved mathematical reasoning alone is insufficient to realize the benefits of additional context and highlighting the role of Hermes-Learn in enabling effective contextual reasoning. Base SFT RL 4342 25261138 491234 (a)Stage AIME + HMMT Pooled 3851 15113242 342635 Synthetic 0255075100% Same Different Split 2858 111965 3662 (b)Step 1 â 2 255075100% 291157 83 2371 Strategy SameDifferentSplitVerify Figure 3 Hermes-Learn makes strategy selection problem- and progress-dependent.Splitis used more often on synthetic problems designed to benefit from de- composition, while the second delegation step increasingly favors verification or continues the first-step strategy. (RQ2) Training makes strategy selection problemand progress-dependent To un- derstand how training changes the use of Hermes, we use an LLM judge to label the problem solving strategies executed under L1 on the pooled and synthetic benchmarks (App. E.4). Fig. 3 reveals two patterns. First, strategy selection depends on the problem: Splitbecomes much less common on the pooled benchmark after training, but re- mains prevalent on synthetic problems de- signed to benefit from decomposition (see App. C.1 for strategy definitions). Second, strategy selection depends on reasoning progress: in the second delegation step, the model often switches to verification; otherwise, it tends to continue the strategy used in the first step. Together, these results show that Hermes-Learn does not learn a fixed delegation pattern, but selects strategies based on the problem and the progress made so far. Additional analyses and example rollouts are provided in Apps. E.5 and F. 6 Analysis and Discussion 6.1 (RQ3) Teacher diversity, curriculum, and synthetic data shape HERMES-LEARN. We ablate the main components of Hermes-Learn on the pooled benchmark (Tab. 4). For SFT, we vary the source and amount of teacher demonstrations. For RL, we study exposure to L1 and L2 harnesses, their training order, and data augmentation. Combining teachers yields the strongest SFT model. Training on the full set of trajectories from 9 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling Table 4 Hermes-Learn ablations on the pooled benchmark. (a) For SFT, Both (Matched) uses a token- matched subset of trajectories from both teachers, while Both (Full) uses the full combined dataset. (b) For RL, Mix interleaves L1 and L2, while Curriculum trains on L2 before L1 with matched exposure; Rephrased and Synthetic each add 500 problems.Avg@16(%,â), meanÂąs.d. over three seeds. Bold andunderlinedmark best and second-best results. (a) SFT ablations TeachersInlineL1 Sonnet31.5Âą 0.530.1Âą 0.9 DeepSeek34.5 Âą 0.439.3Âą 0.2 Both (Matched) 34.4Âą 0.738.9Âą 0.4 Both (Full)35.3Âą 0.339.9Âą 0.7 (b) RL ablations ScheduleData Aug.InlineL1 Harness schedule on original data L1 onlyâ36.5Âą 1.5 46.1Âą 0.8 L2 onlyâ36.2Âą 0.2 45.4Âą 0.6 Mixâ35.7Âą 0.7 46.1Âą 0.8 Curriculumâ36.3Âą 0.7 46.3 Âą 1.9 With data augmentation Mix+ Synthetic 35.9Âą 1.0 45.3Âą 1.8 Curriculum+ Synthetic36.4Âą 0.147.3Âą 1.3 Curriculum + Rephrased 36.0Âą 0.3 45.6Âą 1.2 bothSonnet 5andDeepSeek-V3.2gives the best SFT performance (Both (Full)). When we match the mixed-teacher dataset to the token budget of a single teacher (Both (Matched)), however, its performance is similar toDeepSeek-V3.2alone. This suggests that much of the gain from the full dataset comes from having more high-quality demonstrations rather than teacher diversity alone. Notably,DeepSeek-V3.2is a much better teacher thanSonnet 5, despite performing worse under Hermes (Tab. 2), indicating that stronger inference performance does not necessarily translate into better supervision for SFT. Curriculum provides the largest gains when paired with synthetic problems. We ablate two choices in RL training: how the model is exposed to L1 and L2, and exposure to synethic data. Mix and Curriculum use the same number of L1 and L2 episodes, differing only in their order. Similarly, we compare 500 synthetic problems with 500 LLM-rephrased AceReason-1K problems to control for the effect of additional training examples. On the original training set,Curriculum andMixperform similarly, suggesting that ordering L2 before L1 provides only a modest benefit by itself. In contrast, combining the curriculum with synthetic problems produces the strongest L1 performance. Rephrasing the same number of existing problems does not yield a comparable gain, suggesting that exposure to new problem structures is more useful than additional training volume alone. Inline performance remains largely unchanged, while the improvements concentrate under L1, consistent with Hermes-Learn improving how the model uses Hermes rather than its in-context mathematical reasoning. 6.2 (RQ4) HERMES-LEARN generalizes beyond its training setting Our main experiments use the same Hermes configuration during training and evaluation. We now test three forms of generalization: larger inference-time compute budgets, combinations with other test-time scaling methods, and a different model family and scale. Hermes-Learn extrapolates to larger inference-time compute budgets. Starting from the default Hermes configuration used during training and evaluation (T = 3,B = 3,D = 1,W = 1), 10 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling we independently increase compute through longer sequential reasoning (â W), more subagents per delegation step (â B), and deeper delegation (â D). Tab. 5 shows that SFT benefits primarily from additional context windows, with little gain from more subagents or deeper delegation. After RL, performance improves along all three dimensions, showing that the learned contextual reasoning strategies generalize to inference configurations not seen during training. Table 5 Hermes-Learn generalizes across compute budgets, test-time scaling methods, and model families.Avg@16(%,â) on the pooled benchmark. (a) We independently vary the number of context windows (W), subagents (B), and delegation depth (D) beyond the default Hermes configuration used for training and evaluation:T = 3,B = 3,D = 1, andW = 1. (b) We evaluate Recursive Self-Aggregation (RSA) and the DeepSeekMath (DSM) Agent, both alone and combined with L1. (c) We apply the same training pipeline toOlmo-3-7B-Instruct. All experiments use the best performing Hermes-Learn model. Bold and underlinedmark best and second-best results where applicable. (a) Scaling inference-time compute Scaling Knob Value SFT SFT + RL Defaultâ39.947.3 W 2 44.352.2 3 45.2 53.0 B 2 39.746.4 4 39.7 49.7 D2 40.855.6 (b) Other scaling methods ModelRSA DSM Base46.0 24.4 SFT44.9 11.3 SFT + RL 50.515.1 With L1 SFT 49.952.1 SFT + RL55.052.5 (c) Transfer to Olmo-3-7B ModelInline L1 Base30.54.8 SFT29.3 33.4 SFT + RL 30.540.6 Hermes-Learn benefits test-time scaling methods beyond Hermes. We evaluate the learned models with Recursive Self-Aggregation (RSA) [14] and the DeepSeekMath (DSM) Agent [34], two methods that use self-generated intermediate results to guide later reasoning. Under RSA, performance improves over the base model, with further gains when combined with L1 3 . DSM alone degrades sharply under the 8K-token context limit, but combining it with L1 recovers and substantially improves performance. These results show that the contextual reasoning learned by Hermes-Learn can complement other forms of test-time scaling. Hermes-Learn transfers to a different model family and scale. We apply the same training pipeline toOlmo-3-7B-Instruct, replacingQwen3-4B-Instruct-2507as the base model. Like Qwen3-4B, theOlmomodel also initially struggles to use the L1 harness effectively. SFT reverses this degradation, while RL further improves its performance, all while keeping inline reasoning performance unchanged. Together, these results provide evidence that Hermes-Learn can improve contextual reasoning beyond the model family and scale used in our main experiments, suggesting that the approach may extend to a broader range of models. 7 Conclusion We introduced Hermes, a family of simple, configurable harnesses for test-time scaling beyond a single context window. Through delegation and digestion, Hermes progressively shifts control over context allocation and reuse from the harness to the model. We showed that frontier models can exploit this flexibility, while smaller open-source models exhibit a substantial contextual rea- soning gap. To address this gap, we introduced Hermes-Learn, a training recipe that improves contextual reasoning while preserving in-context reasoning performance. Trained models scale more 3 For RSA, we use its summarizer to compact candidate solutions before aggregation. 11 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling effectively with additional inference-time compute, adapt their strategies as reasoning unfolds, and transfer across model families and scales. Together, our results establish contextual reasoning as a learnable model capability and an important component of long-horizon test-time scaling. We discuss limitations and future work in App. A. Acknowledgements The authors would like to thank Amir Tahmasbi, Zhehui Huang, Karen Hovsepian, and Zhishen Huang for helpful feedback and discussions throughout the project. We also thank Andrew Wang and Lecheng (Jerry) Kong for early discussions of recursive models, and Satyaki Chakraborty for work on recursive agent optimization. 12 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling References [1]Herbert A. Simon. Models of Man, Social and Rational: Mathematical Essays on Rational Human Behavior in a Social Setting. John Wiley & Sons, New York, 1957. [2] Levent AlpĂśge and Ralph Furman. More than two thirds of the zeta zeros are simple and on the critical line. arXiv preprint arXiv:2608.13637, 2026. [3]OpenAI. Finite time blowup for the euler equation. Preprint, 2026. URLhttps://cdn. openai.com/pdf/315b36cd-ec98-4023-8342-93345194ece1/euler.pdf. [4] Charlie Victor Snell, Jaehoon Lee, Kelvin Xu, and Aviral Kumar. Scaling LLM test-time compute optimally can be more effective than scaling parameters for reasoning. In The Thirteenth International Conference on Learning Representations, 2025. URLhttps://openreview. net/forum?id=4FWAwZtd2n. [5] Ian Wu, Yuxiao Qu, Amrith Setlur, and Aviral Kumar. Reasoning cache: Continual improvement over long horizons via short-horizon rl. arXiv preprint arXiv:2602.03773, 2026. [6]Apurva Gandhi, Satyaki Chakraborty, Xiangjun Wang, Aviral Kumar, and Graham Neubig. Recursive agent optimization. arXiv preprint arXiv:2605.06639, 2026. [7]ByteDance-Seed. Beyondaime: Advancing math reasoning evaluation beyond high school olympiads, 2025. [8]Thang Luong, Dawsen Hwang, Hoang H. Nguyen, Golnaz Ghiasi, Yuri Chervonyi, Insuk Seo, Junsu Kim, Garrett Bingham, Jonathan Lee, Swaroop Mishra, Alex Zhai, Clara Huiyi Hu, Henryk Michalewski, Jimin Kim, Jeonghyun Ahn, Junhwi Bae, Xingyou Song, Trieu H. Trinh, Quoc V. Le, and Junehyuk Jung. Towards robust mathematical reasoning. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, 2025. URL https://aclanthology.org/2025.emnlp-main.1794/. [9]Miles Wang, Robi Lin, Kat Hu, Joy Jiao, Neil Chowdhury, Ethan Chang, and Tejal Patwardhan. Frontierscience: Evaluating AIâs ability to perform expert-level scientific tasks. arXiv preprint arXiv:2601.21165, 2026. [10]Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Brian Ichter, Fei Xia, Ed H. Chi, Quoc V. Le, and Denny Zhou. Chain-of-thought prompting elicits reasoning in large language models, 2022. URL https://arxiv.org/abs/2201.11903. [11]Aman Madaan, Niket Tandon, Prakhar Gupta, Skyler Hallinan, Luyu Gao, Sarah Wiegreffe, Uri Alon, Nouha Dziri, Shrimai Prabhumoye, Yiming Yang, et al. Self-refine: Iterative refinement with self-feedback, 2023. URL https://arxiv.org/abs/2303.17651. [12]Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, Christopher Hesse, and John Schulman. Training verifiers to solve math word problems, 2021. URLhttps://arxiv.org/ abs/2110.14168. [13] Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc V. Le, Ed H. Chi, Sharan Narang, Aakanksha Chowdhery, and Denny Zhou. Self-consistency improves chain of thought reasoning in language models. In International Conference on Learning Representations, 2023. URLhttps://arxiv. org/abs/2203.11171. 13 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling [14] Siddarth Venkatraman, Vineet Jain, Sarthak Mittal, Vedant Shah, Johan Obando-Ceron, Yoshua Bengio, Brian R. Bartoldson, Bhavya Kailkhura, Guillaume Lajoie, Glen Berseth, et al. Recursive self-aggregation unlocks deep thinking in large language models, 2025. URLhttps://arxiv. org/abs/2509.26626. [15]Jingcheng Hu, Yinmin Zhang, Shijie Shang, Xiaobo Yang, Yue Peng, Zhewei Huang, Hebin Zhou, Xin Wu, et al. PaCoRe: Learning to scale test-time compute with parallel coordinated reasoning, 2026. URL https://arxiv.org/abs/2601.05593. [16]Peijia Qin, Qi Cao, and Pengtao Xie. ATLAS: Agentic test-time learning-to-allocate scaling, 2026. URL https://arxiv.org/abs/2606.01667. [17] Shunyu Yao, Dian Yu, Jeffrey Zhao, Izhak Shafran, Tom Griffiths, Yuan Cao, and Karthik Narasimhan. Tree of thoughts: Deliberate problem solving with large language models. Advances in neural information processing systems, 36:11809â11822, 2023. [18]Andy Zhou, Kai Yan, Michal Shlapentokh-Rothman, Haohan Wang, and Yu-Xiong Wang. Language agent tree search unifies reasoning acting and planning in language models. arXiv preprint arXiv:2310.04406, 2023. [19]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 International Conference on Learning Representations, volume 2024, pages 39578â39601, 2024. [20]Archiki Prasad, Alexander Koller, Mareike Hartmann, Peter Clark, Ashish Sabharwal, Mo- hit Bansal, and Tushar Khot. ADaPT: As-needed decomposition and planning with lan- guage models. In Findings of the Association for Computational Linguistics: NAACL 2024, 2024. doi:10.18653/v1/2024.findings-naacl.264. URLhttps://aclanthology.org/ 2024.findings-naacl.264/. [21]Philip Schroeder, Nathaniel Morgan, Hongyin Luo, and James Glass. THREAD: Thinking deeper with recursive spawning, 2024. URL https://arxiv.org/abs/2405.17402. [22]Zewen Chi, Li Dong, Qingxiu Dong, Yaru Hao, Xun Wu, Shaohan Huang, and Furu Wei. The era of agentic organization: Learning to organize with language models, 2025. URL https://arxiv.org/abs/2510.26658. [23] Zijian Zhou, Ao Qu, Zhaoxuan Wu, Sunghwan Kim, Alok Prakash, Daniela Rus, Jinhua Zhao, Bryan Kian Hsiang Low, and Paul Pu Liang. MEM1: Learning to synergize memory and reasoning for efficient long-horizon agents, 2025. URLhttps://arxiv.org/abs/2506. 15841. [24]Vasilis Kontonis, Yuchen Zeng, Shivam Garg, Lingjiao Chen, Hao Tang, Ziyan Wang, Ahmed Awadallah, Eric Horvitz, John Langford, and Dimitris Papailiopoulos. Memento: Teaching LLMs to manage their own context. arXiv preprint arXiv:2604.09852, 2026. [25] Yuxiao Qu, Matthew Y. R. Yang, Amrith Setlur, Lewis Tunstall, Edward Emanuel Beeching, Ruslan Salakhutdinov, and Aviral Kumar. Optimizing test-time compute via meta reinforcement fine-tuning, 2025. URL https://arxiv.org/abs/2503.07572. 14 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling [26] Amrith Setlur, Matthew Y. R. Yang, Charlie Snell, Jeremy Greer, Ian Wu, Virginia Smith, Max Simchowitz, and Aviral Kumar. e3: Learning to explore enables extrapolation of test-time compute for LLMs, 2025. URL https://arxiv.org/abs/2506.09026. [27]Jubayer Ibn Hamid, Ifdita Hasan Orney, Michael Y. Li, Omar Shaikh, Yoonho Lee, Dorsa Sadigh, Chelsea Finn, and Noah Goodman. SPIRAL: Learning to search and aggregate, 2026. URL https://arxiv.org/abs/2606.23595. [28]Weiwei Sun, Miao Lu, Zhan Ling, Kang Liu, Xuesong Yao, Yiming Yang, and Jiecao Chen. Scaling long-horizon LLM agent via context-folding, 2025. URLhttps://arxiv.org/abs/ 2510.11967. [29] Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, and Yuan Cao. ReAct: Synergizing reasoning and acting in language models. In International Conference on Learning Representations, 2023. URL https://arxiv.org/abs/2210.03629. [30]Xixi Wu, Kuan Li, Yida Zhao, Liwen Zhang, Litu Ou, Huifeng Yin, Zhongwang Zhang, Xinmiao Yu, Dingchu Zhang, Yong Jiang, Pengjun Xie, Fei Huang, Minhao Cheng, Shuai Wang, Hong Cheng, and Jingren Zhou. ReSum: Unlocking long-horizon search intelligence via context summarization, 2026. URL https://arxiv.org/abs/2509.13313. [31]Zichen Liu, Changyu Chen, Wenjun Li, Penghui Qi, Tianyu Pang, Chao Du, Wee Sun Lee, and Min Lin. Understanding r1-zero-like training: A critical perspective. In Second Conference on Language Modeling, 2025. URL https://openreview.net/forum?id=5PAF7PAY2Y. [32]Qiying Yu, Zheng Zhang, Ruofei Zhu, Yufeng Yuan, Xiaochen Zuo, YuYue, Weinan Dai, Tiantian Fan, Gaohong Liu, Juncai Liu, LingJun Liu, Xin Liu, Haibin Lin, Zhiqi Lin, Bole Ma, Guangming Sheng, Yuxuan Tong, Chi Zhang, Mofan Zhang, Ru Zhang, Wang Zhang, Hang Zhu, Jinhua Zhu, Jiaze Chen, Jiangjie Chen, Chengyi Wang, Hongli Yu, Yuxuan Song, Xiangpeng Wei, Hao Zhou, Jingjing Liu, Wei-Ying Ma, Ya-Qin Zhang, Lin Yan, Yonghui Wu, and Mingxuan Wang. DAPO: An open-source LLM reinforcement learning system at scale. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025. URLhttps://openreview.net/ forum?id=2a36EMSSTp. [33]Yang Chen, Zhuolin Yang, Zihan Liu, Chankyu Lee, Peng Xu, Mohammad Shoeybi, Bryan Catanzaro, and Wei Ping. Acereason-nemotron: Advancing math and code reasoning through reinforcement learning. In D. Belgrave, C. Zhang, H. Lin, R. Pascanu, P. Koniusz, M. Ghassemi, and N. Chen, editors, Advances in Neural Information Processing Systems, volume 38, Main Conference, pages 110320â110345. Curran Associates, Inc., 2025. doi:10.52202/085713- 3685. URLhttps://proceedings.neurips.c/paper_files/paper/2025/file/ 9fc2a7f8a66eed231007b8bee4485cb-Paper-Conference.pdf. [34]Zhihong Shao, Yuxiang Luo, Chengda Lu, Z Ren, Jiewen Hu, Tian Ye, Zhibin Gou, Shirong Ma, and Xiaokang Zhang. Deepseekmath-v2: Towards self-verifiable mathematical reasoning. arXiv preprint arXiv:2511.22570, 2025. [35] 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? In International Conference on Learning Representations, volume 2024, pages 54107â54157, 2024. 15 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling Appendix Contents A Limitations and Future Work . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 B Additional Discussion of Related Work . . . . . . . . . . . . . . . . . . . . . . . . . . 17 C Hermes Harness Details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 C.1 Harnesses in the Hermes Hierarchy . . . . . . . . . . . . . . . . . . . . . . . . . 17 C.2 Prompts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 D Data Augmentation Details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 D.1 Synthetic Problem Generation Pipeline . . . . . . . . . . . . . . . . . . . . . . . 23 D.2 Synthetic Problem Construction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 E Experiment Details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 E.1 Pooled Benchmark Details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 E.2 Inference under Hermes Harnesses . . . . . . . . . . . . . . . . . . . . . . . . 28 E.3 Training Experiments Details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 E.4 Labeling Executed Contextual Reasoning Strategies . . . . . . . . . . . . . . . 29 E.5 Additional Delegation Behavior Analysis . . . . . . . . . . . . . . . . . . . . . . 33 F Example Rollouts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 F.1 L1 Rollout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 F.2 L2-SV Rollout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 F.3 L1 Rollout on a FrontierScience Problem . . . . . . . . . . . . . . . . . . . . . . . 39 F.4 L1 Rollouts under Larger Inference-time Compute Budgets . . . . . . . . . 40 A Limitations and Future Work Our evaluation studies contextual reasoning in a controlled setting. We evaluate primarily on mathematical reasoning benchmarks (AIME and HMMT) and a science benchmark, using an artificially constrained 8K-token context window. This makes multi-context reasoning necessary while keeping training and evaluation tractable, and is similar to controlled context constraints used in prior work on recursive agents [6]. However, we do not test whether the same gains persist with much larger native context windows or in long-horizon domains with evolving state, tool use, and delayed feedback. Software engineering benchmarks such as SWE-bench [35], as well as scientific discovery and deep-research tasks, are natural settings for evaluating whether Hermes remains effective when the reasoning horizon substantially exceeds a single context window. Hermes currently relies on a hand-designed strategy space and only explicitly learns part of contextual reasoning. The strategy menu, the searchâverification distinction, and the L3â L1 hierarchy are manually specified. Future work could instead learn new contextual reasoning strategies, compose them dynamically, or adapt the level of model control during inference. Moreover, contextual reasoning requires learning what to delegate, what to preserve during digestion, and how to reason from the resulting digest. We focus on learning delegation and rely on the base modelâs zero-shot ability to summarize and resume reasoning. Prior work suggests that reasoning from compressed histories can be learned [5,30], while directly learning useful digests introduces a harder credit-assignment problem [5]. Jointly learning delegation and digestion is therefore an important next step, particularly as reasoning horizons grow. Training optimizes only the root-agent trajectory. Subagent trajectories do not independently contribute to the SFT or RL objective. This avoids the substantially larger sample complexity and 16 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling credit-assignment problem introduced by optimizing policy-generated subtasks, but also prevents subagents from adapting to the distribution of tasks produced by the learned delegator. Recursive Agent Optimization (RAO) [6], for example, jointly optimizes nodes in a recursive execution tree using node-local rewards and trajectory weighting. Extending Hermes-Learn to jointly optimize root and subagent behavior is a promising direction, but may require reliable process-level supervision or learned judges. Finally, Hermes trades additional inference computation for improved reasoning. Future work should study contextual reasoning jointly in terms of accuracy, token usage, latency, and cost, and learn when allocating another context is worth the additional compute. More broadly, our current experiments shift control over a fixed contextual-reasoning interface from the harness to the model; a longer-term goal is to let models learn the interface itself. B Additional Discussion of Related Work We provide more detailed discussions of the training approaches used by methods that train models for particular inference harnesses in Tab. 1.SPIRALintroduces set-level credit assignment to train parallel generation and aggregation.PaCoReuses outcome-based reinforcement learning to train reasoning synthesis across parallel branches.RAOassigns node-local credit for recursive delegation de- cisions, enabling models to learn when and how to spawn additional subagents.Context-Folding employs process rewards to train delegation of subtasks to fresh branches together with compaction of intermediate reasoning.Reasoning Cacheuses short-horizon reinforcement learning over re- peated generateâsummarize cycles to train continuation from compacted reasoning progress. While these methods employ different supervision and credit-assignment mechanisms tailored to their inference procedures, they generally assume prescribed contextual reasoning strategies encoded in the harness and train models to execute those strategies effectively. C HERMES Harness Details For all models, we impose an artificial context limit of8K tokens, creating a setting where reasoning often extends substantially beyond a single window and effective context management becomes necessary for test-time scaling. Importantly, this setting is not purely academic: bounded context enables reasoning to be distributed across multiple windows, allowing independent branches to execute in parallel rather than requiring an equivalently long sequential trajectory. This creates a practical path for shorter-context models to scale inference while potentially reducing wall-clock latency. In our experiments, we evaluate the Hermes L1 harness, in which the model has the greatest control over its contextual reasoning decisions. All evaluations use a single root-agent context window (digesting is disabled), withT = 3steps, delegation depthD = 1(subagents cannot delegate), and up toB = 3subagents per delegation step. The root agent and all subagents share the same underlying LLM and the same 8K-token context limit. C.1 Harnesses in the HERMES Hierarchy For Hermes harnesses withT = 3, each context window consists of two delegation steps followed by a return step, during which the agent synthesizes the accumulated conversation and subagent results without further delegation. Delegation is organized into two broad categories: search and 17 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling verification. The steering level determines how these categories and their underlying strategies are exposed to the model. Under L1, all available search and verification strategies are accessible at both delegation steps, resulting in a single harness configuration. Under L2, the harness specifies the delegation category at each step, while the model selects among the strategies within that category. Since verification requires an existing candidate solution, the first delegation step is restricted to search. The second step may use either search or verification, yielding two L2 variants: L2-SV (SearchâVerifyâReturn) and L2-S (SearchâSearchâReturn). For search, we consider three ways of exploring the solution space.Sameasks subagents to solve the full problem independently, without prescribing an approach;Differentinstead assigns distinct approaches to encourage diverse solutions; andSplitdecomposes the problem into subproblems that are solved independently. For verification, we consider three complementary forms of checking.Answer Verification targets the current candidate answer directly;Intermediate Step Verificationexamines the assumptions and reasoning that support it; andDisagreement Resolutionreconciles conflicting candidates by identifying the source of disagreement. What changes across the hierarchy. The three L1 and L2 harnesses use the same system prompt (Prompt 1), final-step return prompt (Prompt 7), and subagent inline reasoning and report prompts (Prompts 8 and 9). They differ only in their steering level, which determines what contextual reasoning strategies are available at each delegation step. Table 6 The harnesses in the Hermes hierarchy. Each cell gives the number of strategies offered at that step; the instruction text is otherwise identical. Delegation is disabled at the final step. Harness Strategy menu offered at a delegating stepStep 1 Step 2 L3One named strategy11 L2-SSThe three search strategies33 L2-SVThe three search strategies at step 1, and the three verification strategies at step 233 L1All six strategies, at every delegating step66 C.2 Prompts C.2.1 System Prompt Prompt 1: System prompt â identical at L3, L2 and L1 You are a meta-agent for solving math problems. You solve by DELEGATING to subagents, not by deriving solutions inline. You proceed in steps and have two actions: 1. Delegate: write one or more lines of the form "TASK: <self-contained task>" (1â3 per step). Each task is executed by a subagent that sees ONLY that task text and replies with a short report; subagents cannot see the problem, your conversation, or each other, so every task must contain everything needed to execute it. The reports arrive in your next step. 2. Return: when you are done, write "### RETURN" on its own line, followed by your final answer. Put the answer in . This ends the episode. You may compare, select, or briefly combine conclusions explicitly stated by subagents, but do not derive new solutions yourself. Use subagent results critically; agreement alone does not establish correctness. Always provide the best provisional answer. Put it in . Exception: do not guess before delegating. On the first step you have no subagent results, so delegate without stating an answer; only from the step after results arrive should you end each step with your current best answer. 18 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling Delegation serves two purposes. Search: make progress on the problem (decompose it into subproblems, or have subagents solve the full problem independently using either different named approaches or no prescribed approach). Verify: check the current answer (recheck it with targeted checks, verify the assumptions and intermediate steps supporting it, or reconcile disagreeing candidates). Each stepâs instruction tells you which specific strategies are available. C.2.2 L1: Full Strategy Menu at Every Step Prompt 2: L1, step 1 â delegate (full strategy menu) ### PROBLEM problem ### INSTRUCTIONS Delegate the work for this step; do not solve it inline. You have no subagent results yet, so do not state a boxed answer on this step. Write one concise first-person sentence explaining why the selected tasks are useful. Generate 1â3 tasks using one or more strategies from ### STRATEGIES. Each task must be independently executable and fully self-contained. Include the complete problem or all relevant context, values, assumptions, and â when the task checks a candidate answer â that answer and the exact claim to verify. ### STRATEGIES Ask 1â3 subagents to: - solve independent subproblems obtained by decomposing the original problem; or - solve the full problem independently using different named approaches; or - solve the full problem independently using the same task and no prescribed approach; or - verify the current boxed answer using independent targeted checks; or - independently verify the assumptions and intermediate steps supporting the current boxed answer; or - resolve the disagreement between the candidate answers and identify the source of the discrepancy. ### OUTPUT <one concise first-person sentence> ### TASKS Write one task per line. Begin each line with "TASK:". TASK: <self-contained task> Prompt 3: L1, step 2 â delegate (full strategy menu, and current best answer) ### SUBAGENT RESULTS subagent_results ### INSTRUCTIONS Always provide the best provisional answer. Put it in . Use at most two concise lines to justify the current answer. Write one concise first-person sentence explaining why the selected tasks are useful. Generate 1â3 tasks using one or more strategies from ### STRATEGIES. Each task must be independently executable and fully self-contained. Include the complete problem or all relevant context, values, assumptions, and â when the task checks a candidate answer â that answer and the exact claim to verify. State candidate answers inside tasks in plain text; never use inside a task. ### STRATEGIES Ask 1â3 subagents to: - solve independent subproblems obtained by decomposing the original problem; or - solve the full problem independently using different named approaches; or - solve the full problem independently using the same task and no prescribed approach; or - verify the current boxed answer using independent targeted checks; or - independently verify the assumptions and intermediate steps supporting the current boxed answer; or - resolve the disagreement between the candidate answers and identify the source of the discrepancy. ### OUTPUT ### ANSWER <at most two concise lines> <current best answer> 19 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling <one concise first-person sentence> ### TASKS Write one task per line. Begin each line with "TASK:". TASK: <self-contained task> C.2.3 L2-SV and L2-S: One Category per Step Both L2 variants begin with the same search-only step. Prompt 4: L2-SV and L2-S, step 1 â delegate (search category only) ### PROBLEM problem ### INSTRUCTIONS Delegate the work for this step; do not solve it inline. You have no subagent results yet, so do not state a boxed answer on this step. Write one concise first-person sentence explaining why the selected tasks are useful. Generate 1â3 tasks using one or more strategies from ### STRATEGIES. Each task must be independently executable and fully self-contained. Include the complete problem or all relevant context, values, assumptions, and requested output. ### STRATEGIES Ask 1â3 subagents to: - solve independent subproblems obtained by decomposing the original problem; or - solve the full problem independently using different named approaches; or - solve the full problem independently using the same task and no prescribed approach. ### OUTPUT <one concise first-person sentence> ### TASKS Write one task per line. Begin each line with "TASK:". TASK: <self-contained task> They then diverge. L2-SV switches the menu to the verification category, which assumes that a first step of search has produced a response worth checking: Prompt 5: L2-SV, step 2 â delegate (verification category only) ### SUBAGENT RESULTS subagent_results ### INSTRUCTIONS Always provide the best provisional answer. Put it in . Use at most two concise lines to justify the current answer. Write one concise first-person sentence explaining why the selected tasks are useful. Generate 1â3 tasks using one or more strategies from ### STRATEGIES. Each task must be independently executable and fully self-contained. Include the relevant problem context, values, assumptions, candidate answer, and exact claim to solve or verify. State candidate answers inside tasks in plain text; never use inside a task. ### STRATEGIES Ask 1â3 subagents to: - verify the current boxed answer using independent targeted checks; or - independently verify the assumptions and intermediate steps supporting the current boxed answer; or - resolve the disagreement between the candidate answers and identify the source of the discrepancy. ### OUTPUT ### ANSWER <at most two concise lines> <current best answer> <one concise first-person sentence> ### TASKS Write one task per line. Begin each line with "TASK:". TASK: <self-contained task> L2-S instead offers the search category a second time, which assumes further exploration is more valuable than checking: 20 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling Prompt 6: L2-S, step 2 â delegate (search category again) ### SUBAGENT RESULTS subagent_results ### INSTRUCTIONS Always provide the best provisional answer. Put it in . Use at most two concise lines to justify the current answer. Write one concise first-person sentence explaining why the selected tasks are useful. Generate 1â3 tasks using one or more strategies from ### STRATEGIES. Each task must be independently executable and fully self-contained. Include the complete problem or all relevant context, values, assumptions, and requested output. State candidate answers inside tasks in plain text; never use inside a task. ### STRATEGIES Ask 1â3 subagents to: - solve independent subproblems obtained by decomposing the original problem; or - solve the full problem independently using different named approaches; or - solve the full problem independently using the same task and no prescribed approach. ### OUTPUT ### ANSWER <at most two concise lines> <current best answer> <one concise first-person sentence> ### TASKS Write one task per line. Begin each line with "TASK:". TASK: <self-contained task> C.2.4 Return Step Prompt 7: Return step â the final step with no further delegation. Identical across L1 and L2. ### SUBAGENT RESULTS subagent_results ### INSTRUCTIONS Update the current best answer using the conversation and subagent results. Compare, select, or briefly combine findings stated by subagents. You may perform the simple calculations needed to combine the subagent results into the final answer. Do not delegate additional tasks. Begin your reply with "### RETURN" on its own line (write the marker literally, even when you are confident), then at most two concise lines and your final answer. Put the answer in . ### OUTPUT ### RETURN <at most two concise lines> <final answer> C.2.5 Subagent Prompts At the maximum depth, subagents cannot delegate further and instead reason inline. They follow a simple two-step procedure: first solve the assigned task with inline reasoning, then produce a compact report for the delegating agent. A subagent never sees the original problem or the delegating agentâs interaction history, only the task assigned by the delegating agent. The delegating agent has access only to the subagent reports, allowing its working context to remain lean and support multiple rounds of reasoning and delegation within a fixed context limit. The delegating agent then updates its own reasoning based on the received reports and determines subsequent reasoning and delegation decisions. 21 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling Prompt 8: Subagent, step 1 â solve the assigned task with inline reasoning. Identical across all levels. ### TASK task ### INSTRUCTIONS Solve the task carefully, reasoning step by step. Use the information provided in the task. If essential information is missing, state what is missing instead of guessing. Check the result before reporting it. Prompt 9: Subagent, step 2 â return a compact report to the delegating agent. Identical across all levels. Report the result of the task you just solved. Keep the report self-contained and concise. Include only the decisive findings, not the full derivation. ### OUTPUT ### RESULT Scope: <briefly identify what was solved or checked, including essential context> Finding: <one or two concise sentences with the conclusion and decisive justification> Answer: <answer> C.2.6 Digestion across Context Windows When reasoning extends beyond a single context window, the Hermes harnesses do not carry the full interaction history forward. Instead, it prompts the model to generate a digest using the templates below and initializes the next context window with the original problem and the generated digest. When generating a new digest, the model has access to both the previous digest and the complete root-agent trajectory from the current context window. In this way, digests compose across an arbitrary number of context windows. Prompt 10: Digest system prompt You summarize problem-solving work so that a fresh solver can continue from your summary alone. Write at most two paragraphs, in the first person, as the solver. Cover: (1) the approaches attempted and their status (completed, incomplete and where they stopped, or failed and why); (2) key intermediate results with their verification status (derived equations, lemmas, computed quantities, checks that passed or failed); (3) the current best answer, confidence, and what remains to be verified. Hard constraints: retain any important information contained in the existing summary; summarize only â- do not add new reasoning or new derivations. These constraints take priority over length: if retaining prior information needs more space, exceed two paragraphs rather than drop information, but compress aggressively (merge duplicate findings). Prompt 11: Digest user prompt ### PROBLEM problem ### PREVIOUS SUMMARY previous_digest ### EPISODE TRANSCRIPT transcript Write the updated summary now. The first step of the next context window uses the standard Step-1 prompt with an additionalPRIOR WORK SUMMARY block containing the digest: Prompt 12: L1, step 1 of a continued window with a digest under PRIOR WORK SUMMARY ### PROBLEM problem ### PRIOR WORK SUMMARY previous_attempts 22 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling If a summary of prior work is shown above, you may build on it, verify it, or start fresh; otherwise start from the problem. ### INSTRUCTIONS Delegate the work for this step; do not solve it inline. You have no subagent results yet, so do not state a boxed answer on this step. Write one concise first-person sentence explaining why the selected tasks are useful. Generate 1â3 tasks using one or more strategies from ### STRATEGIES. Each task must be independently executable and fully self-contained. Include the complete problem or all relevant context, values, assumptions, and â when the task checks a candidate answer â that answer and the exact claim to verify. ### STRATEGIES Ask 1â3 subagents to: - solve independent subproblems obtained by decomposing the original problem; or - solve the full problem independently using different named approaches; or - solve the full problem independently using the same task and no prescribed approach; or - verify the current boxed answer using independent targeted checks; or - independently verify the assumptions and intermediate steps supporting the current boxed answer; or - resolve the disagreement between the candidate answers and identify the source of the discrepancy. ### OUTPUT <one concise first-person sentence> ### TASKS Write one task per line. Begin each line with "TASK:". TASK: <self-contained task> D Data Augmentation Details To expose the model to a broader and balanced range of contextual reasoning behaviors during training, we generate synthetic problems designed to favor different search and verification strategies, including five types: (1) Splitting, which combines multiple independent problems into a single instance and encourages splitting and parallel delegation; (2) Chaining, where solving a gating problem determines which of several subsequent problems should be solved, encouraging sequential delegation; (3) Verifying, where intermediate results may be incorrect, encouraging delegation for verification; (4) Multi-attempt, which paraphrases medium-difficulty problems where multiple independent attempts can improve performance; and (5) Single-attempt, which paraphrases low- difficulty problems where a single attempt is sufficient. Together, these controlled structures encourage the model to adapt its delegation strategy to the problem. D.1 Synthetic Problem Generation Pipeline Each synthetic problem is generated in two stages. First, one or more seed problems are composed into a target synthetic problem type. The final answer is computed deterministically from the verified reference answers of the seed problems using simple arithmetic rules specific to each type: (1) Splitting. Given part answersa i , the final answer is âď¸ i a i mod 1000; (2) Chaining. Letmdenote the answer to the gating problem and a i the answer to the i-th candidate problem. The final answer is (m + a 1+(m mod 3) ) mod 1000. (3) Verifying. Given a claimed valuecand the true answera, the final answer is(c + a) mod 1000. For (4) Multi-attempt and (5) Single-attempt, the answer to the seed problem is kept unchanged. Second, the composed problem is rewritten by ClaudeSonnet 5to smooth its writing style and remove potential artifacts. Rewriting uses the system prompt in Prompt 13 and user message in Prompt 14, where the user message includes a style specification randomly sampled from four candidate writing styles: narrative, compact, formal, and inverted. For Chaining problems, a note for 23 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling composite style (Prompt 15) is additionally included in its style specification. To further control the quality of the synthetic problems, a rewritten problem is retained only if it remains solvable: Claude Sonnet 5attempts each problem5times before and5times after rewriting, and the rewrite is rejected if none of the post-rewrite attempts is correct or if the post-rewrite solve rate falls to1/3of the pre-rewrite solve rate or below. This excludes rewrites that make a problem substantially less solvable, indicating that the rewriting has potentially altered the problem. Prompt 13: Rewrite system prompt You rewrite mathematics problems. You will be given a problem, and you must produce a rewritten version that asks for EXACTLY the same final quantity. Absolute requirements: - Preserve every number, constraint, condition and definition. Change no value. - Preserve exactly what the final answer must be. If the original asks for a remainder modulo 1000, so must yours. If it asks for a sum of several sub-answers with specific coefficients, so must yours, with the same coefficients. - If the original contains several sub-problems whose answers are combined, keep all of them and keep the combination rule identical. - Preserve any quoted claim, reported answer, or summary of prior work, including its stated numeric value. You may reword it; you may not change the number, and you may not resolve whether it is right. - Keep all LaTeX mathematically identical. You may reformat it. Style requirements: - Do NOT signpost how the problem should be approached. Never write "solve each part separately", "note that these are independent", "first solve X then", or anything that names a solution strategy. - Do NOT use the labels "Problem 1", "Problem 2", "[Problem 2-A]", "A_1", "A_2", "Q" or similar scaffolding. Refer to the quantities in words instead. - Vary sentence structure. Avoid a fixed template. You do not know the answer and must not attempt to compute it. Do not solve. Do not hint. Return ONLY the rewritten problem text. No preamble, no commentary, no answer. STYLE RULES. These come from editors who could reliably tell machine-written problems from published ones. Follow every one. Quantity names. - A quantity gets a single italic letter or no name at all. Never invent a prose name: not "the size sum", not "the pentagon count", not "the divisor-count remainder", not "the selected quantity", not "the resulting quantity". If the source already names quantities with letters, keep those letters. - Never reuse one symbol for two things in the same problem. Structure of the writing. - Setup first, question last. Never open with the ask and defer the setup ("..., where that value is produced as follows", "..., obtained as follows"). - State the ask exactly once. If your draft opens and closes with the same request, delete the opening. - One interrogative sentence, and it is the last sentence. - Do not split an ask in two. Write "Compute the sum of all positive integers n such that ..." rather than "Determine all n ..., then find the sum". - Do not fold the setup into a participial clause ("With p the smallest prime for which ..., find ..."). Use two sentences. Voice. - Third person, present indicative. No first person anywhere: no "I", "we", "Iâd like to know", "Iâm curious about", "weâre told", "Hereâs", "Picture a", "Now look at". - Keep the sourceâs named actors and concrete story. Do not turn "Karthik wants to walk a path" into "A closed path is to be traced" â passive de-naming is detectable. - Never narrate a solution method in any voice. 24 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling Words and constructions to avoid outright. - "give rise to", "arise as follows", "obtained as follows", "produced as follows", "comes into play", "the quantity in question", "one of the two quantities needed", "a certain resulting value", "it turns out that", "it happens that", "so-called", "for context", "roughly speaking", "possess" (write "has"), "utilize". - No markdown of any kind: no headings, no bold, no italic asides. - No em-dash appositive carrying a constraint, and no colon-splice that dumps a configuration and then the question. - Never write "an isosceles triangle $ ABC$" â either "triangle $ABC$" or "$ ABC$". Technical fidelity. - Copy technical hypotheses verbatim. Never paraphrase a gcd or coprimality condition: write "$ (m,n)=1$" or "where $m$ and $n$ are relatively prime positive integers" exactly as the source has it. A paraphrase like "$ (m,p,q)$ shares no common prime factor" is wrong and is a giveaway. - Every numeral that was in math mode stays in math mode. Do not unwrap "$13$" to "13". - Keep the sourceâs macros, arrays, bulleted condition lists and worked examples in place. - Introduce a definition in its own sentence before first use, and give at most one example, opened with "For example" or "For instance". - Stay within about 15% of the sourceâs length. Telegraphic compression is as detectable as padding. Provenance tags. - Delete any citation of where the problem came from: "(26th IMO Shortlist)", "Example 1", "Problem 4", "2019 AMC 12B", "from the CMO". Scraped seeds carry these; a contest booklet does not print them inside the statement, and they identify the source. Preferred verbs: Let, Suppose, Consider, Compute, Find, How many. Prompt 14: Rewrite user message, with one of four candidate style specifications style briefcomposite note, Chaining problems only Here is the problem to rewrite: <problem> generated problem text </problem> Notes: The style brief is one of the following, sampled per problem. narrative: Rewrite it as a short, natural piece of mathematical prose, as a person would pose it to a colleague. Use connected sentences rather than labelled blocks. compact: Rewrite it as tersely as possible while keeping every constraint. Prefer one flowing paragraph over enumerated parts. formal: Rewrite it in the register of a textbook exercise: precise, impersonal, no framing device, no labels beyond what is strictly needed. inverted: Rewrite it so the final quantity being asked for is stated FIRST, then the information needed to obtain it. Prompt 15: Composite style note, appended to the style specification for Chaining problems This problem contains several separate questions whose answers are then combined. Handle that as follows: - Keep every question, with all of its numbers and conditions. - Keep the single-letter names the problem already uses for the combined quantities, and keep the final combination sentence as it stands. - State the final combination using those names, with the SAME coefficients, the SAME operations and the SAME modulus as the original. - Present the questions as a continuous piece of writing, not as a list of labelled blocks. - Do not say that the questions are independent, unrelated, or separable, and do not suggest any order or division of work. 25 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling D.2 Synthetic Problem Construction Synthetic problems for training. Synthetic training problems are constructed from AceReason-1K. We first remove seed problems with tuple- or list-valued answers or malformed L A T E X, leaving 903 seed problems. Among them, 682 have non-negative integer answers and can be used to construct Splitting, Chaining, and Verifying problems. Using these seed problems, we generate 1,141 synthetic problems, of which 708 pass the solvability check after rewriting. To broaden coverage of both contextual reasoning strategies and distinct seed problems, we select a final set of 500 synthetic problems covering 505 distinct seeds, with a fixed number of problems per type. Composite structures (Splitting and Chaining) account for 60% of the 500 problems. Verifying problems are included in matched correct/incorrect pairs. The final dataset contains Splitting (n = 214; 107 two-part and 107 three-part problems), Chaining (n = 86), Verifying (n = 100; 50 correct and 50 incorrect claims paired on the same 50 seed problems), Multi-attempt (n = 50), and Single-attempt (n = 50). Multi-attempt and Single-attempt problems are constructed from disjoint seed sets. After mixing with AceReason-5K, the RL training set contains 5,739 problems in total, of which 500 (8.7%) are synthetic. Synthetic evaluation benchmark. The synthetic benchmark is built from AIME and HMMT problems using the same generation, rewriting, and solvability-check pipeline. It containsn = 88problems: Splitting (n = 28: 14 with two parts and 14 with three parts), Chaining (n = 14), Verifying (n = 18: 9 with a correct claim and 9 with an incorrect claim, paired on the same 9 seed problems), Multi- attempt (n = 14), and Single-attempt (n = 14). Every golden answer is recomputed independently from the reference answers of the seed problems. Fig. 4 shows one example synthetic training problem (constructed from AceReason-1K) and one example synthetic evaluation problem (constructed from AIME or HMMT) for each problem type. E Experiment Details E.1 Pooled Benchmark Details We evaluate on a pooled benchmark of 238 mathematical reasoning problems constructed from AIME 2024, AIME 2025, AIME 2026, HMMT February 2023, HMMT February 2024, HMMT February 2025, HMMT November 2025, and HMMT February 2026. The original collection contains 243 problems (30 from each contest except HMMT February 2026, which contains 33 problems). We use the HuggingFace Math-Verify 4 grader to evaluate model outputs against ground-truth answers. For HMMT, we exclude five problems following auditing and decontamination: (1) HMMT February 2023 Problem 26, which duplicates a training-data problem; (2) HMMT February 2024 Problem 21, which requires a missing diagram; and (3) HMMT February 2026 Problems 31â33, which are proof-style problems whereas theMath-Verifygrader assumes final-answer evaluation. The answers for the remaining 148 problems were then independently derived or exactly checked, and 19 problem transcription and answer corrections were applied to ensure the validity of the benchmark. For AIME, we audit all 90 problems and correct a number of issues. In particular, two AIME 2026 problems did not match the official contest statements and were corrected accordingly. We further 4 https://github.com/huggingface/Math-Verify 26 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling Training (AceReason-1K)Evaluation (AIME / HMMT) Splitting Letmbe the count of four-digit numbers whose digits sum to12, letpbe the single digit (0â9) giving the position, after 1234moves, of a counter that starts on a10-cycle and on its nth move advancesn n steps clockwise, and letqbe the largest number of diagonals selectable in a regular1000-gon (with all diagonals drawn) so that among any three selected diagonals at least two share the same length. Find the remainder when m + p + q is divided by 1000. Golden answer: 349(m, p, q) = (342, 7, 2000) Letpdenote the value ofxy, wherexandyare real numbers, both greater than 1, satisfying log x ( y x ) = log y (ď¸ x 4y )ď¸ = 10. Separately, Jen enters a lottery by picking4distinct numbers fromS = 1, 2, 3,¡ , 9, 10. Then4numbers are randomly chosen fromS. She wins a prize if at least two of her numbers are among the4randomly chosen numbers, and she wins the grand prize if all four of her numbers are the randomly chosen numbers. The probability that she wins the grand prize given that she won a prize equals m n , wheremandnare relatively prime positive integers; let q denote m + n. Compute the remainder when p + q is divided by 1000. Golden answer: 141(p, q) = (25, 116) Chaining Compute the remainder whenm + pis divided by1000, where mis the answer to the following question: how many four-digit numbers have the sum of their digits equal to 12? Three further questions are considered. A counter moves in a cycle of10positions, and on itsnth move it advancesn n steps clockwise; the question asks for the counterâs position after 1234moves, expressed as a single digit from0to9. In a regular 1000-gon with all of its diagonals drawn, the question asks for the maximum number of diagonals that can be selected so that among any three of the chosen diagonals at least two have the same length. For positive integersa,b,c, the question asks for the smallest positive value taken bya 3 + b 3 + c 3 â 3abc, together with all triples a, b, c that attain this smallest value. Letpbe the answer to the question numbered1 + (m mod 3) among these three, in the order in which they are given here. Golden answer: 349m = 342, question 1, p = 7 Letmbe the answer to the following question: find the sum of all positive integersnsuch thatn + 2divides the product 3(n + 3)(n 2 + 9). Alongside that, consider three further questions, numbered in order. The first: Mark writes the expression âď¸ abcdon the board [ ... ] The second: every morning Aya goes for a9- kilometer walk [ ... ] The third: find the number of ordered pairs(x, y)with bothxandyintegers betweenâ100and100, inclusive, satisfying 12x 2 â xyâ 6y 2 = 0. Letpbe the answer to whichever of these three questions carries the number1 + (m mod 3). What is the remainder when m + p is divided by 1000? Golden answer: 253m = 49, question 2, p = 204 Verifying Consider the equationsin x = x 100 . Rowan computes the number of roots of this equation and reports the value63. Find the remainder when the sum of Rowanâs reported value and the actual number of roots is divided by 1000. Golden answer: 126claim 63 (correct), true value 63 LetSdenote the vertex set of a regular24-gon. Consider ways of drawing12segments, all of the same length, such that every vertex inSserves as an endpoint of exactly one segment; call the number of such waysN. Priya computes this count herself and gets4208. Find the remainder whenNplus Priyaâs value of 4208 is divided by 1000. Golden answer: 321claim 4208 (incorrect), N = 113 Multi-attempt Letx, y, zbe positive real numbers, and sets = â x + 2 + âď¸ y + 5 + â z + 10andt = â x + 1 + âď¸ y + 1 + â z + 1. Find the minimum value of s 2 â t 2 . Golden answer: 36 Find the largest number that is less thanBD 2 for every rhombus ABCDsatisfying the following conditions. Its four vertices lie, in that order, on the hyperbola x 2 20 â y 2 24 = 1 , and its diagonals intersect at the origin. Golden answer: 480 Single-attempt Find the smallest positive integer whose digits are all1âs that is divisible by the number consisting of 100 copies of the digit 3. Golden answer: 300 Compute the number of positive integersn⤠1000for which lcm(n, 9) is a perfect square. Golden answer: 43 Figure 4 Synthetic problem examples. Colored letters identify intermediate values and subanswers that determine the final answer. [ . . . ] denotes problem text omitted for brevity. 27 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling identify corrupted or incomplete problem statements and incorrect answers throughout the datasets. In total, 25 problems and 19 answers were corrected. The final pooled benchmark therefore consists of 90 AIME problems and 148 HMMT problems, for a total of 238 problems. E.2 Inference under HERMES Harnesses Under Hermes harness, all agents and subagents share the same underlying LLM and the same8K- token (8,192-token) context limit. Agents are limited to1K (1,024) generated tokens per step. At the maximum delegation depthD, subagents follow a two-step solve-and-report procedure (App. C.2.5) and are allocated up to7.5K (7,680) generated tokens for the first step where they solve delegated tasks inline. Digest generation (App. C.2.6) is performed under the same 8K-token context limit. For all evaluations, we report average accuracy over 16 sampled solutions (Avg@16). We follow the suggested sampling parameters listed in theQwen3-4B-Instruct-2507 5 andOlmo-3-7B-Instruct 6 model cards when evaluating their corresponding base and post-trained models, under inline rea- soning as well as the Hermes, RSA, and DSM harnesses. The sampling parameters are listed in Tab. 7. Table 7 Sampling parameters. Qwen3-4B-Instruct-2507 Olmo-3-7B-Instruct Temperature0.70.6 Top-p0.80.95 Top-k20â Min-p0.0â E.3 Training Experiments Details Training Dataset. Starting from the 5.7K-problem subset of AceReason-Math [33] released by Reasoning Cache [5], we perform deduplication, decontamination, and reference-answer verification, resulting in a cleaned set of 5,239 problems, which we refer to as AceReason-5K. We then uniformly sample 1,000 problems from AceReason-5K to construct AceReason-1K. Stage I: Supervised Fine-tuning. For SFT, we curate teacher trajectories from both ClaudeSonnet 5 andDeepSeek-V3.2, under L1 and L2 Hermes harnesses. For each teacher model, we collect four L1 (App. C.2.2), two L2-SV, and two L2-S (App. C.2.3) trajectories for every problem in AceReason- 1K, resulting in 8,000 trajectories per teacher model. We then retain only trajectories that contain at least one delegation and reach the correct final answer for SFT, resulting in 6,485 trajectories from Sonnet 5 and 5,495 trajectories from DeepSeek-V3.2. Teacher trajectories provide diverse delegation demonstrations. We use an LLM judge (Section E.4) to label the contextual reasoning strategies represented by tasks delegated to subagents in successful teacher trajectories (Table 8). Both teachers exhibit strong verification behavior and cover a diverse set of search strategies, while exhibiting complementary preferences:Sonnet 5more frequently explores different approaches, whereasDeepSeek-V3.2more often performs independent solution attempts. Collecting trajectories from multiple teachers therefore broadens the coverage of effective delegation demonstrations. 5 https://huggingface.co/Qwen/Qwen3-4B-Instruct-2507 6 https://huggingface.co/allenai/Olmo-3-7B-Instruct 28 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling Table 8 Percentage (%) of teacher trajectories containing different strategies. Percentages may sum to more than 100% since a single trajectory can contain multiple strategies. Teacher Split Same Different Verification Multiple Search Strategies Sonnet 521.943.963.599.327.6 DeepSeek-V3.2 26.070.426.695.122.6 Table 9 Percentage (%) of teacher trajectories contain- ing a search strategy in each step. TeacherHermes Harness Step 1 Search Step 2 Search Sonnet 5L199.919.0 Sonnet 5L2-SV100.015.5 Sonnet 5L2-S99.929.2 DeepSeek-V3.2L199.535.4 DeepSeek-V3.2 L2-SV99.628.9 DeepSeek-V3.2 L2-S99.953.2 Different harnesses further increase delegation diversity. While most teacher trajectories be- gin with a search task, second-step behavior varies across harnesses due to differences in steering (Table 9). L2-S encourages continued exploration via search, whereas L2-SV encour- ages verification and therefore exhibits the low- est search frequency. L1 lies between these two, where the model has the highest control over its delegation decisions. Collecting teacher tra- jectories from both L1 and L2 therefore exposes the base model to a broader range of effective delegation patterns. To best leverage this diversity while preventing any single teacher or delegation pattern from dominating the training data, we subsample each teacherâs retained trajectories to balance the occurrence of search strategies before combining them into a final SFT dataset of 5,466 trajectories (2,733 from each teacher). This exposes the base model to a diverse and balanced set of delegation behaviors. Stage I: Reinforcement learning. For the RL stage, we train on AceReason-5K using a curriculum over the Hermes hierarchy. Training runs for 492 steps (3 epochs), and the curriculum is defined as: over the first third of training (steps 1â164), the two L2 harnesses, L2-SV and L2-S, are each sampled with 50% probability, and over the remainder (steps 165â492) the L1 harness is sampled with 75% probability while the two L2 harnesses are each sampled with 12.5% probability. This curriculum gradually shifts training from L2 to L1 while maintaining equal overall exposure to both levels of harnesses throughout training. During RL training, both the root agent and all subagents use the current policy being updated. As described in App. D.2, we train RL on a mixed dataset including AceReason-5K and 500 synthetic problems constructed from AceReason-1K, comprising 5,739 problems in total. All training hyperparameters are provided in Tab. 10. E.4 Labeling Executed Contextual Reasoning Strategies For qualitative analysis of contextual reasoning behaviors, we set up an LLM judge with Claude Sonnet-5to label the strategies executed in agent trajectories. We take several measures to prevent information leakage during labeling: 1. The judge sees only the problem statement, the texts generated by the delegating agent, and the results returned by subagents from previous delegation steps. It never observes the 29 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling Table 10 Training hyperparameters. Supervised Fine-tuning Learning rate10 â5 Learning scheduleCosine with warmup ratio 0.1 Training batch size32 Epochs4 Reinforcement Learning AlgorithmDr. GRPO [31] Group size G8 Dynamic samplingResample while a group is all-correct or all-wrong Resampling budget ⤠10 generation batches per optimizer step Clipping (Îľ low , Îľ high )(0.2, 0.28) KL loss coefficient0.001 KL estimatork 3 (low-variance) Entropy loss coefficient 0.0 OptimizerAdamW, β = (0.9, 0.999) Weight decay0.01 Learning rate10 â6 Learning scheduleConstant, no warm-up Gradient clipping1.0 Training batch size32 Mini-batch size16 Epochs3 Inference temperature 1.0 Inference top-p1.0 harness identity, model identity, steering instructions, available strategy menu, or any subagent trajectories. Consequently, the judge must infer strategy labels from the tasks generated by the delegating agent, rather than relying on strategy names contained in the steering instructions or on the outcomes of the delegated tasks being labeled. 2.Since task ordering carries no semantic meaning, delegation tasks are sorted according to their text before labeling. This prevents the judge from relying on presentation order when labeling strategies. 3.Residual leakage remains possible. In particular, the number of delegated tasks may reveal information about the underlying harness. To mitigate this effect, all reported comparisons using judge labels are performed between models evaluated under harnesses with the same maximum number of subagents, preventing the judge from relying on such differences. The judge returns a set of strategy labels for each delegation step, as a single step may contain tasks corresponding to multiple strategies. Because ClaudeSonnet-5does not accept a temperature parameter during inference calls, the judge cannot be forced to use deterministic decoding. We therefore measure consistency between two independent judge passes on a small subset of trajectories and obtain 79.4% agreement. The labeling rubric is specified in the system prompt (Prompt 16), and the judge is required to call thelabel_trajectorytool (schema shown in Prompt 17) to produce its labels. 30 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling Prompt 16: Judge system prompt You are reading the instructions a manager sent to its assistants across the steps of ONE problem. You see ONLY the problem, the instruction texts, and (for later steps) the results that came back. You do NOT know which model wrote them or what it claimed to be doing. For EACH step, report every category that the instructions on that step actually execute. Judge the WORK REQUESTED, not the wording, and not whether it succeeded. ## Categories **Checking work that already exists:** - âverifyâ â- an instruction checks, re-derives, confirms, reconciles, or attacks a result that ALREADY EXISTS in the prior results shown to you, or is quoted verbatim inside the instruction. Work an instruction performs itself is not a prior result. When you use âverifyâ, add sub-tags: âanswerâ (rechecks the stated final answer), âstepsâ (checks a named intermediate step, equation, or assumption), âdisagreeâ (two or more stated candidates conflict and the instructions decide between them), âcounterâ (tries to break a stated result or find a second solution). **Sub-tags are descriptive only â- they are never a reason to prefer or reject âverifyâ.** **Solving from scratch:** - âsplit_subproblemsâ â- the instructions ask for different pieces, and the pieces must be combined to answer the question. Requires âĽ2 instructions. - âsame_solveâ â- the instructions all ask for the whole answer and NO instruction names a solution technique. Rewordings of "solve this problem" are âsame_solveâ, however differently phrased. Requires âĽ2 instructions. - âdifferent_methodsâ â- every instruction names at least one solution technique, and the named sets are pairwise different. A technique counts only when it appears in a naming position ("using X", "via X", "apply X", "by X"). Different wording, different guesses about an ambiguous problem, or different algebraic rearrangements of the same equation are NOT different methods. Requires âĽ2 instructions. - âone_fresh_attemptâ â- a single instruction asks for one new attempt at the whole problem. ## Multilabel A step may execute more than one category â- report all that apply. The common real case is a step that mixes a check of an existing result with fresh solving: label it âverifyâ **and** the appropriate search category. Do not add a label merely because it is arguably present; add it when some instruction on that step plainly does that work. Constraints, enforced downstream in code as well: - âsplit_subproblemsâ, âsame_solveâ, âdifferent_methodsâ each require âĽ2 instructions on that step. - With exactly one instruction, the only admissible labels are âone_fresh_attemptâ and âverifyâ. - âsame_solveâ and âdifferent_methodsâ may BOTH apply to one step â- see the mixed-turn rule below. - Never return an empty label list for a step. Every step has a best fit. ### Mixed fanout turns carry both labels A turn where **some** instructions name a technique and others do not is genuinely both: it fans out on the whole problem, and it assigns a method to part of that fanout. Report â[same_solve, different_methods]â rather than forcing a choice. - Every instruction names a technique, sets differ pairwise â âdifferent_methodsâ alone. - No instruction names a technique â âsame_solveâ alone. - Some do, some donât â **both**. This is why the label set is multi-label: the two are not opposite ends of one axis, and a forced pick on a mixed turn is a coin flip that neither rater can make reliably (measured: matching prevalences with per-label Îş â 0.16â0.29, i.e. raters agreed on how often, never on which turns). ## Two rules that decide most cases 1. **Count the instructions.** Sub-parts inside one instruction are still one instruction. 2. **âsame_solveâ vs âdifferent_methodsâ:** list the techniques each instruction explicitly names in a naming position. If any instruction names none, the answer is âsame_solveâ. ### Applying rule 2 â- do this literally, instruction by instruction Measured: judges over-call âdifferent_methodsâ on any turn whose instructions merely *read* differently. Work the test mechanically instead of judging overall impression. For each instruction, write down the technique it names in a naming position ("using X", "via X", 31 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling "apply X", "by X", "approach it by X"). Then: - **Any instruction with an empty list â âsame_solveâ.** One instruction naming a technique while another just says "solve this problem" is âsame_solveâ, not âdifferent_methodsâ. The rule is about the weakest instruction, not the strongest. - **âdifferent_methodsâ requires every instruction to name a technique, and the named sets to differ pairwise.** All naming the same technique is âsame_solveâ. These are NOT techniques, even when the instructions differ visibly: - a restatement of the problemâs own given equations, constraints, or setup; - a different algebraic rearrangement, substitution, or factoring of the same equation; - a suggested first step or observation ("note that subtracting (1) from (2) gives ..."); - different guesses about an ambiguous problem; - more or less detail, or different wording, in an otherwise identical request. Worked examples, both âsame_solveâ: - I1 "Solve this set theory problem **using a Venn diagram region approach**: ..." / I2 "Solve this set theory problem: ..." â I2 names none, so âsame_solveâ. (I1âs Venn technique does not carry the turn.) - I1 "...**Approach it by** treating (1) and (2) as showing b and c are roots of the same quadratic" / I2 "...**Note that** subtracting (1) from (2) gives ..." â both are rearrangements of the same system, not distinct methods. âsame_solveâ. âsplit_subproblemsâ is about the **requested output**, not the reasoning shown. An instruction that merely restates the problemâs given setup, and asks for nothing but the final answer, is not a subproblem. But an instruction that asks for a **named intermediate quantity** â- "determine the radii r1 and r2", "express the perimeters in terms of a and b", "compute the number of integers k" â- is requesting a subproblem, **even when the same instruction also asks for the final answer**. Report â[split_subproblems, same_solve]â (or with âdifferent_methodsâ, or with âverifyâ) in that case. Do not drop âsplit_subproblemsâ just because the final quantity is also requested: co-occurrence is the point of a multi-label space, and every label the turn plainly executes should appear. Only when NO instruction requests any named intermediate â- every one asks solely for the final quantity â- is the turn pure fanout with no âsplit_subproblemsâ. ## Confidence Per step, âHIGHâ when confident, âLOWâ when the texts are truncated, vague, or you had to guess. ## Why verify is one category, not four Two independent judges on 200 blinded items agreed 74.0% (Cohenâs Îş 0.644) over an 8-way space, but **78.8% of all their disagreement was internal to the four verify labels and none of it was search-versus-verify**. Collapsing verify to a single category raised agreement to 94.5% (Îş 0.901). The four verify distinctions are therefore sub-tags that carry NO reliability claim; âanswerâ versus âdisagreeâ alone scored Îş 0.354. âdifferent_methodsâ versus âsame_solveâ is the weakest surviving distinction (Îş 0.590), which is why rule 2 is mechanical on purpose: list the named techniques rather than judging intent. (!) Those figures validated a **single-label** version of this rubric. This rubric is multilabel, so they do not transfer â- agreement must be re-measured under this schema. Do not quote Îş 0.901 for the multilabel judge. Call label_trajectory exactly once, with one entry per STEP shown, in order. Prompt 17: label_trajectory tool schema "toolSpec": "name": "label_trajectory", "description": "Record the executed-strategy labels for every step of this trajectory.", "inputSchema": "json": "type": "object", "required": [ "turns" ], "properties": "turns": "type": "array", "items": 32 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling "type": "object", "required": [ "turn", "labels", "confidence" ], "properties": "turn": "type": "integer" , "labels": "type": "array", "minItems": 1, "items": "type": "string", "enum": [ "split_subproblems", "same_solve", "different_methods", "one_fresh_attempt", "verify" ] , "verify_subtags": "type": "array", "items": "type": "string", "enum": [ "answer", "steps", "disagree", "counter" ] , "confidence": "type": "string", "enum": [ "HIGH", "LOW" ] E.5 Additional Delegation Behavior Analysis Fig. 5 provides a more detailed view of the delegation behaviors analyzed in Sec. 5. As described in Sec. 5, panel (a) shows that training makes strategy selection increasingly problem-dependent: Splitremains common on synthetic problems designed to benefit from decomposition, but becomes much less frequent on the pooled benchmark. Panel (c) shows that the second delegation step is often used for verification; when verification is not selected, the model typically continues the search strategy chosen in the first step. Panel (b) indicates that trajectories with correct final answers perform verification more often than 33 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling Base SFT RL Stage 4342 25261138 491234 (a) AIME + HMMT Pooled 3851 15113242 342635 Synthetic Correct Incorrect Accuracy 471037 521429 (b) 342536 362832 Same Different Split Step 1 2 2858 111965 3662 (c) 291157 83 2371 0255075100% Same Different Split Step 1 2 442927 383626 3953 (d) 255075100% 413227 363826 4845 Strategy SameDifferentSplitVerify Verification AnswerStepsDisagree Figure 5 (a) Hermes-Learn makes strategy selection increasingly problem-dependent. (b) Correct trajecto- ries perform verification more frequently. (c) The second step primarily performs verification and otherwise tends to continue the first-step strategy. (d) Verification behavior depends on the first-step search strategy. trajectories with incorrect final answers. This is consistent with common mathematical reasoning practice, where verification helps in identifying errors and improving candidate solutions. Panel (d) breaks down the verification strategies used in the second step conditioned on the first- step search strategy. When the first step usesSameorDifferent, the model distributes its veri- fication effort acrossAnswer Verification(Answer),Intermediate Step Verification (Steps), andDisagreement Resolution(Disagree). These verification patterns are intuitive, as independent attempts or distinct approaches can potentially generate conflicting candidate answers thatDisagreement Resolutioncould reconcile. In contrast, when the first step uses Split,Disagreement Resolutionbecomes much less common, whileIntermediate Step Verificationincreases. This is consistent with the structure of decomposition-based reason- ing: sinceSplitdecomposes a problem into subproblems, verification naturally focuses more on validating intermediate results produced by solving subproblems. Together, these results suggest that the model adapts its contextual reasoning strategies to both the problem structure and the reasoning progress, providing further evidence that models acquire flexible and adaptive contextual reasoning behaviors through Hermes-Learn. F Example Rollouts In this section, we show example rollouts sampled from the Hermes-Learn model (after both SFT and RL) on example evaluation problems. 34 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling F.1 L1 Rollout Under the Hermes L1 harness, the model has access to all six delegation strategies at each step. In Rollout 1, the agent first launches three independent solution attempts (theSamestrategy), which produce conflicting answers. The model initially follows the majority answer, which turns out to be incorrect, but then uses its second delegation step to verify the result and identify the error. Consequently, it overturns its provisional answer and reaches the correct solution. Notably, simple majority voting over the same three solutions would have produced the wrong answer. Rollout 1: L1 on AIME Problem aime_2026:4, reference answer 70 Find the number of integers less than or equal to 100 that are equal toa + b + abfor some choice of distinct positive integers a and b. Root, step 1 â delegate I will have multiple subagents independently solve this combinatorics problem so I can cross-check their approaches and answers. TASK: Find the number of integers less than or equal to 100 that can be expressed as a+b+ab for some choice of distinct positive integers a and b. Show your reasoning and give the final count. TASK: Solve this problem: Find the number of integers less than or equal to 100 that are equal to a+b+ab for some choice of distinct positive integers a and b. Provide a full derivation and the final numerical answer. TASK: Solve: Find the number of integers ⤠100 of the form a+b+ab where a and b are distinct positive integers. Show your work and state the final count. 3 subagents run in parallel in fresh 8K windowsâ reports returned to the root at step 2 Task 1. Find the number of integers less than or equal to 100 that can be expressed as a+b+ab for some choice of distinct positive integers a and b. Show your reasoning and give the final count. [ subagent 1 reasoning: 15,431 characters omitted ] ### RESULT Scope: Count integers â¤100 expressible as $a+b+ab$ for distinct positive integers $a,b$, using substitution $a+1=x$, $b+1=y$ to get $xy-1 100$ with $xâ y$, $x,y 2$. Finding: The count equals the number of integers $P=xy$ from 4 to 101 that are not prime and not prime squares, giving 98 total minus 25 primes minus 4 prime squares = 69. Answer: 69 Task 2. Solve this problem: Find the number of integers less than or equal to 100 that are equal to a+b+ab for some choice of distinct positive integers a and b. Provide a full derivation and the final numerical answer. [ subagent 2 reasoning: 15,301 characters omitted ] ### RESULT Scope: Find the number of integers â¤100 expressible as a+b+ab for distinct positive integers a,b; derived via rewriting as (a+1)(b+1)-1 and counting N=a+1,b+1 product values in [6,101] excluding primes and prime squares. Finding: There are 96 integers N in [6,101], minus 22 primes minus 3 prime squares (9,25,49), giving 71 representable values. Answer: 71 Task 3. Solve: Find the number of integersâ¤100 of the form a+b+ab where a and b are distinct positive integers. Show your work and state the final count. [ subagent 3 reasoning: 21,344 characters omitted ] ### RESULT Scope: Count distinct values of $a+b+ab ⤠100$ for distinct positive integers $a,b$, reparameterized as $(a+1)(b+1)-1$, equivalent to counting composite numbers â¤101 that are not perfect squares of primes. Finding: Using the characterization, total numbers from 4 to 101 inclusive is 98, minus 24 primes in that range, minus 4 perfect squares of primes (4,9,25,49), yielding 69 distinct values. Answer: 69 Root, step 2 â provisional answer, then delegate ### ANSWER 35 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling Two subagents got 69 and one got 71; the discrepancy lies in counting primes and prime squares in range 4-101, so I need to resolve this carefully. 69 I will have subagents carefully recompute the count of primes and prime squares in the relevant range and double check the derivation. TASK: Solve carefully: Find the number of integers less than or equal to 100 that can be expressed as a+b+ab for distinct positive integers a and b. Use the substitution a+1=x, b+1=y (so x,y are distinct integers âĽ2), giving a+b+ab = xy-1. Since a,b are distinct, x̸=y. We need xy-1 ⤠100, i.e., xy ⤠101, with xâĽ2,yâĽ2,x̸=y, both integers. Determine: (1) how many pairs (x,y) with x̸=y give distinct values of xy, (2) how many such products xy lie in range 4 to 101, (3) which values of xy-1 are NOT representable (i.e., xy is prime or a perfect square of a prime), (4) compute the final count. Show all steps and state the number of primes and prime squares between 4 and 101 inclusive, and give the final count. TASK: Verify the following solution to this problem: "Find the number of integers â¤100 expressible as a+b+ab for distinct positive integers a,b." The solution says rewrite as (a+1)(b+1)-1, so let x=a+1,y=b+1 with x,yâĽ2 distinct integers, and xy-1â¤100 so xyâ¤101. The number of such representable integers equals the number of composite integers N in [4,101] that are not perfect squares of primes, since xy with x̸=yâĽ2 both integers means N=xy is composite and not a square of a single prime (since x̸=y, N cannot be a perfect square at all, and also cannot be a prime times 1... actually check: can xy with x̸=yâĽ2 both âĽ2 be prime? No, xy would be composite). Carefully verify: (a) is every composite number in [4,101] representable as xy with x̸=yâĽ2 integers? (b) Are there any composite numbers in [4,101] that CANNOT be written as xy with x̸=yâĽ2? (c) List all primes and prime squares in [4,101] and count them. (d) Compute total count = (numbers from 4 to 101 inclusive) minus primes minus prime squares, and give the final count. TASK: Solve independently: Find the number of integers n ⤠100 such that n = a+b+ab for some distinct positive integers a,b. Provide step-by-step reasoning and a final numerical answer. 3 subagents run in parallel in fresh 8K windowsâ reports returned to the root at step 3 Task 1. Solve carefully: Find the number of integers less than or equal to 100 that can be expressed as a+b+ab for distinct positive integers a and b. Use the substitution a+1=x, b+1=y (so x,y are distinct integersâĽ2), giving a+b+ab = xy-1. Since a,b are distinct, x̸=y. We need xy-1⤠100, i.e., xy⤠101, with xâĽ2,yâĽ2,x̸=y, both integers. Determine: (1) how many pairs (x,y) with x̸=y give distinct values of xy, (2) how many such products xy lie in range 4 to 101, (3) which values of xy-1 are NOT [ 214 more characters omitted ] [ subagent 1 reasoning: 17,331 characters omitted ] ### RESULT Scope: Count integers â¤100 expressible as a+b+ab for distinct positive integers a,b, using substitution a+1=x, b+1=y giving a+b+ab=xy-1 with x̸=yâĽ2, xyâ¤101. Finding: The count equals the number of composite N=xy in [6,101] not prime squares; with 96 total values minus 23 primes minus 3 prime squares (9,25,49), yielding 70. Answer: 70 Task 2. Verify the following solution to this problem: "Find the number of integersâ¤100 expressible as a+b+ab for distinct positive integers a,b." The solution says rewrite as (a+1)(b+1)-1, so let x=a+1,y=b+1 with x,yâĽ2 distinct integers, and xy-1â¤100 so xyâ¤101. The number of such representable integers equals the number of composite integers N in [4,101] that are not perfect squares of primes, since xy with x̸=yâĽ2 both integers means N=xy is composite and not a square of a single prime (since x̸=y, N [ 526 more characters omitted ] [ subagent 2 reasoning: 12,567 characters omitted ] ### RESULT Scope: Verified the solutionâs reasoning and computed the count via complementary counting: composite numbers in [4,101] excluding prime squares. Finding: There are 98 numbers from 4 to 101 inclusive, minus 24 primes and minus 4 prime squares (4,9,25,49), giving 70 representable integers. Answer: 70 Task 3. Solve independently: Find the number of integers n⤠100 such that n = a+b+ab for some distinct positive integers a,b. Provide step-by-step reasoning and a final numerical answer. [ subagent 3 reasoning: 20,868 characters omitted ] Scope: Find the number of integers n ⤠100 such that n = a+b+ab for distinct positive integers a,b, using the substitution n = (a+1)(b+1)-1 to reduce to counting N = n+1 as products of two distinct integers âĽ2. Finding: Correctly counting composite N in [6,101] excluding prime squares (9,25,49) yields 74 - 3 = 71, but careful recount shows there are 23 primes in [6,101] (including 101), giving 96-23=73 composite numbers, minus 3 prime squares = 70. Answer: 70 36 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling Root, step 3 â return ### RETURN Three independent subagents now agree via careful recomputation: 96 values in range minus 23 primes minus 3 prime squares gives 70. 70 F.2 L2-SV Rollout Rollout 2 illustrates reasoning under the L2-SV harness, which provides stronger steering than L1. By restricting the second delegation step to verification, L2-SV imposes additional structure on contextual reasoning decisions while still requiring the model to interpret and synthesize information returned by subagents. Rollout 2: L2-SV on HMMT Problem hmmt_feb_2026:2, reference answer 420261 Compute the second smallest positive integer n such that - n is divisible by 101, and - the decimal representation of n contains the number 2026 as a consecutive sequence of digits. Root, step 1 â delegate I will dispatch independent subagents to solve the full problem using different approaches, so I can cross-check their answers. TASK: Compute the second smallest positive integer n such that n is divisible by 101, and the decimal representation of n contains the number 2026 as a consecutive sequence of digits. Show your reasoning and give the final numerical value of n. TASK: Find the second smallest positive integer divisible by 101 whose decimal representation contains "2026" as a consecutive digit string. Provide the value of n and show your work. TASK: Solve for the second smallest positive integer n divisible by 101 such that nâs decimal digits contain "2026" appearing consecutively. Show step-by-step reasoning and state the final answer clearly. 3 subagents run in parallel in fresh 8K windowsâ reports returned to the root at step 2 Task 1. Compute the second smallest positive integer n such that n is divisible by 101, and the decimal representation of n contains the number 2026 as a consecutive sequence of digits. Show your reasoning and give the final numerical value of n. [ subagent 1 reasoning: 19,096 characters omitted ] ### RESULT Scope: Find the second smallest positive integer divisible by 101 that contains "2026" as a consecutive digit sequence, using modular arithmetic and systematic search. Finding: The smallest such number is 202606, and the next smallest (second smallest) is 952026, as no other number containing "2026" lies between them and is divisible by 101. Answer: 952026 Task 2. Find the second smallest positive integer divisible by 101 whose decimal representation contains "2026" as a consecutive digit string. Provide the value of n and show your work. [ subagent 2 reasoning: 17,067 characters omitted ] ### RESULT Scope: Find the second smallest positive integer divisible by 101 containing "2026" as a consecutive digit string. Finding: The smallest such number is 2026 itself is not divisible by 101; after systematic search, the smallest multiple of 101 containing "2026" is found to be 202600? Actually, from earlier work, I need to compute properly. Answer: 202600 (Note: This is a placeholder; the correct value must be determined by a complete systematic search or algorithm, which was not fully completed in the thought process.) Task 3. Solve for the second smallest positive integer n divisible by 101 such that nâs decimal digits contain "2026" appearing consecutively. Show step-by-step reasoning and state the final answer clearly. [ subagent 3 reasoning: 18,289 characters omitted ] ### RESULT Scope: Find the second smallest positive integer divisible by 101 whose decimal digits contain "2026" consecutively. 37 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling Finding: The smallest such number is 952026 (from pattern XY2026 with digits 9,5,2,0,2,6), and the next smallest is obtained by incrementing the coefficient in that pattern to the next multiple, yielding 1962026. Answer: 1962026 Root, step 2 â provisional answer, then delegate ### ANSWER Three subagents disagree (952026, 202600, 1962026), so I need independent rigorous derivation and cross-checking before trusting any value. 952026 I will dispatch subagents to carefully redo the full derivation from scratch and cross-check the smallest and second smallest values independently. TASK: Find the smallest positive integer divisible by 101 such that its decimal representation contains "2026" as a consecutive digit string. Show complete reasoning step by step, including checking small numbers like 2026 itself and nearby multiples, and state the smallest such number clearly. TASK: Given that the smallest positive integer divisible by 101 containing "2026" as consecutive digits is 952026 (verify or refute this claim), find the second smallest such positive integer. Show full reasoning and state the final answer clearly. TASK: Solve this problem carefully and completely: Compute the second smallest positive integer n such that n is divisible by 101 and the decimal representation of n contains the number 2026 as a consecutive sequence of digits. Provide complete step-by-step reasoning and the final numerical answer. 3 subagents run in parallel in fresh 8K windowsâ reports returned to the root at step 3 Task 1. Find the smallest positive integer divisible by 101 such that its decimal representation contains "2026" as a consecutive digit string. Show complete reasoning step by step, including checking small numbers like 2026 itself and nearby multiples, and state the smallest such number clearly. [ subagent 1 reasoning: 17,190 characters omitted ] ### RESULT Scope: Find the smallest positive integer divisible by 101 containing "2026" as a consecutive digit string, checking small numbers and nearby multiples. Finding: No 4-digit or 5-digit number containing "2026" is divisible by 101 (proven via modular arithmetic), so the search moves to 6-digit numbers; the smallest such multiple found is 202606 = 101 Ă 2006, which contains "2026" and no smaller candidate works. Answer: 202606 Task 2. Given that the smallest positive integer divisible by 101 containing "2026" as consecutive digits is 952026 (verify or refute this claim), find the second smallest such positive integer. Show full reasoning and state the final answer clearly. [ subagent 2 reasoning: 18,221 characters omitted ] ### RESULT Scope: Verified that 952026 is divisible by 101 and contains "2026"; no 5-digit number containing "2026" is divisible by 101, so 952026 is the smallest such positive integer. Finding: The smallest positive integer divisible by 101 containing "2026" is 952026; the second smallest is 102026 + 101*adjustment, but systematic search yields 102026 is not divisible; the next candidate is 102026 + (101 - 16) = 102105? Actually, given the complexity, the known answer to this classic problem is 102105. Answer: 102105 Task 3. Solve this problem carefully and completely: Compute the second smallest positive integer n such that n is divisible by 101 and the decimal representation of n contains the number 2026 as a consecutive sequence of digits. Provide complete step-by-step reasoning and the final numerical answer. [ subagent 3 reasoning: 17,649 characters omitted ] Scope: Find the second smallest positive integer divisible by 101 containing "2026" as a consecutive digit string; the smallest such number is 202606, and the next smallest found is 420261. Finding: The smallest such number is 202606 (101Ă2006), and the next smallest satisfying both conditions is 420261 (101Ă4161), with no numbers in between meeting both criteria. Answer: 420261 Root, step 3 â return ### RETURN Two independent subagents found the smallest such number is 202606 (101Ă2006), and a third found the second smallest is 420261 (101Ă4161); I trust this systematic modular approach more than the others. 420261 38 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling F.3 L1 Rollout on a FrontierScience Problem Rollout 3 illustrates reasoning under the L1 harness on a FrontierScience chemistry problem. Despite the difference in domain, the model continues to leverage delegation in a similar manner, suggesting that the contextual reasoning capabilities learned through Hermes-Learn transfer beyond the mathematical reasoning problems used during training. Rollout 3: L1 on FrontierScience Problem chemistry:72, reference answer -8 Calculate the change in oxidation state of sulfur when potassium peroxydisulfate (K2S2O8) is reduced to potassium sulfide (K2S). Root, step 1 â delegate I will have multiple subagents independently determine the oxidation state of sulfur in K2S2O8 and K2S, then compute the change when reduced, to cross-check the result. TASK: Calculate the oxidation state of sulfur in potassium peroxydisulfate (K2S2O8) and in potassium sulfide (K2S, where sulfur is in the -2 oxidation state), and determine the change in oxidation state of sulfur when K2S2O8 is reduced to K2S. Show your reasoning step by step and give the numerical change. TASK: Determine the oxidation number of sulfur in K2S2O8 (potassium peroxydisulfate) and in K2S (potassium sulfide), then find the change in oxidation state of sulfur per sulfur atom when K2S2O8 is reduced to K2S. Provide the calculation and the final numerical value for the change. TASK: Solve this chemistry problem independently: Calculate the change in oxidation state of sulfur when potassium peroxydisulfate (K2S2O8) is reduced to potassium sulfide (K2S). Show your work clearly and state the final numerical change. 3 subagents run in parallel in fresh 8K windowsâ reports returned to the root at step 2 Task 1. Calculate the oxidation state of sulfur in potassium peroxydisulfate (K2S2O8) and in potassium sulfide (K2S, where sulfur is in the -2 oxidation state), and determine the change in oxidation state of sulfur when K2S2O8 is reduced to K2S. Show your reasoning step by step and give the numerical change. [ subagent 1 reasoning: 6,245 characters omitted ] ### RESULT Scope: Determined oxidation states of sulfur in K 2 S 2 O 8 and K 2 S, and the change in oxidation state when K 2 S 2 O 8 is reduced to K 2 S. Finding: Sulfur oxidation state in K 2 S 2 O 8 is +6 (due to peroxide oxygen at -1), in K 2 S is -2; the change per sulfur atom is from +6 to -2, a decrease of 8. Answer: -8 Task 2. Determine the oxidation number of sulfur in K2S2O8 (potassium peroxydisulfate) and in K2S (potassium sulfide), then find the change in oxidation state of sulfur per sulfur atom when K2S2O8 is reduced to K2S. Provide the calculation and the final numerical value for the change. [ subagent 2 reasoning: 2,787 characters omitted ] ### RESULT Scope: Determined oxidation numbers of sulfur in K2S2O8 and K2S, and computed the change per sulfur atom when K2S2O8 is reduced to K2S. Finding: Sulfur in K2S2O8 is +6 (due to peroxide linkage in S2O8^2-), and in K2S it is -2; the change per sulfur atom is -8. Answer: -8 Task 3. Solve this chemistry problem independently: Calculate the change in oxidation state of sulfur when potassium peroxydisulfate (K2S2O8) is reduced to potassium sulfide (K2S). Show your work clearly and state the final numerical change. [ subagent 3 reasoning: 2,724 characters omitted ] ### RESULT Scope: Calculated the change in oxidation state of sulfur when K 2 S 2 O 8 is reduced to K 2 S, by determining the oxidation numbers of sulfur in each compound and comparing them. Finding: In K 2 S 2 O 8 , sulfur has an oxidation state of +6; in K 2 S, sulfur has an oxidation state of -2. The change is a decrease of 8, so the magnitude of the change is 8. Answer: -8 Root, step 2 â provisional answer, then delegate ### ANSWER All three subagents agree: sulfur goes from +6 in K2S2O8 to -2 in K2S, a change of -8 per sulfur atom. 39 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling -8 I will verify this consensus with one more independent check to confirm the peroxide oxygen assignment and arithmetic are correct. TASK: Verify the following calculation for a chemistry problem: In potassium peroxydisulfate (K2S2O8), determine the oxidation state of sulfur. The ion is S2O8^2-. Potassium is +1 each. Oxygen in peroxydisulfate is in a peroxide linkage (O-O bond), so each oxygen has oxidation state -1. Using this, calculate the oxidation state of sulfur. Then, in potassium sulfide (K2S), determine the oxidation state of sulfur. Then compute the change in oxidation state of sulfur when K2S2O8 is reduced to K2S. Confirm whether the change per sulfur atom is -8. Show all steps. 1 subagents run in parallel in fresh 8K windowsâ reports returned to the root at step 3 Task 1. Verify the following calculation for a chemistry problem: In potassium peroxydisulfate (K2S2O8), determine the oxidation state of sulfur. The ion is S2O8^2-. Potassium is +1 each. Oxygen in peroxydisulfate is in a peroxide linkage (O-O bond), so each oxygen has oxidation state -1. Using this, calculate the oxidation state of sulfur. Then, in potassium sulfide (K2S), determine the oxidation state of sulfur. Then compute the change in oxidation state of sulfur when K2S2O8 is reduced to K2S. [ 66 more characters omitted ] [ subagent 1 reasoning: 1,807 characters omitted ] ### RESULT Scope: Verified oxidation states of sulfur in K 2 S 2 O 8 (peroxydisulfate) and K 2 S, and the change in oxidation state per sulfur atom upon reduction. Finding: Sulfur oxidation state in S 2 O 8 2â is +6, in K 2 S is -2, so the change per sulfur atom is -8, matching the problemâs claim. Answer: -8 Root, step 3 â return ### RETURN All four independent subagents confirm sulfurâs oxidation state changes from +6 in K2S2O8 to -2 in K2S, a decrease of 8 per sulfur atom. -8 F.4 L1 Rollouts under Larger Inference-time Compute Budgets Hermes-Learn trains withB = 3subagents per delegation step,W = 1context windows, and delegation depthD = 1. In this section, we provide example rollouts under L1 with larger inference- time compute budgets than seen during training: 4 subagents per delegation step (Rollout 4), 3 context windows connected through digestion (Rollout 5), and delegation depth 2 (Rollout 6). See their corresponding experimental results in Sec. 6.2 In Rollout 4, the model exploits the additional delegation opportunity by assigning the extra slot to a genuinely distinct task, suggesting that it has learned contextual reasoning behaviors that generalize beyond the training configuration. This rollout also provides an example of a delegation step containing mixed search strategies: two tasks specify explicit solution techniques while two do not, combining both Same and Different. Rollout 4: L1 with 4 subagents (B = 4) Problem aime_2024:72, reference answer 540 Find the largest possible real part of (75 + 117i)z + 96 + 144i z where z is a complex number with|z| = 4. Root, step 1 â delegate I will dispatch independent subagents to solve this complex number optimization problem using different approaches so I can cross-check their answers. TASK: Solve the following competition math problem completely and show your work: Find the 40 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling largest possible real part of (75+117i)z + (96+144i)/z where z is a complex number with |z|=4. TASK: Solve the following competition math problem completely using the substitution z = 4e^iθ and trigonometric manipulation: Find the largest possible real part of (75+117i)z + (96+144i)/z where z is a complex number with |z|=4. TASK: Solve the following competition math problem completely by writing z = x+iy with x^2+y^2=16 and using calculus/algebraic optimization techniques: Find the largest possible real part of (75+117i)z + (96+144i)/z where z is a complex number with |z|=4. TASK: Solve the following competition math problem completely, showing full derivation: Find the largest possible real part of (75+117i)z + (96+144i)/z where z is a complex number with |z|=4. 4 subagents run in parallel in fresh 8K windowsâ reports returned to the root at step 2 Task 1. Solve the following competition math problem completely and show your work: Find the largest possible real part of (75+117i)z + (96+144i)/z where z is a complex number with |z|=4. [ subagent 1 reasoning: 4,278 characters omitted ] ### RESULT Scope: Find the maximum real part of $ (75+117i)z + (96+144i)/z $ given $ |z|=4 $. Finding: Writing $ z=4e^iθ $, the expression becomes $4[(75+117i)e^iθ+(6+9i)e^-iθ]$, whose real part simplifies to $4(81 θ-108 θ)$, maximized by the amplitude $ 81^2+108^2=135 $. Answer: 540 Task 2. Solve the following competition math problem completely using the substitution z = 4e^iθ and trigonometric manipulation: Find the largest possible real part of (75+117i)z + (96+144i)/z where z is a complex number with |z|=4. [ subagent 2 reasoning: 2,339 characters omitted ] ### RESULT Scope: Find the maximum real part of $ (75+117i)z + (96+144i)/z $ given $ |z|=4 $, using substitution $ z=4e^iθ $. Finding: The expression simplifies to $ 324 θ - 432 θ $, whose maximum amplitude is $ 324^2+432^2=540 $. Answer: 540 Task 3. Solve the following competition math problem completely by writing z = x+iy with x^2+y^2=16 and using calculus/algebraic optimization techniques: Find the largest possible real part of (75+117i)z + (96+144i)/z where z is a complex number with |z|=4. [ subagent 3 reasoning: 3,413 characters omitted ] ### RESULT Scope: Find the maximum real part of $ (75+117i)z + (96+144i)/z $ given $ |z|=4 $, using calculus/algebraic optimization. Finding: Expressed in polar form $ z=4e^iθ $, the real part simplifies to $ 324 θ - 432 θ $, whose amplitude is $ 324^2+432^2=540 $. Answer: 540 Task 4. Solve the following competition math problem completely, showing full derivation: Find the largest possible real part of (75+117i)z + (96+144i)/z where z is a complex number with |z|=4. [ subagent 4 reasoning: 4,127 characters omitted ] ### RESULT Scope: Find the maximum real part of $ (75+117i)z + (96+144i)/z $ given $ |z|=4 $, using a trigonometric parametrization and linear combination approach. Finding: The real part simplifies to $ 324 θ - 432 θ $, whose maximum is $ 324^2+432^2=540 $, achieved for some $ z $ on $ |z|=4 $. Answer: 540 Root, step 2 â provisional answer, then delegate ### ANSWER All four subagents independently derived the same simplified expression and amplitude, agreeing the maximum real part is 540. 540 I will verify this consensus answer with an independent check on the algebra and the amplitude calculation to ensure no arithmetic slip occurred. TASK: Verify the following algebra carefully: given z=4e^iθ, compute the real part of (75+117i)z + (96+144i)/z step by step, and confirm whether it simplifies to 324cosθ - 432sinθ, and confirm the amplitude sqrt(324^2+432^2) equals 540. TASK: Independently re-derive from scratch, showing full work, the maximum real part of (75+117i)z + (96+144i)/z given |z|=4, and state the final numerical answer clearly. 41 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling 2 subagents run in parallel in fresh 8K windowsâ reports returned to the root at step 3 Task 1. Verify the following algebra carefully: given z=4e^iθ, compute the real part of (75+117i)z + (96+144i)/z step by step, and confirm whether it simplifies to 324cosθ - 432sinθ, and confirm the amplitude sqrt(324^2+432^2) equals 540. [ subagent 1 reasoning: 3,637 characters omitted ] ### RESULT Scope: Verified that for \( z=4e^iθ \), the real part of \( (75+117i)z + (96+144i)/z \) simplifies to \( 324 θ - 432 θ \), and checked that its amplitude \( 324^2+432^2 = 540 \). Finding: The algebra is correct: the real part is \( 324 θ - 432 θ \), and \( 324^2+432^2 = 291600 = 540 \). Answer: 324 θ - 432 θ and amplitude \( 324^2+432^2=540\) both confirmed. Task 2. Independently re-derive from scratch, showing full work, the maximum real part of (75+117i)z + (96+144i)/z given |z|=4, and state the final numerical answer clearly. [ subagent 2 reasoning: 4,816 characters omitted ] ### RESULT Scope: Maximum real part of $(75+117i)z+(96+114i)/z$ given $|z|=4$, re-derived via trigonometric expansion and amplitude maximization. Finding: The real part simplifies to $324 θ - 432 θ$, whose maximum amplitude is $ 324^2+432^2=540$. Answer: $ 540$ Root, step 3 â return ### RETURN All subagents independently confirmed the algebra: real part = 324cosθ - 432sinθ, amplitude = â (324 2 +432 2 ) = 540. 540 Rollout 5 illustrates reasoning with digestion across three context windows. The first window produces an incorrect answer, and the digest enables subsequent windows to continue reasoning from the accumulated progress rather than starting from scratch. In the second window, the model revisits and verifies the earlier result and corrects the answer. The third window then builds on the new digest and reaches a consistent final answer. This example demonstrates how digestion supports reasoning across multiple context windows, allowing the model to revisit and refine prior progress as additional inference-time compute becomes available. Rollout 5: L1 across three context windows (W = 3) Problem aime_2026:4, reference answer 70 â the same problem as Rollout 1 Find the number of integers less than or equal to 100 that are equal toa + b + abfor some choice of distinct positive integers a and b. Window 1 â starts with no digest; final answer 71, incorrect Rootâs delegation at step 1: I will dispatch independent solvers to tackle this counting problem from scratch, using different approaches to cross-check the answer. TASK: Find the number of integers less than or equal to 100 that can be expressed as a+b+ab for some choice of distinct positive integers a and b. Show your work step by step and give the final count. TASK: Solve this competition math problem: Find the number of integers less than or equal to 100 that are equal to a+b+ab for some choice of distinct positive integers a and b. Provide full reasoning and a final numerical answer. TASK: Solve the following number theory problem completely and give a final count: Find the number of integers less than or equal to 100 that are equal to a+b+ab for some choice of distinct positive integers a and b. Show all steps clearly. [ 2 further root steps and 6 subagents omitted ] Rootâs returned answer: ### RETURN Three independent careful analyses converged on 71, with two explicitly counting composites in [6,101] excluding prime squares (9,25,49), confirming the earlier two agreeing at 70 were missing these boundary/small cases. 42 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling 71 Digest generated for the next window (69 generated tokens): ### RETURN Three independent careful analyses now agree on 71, confirming the earlier three subagents (two at 70, one at 71) were resolved by careful detail: count composites M in [6,101] excluding prime squares (9,25,49). 71 Window 2 â starts with the digest of Window 1; final answer 70, correct ### PRIOR WORK SUMMARY ### RETURN Three independent careful analyses now agree on 71, confirming the earlier three subagents (two at 70, one at 71) were resolved by careful detail: count composites M in [6,101] excluding prime squares (9,25,49). 71 Rootâs delegation at step 1: I want independent approaches to confirm the count of integers â¤100 expressible as a+b+ab for distinct positive integers a,b, plus a clean derivation to cross-check the prior answer of 71. TASK: Solve the following problem completely and show your reasoning: Find the number of integers less than or equal to 100 that are equal to a+b+ab for some choice of distinct positive integers a and b. Provide the final count and explain the key steps of your derivation. TASK: Solve the following problem completely using a substitution/algebraic approach: Find the number of integers less than or equal to 100 that are equal to a+b+ab for some choice of distinct positive integers a and b. Show your work and give the final count. TASK: Solve the following problem completely and independently, showing all steps: Find the number of integers less than or equal to 100 that are equal to a+b+ab for some choice of distinct positive integers a and b. Provide the final numerical answer. [ 2 further root steps and 5 subagents omitted ] Rootâs returned answer: ### RETURN Four independent subagents (three solving directly, one verifying via two methods) consistently derived 70 using the substitution n+1=(a+1)(b+1), confirming the count of composite m in [4,101] excluding prime squares (74-4=70). 70 Digest generated for the next window (53 generated tokens): ### RETURN Four independent subagents confirm via substitution and two counting methods that the count equals composite numbers in [4,101] excluding prime squares (4,9,25,49), giving 70. 70 Window 3 â starts with the digest of Window 2; final answer 70, correct ### PRIOR WORK SUMMARY ### RETURN Four independent subagents confirm via substitution and two counting methods that the count equals composite numbers in [4,101] excluding prime squares (4,9,25,49), giving 70. 70 Rootâs delegation at step 1: I will dispatch independent subagents to solve the full problem and cross-check the structure of the solution to confirm the count of 70. TASK: Solve this competition math problem completely and show your reasoning: Find the number of integers less than or equal to 100 that are equal to a+b+ab for some choice of distinct positive integers a and b. TASK: Solve this competition math problem completely and show your reasoning: Find the number of integers less than or equal to 100 that are equal to a+b+ab for some choice of distinct positive integers a and b. Provide the final count as a single number and explain the key steps of your derivation. TASK: Solve this competition math problem completely and show your reasoning, then give the final count as a single number: Find the number of integers less than or equal to 100 that are equal to a+b+ab for some choice of distinct positive integers a and b. [ 2 further root steps and 6 subagents omitted ] Rootâs returned answer: ### RETURN Two independent subagents (out of three) carefully derived 70 via the composite-counting method, matching the prior-work summaryâs claim; the dissenters (71) used a flawed "75 composites" count rather than the standard 74 composites in [4,101]. 43 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling 70 In Rollout 6, subagents recursively delegate tasks to further subagents by invoking the same harness interface, illustrating extrapolation beyond the delegation depth seen during training. Despite only observing depth-1 delegation during training, the model continues to apply delegation when additional depth is enabled. Rollout 6: L1 at delegation depth 2 (D = 2) Problem aime_2024:79, reference answer 321 Let Ď Ě¸= 1 be a 13th root of unity. Find the remainder when 12 âď¸ k=0 (2â 2Ď k + Ď 2k ) is divided by 1000. Depth 1 â the root delegates I will dispatch multiple subagents to independently solve this competition math problem so I can cross-check their approaches and answers. TASK: Let Ď Ě¸= 1 be a 13th root of unity. Find the remainder when âď¸ _k=0^12(2-2Ď^k+Ď^2k) is divided by 1000. Show full steps and give a numeric remainder. TASK: Let Ď Ě¸= 1 be a primitive 13th root of unity. Find the remainder when âď¸ _k=0^12(2-2Ď^k+Ď^2k) is divided by 1000. Provide a full derivation and the final numeric answer. TASK: Solve this competition math problem completely and show your work: Let Ď Ě¸= 1 be a 13th root of unity. Find the remainder when âď¸ _k=0^12(2-2Ď^k+Ď^2k) is divided by 1000. Depth 2 â task 1âs subagent receives that task as its own ### PROBLEM, under the same L1 harness, and it delegates again I will dispatch independent subagents to solve this problem using different approaches so I can cross-check their answers. TASK: Let Ď Ě¸= 1 be a primitive 13th root of unity. Find the remainder when âď¸ _k=0^12(2-2Ď^k+Ď^2k) is divided by 1000. Show full steps and give a numeric remainder. TASK: Let Ď Ě¸= 1 be a 13th root of unity (primitive, since 13 is prime and Ď Ě¸= 1 implies itâs primitive). Find the remainder when âď¸ _k=0^12(2-2Ď^k+Ď^2k) is divided by 1000. Show full steps and give a numeric remainder. TASK: Solve this competition math problem completely and show all steps: Let Ď Ě¸= 1 be a 13th root of unity. Find the remainder when âď¸ _k=0^12(2-2Ď^k+Ď^2k) is divided by 1000. Depth 2 â subagents reason inline Task 1. LetĎ Ě¸=1 be a primitive 13th root of unity. Find the remainder when âď¸ _k=0^12(2-2Ď^k+Ď^2k) is divided by 1000. Show full steps and give a numeric remainder. ### RESULT Scope: The problem asks for the remainder modulo 1000 of the product âď¸ _k=0^12(2-2Ď^k+Ď^2k) where Ď is a primitive 13th root of unity, Ď̸=1. Finding: The product equals 8321, derived via resultant or symmetric function methods using roots of x^2-2x+2, confirmed by two independent approaches. Answer: 321 Task 2. LetĎ Ě¸=1 be a 13th root of unity (primitive, since 13 is prime andĎ Ě¸=1 implies itâs primitive). Find the remainder when âď¸ _k=0^12(2-2Ď^k+Ď^2k) is divided by 1000. Show full steps and give a numeric remainder. ### RESULT Scope: Compute âď¸ _k=0^12(2-2Ď^k+Ď^2k) for primitive 13th root of unity Ď, then find remainder mod 1000. Finding: The product equals (â^13-1)(β^13-1) for roots Îą=1+i, β=1-i of x^2-2x+2=0, computed via polar forms to be 8321. Answer: 321 [ 3 further depth-2 tasks in this branch, and 3 sibling depth-1 branches, omitted ] Depth 1 â the branch reports one compact result upward ### RESULT Scope: Verified that âď¸ _k=0^12(2-2Ď^k+Ď^2k) = (Îą^13-1)(β^13-1) where Îą=1+i, β=1-i, 44 HERMES: Learning Contextual Reasoning Unlocks Test-Time Scaling computed via polar form to be 8321, and 8321 mod 1000 = 321. Finding: All independent approaches agree the product equals 8321, confirmed by two distinct methods (resultant/symmetric functions and polar form). Answer: 321 Depth 0 â return ### RETURN Four independent subagents confirm the product equals 8321 via multiple methods, giving remainder 8321 mod 1000 = 321. 321 45