cs.LGSep 29, 2026

Hermes: Learning Contextual Reasoning Unlocks Test-Time Scaling

Authors: Xinyu Li, Mononito Goswami, Hao Liu, Nikos Kanakaris, Langlin Huang, Prithwish Jana, Patrick Blöbaum, Purak Jain

Organizations: Carnegie Mellon University · AWS AI Labs · Washington University in St. Louis · Georgia Institute of Technology

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.

Figures & tables

Appendix figures & tables7 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. ThinkRetrieve: Retrieval-Augmented Reasoning Traces for Test-Time Scaling

    Aug 11, 2026Vaibhav Singh, Soumya Suvra Ghosal, Sarvesh Gharat +3Test-Time ScalingLarge Reasoning Models

  2. Adaptive Test-Time Compute Allocation with Evolving In-Context Demonstrations

    Apr 22, 2026Bowen Zuo, Dongruo Zhou, Yinglun ZhuTest TimeInference-Time

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

    May 29, 2026Kaiyu Huang, Xingyu Wang, Mingze Kong +6Test-Time Scaling