HSRM: Hidden-State Reward Models for Test-Time Verification

Xianzhi Li, Xiaodan Zhu
8/31/2026
cs.AIcs.CL

No official code found. Best implementation: JXL884/HSRM (0 stars, last commit 2026-08-28).

Abstract

Large language models can often generate plausible mathematical reasoning traces, but reliably identifying the correct solution among multiple candidates remains a key challenge. Existing test-time reasoning pipelines typically rely on text-based verifiers that re-read each generated solution, making verification an expensive component of inference. Prior work has shown, however, that LLMs often encode correctness-related signals in their internal representations, including awareness of when their own answers are likely to be wrong. Building on this observation, we introduce HSRM, a lightweight hidden-state reward model that verifies candidate solutions by directly reading the generator's internal representations rather than re-processing its text. HSRM extracts hidden states from a frozen generator at reasoning-step boundaries and uses a small Transformer encoder to rank candidates. It is trained from self-generated trajectories with outcome labels, requiring neither human-written process supervision nor a large pretrained verifier. Across four mathematical reasoning benchmarks, HSRM matches or outperforms a 55M-parameter text-only energy verifier in 15 of 16 generator--dataset settings while using only about 2M parameters, providing an efficient alternative to text-only verification by reusing representations already computed during generation.

View on arXivView PDF

Code Implementations(1)

JXL884/HSRMCommunity58%

Code for EMNLP 2026: HSRM: Hidden-State Reward Models for Test-Time Verification

00Aug 28, 20261 months ago

Similar Papers

Cite this paper

@article{li2026hsrm,
  title  = {HSRM: Hidden-State Reward Models for Test-Time Verification},
  author = {Xianzhi Li and Xiaodan Zhu},
  year   = {2026},
  eprint = {2608.30841},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.30841v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2608.30841.svg)](https://codeofpaper.com/paper/2608.30841)

Discussion