TLDR: ContextPRM is a new Process Reward Model (PRM) that improves large language models’ (LLMs) reasoning abilities across various domains, including non-mathematical ones like law and philosophy. Unlike previous PRMs that focused on domain-specific correctness, ContextPRM emphasizes “contextual coherence” – how logically one reasoning step follows another. This is achieved through a novel context-aware training method and a new annotation standard. ContextPRM shows significant accuracy improvements (6.5%) in non-math domains, outperforming prior models, and demonstrates strong generalization capabilities even when trained on limited single-domain data.
Large language models (LLMs) have shown impressive reasoning abilities, especially when enhanced by techniques like test-time scaling (TTS). A key component of TTS is the use of Process Reward Models (PRMs), which verify reasoning steps to improve the quality of generated solutions. While PRMs have excelled in mathematical tasks, their performance in other domains like law, history, or philosophy has been limited due to a lack of specific training data and a focus on domain-specific knowledge.
A new research paper introduces ContextPRM, an innovative approach designed to overcome these limitations. Instead of focusing on verifying domain-specific knowledge, ContextPRM shifts its learning objective to model the domain-agnostic logical flow and contextual coherence between steps in a chain of thought (CoT). This means it learns to evaluate how well one reasoning step logically follows from the previous one, rather than just checking if each step is individually correct in isolation.
The Problem with Traditional PRMs
Traditional PRMs often treat each reasoning step as an isolated unit, classifying it as correct or incorrect based on the preceding context. However, as reasoning chains grow longer, it becomes difficult for these models to pinpoint the true cause of errors or to grasp the subtle contextual logic relevant to the current step. This can lead to a failure in distinguishing between simple factual errors and deeper logical inconsistencies within the overall reasoning process.
ContextPRM’s Novel Approach
ContextPRM addresses this by introducing a “Context-Aware Training Method” and a new “Context-Coherence-Based CoT Annotation” standard. The training method constructs a composite contextualized representation for each reasoning step, explicitly providing the model with the preceding step as direct context. This forces the model to focus on the logical validity of transitions between steps, rather than just their isolated correctness.
The new annotation standard is crucial because it aligns the supervision signal with the context-aware training. It categorizes steps not just as factually incorrect, but also as logically flawed or unfounded within the broader reasoning chain. For example, a step might be factually correct but still “Bad” if it represents a logical fallacy or misdirection. This stricter standard helps the model learn more precise logical consistency.
Impressive Results Across Diverse Domains
The empirical evidence for ContextPRM is compelling. When evaluated across nine non-mathematical domains in MMLU-Pro, including law, history, and philosophy, ContextPRM achieved a significant 6.5% average accuracy improvement over the majority voting baseline using weighted majority voting. This substantially surpasses previous state-of-the-art models like VersaPRM, which showed a 2.2% improvement, and other mathematics-focused PRMs with only 0.5% gains. Importantly, ContextPRM also maintains competitive performance in mathematical domains, demonstrating its versatility.
Ablation studies further highlight the synergistic effect of ContextPRM’s training and labeling methods. While individual components offer some gains, their combined integration yields the most substantial improvements, particularly in non-math-adjacent domains. The research also found that training ContextPRM on single, logic-intensive non-math domains (like philosophy or psychology) still led to strong multi-domain generalization, often outperforming models trained on the full dataset of previous methods. This suggests that by focusing on domain-agnostic logical coherence, the model learns transferable reasoning skills.
Also Read:
- CLPO: A Self-Evolving Learning Approach for Enhanced LLM Reasoning
- Empowering AI to Recognize Its Own Limits in Complex Reasoning
A Step Towards More General AI Reasoning
The development of ContextPRM marks a significant step towards building more general and robust process reward models. By shifting the focus from domain-specific knowledge verification to the universal principles of logical flow and contextual coherence, this approach enables LLMs to reason more effectively across a wide array of disciplines. This work suggests that understanding the structure of reasoning itself, rather than just its content, is a highly promising direction for future AI advancements. You can read the full research paper here.


