Reinforcement learning (RL) has become an important component in large language models (LLMs). However, existing RL approaches focus on final outputs or textual solution trajectories, leading to coarse-grained rewards and unreliable reasoning. Such paradigms focus mainly on what the model outputs while overlooking how the model internally reasons. Therefore, can we reward how a model thinks internally rather than merely what it says? We first reveal the problem of textual reward aliasing in existing reward modeling approaches. Motivated by this, we propose the Attention Process Reward Model (APRM), which assigns internal rewards based on hidden states and attention maps to capture high-quality reasoning patterns. With only approximately 46M parameters, APRM is trained using ranking and counterfactual objectives, and its reward guides RL optimization while being periodically updated to handle distribution shifts. Integrated with representative RL methods, APRM achieved an average pass@8 gain of 2.88%. Our results demonstrate the promise of incorporating internal reasoning signals into RL for LLMs.
Figures & tables
Figure 1: Comparison of outcome rewards, textual process rewards, and APRM.
Figure 2: Architecture of APRM.
Figure 3: APRM-enhanced reinforcement learning workflow.APRM computes an internal process advantage from its reward scores and combines it with the outcome-based advantage, while being periodically refreshed to mitigate distribution shift.
Model
Acc
S-Acc
Score
S-Score
Qwen3-1.7b-Base
78.55%
62.54%
0.4984
-0.9645
w/o Lcf
76.43%
76.16%
-0.1063
-0.4836
Qwen3-4b-Base
85.33%
75.72%
-0.2145
-1.0180
Table 1: Attention shuffle robustness analysis of APRM. Columns starting with ’S-’ indicate results after attention shuffling.
Figure 4: Stratified Pearson correlations between APRM scores and proxy quality signals within correct and incorrect samples on Qwen3-1.7b-Base and Qwen3-4b-Base backbones.
Figure 5: Concept-level representation differences between correct and incorrect reasoning trajectories.
Figure 6: Representative concept-level attribution for correct and incorrect rollouts from the same problem.
Method
AIME2025
AMC
MATH500
Olympiad
Average
avg@8
pass@8
avg@8
pass@8
avg@8
pass@8
avg@8
pass@8
avg@8
pass@8
Qwen3-1.7b-Base
Base
1.67%
10.00%
27.81%
60.00%
47.40%
75.80%
20.77%
41.99%
24.41%
46.95%
GRPO
5.00%
20.00%
39.69%
65.00%
61.43%
78.60%
27.32%
46.88%
33.36%
52.62%
GSPO
3.75%
13.33%
40.94%
72.50%
61.32%
78.40%
26.80%
47.03%
33.20%
52.82%
GPG
5.83%
20.00%
39.38%
67.50%
63.10%
80.00%
29.53%
50.15%
34.46%
54.41%
Table 2: Performance comparison of different RL algorithms and APRM-enhanced variants. Best results are highlighted in bold. Δ indicates the performance change of the method by applying the APRM.
β
AIME2025
AMC
MATH500
avg@8
pass@8
avg@8
pass@8
avg@8
pass@8
0.1
5.83%
26.67%
41.88%
67.50%
61.55%
79.00%
0.2
4.58%
16.67%
41.25%
72.50%
60.88%
77.40%
0.3
6.25%
26.67%
42.50%
67.50%
61.82%
80.00%
0.4
5.83%
23.33%
40.31%
70.00%
60.62%
76.80%
0.5
5.00%
20.00%
39.69%
62.50%
61.78%
78.40%
Table 3: Ablation study on different β on Qwen3-1.7b-base.
Figure 10
Method
Mathematical Reasoning
Code Generation
AIME2025
AMC
MATH500
Olympiad
Average
LiveCodeBench v5
HumanEval
Average
avg@8
pass@8
avg@8
pass@8
avg@8
pass@8
avg@8
pass@8
avg@8
pass@8
avg@8
pass@8
avg@8
pass@8
avg@8
pass@8
Qwen3.5-2b
Instruct
10.42
20.00
50.31
77.50
68.23
85.20
39.32
61.28
42.07
61.00
10.08
21.15
54.88
79.88
32.48
50.51
GRPO
20.83
33.33
66.25
85.00
75.78
87.60
48.50
64.39
52.84
67.58
–
–
–
–
–
–
DAPO
21.67
33.33
72.50
90.00
79.35
88.60
52.36
66.91
56.47
69.71
14.02
23.30
61.59
83.54
37.80
53.42
Table 5: Generalization experiments across models and tasks.
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 8: Additional APRM case study 1.
Figure 9: Additional APRM case study 2.
Figure 10: Additional APRM case study 3.
Figure 11: Loss curve during APRM training.
Number of Concepts
Concepts
16
32
64
128
Rank Acc. (%)
72.68
73.38
78.55
72.82
Layer Index
Layer
4
6
8
12
Rank Acc. (%)
72.31
72.59
78.55
73.17
Appendix
Table 6: Ablation results of different numbers of concepts and layers.
Architecture
Parameters
Code Acc.
Math Acc.
APRM
44.251M
75.56%
91.93%
APRM w/o GAT
44.251M
75.31%
90.95%
Hidden MLP
44.128M
71.42%
84.39%
Appendix
Table 7: Architectural ablation of APRM on Qwen3.5-2B. Ranking accuracy is evaluated on code generation and mathematical reasoning.
Method
Model
Category
Type
AIME
AMC23
MATH
Olympiad
Average
GPG
Qwen3-1.7b-Base
Correct
Baseline
1009.00
715.00
453.00
629.50
701.62
Ours
835.00
701.50
450.00
659.00
661.38
Δ
-17.24%
-1.89%
-0.66%
+4.69%
-5.74%
Incorrect
Baseline
1031.00
908.00
782.00
882.50
900.88
Ours
983.00
946.00
757.50
852.00
884.62
Δ
-4.66%
+4.19%
-3.13%
-3.46%
-1.80%
Appendix
Table 8: Median response length across benchmarks. Δ denotes the relative difference of ours compared with the baseline.
ΔiAPRM=siAPRM−G1∑j=1GsjAPRM
Appendix
Algorithm 1 APRM-enhanced reinforcement learning
Figure 12: Residual information test for APRM. The two panels show the residual correlation between APRM score and LLM-judged process quality after controlling for correctness, response length, and prompt fixed effects.
Process rewards have been widely used in deep reinforcement learning to improve training efficiency, reduce variance, and prevent reward hacking. In LLM reasoning, existing works also explore various solutions for learning effective process reward models (PRM) with or without the help of an expert policy. However, existing methods either rely on strong assumptions about the expert policies (e.g., requiring their reward functions) or suffer intrinsic limitations (e.g., entropy collapse), resulting in weak PRMs or limited generalizability. In this paper, we introduce rePIRL, an inverse RL-inspired framework that learns effective PRMs with minimal assumptions about expert policies. Specifically, we design a dual learning process that updates the policy and the PRM interchangeably. Our learning algorithm has customized techniques to address the challenges of scaling traditional inverse RL to LLMs. We theoretically show that our proposed learning framework can unify both online and offline PRM learning methods, justifying that rePIRL can learn PRMs with minimal assumptions. Empirical evaluations on standardized math and coding reasoning datasets demonstrate the effectiveness of rePIRL over existing methods. We further show the application of our trained PRM in test-time training, test-time scaling, and providing an early signal for training hard problems. Finally, we validate our training recipe and key design choices via a detailed ablation study.
Xian Wu, Kaijie Zhu, Ying Zhang +2
Meta AI · Department of Computer Science, University of California, Santa Barbara · Independent Researcher +1
Recent RL methods have substantially improved the reasoning abilities of LLMs. Existing reward designs mainly follow two paradigms: (1) Reinforcement learning with verifiable rewards (RLVR) derives outcome signals from executable checks or ground-truth answers, but provides limited guidance for intermediate reasoning behaviors. (2) Rubrics-as-reward (RaR) goes beyond final-answer checking by using natural-language rubrics to assess reasoning quality and task compliance, but often requires instance-specific rubrics and substantial design effort. To address these issues, we introduce Metacognition-as-Reward (MaR), a metacognition-inspired RL framework that guides LLM reasoning through two general process dimensions: i) metacognitive knowledge, which identifies task-relevant information without hand-crafted instance-specific rubrics, and ii) metacognitive regulation, which plans and adjusts the reasoning process to provide reward guidance beyond final-answer outcomes. MaR scaffolds model rollouts into explicit metacognitive components and optimizes them with a trajectory-level reward over task knowledge coverage, regulation fidelity, and final-answer correctness. In this way, MaR extends reward feedback to reasoning trajectories while grounding the reward signals in general metacognitive dimensions. Experiments on 22 benchmarks show that MaR consistently improves model performance, achieving up to a 7.7% gain over the base model and up to an 11.0% gain over vanilla DAPO. Notably, Qwen3.5-9B + MaR narrows the gap to frontier models, surpassing GPT-OSS-120B on overall average and outperforming stronger models on several individual benchmarks. Process-level analysis further shows substantial improvements in reasoning process quality. MaR also generalizes to out-of-domain datasets, where MaR-trained models improve over their corresponding base models on average.
Sirui Chen, Lei Xu, Yuying Zhao +6
1Tongji University · 2Shanghai AI Laboratory · 3Nanyang Technological University +3
Large Language Models (LLMs) demonstrate transformative potential, yet their reasoning remains inconsistent and unreliable. Reinforcement learning (RL)-based fine-tuning is a key mechanism for improvement, but its effectiveness is fundamentally governed by reward design. Despite its importance, the relationship between reward modeling and core LLM challenges--such as evaluation bias, hallucination, distribution shift, and efficient learning--remains poorly understood. This work argues that reward modeling is not merely an implementation detail but a central architect of reasoning alignment, shaping what models learn, how they generalize, and whether their outputs can be trusted. We introduce Reasoning-Aligned Reinforcement Learning (RARL), a reasoning-centric taxonomic perspective that organizes diverse reward paradigms for multi-step reasoning. Within this perspective, we present a taxonomy of reward mechanisms, analyze reward hacking as a pervasive failure mode, and examine how reward signals unify challenges ranging from inference-time scaling to hallucination mitigation. We further critically evaluate existing benchmarks, highlighting vulnerabilities such as data contamination and reward misalignment, and outline directions for more robust evaluation. By integrating fragmented research threads and clarifying the interplay between reward design and fundamental reasoning capabilities, this work provides a foundational roadmap for building reasoning models that are robust, verifiable, and trustworthy.
Pei-Chi Pan, Yingbin Liang, Sen Lin
Department of Computer Science University of Houston · The Ohio State University · University of Houston