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.