Reward Model Generalization for Compute-Aware Test-Time Reasoning

Zeen Song, Wenwen Qiang, Siyu Zhao, Changwen Zheng, Gang Hua

Abstract

External test-time reasoning enhances large language models (LLMs) by decoupling generation and selection. At inference time, the model generates multiple reasoning paths, and an auxiliary process reward model (PRM) is used to score and select the best one. A central challenge in this setting is test-time compute optimality (TCO), i.e., how to maximize answer accuracy under a fixed inference budget. In this work, we establish a theoretical framework to analyze how the generalization error of the PRM affects compute efficiency and reasoning performance. Leveraging PAC-Bayes theory, we derive generalization bounds and show that a lower generalization error of PRM leads to fewer samples required to find correct answers. Motivated by this analysis, we propose Compute-Aware Tree Search (CATS), an actor-critic framework that dynamically controls search behavior. The actor outputs sampling hyperparameters based on reward distributions and sparsity statistics, while the critic estimates their utility to guide budget allocation. Experiments on the MATH and AIME benchmarks with various LLMs and PRMs demonstrate that CATS consistently outperforms other external TTS methods, validating our theoretical predictions.

Introduction

Large Language Models (LLMs) are increasingly utilizing "test-time scaling" (TTS) to improve performance on complex tasks. By allowing a model to generate multiple reasoning paths and using a Process Reward Model (PRM) to select the most accurate one, systems can effectively "think" longer to solve difficult problems. However, the efficiency of this process is governed by Test-Time Compute Optimality (TCO): the challenge of maximizing accuracy within a finite computational budget.

This research addresses a critical gap in TCO by investigating how the generalization error of the PRM—its ability to accurately score reasoning steps it hasn't encountered during training—limits the overall intelligence of the system. When a PRM's judgment is unreliable, the model may exhaust its budget on incorrect paths, leading to diminished returns on compute.

Theoretical Framework: The Impact of Generalization

The authors establish a formal link between reward model reliability and search efficiency using PAC-Bayes theory. Their analysis proves that the probability of identifying a correct answer is lower-bounded by three primary factors:

  1. Policy Quality: The ability of the base model to generate at least one correct path.
  2. Reward Gap: The numerical margin between the scores of correct and incorrect paths.
  3. Generalization Error: The discrepancy between the PRM’s predicted reward and the true correctness of a step.

A key theoretical insight is that as the PRM's generalization error increases, the number of samples required to find a correct answer grows exponentially. This suggests that simply increasing compute is insufficient if the reward model cannot generalize effectively to new reasoning trajectories.

Compute-Aware Tree Search (CATS)

To operationalize these theoretical findings, the researchers developed Compute-Aware Tree Search (CATS). CATS is an Advantage Actor-Critic (A2C) framework designed to dynamically manage the "thinking budget" during inference.

Because generalization error cannot be measured directly in real-time, CATS utilizes parameter sparsity (the ratio of near-zero weights in the PRM) as a proxy. The authors discovered that structural sparsity in a PRM correlates strongly with its test-time error; models with more efficient, sparse representations tend to generalize better.

The CATS Architecture:

  • The Actor: This component observes the current state—including reward distributions, model sparsity, and the remaining compute budget—to determine sampling hyperparameters such as $top-k$, $top-p$, temperature, and the branching factor for the search tree.
  • The Critic: This component evaluates the potential utility of the actor's decisions, guiding the search toward the most promising reasoning branches to ensure the budget is spent where it matters most.

Experimental Results

The framework was tested across several rigorous benchmarks, including MATH500, AIME24, and GSM8K, using various policy models (Qwen 2.5, Llama 3.1/3.2) and PRMs (Math-Shepherd, Skywork).

  • Superior Efficiency: CATS consistently outperformed standard baselines like Best-of-N, Beam Search, and Majority Voting. It achieved higher accuracy while utilizing the same or less compute than traditional methods.
  • State-of-the-Art Performance: When paired with a Qwen2.5-7B model, CATS reached 98.0% accuracy on the GSM8K benchmark, surpassing the performance of much larger 72B parameter models using standard search techniques.
  • Dynamic Adaptation: The experiments confirmed that the "reward gap" is a vital signal. A narrow gap between top-scoring paths indicates PRM uncertainty, prompting CATS to initiate more diverse sampling to find a clearer solution.

Conclusion and Future Work

This research demonstrates that the effectiveness of test-time reasoning is fundamentally tied to reward model generalization. By using sparsity as a proxy for reliability, the CATS framework provides a robust method for compute-aware reasoning.

While the current work focuses on mathematical reasoning, the authors suggest that future iterations could extend to domains like code generation or creative writing. Additionally, future research may explore more complex proxies for generalization that move beyond the i.i.d. (independent and identically distributed) assumptions of current PAC-Bayes bounds, accounting for the compounding errors inherent in multi-step reasoning.

Summary updated

BibTeX
@misc{song2025reward,
  author = {Zeen Song and Wenwen Qiang and Siyu Zhao and Changwen Zheng and Gang Hua},
  title = {{Reward Model Generalization for Compute-Aware Test-Time Reasoning}},
  year = {2025},
  eprint = {2505.18065},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.18065},
}
Figure