Paper walkthrough · AAAI 2026
SARM
Decomposing a language model’s reward into features
Interpretable Reward Model via Sparse AutoencoderZhang et al. · AAAI 2026
From sparse autoencoders to SARM’s architecture, training, and experiments
The task
Two answers, one scalar each
Prompt
How many seconds are there in two and a half minutes?
2.5 × 60 = 150 seconds.
150 seconds.
A human or annotator chooses the preferred answer. The reward model learns to reproduce that choice.
r(x, y) ∈ ℝ
What the model outputs
A number for each answer in the context of the prompt.
The paper’s question
Which features increased or decreased that number?
Introduction to SAE
Features can share coordinates
The dashed line shows the sum d₁ + d₂. It is twice as long as d₃.
A neuron or coordinate can help encode several features. We look for directions in activation space.
v ≈ bpre + ∑i zidi
The vector (2; 0) can be built as d₁ + d₂ or as 2d₃. An overcomplete dictionary allows several decompositions.
The SAE assumption. A small part of the dictionary suffices for each example.
Introduction to SAE
Two linear layers and TopK
The encoder scores features
u = Wenc(v − bpre) + blat
z = TopK(u)
A row of Wenc scores one feature. TopK keeps the k largest values.
The decoder sums directions
v̂ = Wdecz + bpre
= bpre + ∑i zidi
Column di of Wdec is a feature direction in the original space.
Introduction to SAE · toy example
What TopK actually zeros out
Input v = (3; 1). Take three rows of a toy matrix Wenc and multiply each by v.
| A row of Wenc | Dot product | Output |
|---|---|---|
| (0.5; 0.5) | 0.5 × 3 + 0.5 × 1 | u₁ = 2 |
| (0.5; −0.5) | 0.5 × 3 − 0.5 × 1 | u₂ = 1 |
| (0; 0.2) | 0 × 3 + 0.2 × 1 | u₃ = 0.2 |
v̂ = z₁d₁ + z₂d₂ + z₃d₃. Thin arrows show dictionary directions.
Introduction to SAE
Learning the dictionary through reconstruction
ℒrec = ‖v − v̂‖²
- Take vector v from a frozen Llama.
- The encoder computes z; the decoder reconstructs v̂.
- Update both SAE matrices using reconstruction error.
One decoder step
v = (2; 2), z₁ = 2, d₁ = (1; 0.5)
v̂ = (2; 1) · residual (0; 1)
∇d₁ ℒ = −z₁(v − v̂) = (0; −2)
A step size of 0.25 gives d₁′ = (1; 1).
The calculation on the right uses ½ the squared error and holds z fixed for one step.
From reward modeling to SARM
Why introduce SAE features?
Attributes from annotations
Define clear quality dimensions and train the model to score each one.
Features from activations
SARM pretrains a dictionary without attribute labels, then learns a scalar score from preference pairs.
SARM architecture
Two training stages, one reward
1. Reconstruction. The SAE learns to reconstruct the final position’s activation.
2. Preferences. The encoder is frozen; the retained Llama blocks and the head learn to score answers.
SARM-4B architecture
Which Llama vector do we use?
Base: Llama-3.1-8B-Instruct
Produce hidden states
Discarded
In causal Llama, the final position can attend to the entire prompt and answer.
One score from all positions
The code applies the same SAE and head to every position’s vector. It returns score r₃ from the <|eot_id|> position.
Stage 1 · SAE pretraining
Which activations does the SAE reconstruct?
Sequence-level · main method
Take one hidden state from the final position of each sequence.
hlast → SAE → ĥlast
Token-level · ablation
Take hidden states from several token positions. Reconstruct each vector separately.
ht → SAE → ĥt for selected t
Stage 2 · reward modeling
What stays frozen during RM training?
Two passes with shared weights
(x, y⁺) → z⁺ → r⁺
(x, y⁻) → z⁻ → r⁻
Gradients pass through the fixed encoder to Llama.
Why the feature index matters
Coordinate i stays tied to the same row of Wenc. As Llama is updated, its input and activation can change.
This pass uses neither the SAE decoder nor reconstruction loss.
Training · Bradley–Terry
Bradley–Terry for a pair of answers
What the model compares
Δr = r⁺ − r⁻
P(chosen ≻ rejected) = σ(Δr)
r⁺ and r⁻ score the chosen and rejected answers to the same prompt. When Δr > 0, the model ranks the chosen answer higher.
What we minimize
ℒ = −log σ(Δr)
The more confidently the model prefers the chosen answer, the smaller the loss.
Δr = ∑i wi(zi⁺ − zi⁻)
Equal feature activations contribute equally to both scores. These contributions cancel in the difference.
Inference
From tokens to reward contributions
ci = wizi r = ∑i ci
For an answer, sort active ci by magnitude and inspect positive and negative contributions separately.
One linear head
Linear(65536, 1, bias=False)
A contribution depends on both activation and weight. A weight with zero activation adds nothing to this answer’s score.
RQ1 · interpretation
How GPT-4o describes a latent
What does “a list for i” mean?
Snippet A strongly activates #7 and #21; snippet B activates #7. For #7, keep both snippets with their activations.
What GPT-4o sees
The strongest examples for one latent. The script selects snippets at phrase or answer boundaries. GPT-4o returns a description and a coherence score from 1 to 5.
| Latent | Description from activating texts | Head weight wᵢ |
|---|---|---|
| #58353 | Calculations and programming | +8.01 × 10⁻⁴ |
| #60427 | Ethics, privacy, respectful communication | +7.06 × 10⁻⁴ |
| #13950 | Offensive or provocative tone | −8.28 × 10⁻⁴ |
Group examples by index i and sort each list by activation zₜ,ᵢ. Weight wᵢ is used to compute the reward contribution.
Reward steering · toy example
How one weight changes an answer’s score
Prompt “Can I publish someone’s phone number without consent?”
“Ask for consent first.” The Safety latent is active, zᵢ = 1.
“Publish it now.” The Safety latent is inactive, zᵢ = 0.
Original weight wᵢ = 1. The slider multiplies it by α. Contributions from other latents are already computed.
| Answer | Other contributions | Safety contribution after edit | Before edit | After edit |
|---|---|---|---|---|
| A | 0 | 3 × 1 = 3 | 1 | 3 |
| B | 2 | 0 for any α | 2 | 2 |
The labels prefer A. The original model ranks B higher. After the edit, A ranks above B.
RQ2 · intervention
Finding and testing the Safety latent
1. Select on RM-Bench Safety
For each pair, extract z⁺ and z⁻ at the final position. For each latent, sum activations separately over chosen and rejected answers.
Aᵢ⁺ = ∑ zᵢ⁺ Aᵢ⁻ = ∑ zᵢ⁻
sᵢ = (Aᵢ⁺ − Aᵢ⁻) / (Aᵢ⁺ + Aᵢ⁻ + C₀)
C₀ is the mean of Aᵢ⁺ + Aᵢ⁻ over all latents, plus ε. Select the index with the highest sᵢ.
2. Test on RewardBench 2
Amplify the selected latent’s contribution. Score each existing answer with both the original and modified models.
Target set T
Chosen answers to Safety prompts.
Other answers C
Rejected Safety answers and answers from other categories.
RQ2 · original Figure 3
How reward distributions shifted
RQ3 · measuring quality
What RewardBench 2 measures
One prompt, four candidates
In five subsets, select the answer with the highest reward. Accuracy is measured against one reference winner.
Ties: tests separation of correct and incorrect answers, as well as score similarity among correct answers.
Categories
- Factuality
- Precise IF
- Math
- Safety
- Focus
- Ties
Precise IF tests exact instruction following. Focus measures adherence to the prompt’s focus.
RQ3 · Table 1
SARM-4B scores 73.6 Overall
Selected models from Table 1. The horizontal scale runs from 60 to 76.
+1.1 pp
over LDL-Reward-Gemma-2-27B, the closest model in the table.
+1.8 pp
over Skywork-Llama-8B-v0.2.
4.3B parameters
The first 16 Llama blocks and a sparse representation for the head.
RQ3 · Table 1
Where SARM leads and trails
| Category | SARM-4B | Skywork 8B | Δ vs Skywork, pp | Best in Table 1 |
|---|---|---|---|---|
| Factuality | 68.5 | 69.7 | -1.2 | GPT-4.1 · 82.9 |
| Precise IF | 42.5 | 40.6 | +1.9 | Gemini 2.5 Pro · 46.9 |
| Math | 63.9 | 60.1 | +3.8 | Claude Sonnet 4 · 70.5 |
| Safety | 91.3 | 94.2 | -2.9 | RAMO · 97.6 |
| Focus | 96.0 | 94.1 | +1.9 | SARM-4B · 96.0 |
| Ties | 79.6 | 71.7 | +7.9 | GPT-4.1 · 85.4 |
Focus · 96.0
The highest score in this category among models in Table 1.
Safety · 91.3
Answer-selection accuracy of the original SARM. Skywork scores 94.2; RAMO scores 97.6.
RQ3 · Table 2
Testing two architecture choices
Overall · 0–100 · all variants have 4.3B parameters.
| Variant | Overall | Factuality | Precise IF | Math | Safety | Focus | Ties |
|---|---|---|---|---|---|---|---|
| Random projection | 68.4 | 65.7 | 38.4 | 64.5 | 88.9 | 88.2 | 64.9 |
| Token-level SAE | 71.5 | 68.0 | 40.6 | 62.3 | 92.9 | 92.5 | 72.5 |
| Sequence-level SAE · SARM-4B | 73.6 | 68.5 | 42.5 | 63.9 | 91.3 | 96.0 | 79.6 |
Takeaways
What SARM’s experiments show
Attribution
For each answer, compute the exact contribution of an active latent, wᵢzᵢ. Its verbal description comes from activating examples.
Weight editing
Amplifying one Safety latent raised scores for some chosen Safety answers. The other answers retained the main shape of their score distribution.
Quality
The original SARM-4B scored 73.6 Overall on RewardBench 2. The token-activation ablation scored 71.5.
Appendix · links
Paper, weights, code, and data
Links open in a new tab.
SARM
SAE and related methods
Training and evaluation
Appendix · Table 1, part 1
RewardBench 2 · open baselines
| Model | Size | Overall | Factuality | Precise IF | Math | Safety | Focus | Ties |
|---|---|---|---|---|---|---|---|---|
| ArmoRM-Llama3-8B-v0.1 | 7.5B | 66.5 | 65.7 | 41.9 | 66.1 | 82.2 | 76.6 | 66.3 |
| GRM-Llama3-8B-rewardmodel-ft | 7.5B | 67.7 | 62.7 | 35.0 | 58.5 | 92.2 | 89.3 | 68.2 |
| Llama-3.1-Tulu-3-8B-RL-RM-RB2 | 7.5B | 68.7 | 76.4 | 40.0 | 61.7 | 86.4 | 84.8 | 62.8 |
| RAMO-Llama3.1-8B | 7.5B | 69.2 | 65.5 | 37.5 | 56.3 | 97.6 | 90.7 | 67.5 |
| QRM-Llama3.1-8B-v2 | 7.5B | 70.7 | 66.5 | 40.6 | 61.2 | 94.7 | 89.1 | 72.3 |
| Skywork-Llama-8B-v0.2 | 7.5B | 71.8 | 69.7 | 40.6 | 60.1 | 94.2 | 94.1 | 71.7 |
| LDL-Reward-Gemma-2-27B-v0.1 | 27B | 72.5 | 75.6 | 35.0 | 64.5 | 92.2 | 91.3 | 76.3 |
| Llama-3.1-Tulu-3-70B-SFT-RM-RB2 | 70B | 72.2 | 80.8 | 36.9 | 67.8 | 86.9 | 77.8 | 83.1 |
LDL Gemma 27B learns to predict distributions of human ratings and aggregate them into one score.
Appendix · Table 1, part 2
RewardBench 2 · closed models and SARM
| Model | Size | Overall | Factuality | Precise IF | Math | Safety | Focus | Ties |
|---|---|---|---|---|---|---|---|---|
| Closed baselines | ||||||||
| GPT-4o | – | 64.9 | 56.8 | 33.1 | 62.3 | 86.2 | 72.9 | 78.2 |
| Gemini 2.5 Pro | – | 67.8 | 65.3 | 46.9 | 53.4 | 88.1 | 83.1 | 69.7 |
| Claude Sonnet 4 | – | 71.2 | 76.1 | 35.9 | 70.5 | 89.1 | 76.0 | 79.4 |
| GPT-4.1 | – | 72.3 | 82.9 | 39.7 | 65.2 | 87.3 | 73.4 | 85.4 |
| SARM | ||||||||
| SARM-2B | 2.0B | 62.5 | 55.6 | 35.6 | 60.7 | 84.9 | 82.4 | 56.0 |
| SARM-3B | 2.7B | 64.2 | 58.6 | 34.4 | 62.8 | 87.3 | 86.3 | 55.6 |
| SARM-4B | 4.3B | 73.6 | 68.5 | 42.5 | 63.9 | 91.3 | 96.0 | 79.6 |
SARM-4B is the release name. The paper lists 4.3 billion parameters.
Appendix · Table 3
What varies and what stays fixed
Llama-3.2-3B-Instruct · 28 blocks, d = 3,072. Reference: layer 14, 16× = 49,152 latents, k = 144.
Depth sweep
Fix 49,152 latents and k = 144
Width sweep
Fix layer 14 and k = 144
Sweep k
Fix layer 14 and 49,152 latents
| Configuration | Size | Overall | Factuality | Precise IF | Math | Safety | Focus | Ties |
|---|---|---|---|---|---|---|---|---|
| Depth 7 | (1.1+0.15) B | 36.21 | 37.26 | 31.25 | 46.72 | 43.77 | 38.78 | 19.51 |
| Depth 10 | (1.4+0.15) B | 53.55 | 49.89 | 31.87 | 49.18 | 82.88 | 67.47 | 38.70 |
| Depth 14 | (1.8+0.15) B | 62.52 | 55.57 | 35.62 | 60.65 | 84.88 | 82.42 | 55.97 |
| Depth 21 | (2.5+0.15) B | 64.17 | 58.63 | 34.37 | 62.84 | 87.33 | 86.26 | 55.60 |
| Depth 28 | (3.2+0.15) B | 62.94 | 57.68 | 36.25 | 61.20 | 85.50 | 80.80 | 56.19 |
| Width 8× · 24,576 | (1.8+0.08) B | 63.04 | 59.36 | 38.12 | 59.01 | 87.11 | 82.62 | 52.01 |
| Width 12× · 36,864 | (1.8+0.11) B | 62.55 | 60.21 | 34.37 | 61.20 | 86.11 | 81.61 | 51.82 |
| Width 16× · 49,152 | (1.8+0.15) B | 62.52 | 55.57 | 35.62 | 60.65 | 84.88 | 82.42 | 55.97 |
| Width 24× · 73,728 | (1.8+0.23) B | 63.85 | 58.31 | 35.87 | 63.38 | 87.55 | 82.22 | 54.79 |
| Width 32× · 98,304 | (1.8+0.30) B | 62.94 | 57.68 | 36.25 | 61.20 | 85.55 | 80.80 | 56.19 |
| k = 48 | (1.8+0.15) B | 61.99 | 56.42 | 34.37 | 62.29 | 84.22 | 82.82 | 51.84 |
| k = 96 | (1.8+0.15) B | 62.18 | 55.15 | 34.37 | 61.20 | 84.88 | 86.26 | 51.24 |
| k = 144 | (1.8+0.15) B | 62.52 | 55.57 | 35.62 | 60.65 | 84.88 | 82.42 | 55.97 |
| k = 196 | (1.8+0.15) B | 62.43 | 54.73 | 34.37 | 58.46 | 88.77 | 80.00 | 58.22 |
| k = 240 | (1.8+0.15) B | 62.89 | 60.31 | 35.00 | 57.65 | 88.00 | 70.77 | 58.59 |
SARM-4B uses a different base: Llama-3.1-8B-Instruct. Layer 16, 16× of 4,096 = 65,536 latents, k = 192.
Appendix · Gao et al.
TopK and reconstruction accuracy
Left · 32,768 dictionary directions
X: number of directions used per input (L₀). At the same number of active latents, TopK reconstructs more accurately than ReLU and ProLU.
Right · 128 active directions
X: number of directions available in the dictionary. Moving right offers more choices, while 128 remain active per input.