}
+
+--------------------------
+
+{role: user, content: prompt}
+
+## Fluency Judge Prompt Example
+
+Here are four ideas submitted to the _“Good Scientific Ideas”_ Competition, all related to keyword: **Idea 1:** _{{_ A _}}_ **Idea 2:** _{{_ B _}}_ **Idea 3:** _{{_ C _}}_ **Idea 4:** _{{_ D _}}_ **Question:**
+
+Evaluate the similarity between the four ideas that both relate to keyword. Please choose the best answer: A. Completely different ideas addressing different problems, despite relating to the same keyword. B. Different ideas but addressing similar problems.
+
+- C. Similar ideas addressing similar or identical problems.
+
+D. Academically identical ideas with the same core approach and problem statement. **ONLY ANSWER A/B/C/D, DO NOT EXPLAIN.**
+
+## B.2 EVALUATION ACROSS STEERING LAYERS
+
+We set the random seed to 42 for all experiments. We conduct experiments to investigate the impact of modifying the steering layers on the performance of the proposed algorithm. For simplicity, we sample 10% of each dataset to select the optimal layer for steering.
+
+To identify optimal steering layers, we systematically evaluated layers 0-17 for Gemma-1.1-2b-it and layers 0-27 for Qwen3-1.7b. For each layer, we calculated the mean values across five evaluation metrics: Syntax Correctness, Executable Correctness, Assertion Correctness, Overall Coverage Line, and Overall Coverage Branch. Subsequently, we ranked the layers by their performance on each metric and computed the average rank across all metrics. The layer achieving the lowest average rank was designated as exhibiting superior overall performance and selected for further experiments. See Table 3 and Table 4 for the ranking results.
+
+20
+
+Table 3: Layer ranking for model Gemma-1.1-2b-it based on multiple evaluation metrics. The Average represents the average ranking across these metrics, with lower values indicating better overall performance.
+
+|**Layer**|**Correctness**
**Syntax**
**Executable**
**Assertion**|**Overall Coverage**
**Line**
**Branch**|**Average**|
+|---|---|---|---|
+|3
2
1
1
2
2
1.6
16
7
5
5
1
1
3.8
15
6
6
6
4
4
5.2
4
14
2
2
6
6
6
11
3
8
7
7
10
7
2
8
4
4
9
10
7
17
5
14
14
3
3
7.8
8
4
3
3
16
16
8.4
9
1
8
7
14
14
8.8
1
8
12
12
7
6
9
5
12
13
13
5
5
9.6
0
13
7
9
9
12
10
7
15
11
11
9
6
10.4
14
11
10
10
15
15
12.2
13
10
15
15
9
12
12.2
6
18
16
16
9
6
13
10
17
17
17
18
16
17
12
16
18
18
16
18
17.2||||
+
+Table 5 shows the results when extracting the hidden states from layers 10 and 30 with _C ∈ {_ 0 _._ 1 _,_ 0 _._ 5 _}_ .
+
+21
+
+Table 4: Layer ranking for model Qwen3-1.7b based on multiple evaluation metrics. The Average represents the average ranking across these metrics, with lower values indicating better overall performance.
+
+|**Layer**|**Correctness**
**Syntax**
**Executable**
**Assertion**|**Overall Coverage**
**Line**
**Branch**|**Average**|
+|---|---|---|---|
+|||||
+|6
1
2
3
9
24
15
4
12
20
21
0
11
7
10
17
8
26
14
5
23
16
19
25
22
18
13
27|4
5
1
1
1
2
5
3
4
6
2
3
9
11
8
12
4
7
7
9
14
11
6
5
3
14
12
14
12
19
16
8
9
10
7
6
2
18
13
19
10
11
14
17
9
13
13
15
23
21
20
18
15
18
8
19
16
22
16
17
24
20
22
17
23
21
25
22
23
27
24
24
21
26
26
26
25
25
20
28
28
28
27
27|2
1
6
7
3
2
8
10
5
4
10
8
7
6
12
13
9
9
1
3
14
11
22
21
17
17
15
12
11
16
16
15
4
5
13
14
19
20
18
18
20
19
24
24
23
23
21
22
26
26
25
25
28
28
27
27|2.6
3.4
3.4
5.8
7.4
8.2
8.6
9.4
9.4
9.8
11.6
13.2
13.4
13.4
13.4
14.4
14.6
15.6
16.4
18.2
21
21.8
23.2
23.6
25
25.2
26.4
27.2|
+
+22
+
+Table 5: Experimental results on 10% of LiveIdeaBench dataset across different sampling temperatures on Qwen2.5-3B-Instruct. All values are reported on a scale with a maximum score of 10. Best-performing methods are highlighted in bold.
+
+|**T**|**Method**|**Originality**_↑_
**Feasibility**_↑_
**Clarity**_↑_
**Fluency**_↑_
**Flexibility**_↑_
**Avg.** _↑_|
+|---|---|---|
+||||
+|1.0|Sampling
STARS
~~0~~_._1_−_10
STARS
~~0~~_._1_−_30
STARS
~~0~~_._5_−_10
STARS
~~0~~_._5_−_30|6.22
5.50
5.78
5.42
5.61
5.71
**6.34**
5.58
5.80
5.17
5.60
5.70
6.21
**5.60**
**5.83**
5.27
5.63
5.71
6.26
5.46
5.81
**5.70**
**5.68**
**5.78**
6.30
5.54
5.80
5.27
5.63
5.71|
+||||
+|0.8|Sampling
STARS
~~0~~_._1_−_10
STARS
~~0~~_._1_−_30
STARS
~~0~~_._5_−_10
STARS
~~0~~_._5_−_30|6.20
5.55
5.76
5.02
5.50
5.60
**6.23**
5.47
5.78
5.07
5.58
5.63
6.11
**5.62**
5.82
4.97
5.55
5.61
6.21
5.51
5.80
**5.17**
**5.60**
**5.66**
6.21
5.58
**5.87**
4.97
5.55
5.63|
+||||
+|0.6|Sampling
STARS
~~0~~_._1_−_10
STARS
~~0~~_._1_−_30
STARS
~~0~~_._5_−_10
STARS
~~0~~_._5_−_30|6.07
**5.63**
5.68
4.51
5.38
5.45
6.13
5.56
**5.85**
4.58
5.40
5.51
6.15
5.60
5.84
4.23
5.37
5.44
**6.21**
5.52
5.75
4.81
5.45
**5.55**
6.14
5.55
5.71
**4.86**
**5.47**
**5.55**|
+||||
+|0.4|Sampling
STARS
~~0~~_._1_−_10
STARS
~~0~~_._1_−_30
STARS
~~0~~_._5_−_10
STARS
~~0~~_._5_−_30|6.03
5.56
5.75
3.57
5.14
5.21
6.08
5.54
5.80
4.15
5.29
5.37
6.06
**5.71**
**5.82**
4.03
5.26
5.37
**6.15**
5.46
5.76
4.76
5.44
5.51
6.01
5.61
**5.82**
**4.79**
**5.51**
**5.59**|
+||||
+|0.2|Sampling
STARS
~~0~~_._1_−_10
STARS
~~0~~_._1_−_30
STARS
~~0~~_._5_−_10
STARS
~~0~~_._5_−_30|6.04
**5.69**
5.74
2.68
4.92
5.01
6.07
5.58
5.78
3.06
5.01
5.10
6.14
5.64
5.77
3.26
5.13
5.19
6.05
5.54
5.78
4.00
5.25
5.32
**6.17**
5.56
**5.79**
**4.41**
**5.41**
**5.47**|
+
+23
+
+## B.3 COMPARE INTERVENTION POSITIONS
+
+A critical design choice in activation steering is determining where in the model architecture to apply the intervention. We investigate two natural intervention points within each transformer layer: (1) before the output projection of the attention mechanism (o ~~p~~ roj), which captures the attended representations before they are projected back to the residual dimension, and (2) the output of the MLP block, which represents the processed information after the feed-forward transformation.
+
+Table 6 shows the experimental results on TESTEVAL with Gemma-1.1-2-it across different temperatures and two intervene positions (attention and residual stream).
+
+Table 6: Experimental results on TESTEVAL across different sampling temperatures. All the numbers are in percentages. Best-performing methods are highlighted in bold. STARS RES means applying STARS to the residual stream.
+
+||**T**
**Method**
**Correctness**_↑_
**Overall cov.** _↑_
**Line**_cov_@_k ↑_
**Branch**_cov_@_k ↑_
**syntax**
**exe**
**assert**
**line**
**branch**
_k_ = 1
_k_ = 5
_k_ = 1
_k_ = 5|**T**
**Method**
**Correctness**_↑_
**Overall cov.** _↑_
**Line**_cov_@_k ↑_
**Branch**_cov_@_k ↑_
**syntax**
**exe**
**assert**
**line**
**branch**
_k_ = 1
_k_ = 5
_k_ = 1
_k_ = 5|**T**
**Method**
**Correctness**_↑_
**Overall cov.** _↑_
**Line**_cov_@_k ↑_
**Branch**_cov_@_k ↑_
**syntax**
**exe**
**assert**
**line**
**branch**
_k_ = 1
_k_ = 5
_k_ = 1
_k_ = 5|**T**
**Method**
**Correctness**_↑_
**Overall cov.** _↑_
**Line**_cov_@_k ↑_
**Branch**_cov_@_k ↑_
**syntax**
**exe**
**assert**
**line**
**branch**
_k_ = 1
_k_ = 5
_k_ = 1
_k_ = 5|**T**
**Method**
**Correctness**_↑_
**Overall cov.** _↑_
**Line**_cov_@_k ↑_
**Branch**_cov_@_k ↑_
**syntax**
**exe**
**assert**
**line**
**branch**
_k_ = 1
_k_ = 5
_k_ = 1
_k_ = 5|
+|---|---|---|---|---|---|
+|GEMMA-1.1-2B-IT|1.0|SAMPLING
STARS
RES
~~0~~_._1
STARS
RES
~~0~~_._5
STARS
~~0~~_._1
STARS
~~0~~_._5|**89.90**
1.02
0.00
87.71
**6.02**
**5.93**
26.40
0.02
0.02
86.48
1.43
1.17
79.76
3.83
3.45|0.00
0.00
33.54
30.10
0.05
0.00
10.03
9.32
**34.76**
**30.93**|0.00
0.00
31.54
32.55
0.05
0.05
9.97
10.02
**33.81**
**34.45**|
+||0.8|SAMPLING
STARS
RES
~~0~~_._1
STARS
RES
~~0~~_._5
STARS
~~0~~_._1
STARS
~~0~~_._5|**91.79**
1.19
0.00
87.71
**6.02**
**5.93**
28.81
0.00
0.00
87.83
1.45
1.12
79.43
3.79
3.45|1.44
1.41
**33.54**
**30.10**
0.00
0.00
10.77
9.88
32.96
30.02|1.37
1.42
31.54
32.55
0.00
0.00
10.64
10.72
**31.70**
**32.59**|
+||0.6|SAMPLING
STARS
RES
~~0~~_._1
STARS
RES
~~0~~_._5
STARS
~~0~~_._1
STARS
~~0~~_._5|**93.45**
1.29
0.00
90.74
**6.52**
**6.36**
24.83
0.00
0.00
89.19
1.71
1.43
79.24
3.86
3.24|3.01
2.84
33.23
29.73
0.00
0.00
12.10
11.22
**34.07**
**30.38**|2.94
2.77
31.09
32.46
0.00
0.00
12.03
12.10
**32.04**
**33.22**|
+||0.4|SAMPLING
STARS
RES
~~0~~_._1
STARS
RES
~~0~~_._5
STARS
~~0~~_._1
STARS
~~0~~_._5|**95.40**
1.36
1.26
90.83
**6.55**
**6.38**
27.50
0.00
0.00
90.43
1.48
1.43
80.31
4.38
4.00|2.33
2.31
32.45
29.32
0.00
0.00
8.44
7.69
**40.03**
**35.96**|2.29
2.32
30.90
31.77
0.00
0.00
8.41
8.44
**38.39**
**39.35**|
+||0.2|SAMPLING
STARS
RES
~~0~~_._1
STARS
RES
~~0~~_._5
STARS
~~0~~_._1
STARS
~~0~~_._5|**95.64**
1.36
1.36
90.67
**6.33**
**6.21**
28.14
0.02
0.00
91.52
1.45
1.26
78.93
4.38
4.02|1.44
1.41
31.09
27.62
0.03
0.00
7.28
6.50
**39.03**
**35.05**|1.37
1.42
30.21
30.60
0.03
0.03
7.23
7.25
**37.38**
**38.67**|
+
+These findings indicate that while MLP-based interventions can be effective at moderate steering strengths for improving execution correctness, attention-based interventions (before o ~~p~~ roj) offer better robustness and scalability for maximizing test coverage. The attention mechanism appears to provide a more stable intervention point that tolerates stronger perturbations without catastrophic degradation in output quality. This may be because intervening before the output projection allows the model’s subsequent layers to better adapt and compensate for the perturbation. Based on these results, we adopt attention-based intervention (before o ~~p~~ roj) as our default approach throughout the paper.
+
+24
+
+## B.4 ADDITIONAL BASELINE METHODS
+
+To further validate the effectiveness of our approach, we compare against additional baseline methods that provide alternative strategies for controlling model behavior during generation. Specifically, we evaluate two natural baselines. The first one is **RAND** , which applies randomly sampled steering vectors to explore the impact of arbitrary directional interventions. The second one is **HMEAN** , which uses steering vectors computed as the mean offset from a mean point to test whether spreading activations uniformly from a central location improves diversity. Specifically, with a set of activations _{hi}[N] i_ =1[, we first compute the mean][ ¯] _[h]_[ =] _N_ 1 � _Ni_ =1 _[h][i]_[.][With a scalar] _[ α >]_[ 0][, the steering vector] for the _i_ -th path is _vi_ = _α ∥hhii−−h_[¯] _h_[¯] _∥_ 2[.]
+
+Table 7 shows the experimental results on TESTEVAL with GEMMA-1.1-2-IT across five temperature settings T _∈{_ 0.2, 0.4, 0.6, 0.8, 1.0 _}_ . We compare vanilla temperature sampling against RAND and MEAN baselines at two steering strengths (0.1 and 0.5), as well as our proposed STARS method.
+
+Table 7: Experimental results on TESTEVAL across different sampling temperatures. All the numbers are in percentages. Best-performing methods are highlighted in bold.
+
+||**T**
**Method**
**Correctness**_↑_
**Overall cov.** _↑_
**Line**_cov_@_k ↑_
**Branch**_cov_@_k ↑_
**syntax**
**exe**
**assert**
**line**
**branch**
_k_ = 1
_k_ = 5
_k_ = 1
_k_ = 5|**T**
**Method**
**Correctness**_↑_
**Overall cov.** _↑_
**Line**_cov_@_k ↑_
**Branch**_cov_@_k ↑_
**syntax**
**exe**
**assert**
**line**
**branch**
_k_ = 1
_k_ = 5
_k_ = 1
_k_ = 5|**T**
**Method**
**Correctness**_↑_
**Overall cov.** _↑_
**Line**_cov_@_k ↑_
**Branch**_cov_@_k ↑_
**syntax**
**exe**
**assert**
**line**
**branch**
_k_ = 1
_k_ = 5
_k_ = 1
_k_ = 5|**T**
**Method**
**Correctness**_↑_
**Overall cov.** _↑_
**Line**_cov_@_k ↑_
**Branch**_cov_@_k ↑_
**syntax**
**exe**
**assert**
**line**
**branch**
_k_ = 1
_k_ = 5
_k_ = 1
_k_ = 5|**T**
**Method**
**Correctness**_↑_
**Overall cov.** _↑_
**Line**_cov_@_k ↑_
**Branch**_cov_@_k ↑_
**syntax**
**exe**
**assert**
**line**
**branch**
_k_ = 1
_k_ = 5
_k_ = 1
_k_ = 5|**T**
**Method**
**Correctness**_↑_
**Overall cov.** _↑_
**Line**_cov_@_k ↑_
**Branch**_cov_@_k ↑_
**syntax**
**exe**
**assert**
**line**
**branch**
_k_ = 1
_k_ = 5
_k_ = 1
_k_ = 5|
+|---|---|---|---|---|---|---|
+|GEMMA-1.1-2B-IT|1.0|SAMPLING
RAND
~~0~~_._1
RAND
~~0~~_._5
MEAN
~~0~~_._1
MEAN
~~0~~_._5
STARS
~~0~~_._1
STARS
~~0~~_._5|89.90
1.02
0.00
89.81
1.14
1.10
89.98
1.07
0.98
90.64
1.10
1.02
**90.76**
1.12
1.07
86.48
1.43
1.17
79.76
**3.83**
**3.45**|0.00
0.00
4.89
4.54
6.48
6.14
4.96
4.56
4.51
4.20
10.03
9.32
**34.76**
**30.93**|0.00
0.00
4.83
4.88
6.44
6.46
4.92
4.95
4.43
4.49
9.97
10.02
**33.81**
**34.45**|0.00
0.00
4.40
4.45
6.05
6.10
4.44
4.51
4.00
4.13
9.12
9.25
**29.58**
**30.40**|
+||0.8|SAMPLING
RAND
~~0~~_._1
RAND
~~0~~_._5
MEAN
~~0~~_._1
MEAN
~~0~~_._5
STARS
~~0~~_._1
STARS
~~0~~_._5|91.79
1.19
0.00
92.02
1.26
1.05
91.43
1.26
1.14
92.10
1.26
1.24
**92.43**
1.14
1.07
87.83
1.45
1.12
79.43
**3.79**
**3.45**|1.44
1.41
5.19
4.72
4.73
4.38
3.94
3.54
5.34
5.07
10.77
9.88
**32.96**
**30.02**|1.37
1.42
5.13
5.17
4.71
4.72
3.89
3.92
5.29
5.33
10.64
10.72
**31.70**
**32.59**|1.27
1.35
4.59
4.68
4.31
4.34
3.41
3.47
4.94
5.02
9.65
9.78
**28.23**
**29.42**|
+||0.6|SAMPLING
RAND
~~0~~_._1
RAND
~~0~~_._5
MEAN
~~0~~_._1
MEAN
~~0~~_._5
STARS
~~0~~_._1
STARS
~~0~~_._5|93.45
1.29
0.00
93.17
1.10
1.07
93.00
0.90
0.86
**94.67**
1.14
1.12
94.33
1.12
1.10
89.19
1.71
1.43
79.24
**3.86**
**3.24**|3.01
2.84
2.78
2.70
2.78
2.64
2.77
2.68
3.21
2.96
12.10
11.22
**34.07**
**30.38**|2.94
2.77
2.72
2.77
2.74
2.75
2.73
2.77
3.18
3.19
12.03
12.10
**32.04**
**33.22**|2.70
2.77
2.58
2.66
2.52
2.60
2.55
2.60
2.90
2.92
10.99
11.15
**28.00**
**29.46**|
+||0.4|SAMPLING
RAND
~~0~~_._1
RAND
~~0~~_._5
MEAN
~~0~~_._1
MEAN
~~0~~_._5
STARS
~~0~~_._1
STARS
~~0~~_._5|95.40
1.36
1.26
95.14
1.19
1.14
94.67
1.24
1.19
95.90
1.26
1.24
**95.93**
1.07
1.07
90.43
1.48
1.43
80.31
**4.38**
**4.00**|2.33
2.31
1.92
1.88
2.23
2.08
2.33
2.24
1.41
1.36
8.44
7.69
**40.03**
**35.96**|2.29
2.32
1.88
1.91
2.20
2.23
2.29
2.32
1.40
1.41
8.41
8.44
**38.39**
**39.35**|2.20
2.27
1.77
1.83
1.98
2.04
2.13
2.20
1.29
1.32
7.58
7.63
**33.73**
**35.07**|
+||0.2|SAMPLING
RAND
~~0~~_._1
RAND
~~0~~_._5
MEAN
~~0~~_._1
MEAN
~~0~~_._5
STARS
~~0~~_._1
STARS
~~0~~_._5|95.64
1.36
1.36
96.24
1.33
1.31
95.86
1.21
1.14
96.57
1.45
1.40
**96.74**
1.29
1.29
91.52
1.45
1.26
78.93
**4.38**
**4.02**|1.44
1.41
1.89
1.88
1.89
1.88
1.89
1.88
1.41
1.36
7.28
6.50
**39.03**
**35.05**|1.37
1.42
1.84
1.87
1.83
1.88
1.87
1.88
1.41
1.41
7.23
7.25
**37.38**
**38.67**|1.27
1.35
1.77
1.81
1.77
1.85
1.77
1.81
1.31
1.33
6.36
6.40
**32.94**
**34.39**|
+
+25
+
+Table 8 presents the experimental results on TESTEVAL with QWEN3-1.7B across five temperature settings T _∈{_ 0.2, 0.4, 0.6, 0.8, 1.0 _}_ . We compare vanilla temperature sampling against RAND and MEAN baselines, as well as our proposed STARS method.
+
+Table 8: Experimental results on TESTEVAL across different sampling temperatures. All the numbers are in percentages. Best-performing methods are highlighted in bold.
+
+||**T**
**Method**
**Correctness**_↑_
**Overall cov.** _↑_
**Line**_cov_@_k ↑_
**Branch**_cov_@_k ↑_
**syntax**
**exe**
**assert**
**line**
**branch**
_k_ = 1
_k_ = 5
_k_ = 1
_k_ = 5|**T**
**Method**
**Correctness**_↑_
**Overall cov.** _↑_
**Line**_cov_@_k ↑_
**Branch**_cov_@_k ↑_
**syntax**
**exe**
**assert**
**line**
**branch**
_k_ = 1
_k_ = 5
_k_ = 1
_k_ = 5|**T**
**Method**
**Correctness**_↑_
**Overall cov.** _↑_
**Line**_cov_@_k ↑_
**Branch**_cov_@_k ↑_
**syntax**
**exe**
**assert**
**line**
**branch**
_k_ = 1
_k_ = 5
_k_ = 1
_k_ = 5|**T**
**Method**
**Correctness**_↑_
**Overall cov.** _↑_
**Line**_cov_@_k ↑_
**Branch**_cov_@_k ↑_
**syntax**
**exe**
**assert**
**line**
**branch**
_k_ = 1
_k_ = 5
_k_ = 1
_k_ = 5|**T**
**Method**
**Correctness**_↑_
**Overall cov.** _↑_
**Line**_cov_@_k ↑_
**Branch**_cov_@_k ↑_
**syntax**
**exe**
**assert**
**line**
**branch**
_k_ = 1
_k_ = 5
_k_ = 1
_k_ = 5|
+|---|---|---|---|---|---|
+|||||||
+|QWEN3-1.7B|1.0|SAMPLING
RAND
~~0~~_._1
RAND
~~0~~_._5
MEAN
~~0~~_._1
MEAN
~~0~~_._5
STARS
~~0~~_._1
STARS
~~0~~_._5|18.07
11.88
4.19
17.93
12.12
4.57
22.19
15.71
6.19
35.05
24.55
9.02
**83.05**
**58.14**
24.21
61.10
39.90
19.17
72.21
41.86
**30.79**|59.95
55.05
56.87
52.23
71.67
66.07
68.48
63.31
74.30
69.24
86.77
81.10
**91.05**
**86.81**|57.18
58.66
54.15
55.40
68.32
70.04
64.90
66.38
69.53
71.62
80.54
83.62
**82.18**
**87.31**|
+||0.8|SAMPLING
RAND
~~0~~_._1
RAND
~~0~~_._5
MEAN
~~0~~_._1
MEAN
~~0~~_._5
STARS
~~0~~_._1
STARS
~~0~~_._5|13.86
8.17
2.83
15.52
10.05
3.69
20.21
14.14
5.50
33.86
23.60
8.33
**85.95**
**59.98**
25.43
61.10
39.90
19.17
71.55
41.31
**29.07**|37.06
33.73
47.98
43.74
67.79
62.06
63.22
58.59
71.53
66.64
86.77
81.10
**92.22**
**87.86**|36.14
36.47
46.11
47.17
64.93
66.93
60.08
61.72
67.29
69.14
80.54
83.62
**83.00**
**88.42**|
+||0.6|SAMPLING
RAND
~~0~~_._1
RAND
~~0~~_._5
MEAN
~~0~~_._1
MEAN
~~0~~_._5
STARS
~~0~~_._1
STARS
~~0~~_._5|11.69
6.19
2.26
13.43
7.93
2.88
20.19
13.33
4.90
30.62
20.10
7.14
**88.10**
**61.00**
25.43
61.57
41.10
19.43
72.79
43.02
**31.05**|23.90
21.79
42.20
38.38
63.51
57.62
51.70
47.43
69.92
64.79
86.84
80.95
**90.73**
**86.35**|22.76
23.24
41.11
41.70
61.58
62.90
49.95
50.77
66.17
68.08
81.08
83.99
**82.39**
**87.25**|
+||0.4|SAMPLING
RAND
~~0~~_._1
RAND
~~0~~_._5
MEAN
~~0~~_._1
MEAN
~~0~~_._5
STARS
~~0~~_._1
STARS
~~0~~_._5|9.00
3.83
1.52
11.74
6.36
2.57
19.07
12.83
4.88
28.10
18.86
6.48
**89.36**
**62.40**
27.05
62.69
41.60
19.74
73.88
42.79
**30.74**|13.56
12.26
30.53
27.76
59.58
53.91
39.73
36.11
66.51
61.23
87.14
81.17
**91.30**
**87.01**|13.29
13.43
29.53
29.81
58.25
58.89
38.71
39.12
63.89
65.28
81.82
84.46
**82.95**
**87.37**|
+||0.2|SAMPLING
RAND
~~0~~_._1
RAND
~~0~~_._5
MEAN
~~0~~_._1
MEAN
~~0~~_._5
STARS
~~0~~_._1
STARS
~~0~~_._5|8.17
2.69
1.17
10.74
5.17
2.05
18.21
12.29
4.57
27.74
17.90
6.26
**91.10**
**63.00**
27.60
62.93
41.11
18.81
73.40
41.81
**29.95**|4.41
4.16
24.70
22.24
58.35
52.85
29.13
26.36
62.30
57.07
86.25
80.22
**91.35**
**87.13**|4.70
4.71
24.06
24.42
57.31
58.03
28.82
28.91
60.88
61.54
80.67
83.60
**82.95**
**87.61**|
+
+Table 9 shows the experimental results on the full LiveIdeaBench dataset with QWEN2.53B-INSTRUCT across different sampling temperatures T _∈{_ 0.2, 0.4, 0.6, 0.8, 1.0 _}_ . We compare vanilla temperature sampling against RAND and MEAN baselines, as well as our proposed method, STARS. The activation is extracted at layer 20.
+
+26
+
+Table 9: Experimental results on full LiveIdeaBench across different sampling temperatures on Qwen2.5-3B-Instruct. All values are reported on a scale with a maximum score of 10. Bestperforming methods are highlighted in bold.
+
+|**T**|**Method**|**Originality**_↑_
**Feasibility**_↑_
**Clarity**_↑_
**Fluency**_↑_
**Flexibility**_↑_
**Avg.** _↑_|
+|---|---|---|
+||||
+|1.0|SAMPLING
RAND
~~0~~_._1
MEAN
~~0~~_._1
STARS
~~0~~_._1
STARS
~~0~~_._5|**6.13**
5.55
5.81
4.83
5.46
5.56
5.82
**5.97**
6.18
4.79
5.57
5.67
5.90
5.92
**6.20**
4.93
**5.67**
5.73
5.88
5.91
6.19
5.12
5.65
**5.75**
5.65
5.92
6.05
**5.43**
**5.67**
5.74|
+||||
+|0.8|SAMPLING
RAND
~~0~~_._1
MEAN
~~0~~_._1
STARS
~~0~~_._1
STARS
~~0~~_._5|**6.09**
5.56
5.80
4.55
5.39
5.48
5.76
**6.01**
6.20
4.65
5.54
5.63
5.86
5.94
6.22
4.75
5.56
5.67
5.83
5.96
**6.24**
4.84
**5.59**
**5.69**
5.56
5.94
6.06
**5.27**
5.57
5.68|
+||||
+|0.6|SAMPLING
RAND
~~0~~_._1
MEAN
~~0~~_._1
STARS
~~0~~_._1
STARS
~~0~~_._5|**6.06**
5.57
5.80
4.19
5.30
5.38
5.72
**5.99**
6.21
4.83
**5.58**
**5.67**
5.81
5.93
6.22
4.30
5.45
5.54
5.79
5.96
**6.23**
4.57
5.52
5.61
5.51
5.97
6.08
**5.01**
5.50
5.62|
+||||
+|0.4|SAMPLING
RAND
~~0~~_._1
MEAN
~~0~~_._1
STARS
~~0~~_._1
STARS
~~0~~_._5|5.76
5.97
6.20
3.59
5.27
5.36
5.71
**6.03**
6.23
3.75
5.31
5.41
**5.83**
5.92
**6.24**
3.68
5.30
5.39
5.75
6.01
6.22
4.30
5.45
5.55
5.48
6.01
6.10
**4.96**
**5.55**
**5.62**|
+||||
+|0.2|SAMPLING
RAND
~~0~~_._1
MEAN
~~0~~_._1
STARS
~~0~~_._1
STARS
~~0~~_._5|5.74
6.02
6.23
2.61
5.03
5.13
5.72
**6.04**
6.24
3.27
5.19
5.29
**5.83**
5.94
**6.25**
2.71
5.05
5.16
5.75
5.97
6.22
3.89
5.35
5.44
5.44
5.99
6.08
**4.77**
**5.44**
**5.54**|
+
+Moreover, we compare our STARS method against nucleus sampling (Holtzman et al., 2020), a widely-used technique for controlling output diversity by dynamically truncating the sampling distribution. Table 10 shows results on TESTEVAL using Gemma-1.1-2b-it at temperature 0.8 with two nucleus sampling configurations (top ~~p~~ = 0.9 and 0.95). While nucleus sampling achieves 92-93% syntax correctness, its line coverage reaches only 4-5%. In contrast, STARS achieves 35% line coverage and 30-31% branch coverage, though syntax correctness drops to 78-79%. These results demonstrate that traditional sampling techniques, such as nucleus sampling, which operate solely at the token-level distribution, are insufficient for tasks that require systematic exploration of diverse program behaviors. Our activation-based steering approach enables fundamentally different exploration capabilities by directly manipulating the model’s internal representations.
+
+Table 10: Experimental results on TESTEVAL to compare with nucleus sampling. All the numbers are in percentages. Best-performing methods are highlighted in bold.
+
+||**Top**
~~**p**~~
**Method**
**Correctness**_↑_
**Overall cov.** _↑_
**Line**_cov_@_k ↑_
**Branch**_cov_@_k ↑_
**syntax**
**exe**
**assert**
**line**
**branch**
_k_ = 1
_k_ = 5
_k_ = 1
_k_ = 5|**Top**
~~**p**~~
**Method**
**Correctness**_↑_
**Overall cov.** _↑_
**Line**_cov_@_k ↑_
**Branch**_cov_@_k ↑_
**syntax**
**exe**
**assert**
**line**
**branch**
_k_ = 1
_k_ = 5
_k_ = 1
_k_ = 5|**Top**
~~**p**~~
**Method**
**Correctness**_↑_
**Overall cov.** _↑_
**Line**_cov_@_k ↑_
**Branch**_cov_@_k ↑_
**syntax**
**exe**
**assert**
**line**
**branch**
_k_ = 1
_k_ = 5
_k_ = 1
_k_ = 5|**Top**
~~**p**~~
**Method**
**Correctness**_↑_
**Overall cov.** _↑_
**Line**_cov_@_k ↑_
**Branch**_cov_@_k ↑_
**syntax**
**exe**
**assert**
**line**
**branch**
_k_ = 1
_k_ = 5
_k_ = 1
_k_ = 5|**Top**
~~**p**~~
**Method**
**Correctness**_↑_
**Overall cov.** _↑_
**Line**_cov_@_k ↑_
**Branch**_cov_@_k ↑_
**syntax**
**exe**
**assert**
**line**
**branch**
_k_ = 1
_k_ = 5
_k_ = 1
_k_ = 5|
+|---|---|---|---|---|---|
+|||||||
+||0.9|NUCLEUS SAMPLING
STARS
~~0~~_._5|**93.45**
1.19
1.12
78.81
**3.93**
**3.55**|4.15
3.70
**35.73**
**31.62**|4.10
4.14
**34.25**
**34.88**|
+||0.95|NUCLEUS SAMPLING
STARS
~~0~~_._5|**92.57**
1.21
1.19
79.36
**4.40**
**3.74**|5.09
4.88
**35.69**
**31.65**|5.07
5.09
**34.13**
**34.99**|
+
+B.5 IMPACT OF TEMPERATURE ON STARS PERFORMANCE
+
+We evaluate STARS’s robustness to temperature variations by testing across a range from 0.2 to 2.0 on TESTEVAL using Gemma-1.1-2b-it (Table 11). Across all temperatures, temperature sampling achieves high syntax correctness but minimal coverage. While STARS achieves 32-40% line
+
+27
+
+coverage and 29-36% branch coverage, trading modest syntax correctness (78-80%) for substantial diversity.
+
+Table 11: Experimental results on TESTEVAL across different sampling temperatures. All the numbers are in percentages. Best-performing methods are highlighted in bold.
+
+||**T**
**Method**
**Correctness**_↑_
**Overall cov.** _↑_
**Line**_cov_@_k ↑_
**Branch**_cov_@_k ↑_
**syntax**
**exe**
**assert**
**line**
**branch**
_k_ = 1
_k_ = 5
_k_ = 1
_k_ = 5|**T**
**Method**
**Correctness**_↑_
**Overall cov.** _↑_
**Line**_cov_@_k ↑_
**Branch**_cov_@_k ↑_
**syntax**
**exe**
**assert**
**line**
**branch**
_k_ = 1
_k_ = 5
_k_ = 1
_k_ = 5|**T**
**Method**
**Correctness**_↑_
**Overall cov.** _↑_
**Line**_cov_@_k ↑_
**Branch**_cov_@_k ↑_
**syntax**
**exe**
**assert**
**line**
**branch**
_k_ = 1
_k_ = 5
_k_ = 1
_k_ = 5|**T**
**Method**
**Correctness**_↑_
**Overall cov.** _↑_
**Line**_cov_@_k ↑_
**Branch**_cov_@_k ↑_
**syntax**
**exe**
**assert**
**line**
**branch**
_k_ = 1
_k_ = 5
_k_ = 1
_k_ = 5|**T**
**Method**
**Correctness**_↑_
**Overall cov.** _↑_
**Line**_cov_@_k ↑_
**Branch**_cov_@_k ↑_
**syntax**
**exe**
**assert**
**line**
**branch**
_k_ = 1
_k_ = 5
_k_ = 1
_k_ = 5|**T**
**Method**
**Correctness**_↑_
**Overall cov.** _↑_
**Line**_cov_@_k ↑_
**Branch**_cov_@_k ↑_
**syntax**
**exe**
**assert**
**line**
**branch**
_k_ = 1
_k_ = 5
_k_ = 1
_k_ = 5|
+|---|---|---|---|---|---|---|
+||||||||
+|GEMMA-1.1-2B-IT|2.0|SAMPLING
STARS
~~0~~_._1
STARS
~~0~~_._5|**68.86**
1.05
0.69
68.71
**1.19**
1.07
58.26
1.64
**1.36**|11.74
10.34
13.23
11.91
**16.51**
**14.44**|11.41
11.57
13.00
13.18
**16.04**
**16.15**|9.89
10.10
11.53
11.82
**13.82**
**13.98**|
+||1.8|SAMPLING
STARS
~~0~~_._1
STARS
~~0~~_._5|75.76
0.95
0.83
**78.00**
0.93
0.81
66.76
**2.29**
**1.90**|12.45
11.49
11.86
10.71
**24.51**
**21.48**|12.38
12.43
11.81
11.86
**23.11**
**23.97**|11.31
11.45
10.54
10.68
**19.79**
**20.76**|
+||1.6|SAMPLING
STARS
~~0~~_._1
STARS
~~0~~_._5|**82.21**
1.10
0.95
80.90
1.26
1.07
71.26
**2.48**
**2.17**|9.30
8.68
11.84
10.85
**27.23**
**24.11**|9.21
9.29
11.72
11.79
**25.26**
**26.57**|8.51
8.63
10.54
10.71
**21.91**
**23.34**|
+||1.4|SAMPLING
STARS
~~0~~_._1
STARS
~~0~~_._5|85.50
1.26
1.14
**83.64**
1.45
1.31
74.69
**2.88**
**2.52**|8.76
8.00
13.91
13.31
**28.94**
**25.91**|8.69
8.76
13.82
13.90
**27.02**
**28.13**|7.85
7.94
13.04
13.25
**23.47**
**24.87**|
+||1.2|SAMPLING
STARS
~~0~~_._1
STARS
~~0~~_._5|**88.48**
1.36
1.19
85.29
1.43
1.26
76.95
**3.93**
**3.60**|8.70
7.85
11.32
10.43
**37.04**
**33.78**|8.63
8.66
10.99
11.28
**34.72**
**36.16**|7.69
7.78
9.89
10.33
**30.91**
**32.66**|
+||1.0|SAMPLING
STARS
~~0~~_._1
STARS
~~0~~_._5|**89.90**
1.02
0.95
86.48
1.43
1.17
79.76
**3.83**
**3.45**|5.36
5.06
10.03
9.32
**34.76**
**30.93**|5.32
5.35
9.97
10.02
**33.81**
**34.45**|4.98
5.04
9.12
9.25
**29.58**
**30.40**|
+||0.8|SAMPLING
STARS
~~0~~_._1
STARS
~~0~~_._5|**91.79**
1.19
0.00
87.83
1.45
1.12
79.43
**3.79**
**3.45**|3.54
3.37
10.77
9.88
**32.96**
**30.02**|3.46
3.51
10.64
10.72
**31.70**
**32.59**|3.21
3.30
9.65
9.78
**28.23**
**29.43**|
+||0.6|SAMPLING
STARS
~~0~~_._1
STARS
~~0~~_._5|**93.45**
1.29
0.00
89.19
1.71
1.43
79.24
**3.86**
**3.24**|3.01
2.84
12.10
11.22
**34.07**
**30.38**|2.94
2.99
12.03
12.10
**32.04**
**33.22**|2.70
2.77
10.99
11.15
**28.00**
**29.46**|
+||0.4|SAMPLING
STARS
~~0~~_._1
STARS
~~0~~_._5|**95.40**
1.36
1.26
90.43
1.48
1.43
80.31
**4.38**
**4.00**|2.33
2.31
8.44
7.69
**40.03**
**35.96**|2.29
2.32
8.41
8.44
**38.39**
**39.36**|2.20
2.27
7.58
7.63
**33.73**
**35.07**|
+||0.2|SAMPLING
STARS
~~0~~_._1
STARS
~~0~~_._5|**95.64**
1.36
1.36
91.52
1.45
1.36
78.93
**4.38**
**4.02**|1.44
1.41
7.28
6.50
**39.03**
**35.05**|1.37
1.42
7.23
7.25
**37.38**
**38.67**|1.27
1.35
6.36
6.40
**32.94**
**34.39**|
+
+## B.6 STATISTICAL ANALYSIS ACROSS DIFFERENT RANDOM SEEDS
+
+Table 12 shows the results on the full LiveIdeaBench dataset across different sampling temperatures on Qwen2.5-3B. Random seeds are 1, 2, and 42. The results demonstrate that STARS exhibits strong stability across different random seeds, as evidenced by small standard deviations (mostly _<_ 0.1) for most metrics, and consistently outperforms baseline sampling across all temperature settings.
+
+28
+
+Table 12: Experimental results on LiveIdeaBench across sampling temperatures. Values represent mean ± std over three random seeds (1, 2, 42) for Qwen2.5-3B. All values are reported on a scale with a maximum score of 10. Best-performing methods are highlighted in bold.
+
+|**T**|**Method**|**Ori.** _↑_
**Feas.** _↑_
**Clar.** _↑_
**Flu.** _↑_
**Flex.** _↑_
**Avg.** _↑_|
+|---|---|---|
+||||
+|1.0|SAMPLING
STARS
~~0~~_._1
STARS
~~0~~_._5|**6.01**_±_**0.03**
**5.90**_±_**0.06**
6.15_±_0.06
5.27_±_0.12
5.73_±_0.06
5.81_±_0.05
**6.01**_±_**0.05**
5.85_±_0.04
**6.17**_±_**0.02**
5.47_±_0.18
**5.79**_±_**0.07**
**5.86**_±_**0.04**
5.75_±_0.03
5.88_±_0.04
6.05_±_0.03
**5.75**_±_**0.13**
5.73_±_0.06
5.83_±_0.04|
+||||
+|0.8|SAMPLING
STARS
~~0~~_._1
STARS
~~0~~_._5|5.96_±_0.01
5.95_±_0.05
6.14_±_0.01
5.00_±_0.03
5.67_±_0.04
5.74_±_0.03
**5.98**_±_**0.06**
**5.91**_±_**0.07**
**6.21**_±_**0.03**
5.27_±_0.07
**5.73**_±_**0.02**
**5.82**_±_**0.02**
5.70_±_0.07
5.86_±_0.08
6.06_±_0.01
**5.69**_±_**0.31**
5.69_±_0.08
5.80_±_0.08|
+||||
+|0.6|SAMPLING
STARS
~~0~~_._1
STARS
~~0~~_._5|5.88_±_0.04
**5.90**_±_**0.04**
6.15_±_0.05
4.49_±_0.21
5.52_±_0.08
5.59_±_0.06
**5.93**_±_**0.05**
5.89_±_0.03
**6.21**_±_**0.01**
4.85_±_0.26
**5.59**_±_**0.07**
**5.69**_±_**0.07**
5.60_±_0.07
5.88_±_0.03
6.03_±_0.03
**5.30**_±_**0.12**
5.57_±_0.03
5.67_±_0.04|
+||||
+|0.4|SAMPLING
STARS
~~0~~_._1
STARS
~~0~~_._5|5.84_±_0.04
**5.98**_±_**0.08**
**6.21**_±_**0.02**
3.50_±_0.07
5.27_±_0.02
5.36_±_0.00
**5.86**_±_**0.03**
5.97_±_0.11
**6.21**_±_**0.09**
4.67_±_0.15
**5.58**_±_**0.00**
5.66_±_0.01
5.62_±_0.04
5.94_±_0.04
6.08_±_0.00
**5.18**_±_**0.28**
5.57_±_0.06
**5.68**_±_**0.07**|
+||||
+|0.2|SAMPLING
STARS
~~0~~_._1
STARS
~~0~~_._5|**5.83**_±_**0.03**
**6.05**_±_**0.04**
**6.26**_±_**0.06**
2.60_±_0.07
5.05_±_0.06
5.16_±_0.03
**5.83**_±_**0.08**
5.98_±_0.06
6.25_±_0.04
3.99_±_0.26
5.41_±_0.06
5.49_±_0.06
5.56_±_0.05
5.91_±_0.04
6.07_±_0.01
**5.08**_±_**0.15**
**5.54**_±_**0.00**
**5.63**_±_**0.02**|
+
+## B.7 NUMERICAL COMPARISON OF ALGORITHM 2 AND ALGORITHM 3
+
+This section presents a numerical comparison between the Riemannian gradient descent with linesearch (Algorithm 2) and the one-step update algorithm (Algorithm 3) for solving the steeringvector computation problem (2) across different dimensional settings. We run Algorithm 2 for 100 iterations with hyperparameters _ρ_ = 0 _._ 2, _c_ = 10 _[−]_[4] and _η_ ¯ = 100. We repeat all experiments for 50 times. For each run, we use the final loss of Algorithm 2 as a lower bound and compute the relative gap for both methods at every iteration. Figure 2 reports the average results across different dimensional settings. We also provide the computation time in Table 13. Notably, Algorithm 3 reduces the relative optimality gap from 7% to about 2% in a single update while using only about 3% of the runtime of Algorithm 2.
+
+Table 13: Computational time of Algorithm 2 and Algorithm 3 (in seconds), average over 50 runs.
+
+|(_d, N_)|Algorithm 2|Algorithm 3|
+|---|---|---|
+|(1024_,_8)|1.206|0.015|
+|(1024_,_20)|3.299|0.024|
+|(2048_,_8)|1.575|0.058|
+|(2048_,_20)|4.322|0.103|
+
+## B.8 RUN-TIME COMPARISON
+
+Table 14 reports the average per-question runtime across different models and tasks. The results show that Algorithm 3 introduces only minor absolute overhead (no more than 2 seconds per question on average) and modest relative overhead in most cases. Thus, the additional computational burden associated with Algorithm 3 appears negligible in practice.
+
+29
+
+Table 14: Runtime per question of baseline and Algorithm 3 (in seconds).
+
+|Task|Model|Temperature Sampling|Algorithm 3|
+|---|---|---|---|
+|Test Case Generation|GEMMA-1.1-2B-IT
QWEN3-1.7B|4.53
9.01|4.63
9.97|
+|Scientifc Discovery|QWEN2.5-3B-INSTRUCT
LLAMA-3.2-3B-INSTRUCT|3.02
4.21|5.01
4.33|
+
+30
+
+**==> picture [212 x 611] intentionally omitted <==**
+
+**----- Start of picture text -----**
+8 Algorithm 2
Algorithm 3
6
4
2
0
0 1 4 9 19 49 99
Iteration (log scale)
(a) d = 1024 , N = 8
8 Algorithm 2
Algorithm 3
6
4
2
0
0 1 4 9 19 49 99
Iteration (log scale)
(b) d = 1024 , N = 20
8
Algorithm 2
Algorithm 3
6
4
2
0
0 1 4 9 19 49 99
Iteration (log scale)
(c) d = 2048 , N = 8
8
Algorithm 2
Algorithm 3
6
4
2
0
0 1 4 9 19 49 99
Iteration (log scale)
(d) d = 2048 , N = 20
Relative Objective Gap
Relative Objective Gap
Relative Objective Gap
Relative Objective Gap
**----- End of picture text -----**
+
+Figure 2: Optimality gap comparison of Algorithm 2 and Algorithm 3. The y-axis is the average relative gap (in percentage) across runs, and the x-axis denotes the iteration number on a logarithmic scale. The standard deviation is very small relative to the average relative gap and is therefore not visually apparent.
+
+31
+
+## B.9 CASE STUDY
+
+Here we provide a generation example from LiveIdeaBench dataset with the keyword **periodic table** . The four paths of SAMPLING are
+
+- Develop an interactive periodic table app that uses machine learning to predict chemical reactions based on user input of elements. This tool would enhance chemistry education by providing real-time predictions and explanations, making complex concepts more accessible and engaging for students.
+
+- Develop an interactive periodic table app that allows users to visualize and manipulate chemical elements based on their electronic configurations. This tool would help educators and students better understand atomic structure and bonding principles through dynamic visualizations, potentially enhancing learning outcomes and engagement.
+
+- Develop an interactive periodic table app that uses AI to predict chemical reactions based on user input of elements. This tool would enhance chemistry education by providing realtime reaction predictions, aiding students in understanding complex chemical interactions.
+
+- Develop an interactive periodic table app that uses augmented reality to visualize chemical elements in real-world environments. This tool would enhance learning by allowing users to see how elements interact in their surroundings, potentially sparking new insights into chemistry and materials science.
+
+The four generations from STARS are
+
+- Designing a periodic table with quantum states as elements could revolutionize our understanding of chemical reactions and materials science. By mapping quantum states alongside traditional elements, we can predict new compounds and optimize energy storage solutions. This innovative approach would bridge the gap between quantum mechanics and chemistry, offering unprecedented insights into material properties and potential applications in renewable energy technologies. This concept aims to explore the relationship between quantum states and chemical elements, potentially leading to breakthroughs in materials science and energy technology.
+
+- Develop an AI system that predicts chemical reactions using the periodic table as a foundational dataset. This system would analyze patterns and relationships between elements based on their positions in the periodic table, aiming to improve reaction prediction accuracy and potentially discover new chemical compounds.
+
+- A periodic table app that allows users to visualize and interact with elements in real-time, enhancing understanding of chemical properties and periodic trends. This idea involves developing an educational tool for chemistry enthusiasts and students. By creating an interactive periodic table app, users can explore the relationships between elements, their atomic structures, and how they relate to each other based on their positions in the table. This could include features like real-time element animations, comparisons of physical properties, and visual representations of chemical reactions involving different elements. The app would also allow for customization, enabling users to choose specific elements or groups to study in depth.
+
+- Utilizing the periodic table for personalized medicine by mapping genetic variations to corresponding medical treatments. This idea aims to revolutionize personalized medicine by creating a comprehensive map that links specific genetic variations with effective medical treatments, based on the periodic table’s structure of elements and their properties. This could significantly improve treatment efficacy and reduce side effects by tailoring therapies to individual genetic profiles.
+
+To summarize, temperature sampling collapses to near-duplicates of an “interactive periodic-table app with AI reaction prediction/AR” theme, whereas STARS yields four conceptually distinct but still topical and grammatical ideas: (i) a quantum-state–augmented periodic table for materials discovery; (ii) an AI reaction-prediction system grounded in periodic structure; (iii) an educational interactive table; and (iv) a (cross-domain) “periodic-table of personalized medicine” mapping genotypes to treatments.
+
+32
+
+## B.9.1 QUALITATIVE ANALYSIS OF A SIMPLE PROMPT ’A HOUSE’
+
+Here we provide a simple example with the prompt ‘A house’. We test with QWEN2.5-3B and temperature = 0.6. and max ~~t~~ okens = 48.
+
+## With _N_ = 4, the temperature sampling gives
+
+- Sure! What would you like to know about a house? Here are some common questions and information related to houses: 1. **Types of Houses**: There are many types of houses including detached houses (single-family homes), semi-detached houses
+
+- Sure! A house is a structure designed to provide shelter and living space for people or animals. Houses can vary greatly in size, style, and features depending on their intended use, location, and the preferences of the homeowner. Here are some
+
+- Sure! I’d be happy to discuss various aspects of a house. What specifically would you like to know about it? Here are a few topics we could explore: 1. **Types of houses**: Different styles such as modern, traditional,
+
+- Sure! A house is a structure designed for human habitation that typically includes rooms for living, sleeping, and sometimes eating or entertaining. Houses can vary greatly in size, style, and features depending on their location, the culture of the region
+
+## With _N_ = 8, the temperature sampling gives
+
+- A house is a structure designed to provide shelter and living space for humans or animals. It can vary greatly in size, style, and location, from simple cottages in rural areas to luxurious mansions in urban centers. Houses typically consist of
+
+- A house is a structure designed to provide shelter for people or animals. It can vary greatly in size, style, and location, but generally includes rooms for living, sleeping, eating, and sometimes storage. Houses can be made of various materials
+
+- A house is a structure designed for human habitation, typically consisting of one or more rooms and a roof to protect from weather conditions. Houses can vary greatly in size, style, and location, depending on the region, culture, and personal
+
+- Sure, I can describe a typical house for you! A house generally consists of several key components: 1. **Structure**: This includes the foundation, walls, and roof. The foundation is what supports the entire structure and ensures it stays stable
+
+- Sure, I can provide information about a house! Do you have a specific question or detail in mind? Here are some common topics related to houses: 1. Types of houses (e.g., singlefamily homes, apartments, townhouses)
+
+- A house is a structure designed for human habitation. It typically includes rooms for living, sleeping, eating, and other activities. Houses can vary greatly in size, style, and location depending on the region and culture. They often include features
+
+- Sure, I can provide information about a house! Do you have any specific questions or details in mind? For example: 1. What type of house are you referring to (e.g., singlefamily home, apartment, townhouse)? 2
+
+- A house is a structure designed to provide shelter for people and their belongings. It can vary greatly in size, style, and location, but typically includes rooms for living, sleeping, eating, and other activities. Houses can be made from various
+
+## When _N_ = 4, the STARS gives
+
+- A house is a structure designed for human habitation. It can vary greatly in size, style, and location depending on the region and culture. Houses typically include rooms for living, sleeping, eating, and working, as well as facilities like
+
+- Sure! I’d be happy to help describe a house. Could you please provide more details? For example, what type of house is it (modern, traditional, etc.), where is it located, or any other specific features you’d like
+
+33
+
+- A house is a structure or building that serves as a dwelling for people or other living beings. It can be made of various materials such as wood, brick, stone, and more recently, with the advancement of technology, also includes eco-friendly
+
+- Sure! Could you please provide more details about the house? What specific information would you like to know or discuss about it? For example, do you want to know about its size, location, features, or history?
+
+## When _N_ = 8, the STARS gives
+
+- Hello! How can I assist you about a house? Do you want information on houses, house prices, or perhaps you need help with something related to building or decorating a house? Feel free to ask any specific questions you might have, and
+
+- Sure! I can describe a house for you. Would you like details about a specific type of house or general information? If you have a particular question in mind, feel free to ask!
+
+- Sure! A house is a structure where people live and can be made of various materials such as wood, brick, or even bamboo. It can also come in different sizes and styles. If you’d like more details about houses or have any
+
+- A house is an object, a structure designed to provide shelter and comfort for individuals and families. Describing it more comprehensively, I can share some information: A house typically consists of walls, floors, a roof, and windows. It
+
+- A house is more than just a structure; it’s often a home where memories and stories are made. I can certainly help you generate ideas or facts about houses if you’re interested in that topic. However, to be more specific, could
+
+- Let me describe a house: A house is a structure where people live. It could be a small house or a large mansion. The materials used to build a house can vary widely, from wood, brick, stone, and other natural materials
+
+- Sure, I can provide information about houses if you give me more details such as the location or type of house you’re interested in. For example, are you looking for a specific type of house, or do you have any other questions?
+
+- Sure. A house is a very good start for a conversation, but I need more context to provide a useful response. Could you clarify if this is what you wanted to ask about? If you have a specific question or need assistance with something
+
+We now increase _C_ from 1 _._ 0 (as in the previous samples) to 3 _._ 0. The following are the 4-generation results of STARS with _C_ = 3 _._ 0. With stronger steering, STARS yields more diverse responses, including different starting modes.
+
+ - Sure, I can describe a house for you. You want me to create a description or do something with the house? Or would you like to provide more details on what kind of house you have in mind? If you give me more context
+
+ - Here is some information about a house: Location: A house can be found in many places around the world, and you can choose to describe a specific location if needed. Size: A house can vary in size. I can give you more
+
+ - A house is an object which can refer to many things depending on the context. If you’re thinking about a house in the context of ”house and buildings,” then there could be many houses around the world. If you’re
+
+ - For example, let me describe a house: A house has four walls made of brick and mortar, each wall facing different directions. The roof over the house is made of tiles or metal sheets. Houses can vary in size, shape, and
+
+- B.9.2 UNIFORM DISTRIBUTION RECOVERY IN DICE ROLLING
+
+We run the dice experiment with the following prompt:
+
+34
+
+Roll A Die Prompt Roll a die. Output ONLY one integer from 1 to 6. Do not add any explanation or text. Output format: _< number >_
+
+For each generation, the output logits are passed through softmax to obtain probabilities, and the probability P(token = d) for each digit is recorded by indexing the corresponding token ID. The experiment ran 10 iterations, each with 20 rolls (200 total samples). Table 15 presents the probability distributions obtained from temperature sampling and STARS. The KL column provides the KL divergence between the sampled distribution and the uniform distribution. Under standard temperature sampling, the model concentrates most of its probability mass on just two outcomes: 2 and 3. In contrast, as we increase the STARS strength from 3 to 7, the probability mass becomes much more spread out across all six faces, although it does not become fully uniform. We believe this behavior warrants further investigation.
+
+Table 15: Probability distributions across dice outcomes (1-6) under temperature sampling and STARS with varying _C_ . KL divergence measures the distance from the uniform distribution (lower is better).
+
+||1|2|3|4|5|6|KL_↓_|
+|---|---|---|---|---|---|---|---|
+|Sampling
0.000056
0.405526
0.450347
0.032215
0.111854
0.000001
0.71
STARS
~~3~~_._0
0.103587
0.452858
0.366496
0.023672
0.046169
0.007218
0.56
STARS
~~5~~_._0
0.380046
0.245687
0.108884
0.111879
0.103058
0.050445
0.20
STARS
~~7~~_._0
0.355143
0.130725
0.192331
0.184511
0.103763
0.033526
0.18||||||||
+
+35
+
diff --git a/open_review/iclr2026_25048.json b/open_review/iclr2026_25048.json
new file mode 100644
index 0000000000000000000000000000000000000000..193839abf9f7104014dd3ada7809ed082d457f4f
--- /dev/null
+++ b/open_review/iclr2026_25048.json
@@ -0,0 +1,83 @@
+{
+ "paper_id": "iclr2026_25048",
+ "source": "iclr2026",
+ "source_year": 2026,
+ "title": "Chemical Priors at Scale: Efficient Foundation Models without Big Corpora",
+ "abstract": "Deep learning models have shown themselves as a powerful solution for molecular property prediction, yet they are underutilized in real-world applications. These models, while powerful, lack chemical interpretability to link predicted properties to molecular motifs that govern them. Therefore, we introduce $\\textbf{C}$hemically $\\textbf{I}$nformed $\\textbf{L}$anguage $\\textbf{T}$ransformer ($\\textbf{CILT}$) that utilizes hundreds of programmatically derived molecular motifs as a weak supervision prior. CILT leverages these motifs together with property descriptions to generate a chemically interpretable embedding space that clusters with respect to chemical motifs. This unified design enables CILT to quickly adapt to new motifs, properties, and perform classification, regression, and conditional generation. CILT showcases competitive performance while increasing the interpretability and requiring a 2-3 orders of magnitude fewer molecules.",
+ "rebuttal": "We thank all reviewers and the AC for the time and effort dedicated to evaluating our manuscript. We have made major revisions to the manuscript in line with the reviewers' comments. Below we summarise all of the changes.\n\nImportant Concerns Raised by the Reviewers\n===\n\n**Clarification of core contributions**\n\nWe clarified that the central contribution of CILT is the use of weak supervision on chemically meaningful motifs during pretraining, which leads to interpretable, motif-aligned representations and significantly improved data efficiency. We revised the introduction, added a dedicated background section covering the group contribution method and molecular fingerprints. With these changes, we highlight the core contribution of our work and distinguish it from previous approaches.\n\n**Substantial additions to experiments**\n\nWe have extended results in Figures 2 and 3 to compare CILT against MLM-trained models and a SMILES-only version of CILT. These results highlight two key properties of our method:\n- *Embedding interpretability*: Only CILT forms chemically meaningful clusters (Figure 2 and Appendix A7).\n- *Adaptability*: CILT is the only model that consistently outperforms a random baseline when fine-tuned with ≤100 examples (Figure 3).\n\nAdditionally, we have added scaled versions of CILT (75k, 125k, 250k molecules…) to Tables 1–2 and Figures 4, with a full breakdown in Appendix A8. These results show favorable scaling trends.\n\n**Expanded theoretical clarification**\n\nThe theory section (previously Section 3.3, now Section 4.3) has been restructured to improve readability. We now define all notation in the main text, explain the risk terms, and provide clearer connections between theory and model design. The new background section covers the group contribution method, which supports the k ≪ p assumption and motivates motif-aligned representations.\n\n**Clarification of design choices**\n\nBorn, J., & Manica, M. (ref. line 529 in our manuscript) performed the ablation, which has been the foundation for our design choice behind the alternating training. We have further clarified the pre-training procedure and incorporated a full breakdown of hyperparameters in Appendix A5.\n\n**Additions to baselines and comparisons**\n\nWe have updated Table 1 to include MoleculeSTM and MolT5, and we now incorporate 7 comparison models. We were not able to incorporate D-MPNN since it is not a pre-trained model, and therefore, we are not able to evaluate logprobs (please refer to the GitHub page of the original work for clarification https://github.com/chemprop/chemprop/issues/933).\n\n**Expanded detail on task generation and reproducibility**\n\nWe clarify that tasks are programmatically derived using the ChemCaption package. All molecules are featurized with all available ChemCaption descriptors. We will release full data along with the open source package with the de-anonymized version.\n\n**Compute reporting**\nWe added standardized compute metrics (GPU hours) for CILT in Appendix A5.\n\nWe sincerely appreciate the reviewers’ detailed and constructive feedback. The resulting manuscript is significantly stronger in clarity, motivation, theoretical grounding, and empirical validation.\n\nKey Strengths Highlighted by the Reviewers\n===\n\n**Data efficiency gains**\n\nReviewers **2jUH**, **qUSM** and **95et** recognize the model's data efficiency gains.\n\n**Comprehensive evaluation suite**\n\nReviewers **2jUH** and **qUSM** note that the evaluation suite is comprehensive, covering regression, classification and analysis of learned representations (methylations experiment, embedding clustering by functional groups, attention patterns).\n\n**Missing recent LLM baselines: The paper only compares to older LLM-based models (MolFormer 2022, ChemBERTa 2020). More recent approaches like Text+Chem T5, MoleculeSTM, and CLAMP that also do text-molecule joint training are mentioned in related work but not included in benchmark tables. This makes it hard to assess true state-of-the-art performance.**\n\nWe have updated Table 1 in the revised manuscript with the additional LLM-based models.\n\n**Missing non-LLM baselines: There exist many strong non-LLM baselines for MoleculeNet (e.g., D-MPNN and other graph neural network approaches) which oug [...]\n\nWe thank the reviewer for taking the time to read our manuscript and providing thorough feedback. We have reworked the introduction and added a background section to better highlight the chemical and theoretical foundations of our approach. CILT employs important chemical motifs as a weak supervision prior, enabling higher levels of interpretability and adaptability. We showcase interpretability by adding comparisons of embedding clusterings in Figure 2 and Appendix A7, where CILT is the only model capable of clustering embeddings in a chemically meaningful way. We showcase the higher level of [...]\n\nWe thank the reviewer for taking the time to read our manuscript and providing constructive feedback. In the revised manuscript, we have updated both of the theorems and added context to them with a new background section. \nThe first theorem now clearly defines core notation in the main text, and the second theorem points to the group contribution method as the source for the k< **097 Group Contribution Methods** are a family of techniques for estimating molecular properties based
+
+on their substructural composition (Joback & Reid, 1987; Fredenslund et al., 1975). Molecules are
+
+decomposed into predefined structural groups, where each group has assigned empirically derived parameters that represent their contribution. These contributions are then combined, while account- ing for the correction terms for group interactions, to form a property prediction. Chemists apply this method to this day to quickly and at scale estimate properties for mixture thermodynamics (Fredenslund et al., 1975), property estimation (Lydersen, 1955), drug discovery (Andrews et al., 1984), to name a few. Besides predictive power, thanks to hand-tuned features, predictions made with group-contribution approaches are very interpretable.
+
+**106 Molecular Fingerprints** describe a molecule as a vector encoding the presence or count of prede- fined structural features. These fingerprints can then be used for fast similarity comparisons, forming the basis for structure-to-property predictive modeling. Machine learning models often offer
+
+2
+
+negligible gains compared to fingerprints while lacking interpretability and introducing additional computational overhead (Praski et al., 2025; Boldini et al., 2024).
+
+3 RELATED WORK
+
+**114 Molecular Representation Learning** Molecular property prediction has been addressed through diverse representation learning approaches. Sequence-based methods treat molecules as sequences, typically using the SMILES notation (Weininger, 1988) or other line representations such as SELF- IES (Krenn et al., 2022; 2020). Early work applied recurrent neural networks to SMILES (Segler et al., 2018; Mayr et al., 2018; Goh et al., 2017), while more recent approaches use transformer architectures with masked language modeling objectives (Ahmad et al., 2022; Chithrananda et al., 2020; Ross et al., 2022; Fabian et al., 2020; Honda et al., 2019; Irwin et al., 2022; Born & Man- ica, 2023). ChemBERTa (Chithrananda et al., 2020) adapts RoBERTa to molecular data, while MolFormer (Ross et al., 2022) scales to more than a billion molecules using linear attention mechanisms.
+
+**Graph-based Approaches** One can represent molecules as molecular graphs with atoms as nodes and bonds as edges. Message-passing neural networks (Gilmer et al., 2017; Scarselli et al., 2008) form the foundation for many architectures. Self-supervised approaches include contrastive learning methods like MolCLR (Wang et al., 2022b), GraphCL (You et al., 2020), GraphMAE (Hou et al., 2022), and GROVER (Rong et al., 2020).
+
+and bonds as edges. Message-passing neural networks (Gilmer et al., 2017; Scarselli et al., 2008) form the foundation for many architectures. Self-supervised approaches include contrastive learning methods like MolCLR (Wang et al., 2022b), GraphCL (You et al., 2020), GraphMAE (Hou et al., 2022), and GROVER (Rong et al., 2020). **128 129 Multi-Task and Auxiliary Supervision** Several approaches incorporate additional supervision signals during pretraining. MolBERT (Fabian et al., 2020) combines masked language modeling with auxiliary tasks such as descriptor prediction. ChemBERTa-2 (Ahmad et al., 2022) adds multi- task regression on physico-chemical properties. MoMu (Su et al., 2022) trains jointly on molecular graphs and natural language descriptions. **134 135 Text-Molecule Joint Modeling** Recent works explore the joint modeling of natural language and molecular representations. MolT5 (Edwards et al., 2022) adapts T5 to perform both molecule-to- text and text-to-molecule generation tasks. Text2Mol (Edwards et al., 2021) learns cross-modal embeddings between molecular graphs and textual descriptions. MoleculeSTM (Liu et al., 2022) and CLAMP (Seidl et al., 2023) use contrastive learning between molecules and text. CLAMP learns CLIP-style contrastive alignments between molecules and text to improve downstream activ- ity prediction from natural language assay descriptions. Instruction-following approaches include Galactica (Taylor et al., 2022), ether0 (Narayanan et al., 2025), and MolecularGPT (Liu et al., 2024). **142 143 Task Conditioning and Prompting** In scientific domains, task conditioning appears in protein modeling (Ferruz et al., 2022; Liu et al., 2023), drug design (Bagal et al., 2021; Born & Manica, 2023) and optimization (Wu et al., 2024). However, most molecular models use fixed task identifiers or classification heads rather than natural language descriptions. In summary, prior molecular pretraining has been largely optimized for token- or sequence-level objectives on SMILES, often requiring massive corpora before substructure knowledge emerges. We instead weakly supervise _on chemistry_ via task-conditioned targets, derived via inexpensive calculations described in natural language, and we couple this with a dual-masking objective that ties text semantics to molecular structure. Empirically, this yields competitive accuracy with far fewer pretraining molecules, strong few-shot transfer and high interpretability; theoretically, task- similarity and motif-sparsity analyses explain when and why these gains appear.
+
+**Multi-Task and Auxiliary Supervision** Several approaches incorporate additional supervision signals during pretraining. MolBERT (Fabian et al., 2020) combines masked language modeling with auxiliary tasks such as descriptor prediction. ChemBERTa-2 (Ahmad et al., 2022) adds multitask regression on physico-chemical properties. MoMu (Su et al., 2022) trains jointly on molecular graphs and natural language descriptions.
+
+**Text-Molecule Joint Modeling** Recent works explore the joint modeling of natural language and molecular representations. MolT5 (Edwards et al., 2022) adapts T5 to perform both molecule-totext and text-to-molecule generation tasks. Text2Mol (Edwards et al., 2021) learns cross-modal embeddings between molecular graphs and textual descriptions. MoleculeSTM (Liu et al., 2022) and CLAMP (Seidl et al., 2023) use contrastive learning between molecules and text. CLAMP learns CLIP-style contrastive alignments between molecules and text to improve downstream activity prediction from natural language assay descriptions. Instruction-following approaches include Galactica (Taylor et al., 2022), ether0 (Narayanan et al., 2025), and MolecularGPT (Liu et al., 2024).
+
+**Task Conditioning and Prompting** In scientific domains, task conditioning appears in protein modeling (Ferruz et al., 2022; Liu et al., 2023), drug design (Bagal et al., 2021; Born & Manica, 2023) and optimization (Wu et al., 2024). However, most molecular models use fixed task identifiers or classification heads rather than natural language descriptions.
+
+4 CHEMICALLY INFORMED TASK CONDITIONING
+
+4.1 PROBLEM SETUP
+
+We pre-train a single 150M-parameter transformer on hundreds of molecular motifs expressed as natural language descriptors. Each task _t_ has a programmatic supervision function _gt_ that extracts chemical properties from molecules: substructure indicators (“contains halogen group”), counts (“number of aromatic rings”), or simple properties (“molecular mass”).
+
+3
+
+We unify the tasks and molecules by encoding them into text and jointly passing them throughout our network in the following form
+
+���� _d_ [SEP] ���� _yt_ [SEP] ���� _x_ task description value tokens SMILES This format enables conditional training, the model learns to predict masked SMILES tokens given properties and masked property values given SMILES, enabling a seamless switch between property prediction and generation as well as addition of new tasks. 4.2 TRAINING OBJECTIVE We train with two alternating masked language modeling objectives. The SMILES objective (Equa- tion (1)) teaches the model to generate molecules conditioned on task descriptions and target prop- erty values: _L_ SMILES( _θ_ ) = E _t,x,Mx −_ � log _pθ_ ( _xi | x\i, yt, dt_ ) (1) � _i∈Mx_ � The property value objective (Equation (2)) teaches property prediction conditioned on molecular structure and task description: _L_ value( _θ_ ) = E _t,x,My_ _−_ � log _pθ_ ( _yt,j | x, dt_ ) (2) _j∈My_ This bidirectional training creates a unified architecture for conditional generation, regression, and classification driven entirely by natural language prompts. 4.3 THEORETICAL FOUNDATIONS We provide theoretical justification for two key claims: why semantic similarity between task de- scriptions should predict transfer performance, and motif pretraining tasks should improve sample efficiency. 4.3.1 TASK SIMILARITY CONTROLS TRANSFER We first formalize the intuition that semantically similar task descriptions should enable better zero- shot transfer. We define this semantic similarity as the cosine similarity between task description embeddings: _s_ ( _d, d[′]_ ) = _⟨e_ ( _d_ ) _, e_ ( _d[′]_ ) _⟩_ . **200 Theorem 1** (Task-Semantic Adaptation Bound) **.** _Under standard Lipschitz and bounded loss as-_ _sumptions, the domain error R on a target task d[′] is bounded by:_
+
+**==> picture [330 x 46] intentionally omitted <==**
+
+_for any convex combination of source tasks {αt} and constant L >_ 0 _._
+
+_Where Rdt_ ( _h_ ) _represents the model’s source domain error (on the pre-training tasks) while Rd′_ ( _h_ ) _represents model’s target domain error (on new tasks). The task embedding is represented as e_ ( _d_ ) _and αt is chosen via softmax over distance αt = softmax_ ( _∥e_ ( _d[′]_ ) _− e_ ( _dt_ ) _∥_ ) _._
+
+_Proof._ See section section A.1.
+
+The _task geometry term_ shows that transfer performance degrades with the distance between task embeddings. For unit-norm embeddings, _∥e_ ( _d[′]_ ) _− e_ ( _dt_ ) _∥_[2] = 2(1 _−_ cos ∠( _e_ ( _d[′]_ ) _, e_ ( _dt_ ))), higher
+
+4
+
+cosine similarity implies better transfer when the weighted source domain errors are appropriately regularized. This provides theoretical backing for our empirical observation that zero-shot perfor- mance correlates with semantic similarity and indicates the number of shots needed to adapt to a re-phrased or related task (see Section 6.2).
+
+## 4.3.2 MOTIF PRETRAINING IMPROVES SAMPLE EFFICIENCY
+
+Next, we establish that when molecular properties depend on sparse combinations of motifs (e.g., functional groups) weak supervision on chemical motifs dramatically reduces sample complexity. This is a chemically informed prior based on the realization that chemists have achieved much success with so-called group contribution methods (Gani, 2019; K¨uhne et al., 1995; Constantinou & Gani, 1994; Fredenslund, 2012), where a property is predicted based on a linear or higher-order combination of group-specific factors (see Background section).
+
+Suppose the pre-trained representations are _motif-aligned_ , where motifs might correspond to func-
+
+tional group features, and suppose downstream molecular properties depend on sparse combinations of _k ≪ p_ motifs, as suggested by the group contribution method. Under standard sparse regression assumptions:
+
+> **233 Theorem 2** (Motif Sample Complexity) **.** _When molecular properties depend on k motifs out of p_
+
+_total features, explicit motif supervision reduces sample complexity from O_[˜] ( _p/ε_[2] ) _to O_[˜] ( _k_ log _p/ε_[2] )
+
+_for achieving prediction error ε._
+
+- _Proof._ See section section A.2.
+
+5 METHODS 5.1 DATASET CONSTRUCTION
+
+We construct our pretraining dataset by programmatically generating chemical task-property pairs from half a million diverse molecules from ChemPile-MLift (Mirza et al., 2025) using the Chem- Caption package, which interfaces with RDKit (Landrum, 2006). Our property set spans atom and bond counts, manually curated functional group indicators, ring system features, molecular descrip- tors, hydrogen bonding patterns, and substructure motifs. This yields over 300 distinct chemical properties per molecule.
+
+Task descriptions are generated using templated natural language patterns. Task descriptions use “ ” “ templates like does the molecule contain `〈` PROPERTY ~~N~~ AME `〉` or what is the `〈` PROPERTY ~~N~~ AME `〉` ”, or “number of `〈` PROPERTY ~~N~~ AME `〉` ”. Property values are serialized as text tokens: binary values as “1”/“0”, integers directly, and continuous values are first normalized and then quantized to four decimal places. This process generates approximately 150 million task- molecule pairs. 5.2 MODEL ARCHITECTURE AND TRAINING We employ a 150M-parameter ModernBERT architecture (Warner et al., 2025) with a shared vo- cabulary combining SMILES tokens derived using a regular expression-based tokenizer (Schwaller et al., 2018), as well as natural language tokens, and numerical value tokens derived from the ModernBERT tokenizer. Input sequences follow the format [task description] [SEP] [property value] [SEP] [SMILES] with a maximum sequence length of 1024. Through- out all of the experiments no sequence has exceeded this limit.
+
+Training alternates between the SMILES objective (Equation (1)) and the property prediction objec-
+
+tive (Equation (2)) every 20 batch steps. The property prediction objective masks the entire property
+
+value and predicts it conditioned on the task description and SMILES sequence. The SMILES com-
+
+pletion objective randomly masks 25% of the SMILES tokens and predicts them conditioned on the description of the task and the value of the property. Both objectives use cross-entropy loss with uni- form task sampling across our property collection. We train the model for 3 epochs, for parameter breakdown see Section A.5.
+
+5
+
+## 5.3 BASELINES
+
+For comparison, we consider the following leading large chemical pretrained models: Mol-
+
+CLR (Wang et al., 2022a), ChemBERTa (Chithrananda et al., 2020), MolFormer (Ross et al.,
+
+2022), MolBert (Fabian et al., 2020), Grover (Rong et al., 2020), MolT5 (Edwards et al., 2022) and MoleculeSTM (Liu et al., 2022). We test all models on the MoleculeNet benchmark (Wu et al., 2018) and photoswitch dataset (Griffiths et al., 2022) (detailed description can be found in Sec- tion A.3.1 and Section A.3.2, respectively).
+
+In the linear probe experiments, we train linear regression models for the regression tasks and lo-
+
+gistic regression models for the classification tasks. For both, we utilize _L_ 1 regularization (with
+
+optimal parameters see section A.2), additionally, for the logistic regression we employ the liblinear solver and balanced class weights. For all experiments, we use 4-fold cross-validation with scaffold splitting. 6 EXPERIMENTS AND RESULTS To demonstrate the effectiveness of our method, we evaluate CILT on multiple standard benchmarks in multiple systematic experiments: **a) embedding alignment** assessing the alignment of embeddings with chemically relevant features; **b) zero-/few-shot transfer** evaluating the performance of CILT on unseen tasks and the amount of data needed for adaptation to these tasks; **c) linear probes 290** comparing embeddings across different models to evaluate innate learned molecular representations;
+
+> **291 d) ablations** for targeted assessment of our training methodology.
+
+Figure 2: **Visualization of learned embeddings represented via t-SNE.** Representations are ex- tracted from the hold-out test set (scaffold-split) used for the pre-training of CILT. The models used for comparisons are MolFormer (Ross et al., 2022), MolT5 (Edwards et al., 2022) and a SMILES- only pre-trained version of CILT.
+
+6.1 REPRESENTATIONS ALIGNMENT WITH FUNCTIONAL GROUPS
+
+**322 Experiment** To show the benefit of pre-training with molecular fingerprints as a weak prior we compare the embeddings across CILT, SMILES only trained version of CILT, MolFormer (Ross et al., 2022) and MolT5 (Edwards et al., 2022) Figure 2.
+
+6
+
+**324 Results** Figure 2 show that CILT’s embeddings cluster align with the presence and absence of functional groups, while the classical MLM approaches and multimodal modeling are not able to make this distinction. This indicates that the model can capture relevant chemical features that are known to chemists and therefore offers a higher level of interpretability. This gives additional support to our assumption that we induce motif-aligned coordinates in our representation (see The- orem 2). For a full breakdown of per-functional group embeddings see Section A.7.
+
+Additionally, we also find attention patterns to show chemically meaningful behaviors (Section A.6). Chemically relevant atoms have higher attention scores, and attention patterns link the task to the property and then to relevant atoms.
+
+6.2 ZERO-SHOT TRANSFER **335 336 Experiment** Theorem 1 predicts that semantically similar task descriptions should enable better zero-shot transfer. To evaluate this, we conducted an experiment on a subset of functional group presence tasks. We rephrase the original template 20 times (see Section A.4) and measure the cosine similarity between the new and original task description. We then group the tasks by cosine similarity and evaluate the model on them. First, we measure the zero-shot performance, and then we gradually increase the number of fine-tuning data points until all of the tasks converge. Baseline models do not have the ability to adapt to new task descriptions, therefore we report only their zero-shot performance. A B Figure 3: **Adaptation to new tasks. A** Adaptation to the new task description for the already seen task based on the cosine similarity to the original task description. Baseline models do not have the ability to adapt to new task descriptions, their zero-shot performance is reported. **B** Required number of data points to adapt to the unseen tasks across 12 methylations. **358 359 360 Results** Figure 3 **A** shows that across all of the datasets the cosine similarity is correlated both in the zero-shot performance and the adaptation setting. We see that the datasets with higher co- sine similarity between the new task description and the original task description from pretraining adapt with fewer data points. This gives support to our assumptions that semantically similar task descriptions should enable better zero-shot transfer. Furthermore, none of the baseline models show zero-shot performance better than random, indicating that the models are not capable of distinguishing between different functional groups. 6.3 FEW-SHOT TRANSFER **368 369 Experiment** Theorem 2 predicts that motif-alignment leads to more data efficient learning. We test this by altering the original task. We perform methylations (replacing one H with CH3) on the substructures that CILT has been trained to understand. We gathered 15 of these new tasks to evaluate our model. After evaluating the zero-shot, we gradually increase the number of training points by 20 (10 positive and 10 negative samples) until our models converge. For the baseline models, we freeze the backbone and replace the last layer with the prediction head and fine-tune the model as a binary classifier.
+
+**377 Results** Figure 3 **B** shows that across all of the methylations, CILT can fine-tune with less than 100 samples and even perform zero-shot inference in some settings. This gives support to our
+
+7
+
+assumptions that motif alignment leads to more data-efficient learning. Furthermore, none of the baseline models show performance significantly better than random at any step of the fine-tuning process.
+
+## 6.4 TRANSFERABILITY OF THE EMBEDDINGS
+
+|
|**Experiment**
We assess the robustness and transferability of the embeddings of CILT and other
baseline encoders using linear probing (Alain & Bengio, 2016). We report the %AUCROC for
classifcation tasks and MAE for regression tasks along with the standard deviations.
Table 1: **Embedding quality estimated using linear probes.** Logistic regression and linear regres-
sion trained on embeddings over 4-fold cross-validation scaffold split. For classifcation we report
%AUCROC (_↑_) and for regression MAE (_↓_). The best results in each column are bolded and the
second best are underlined. CILT is the best model for classifcation tasks.|**Experiment**
We assess the robustness and transferability of the embeddings of CILT and other
baseline encoders using linear probing (Alain & Bengio, 2016). We report the %AUCROC for
classifcation tasks and MAE for regression tasks along with the standard deviations.
Table 1: **Embedding quality estimated using linear probes.** Logistic regression and linear regres-
sion trained on embeddings over 4-fold cross-validation scaffold split. For classifcation we report
%AUCROC (_↑_) and for regression MAE (_↓_). The best results in each column are bolded and the
second best are underlined. CILT is the best model for classifcation tasks.|**Experiment**
We assess the robustness and transferability of the embeddings of CILT and other
baseline encoders using linear probing (Alain & Bengio, 2016). We report the %AUCROC for
classifcation tasks and MAE for regression tasks along with the standard deviations.
Table 1: **Embedding quality estimated using linear probes.** Logistic regression and linear regres-
sion trained on embeddings over 4-fold cross-validation scaffold split. For classifcation we report
%AUCROC (_↑_) and for regression MAE (_↓_). The best results in each column are bolded and the
second best are underlined. CILT is the best model for classifcation tasks.|**Experiment**
We assess the robustness and transferability of the embeddings of CILT and other
baseline encoders using linear probing (Alain & Bengio, 2016). We report the %AUCROC for
classifcation tasks and MAE for regression tasks along with the standard deviations.
Table 1: **Embedding quality estimated using linear probes.** Logistic regression and linear regres-
sion trained on embeddings over 4-fold cross-validation scaffold split. For classifcation we report
%AUCROC (_↑_) and for regression MAE (_↓_). The best results in each column are bolded and the
second best are underlined. CILT is the best model for classifcation tasks.|**Experiment**
We assess the robustness and transferability of the embeddings of CILT and other
baseline encoders using linear probing (Alain & Bengio, 2016). We report the %AUCROC for
classifcation tasks and MAE for regression tasks along with the standard deviations.
Table 1: **Embedding quality estimated using linear probes.** Logistic regression and linear regres-
sion trained on embeddings over 4-fold cross-validation scaffold split. For classifcation we report
%AUCROC (_↑_) and for regression MAE (_↓_). The best results in each column are bolded and the
second best are underlined. CILT is the best model for classifcation tasks.|**Experiment**
We assess the robustness and transferability of the embeddings of CILT and other
baseline encoders using linear probing (Alain & Bengio, 2016). We report the %AUCROC for
classifcation tasks and MAE for regression tasks along with the standard deviations.
Table 1: **Embedding quality estimated using linear probes.** Logistic regression and linear regres-
sion trained on embeddings over 4-fold cross-validation scaffold split. For classifcation we report
%AUCROC (_↑_) and for regression MAE (_↓_). The best results in each column are bolded and the
second best are underlined. CILT is the best model for classifcation tasks.|**Experiment**
We assess the robustness and transferability of the embeddings of CILT and other
baseline encoders using linear probing (Alain & Bengio, 2016). We report the %AUCROC for
classifcation tasks and MAE for regression tasks along with the standard deviations.
Table 1: **Embedding quality estimated using linear probes.** Logistic regression and linear regres-
sion trained on embeddings over 4-fold cross-validation scaffold split. For classifcation we report
%AUCROC (_↑_) and for regression MAE (_↓_). The best results in each column are bolded and the
second best are underlined. CILT is the best model for classifcation tasks.|**Experiment**
We assess the robustness and transferability of the embeddings of CILT and other
baseline encoders using linear probing (Alain & Bengio, 2016). We report the %AUCROC for
classifcation tasks and MAE for regression tasks along with the standard deviations.
Table 1: **Embedding quality estimated using linear probes.** Logistic regression and linear regres-
sion trained on embeddings over 4-fold cross-validation scaffold split. For classifcation we report
%AUCROC (_↑_) and for regression MAE (_↓_). The best results in each column are bolded and the
second best are underlined. CILT is the best model for classifcation tasks.|**Experiment**
We assess the robustness and transferability of the embeddings of CILT and other
baseline encoders using linear probing (Alain & Bengio, 2016). We report the %AUCROC for
classifcation tasks and MAE for regression tasks along with the standard deviations.
Table 1: **Embedding quality estimated using linear probes.** Logistic regression and linear regres-
sion trained on embeddings over 4-fold cross-validation scaffold split. For classifcation we report
%AUCROC (_↑_) and for regression MAE (_↓_). The best results in each column are bolded and the
second best are underlined. CILT is the best model for classifcation tasks.|
+|---|---|---|---|---|---|---|---|---|---|
+|||||**Classifcation (%AUCROC**_↑_**)**||||||
+||**Model**|**BACE**|**BBBP**|**ClinTox**|**HIV**|**SIDER**|**Tox21**|**ToxCast**|**MUV**
**Avg.**|
+||**MolCLR**
**ChemBERTa**
**MolFormer**
**Grover**
**MolBERT**
**MolT5**
**MoleculeSTM**|73_._4_±_3_._6
80_._0_±_3_._6
74_._3_±_2_._1
**84**_._**2**_±_**3**_._**8**
81_._0_±_4_._2
81_._9_±_3_._5
73_._7_±_4_._2|82_._42_±_2_._1
88_._0_±_2_._2
89_._8_±_1_._0
84_._1_±_0_._8
82_._9_±_2_._2
94_._3_±_1_._6
87_._6_±_1_._9|70_._5_±_3_._7
97_._2_±_1_._5
97_._2_±_1_._5
82_._8_±_3_._1
77_._9_±_6_._3
97_._4_±_2_._7
98_._0_±_0_._6|71_._2_±_0_._9
73_._9_±_1_._9
73_._9_±_0_._9
**78**_._**5**_±_**2**_._**3**
75_._4_±_2_._2
75_._8_±_1_._6
71_._1_±_1_._0|58_._9_±_4_._8
54_._1_±_6_._0
55_._8_±_5_._1
56_._7_±_6_._6
56_._9_±_4_._6
**60**_._**3**_±_**7**_._**8**
56_._3_±_5_._2|69_._7_±_7_._6
67_._8_±_6_._8
68_._0_±_6_._2
71_._3_±_6_._6
70_._4_±_6_._9
**74**_._**0**_±_**6**_._**7**
69_._6_±_6_._2|62_._5_±_10_._1
64_._0_±_10_._5
65_._3_±_10_._2
67_._0_±_10_._7
63_._9_±_10_._4
**69**_._**9**_±_**10**_._**4**
64_._2_±_10_._7|70_._54_±_13_._9
69.9
72_._8_±_11_._1
74.7
71_._9_±_15_._7
74.5
73_._8_±_12_._6
75.0
**76**_._**2**_±_**12**_._**8**
73.1
74_._0_±_13_._9
**78.4**
67_._4_±_11_._8
73.5|
+||**CILT(500k)**
**CILT(250k)**|80_._4_±_1_._2
81_._3_±_2_._5|92_._5_±_1_._2
**94**_._**5**_±_**1**_._**3**|97_._7_±_1_._5
**98**_._**3**_±_**0**_._**1**|73_._9_±_1_._5
75_._6_±_0_._7|55_._2_±_6_._3
58_._5_±_6_._8|66_._3_±_6_._9
72_._5_±_6_._0|64_._4_±_10_._3
68_._0_±_11_._2|71_._9_±_13_._7
75.3
75_._2_±_12_._3
78.0|
+||||||**Regression (MAE**_↓_**)**|||||
+||**Model**|**Lipo**|**ESOL**|**FreeSolv**|**CAM**|**PBE0**|**En**_−π∗_|**E**_π −π∗_|**Zn**_−π∗_
**Rank**|
+||**MolCLR**
**ChemBERTa**
**MolFormer**
**Grover**
**MolBERT**
**MolT5**
**MoleculeSTM**|1_._00_±_0_._04
0_._81_±_0_._30
0_._81_±_0_._04
0_._81_±_0_._03
1_._00_±_0_._04
0_._81_±_0_._03
0_._81_±_0_._03|1_._03_±_0_._09
0_._82_±_0_._73
0_._83_±_0_._73
0_._82_±_0_._73
1_._03_±_0_._08
0_._82_±_0_._73
0_._82_±_0_._73|1_._16_±_0_._34
0_._86_±_0_._27
0_._88_±_0_._23
**0**_._**85**_±_**0**_._**27**
1_._64_±_0_._34
0_._86_±_0_._27
0_._86_±_0_._27|36_._7_±_21_._3
34_._2_±_21_._1
43_._1_±_12_._3
39_._8_±_23_._3
47_._0_±_25_._8
**33**_._**3**_±_**17**_._**7**
44_._1_±_15_._3|**37**_._**5**_±_**7**_._**9**
43_._4_±_16_._1
55_._2_±_14_._2
44_._6_±_18_._0
41_._5_±_21_._8
43_._7_±_15_._2
55_._0_±_12_._1|25_._8_±_12_._9
26_._7_±_12_._3
26_._9_±_12_._3
**23**_._**5**_±_**8**_._**7**
31_._0_±_11_._3
24_._7_±_13_._5
27_._3_±_12_._0|50_._5_±_7_._7
**47**_._**3**_±_**10**_._**6**
50_._9_±_9_._1
67_._5_±_11_._1
58_._6_±_10_._3
47_._4_±_12_._1
50_._6_±_7_._8|13_._8_±_5_._3
3.0
13_._8_±_5_._3
2.0
13_._8_±_5_._3
3.8
16_._5_±_5_._2
3.0
16_._6_±_5_._0
5.4
13_._8_±_5_._3
**1.9**
13_._8_±_5_._3
3.6|
+||**CILT(500k)**
**CILT(250k)**|**0**_._**80**_±_**0**_._**02**
0_._81_±_0_._02|0_._88_±_0_._18
0_._90_±_0_._18|0_._91_±_0_._30
0_._91_±_0_._30|46_._9_±_15_._5
49_._1_±_19_._1|58_._5_±_7_._6
65_._8_±_7_._0|27_._5_±_12_._0
27_._5_±_12_._0|51_._3_±_7_._3
51_._3_±_7_._3|13_._9_±_5_._2
4.9
13_._9_±_5_._2
5.1|
+||**Results**
Table 4 shows that CILT demonstrates competitive performance across all the datasets.
In the classifcation setting, it achieves the 2 best and 3 second best scores, while in the regression
setting, it shows the second-to-last performance. We theorise that the lackluster performance on
regression tasks comes from pre-training being dominated by classifcation tasks.
6.5
ABLATIONS
**Experiment**
To isolate the effect of task conditioning, we train a control model using identical
architecture and hyperparameters but with standard masked language modeling on SMILES se-
quences only, without task descriptions or property values. This control methodology represents
conventional molecular pretraining approaches like ChemBERTa and MolFormer.
We evaluate both the task-conditioned model and the SMILES-only baseline on the same down-
stream benchmarks using identical fne-tuning protocols.
**Results**
Table 2 shows that task-conditioned pretraining outperforms SMILES-only pretraining on
15 out of 16 tasks across two benchmark datasets. This confrms that our chemically meaningful
pretraining tasks provide measurable benefts over standard molecular language modeling.|||||||||
+
+## 7 DISCUSSION
+
+**Parameter–Performance Frontier** In Figure 4, we plot the average classification performances from the linear probe experiments (Section 6.4) and compare them against the log number of
+
+8
+
+##
+
+|
|Table 2: **Ablation results.** Logistic regression and linear regression trained on embeddings over a
4-fold cross-validation scaffold split. For classifcation we report %AUCROC (_↑_) and for regression
MAE (_↓_). The best results are bolded. We fnd that CILT outperforms the SMILES-only model on
both classifcation and regression tasks.|Table 2: **Ablation results.** Logistic regression and linear regression trained on embeddings over a
4-fold cross-validation scaffold split. For classifcation we report %AUCROC (_↑_) and for regression
MAE (_↓_). The best results are bolded. We fnd that CILT outperforms the SMILES-only model on
both classifcation and regression tasks.|Table 2: **Ablation results.** Logistic regression and linear regression trained on embeddings over a
4-fold cross-validation scaffold split. For classifcation we report %AUCROC (_↑_) and for regression
MAE (_↓_). The best results are bolded. We fnd that CILT outperforms the SMILES-only model on
both classifcation and regression tasks.|Table 2: **Ablation results.** Logistic regression and linear regression trained on embeddings over a
4-fold cross-validation scaffold split. For classifcation we report %AUCROC (_↑_) and for regression
MAE (_↓_). The best results are bolded. We fnd that CILT outperforms the SMILES-only model on
both classifcation and regression tasks.|Table 2: **Ablation results.** Logistic regression and linear regression trained on embeddings over a
4-fold cross-validation scaffold split. For classifcation we report %AUCROC (_↑_) and for regression
MAE (_↓_). The best results are bolded. We fnd that CILT outperforms the SMILES-only model on
both classifcation and regression tasks.|
+|---|---|---|---|---|---|
+|||**Classifcation (%AUCROC**_↑_**)**||||
+||**Model**
**BACE**
**BBBP**|**ClinTox**
**HIV**
**SIDER**|**tox21**|**ToxCast**|**MUV**
**Mean**|
+||**SmilesOnly**
74_._7_±_2_._3
90_._5_±_1_._1
**CILT(500k)**
80_._4_±_1_._2
92_._5_±_1_._2
**CILT(250k)**
**81**_._**3**_±_**2**_._**5**
**94**_._**5**_±_**1**_._**3**|97_._3_±_2_._0
70_._1_±_1_._2
55_._2_±_6_._1
97_._7_±_1_._5
73_._9_±_1_._5
55_._2_±_6_._3
**98**_._**3**_±_**0**_._**1**
**75**_._**6**_±_**0**_._**7**
**58**_._**5**_±_**6**_._**8**|65_._7_±_6_._6
66_._3_±_6_._9
**72**_._**5**_±_**6**_._**0**|63_._4_±_10_._1
64_._4_±_10_._3
**68**_._**0**_±_**11**_._**2 **|68_._7_±_13_._7
73.2
71_._9_±_13_._7
75.3
**75**_._**2**_±_**12**_._**3**
**78.0**|
+|||**Regression (MAE**_↓_**)**||||
+||**Model**
**Lipo**
**FreeSolv**|**ESOL**
**CAM**
**PBE0**|**En**_−π∗_|**E**_π −π∗_|**Zn**_−π∗_
**Rank**|
+||**SmilesOnly**
0_._81_±_0_._03
0_._89_±_0_._07
**CILT(500k)**
**0**_._**80**_±_**0**_._**02 0**_._**88**_±_**0**_._**18**
**CILT(250k)**
0_._81_±_0_._02
0_._90_±_0_._18|0_._91_±_0_._18
49_._2_±_16_._9
77_._4_±_15_._3
0_._91_±_0_._30
**46**_._**9**_±_**15**_._**5 58**_._**5**_±_**7**_._**6**
0_._91_±_0_._30
49_._1_±_19_._1
65_._8_±_7_._0|30_._0_±_11_._9
27_._5_±_12_._0
27_._5_±_12_._0|62_._8_±_6_._9
51_._3_±_7_._3
51_._3_±_7_._3|17_._1_±_4_._8
2.6
13_._9_±_5_._2
**1.1**
13_._9_±_5_._2
1.6|
+||molecules used in pre-training. Our model CILT shows competitive performance across multiple
versions while only requiring a fraction of molecules. This challenges the assumption that sequence-
based molecular foundation models need to be trained on a huge number of molecules to work well.
**Meaningful Representations Through Soft**
**Inductive Biases.**
Our approach succeeds
by
implementing
soft
inductive
biases—
preferences
for
certain
solutions
without
hard constraints (Wilson, 2025).
Rather
than restricting the model architecture, we
guide learning through natural language task
conditioning.
This creates representations
that cluster by chemically important features
without explicit supervision, while attention
mechanisms
focus
on
chemically
relevant
atoms
when
processing
task
descriptions.
Our theoretical analysis shows that semantic
similarity between task descriptions directly
|||||
+
+**Meaningful Representations Through Soft Inductive Biases.** Our approach succeeds by implementing soft inductive biases— preferences for certain solutions without hard constraints (Wilson, 2025). Rather than restricting the model architecture, we guide learning through natural language task conditioning. This creates representations that cluster by chemically important features without explicit supervision, while attention mechanisms focus on chemically relevant atoms when processing task descriptions. Our theoretical analysis shows that semantic similarity between task descriptions directly predicts transfer performance (Theorem 2), while Theorem 1 formalizes how motif-based supervision reduces sample complexity from _O_ ( _p_ ) to _O_ ( _k_ lg _p_ ). The model learns chemical intuition not as an emergent property by scaling data, but as an explicit objective encoded through structured tasks.
+
+Figure 4: **Log number of pretraining molecules 468 vs. downstream performance.** We show the number of molecules used in pretraining of base- line models and CILT vs. the average classifi- cation performance of linear probes on Molecu- leNet. CILT shows the best tradeoff between dataset size and performance. framework offers practical advantages beyond tectural changes for new properties and enable immediate extensibility. to new chemical properties.
+
+## **Task Conditioning as Architectural Inno-**
+
+**vation** The natural language conditioning
+
+framework offers practical advantages beyond efficiency. Unlike approaches that require architectural changes for new properties and downstream applications, our text-based task descriptions enable immediate extensibility. New chemical tasks can be incorporated without re-training by simply providing appropriate natural language descriptions, making the system immediately adaptable to new chemical properties.
+
+**Future Directions** The current CILT model is pre-trained on a naive selection of motifs and task descriptions; therefore, the next future step would be to improve the selection of pre-training motifs and rephrase the task descriptions (Maini et al., 2024; Pieler et al., 2024). The semantic similarity results also suggest principled curriculum learning possibilities.
+
+9
+
+## 8 CONCLUSIONS
+
+- Foundation models (White, 2023; Ramos et al., 2025; Alampara et al., 2025) for scientific domains
+
+- commonly follow the standard approach following the NLP blueprint: scale data and parameters until patterns emerge (Frey et al., 2023). But scientific domains differ fundamentally from language. Chemical datasets are small, diverse, and experimental data is expensive. But scientific domains possess structured theoretical knowledge that language modeling lacks. In chemistry, for instance, this has been encoded over decades via QSPR relationships and group contribution theory. Rather than rediscovering them from data, we can use them as a weak supervision signal.
+
+- We demonstrate that chemically-informed pretraining achieves competitive performance with orders of magnitude less data. By encoding chemical priors as soft inductive biases through natural lan- guage task conditioning, CILT learns interpretable representations that respect chemical structure while enabling rapid adaptation to new tasks.
+
+- Our approach of pre-training on a broad basis of weakly supervised tasks in multiple masking ob-
+
+- jectives might be a recipe for other domains where there is little data, but one can generate tasks
+
+- with some weak-supervision-like techniques.
+
+## REFERENCES
+
+- Walid Ahmad, Elana Simon, Seyone Chithrananda, Gabriel Grand, and Bharath Ramsundar. Chemberta-2: Towards chemical foundation models. _arXiv preprint arXiv: 2209.01712_ , 2022.
+
+-
+
+- Guillaume Alain and Yoshua Bengio. Understanding intermediate layers using linear classifier probes. _arXiv preprint arXiv: 1610.01644_ , 2016.
+
+- Nawaf Alampara, Anagha Aneesh, Marti˜no R´ıos-Garc´ıa, Adrian Mirza, Mara Schilling-Wilhelmi, Ali Asghar Aghajani, Meiling Sun, Gordan Prastalo, and Kevin Maik Jablonka. General purpose models for the chemical sciences. _arXiv preprint arXiv: 2507.07456_ , 2025. PR Andrews, DJ Craik, and JL Martin. Functional group contributions to drug-receptor interactions. _Journal of medicinal chemistry_ , 27(12):1648–1657, 1984. Viraj Bagal, Rishal Aggarwal, PK Vinod, and U Deva Priyakumar. Molgpt: molecular generation using a transformer-decoder model. _Journal of chemical information and modeling_ , 62(9):2064– 2076, 2021. Davide Boldini, Davide Ballabio, Viviana Consonni, Roberto Todeschini, Francesca Grisoni, and Stephan A Sieber. Effectiveness of molecular fingerprints for exploring the chemical space of natural products. _Journal of Cheminformatics_ , 16(1):35, 2024.
+
+-
+
+- Jannis Born and Matteo Manica. Regression transformer enables concurrent sequence regression and generation for molecular language modelling. _Nature Machine Intelligence_ , 5(4):432–444, 2023. Seyone Chithrananda, Gabriel Grand, and Bharath Ramsundar. Chemberta: large-scale selfsupervised pretraining for molecular property prediction. _arXiv preprint arXiv:2010.09885_ , 2020.
+
+- Leonidas Constantinou and Rafiqul Gani. New group contribution method for estimating properties of pure compounds. _AIChE Journal_ , 40(10):1697–1710, 1994. Mark M Dekker, Vassilis Daioglou, Robert Pietzcker, Renato Rodrigues, Harmen-Sytze De Boer, Francesco Dalla Longa, Laurent Drouet, Johannes Emmerling, Amir Fattahi, Theofano Fotiou, et al. Identifying energy model fingerprints in mitigation scenarios. _Nature Energy_ , 8(12):1395–
+
+- 1404, 2023.
+
+- Carl Edwards, ChengXiang Zhai, and Heng Ji. Text2mol: Cross-modal molecule retrieval with natural language queries. In _Proceedings of the 2021 Conference on Empirical Methods in_ _Natural Language Processing_ , pp. 595–607, Online and Punta Cana, Dominican Republic, 2021. Association for Computational Linguistics. doi: 10.18653/v1/2021.emnlp-main.47. URL [URL removed]
+
+10
+
+- Carl Edwards, Tuan Lai, Kevin Ros, Garrett Honke, Kyunghyun Cho, and Heng Ji. Trans-
+
+- lation between molecules and natural language. In Yoav Goldberg, Zornitsa Kozareva, and Yue Zhang (eds.), _Proceedings of the 2022 Conference on Empirical Methods in Natural Lan-_ _guage Processing_ , pp. 375–413, Abu Dhabi, United Arab Emirates, December 2022. Associ- ation for Computational Linguistics. doi: 10.18653/v1/2022.emnlp-main.26. URL https: //aclanthology.org/2022.emnlp-main.26/. Benedek Fabian, Thomas Edlich, H´el´ena Gaspar, Marwin Segler, Joshua Meyers, Marco Fiscato, and Mohamed Ahmed. Molecular representation learning with language models and domainrelevant auxiliary tasks. _arXiv preprint arXiv: 2011.13230_ , 2020.
+
+- Noelia Ferruz, Steffen Schmidt, and Birte H¨ocker. Protgpt2 is a deep unsupervised language model for protein design. _Nature Communications_ , 13(1):4348, July 2022. ISSN 2041- 1723. doi: 10.1038/s41467-022-32007-7. URL [URL removed] s41467-022-32007-7. Aage Fredenslund. _Vapor-liquid equilibria using UNIFAC: a group-contribution method_ . Elsevier, 2012.
+
+- Aage Fredenslund, Russell L Jones, and John M Prausnitz. Group-contribution estimation of activity
+
+- coefficients in nonideal liquid mixtures. _AIChE Journal_ , 21(6):1086–1099, 1975. Nathan C Frey, Ryan Soklaski, Simon Axelrod, Siddharth Samsi, Rafael Gomez-Bombarelli, Con- nor W Coley, and Vijay Gadepally. Neural scaling of deep chemical models. _Nature Machine_ _Intelligence_ , 5(11):1297–1305, 2023. Rafiqul Gani. Group contribution-based property estimation methods: advances and perspectives.
+
+- _Current Opinion in Chemical Engineering_ , 23:184–196, 2019.
+
+- Justin Gilmer, Samuel S. Schoenholz, Patrick F. Riley, Oriol Vinyals, and George E. Dahl. Neural message passing for quantum chemistry. _arXiv preprint arXiv: 1704.01212_ , 2017. Garrett B. Goh, Nathan O. Hodas, Charles Siegel, and Abhinav Vishnu. Smiles2vec: An inter- pretable general-purpose deep neural network for predicting chemical properties. _arXiv preprint_ _arXiv: 1712.02034_ , 2017. Ryan-Rhys Griffiths, Jake L. Greenfield, Aditya R. Thawani, Arian R. Jamasb, Henry B. Moss,
+
+- Anthony Bourached, Penelope Jones, William McCorkindale, Alexander A. Aldrick, Matthew J. Fuchter, and Alpha A. Lee. Data-driven discovery of molecular photoswitches with multioutput gaussian processes. _Chem. Sci._ , 13(45):13541–13551, 2022. doi: 10.1039/d2sc04306h. URL [URL removed] Trevor Hastie, Robert Tibshirani, and Martin Wainwright. Statistical learning with sparsity. _Mono-_ _graphs on statistics and applied probability_ , 143(143):8, 2015. Shion Honda, Shoi Shi, and Hiroki R. Ueda. Smiles transformer: Pre-trained molecular fingerprint
+
+- for low data drug discovery. _arXiv preprint arXiv: 1911.04738_ , 2019.
+
+-
+
+Zhenyu Hou, Xiao Liu, Yukuo Cen, Yuxiao Dong, Hongxia Yang, Chunjie Wang, and Jie Tang. Graphmae: Self-supervised masked graph autoencoders. _arXiv preprint arXiv: 2205.10803_ , 2022.
+
+- Ross Irwin, Spyridon Dimitriadis, Jiazhen He, and Esben Jannik Bjerrum. Chemformer: a pre- trained transformer for computational chemistry. _Machine Learning: Science and Technology_ , 3(1):015022, March 2022. ISSN 2632-2153. doi: 10.1088/2632-2153/ac3ffb. URL https:
+
+- //iopscience.iop.org/article/10.1088/2632-2153/ac3ffb.
+
+- Jos´e Jim´enez-Luna, Francesca Grisoni, and Gisbert Schneider. Drug discovery with explainable artificial intelligence. _Nature Machine Intelligence_ , 2(10):573–584, 2020.
+
+- Kevin G Joback and Robert C Reid. Estimation of pure-component properties from groupcontributions. _Chemical Engineering Communications_ , 57(1-6):233–243, 1987.
+
+11
+
+- Mario Krenn, Florian H¨ase, AkshatKumar Nigam, Pascal Friederich, and Alan Aspuru-Guzik. Self-
+
+- referencing embedded strings (selfies): A 100% robust molecular string representation. _Machine_ _Learning: Science and Technology_ , 1(4):045024, 2020. Mario Krenn, Qianxiang Ai, Senja Barthel, Nessa Carson, Angelo Frei, Nathan C Frey, Pascal Friederich, Th´eophile Gaudin, Alberto Alexander Gayle, Kevin Maik Jablonka, et al. Selfies and the future of molecular string representations. _Patterns_ , 3(10), 2022. R K¨uhne, R-U Ebert, F Kleint, G Schmidt, and G Sch¨u¨urmann. Group contribution methods to estimate water solubility of organic chemicals. _Chemosphere_ , 30(11):2061–2077, 1995.
+
+- Greg Landrum. RDKit: Open-source cheminformatics; [[URL removed]]([URL removed]). _RDKit_ , 2006. URL [[URL removed] org]([URL removed]). Shengchao Liu, Weili Nie, Chengpeng Wang, Jiarui Lu, Zhuoran Qiao, Ling Liu, Jian Tang, Chaowei Xiao, and Anima Anandkumar. Multi-modal molecule structure-text model for text- based retrieval and editing. _arXiv preprint arXiv: 2212.10789_ , 2022. Shengchao Liu, Yanjing Li, Zhuoxinran Li, Anthony Gitter, Yutao Zhu, Jiarui Lu, Zhao Xu, Weili
+
+- Nie, Arvind Ramanathan, Chaowei Xiao, Jian Tang, Hongyu Guo, and Anima Anandkumar. A
+
+- text-guided protein design framework. _arXiv preprint arXiv: 2302.04611_ , 2023.
+
+- Yuyan Liu, Sirui Ding, Sheng Zhou, Wenqi Fan, and Qiaoyu Tan. Moleculargpt: Open large lan- guage model (llm) for few-shot molecular property prediction. _arXiv preprint arXiv: 2406.12950_ , 2024. Al L Lydersen. Estimation of critical properties of organic compounds. _Univ. Wisconsin Coll. Eng.,_ _Eng. Exp. Stn. Rep. 3_ , 1955. Pratyush Maini, Skyler Seto, He Bai, David Grangier, Yizhe Zhang, and Navdeep Jaitly. Rephras-
+
+- ing the web: A recipe for compute and data-efficient language modeling. _arXiv preprint_
+
+- _arXiv:2401.16380_ , 2024. Andreas Mayr, G¨unter Klambauer, Thomas Unterthiner, Marvin Steijaert, J¨org K. Wegner, Hugo Ceulemans, Djork-Arn´e Clevert, and Sepp Hochreiter. Large-scale comparison of machine learn- ing methods for drug target prediction on chembl. _Chemical Science_ , 9(24):5441–5451, 2018. ISSN 2041-6520, 2041-6539. doi: 10.1039/C8SC00148K. URL [URL removed] org/?DOI=C8SC00148K. Adrian Mirza, Nawaf Alampara, Marti˜no R´ıos-Garc´ıa, Mohamed Abdelalim, Jack Butler, Bethany
+
+- Connolly, Tunca Dogan, Marianna Nezhurina, B¨unyamin S¸en, Santosh Tirunagari, et al.
+
+- Chempile: A 250gb diverse and curated dataset for chemical foundation models. _arXiv preprint_
+
+- _arXiv:2505.12534_ , 2025.
+
+- Mehryar Mohri, Afshin Rostamizadeh, and Ameet Talwalkar. _Foundations of machine learning_ . Adaptive computation and machine learning series. MIT Press, Cambridge, MA, second edition edition, 2018. ISBN 9780262039406. Siddharth M. Narayanan, James D. Braza, Ryan-Rhys Griffiths, Albert Bou, Geemi Wellawatte, Mayk Caldas Ramos, Ludovico Mitchener, Samuel G. Rodriques, and Andrew D. White. Training a scientific reasoning model for chemistry. _arXiv preprint arXiv: 2506.17238_ , 2025.
+
+- Michael Pieler, Marco Bellagente, Hannah Teufel, Duy Phung, Nathan Cooper, Jonathan Tow, Paulo Rocha, Reshinth Adithyan, Zaid Alyafeai, Nikhil Pinnaparaju, Maksym Zhuravinskyi, and Car- los Riquelme. Rephrasing natural text data with different languages and quality levels for large language model pre-training. _arXiv preprint arXiv: 2410.20796_ , 2024.
+
+- Mateusz Praski, Jakub Adamczyk, and Wojciech Czech. Benchmarking pretrained molecular embedding models for molecular representation learning. _arXiv preprint arXiv:2508.06199_ , 2025.
+
+12
+
+- Mayk Caldas Ramos, Christopher J. Collison, and Andrew D. White. A review of large language
+
+- models and autonomous agents in chemistry. _Chemical Science_ , 16(6):2514–2572, 2025. ISSN 2041-6520, 2041-6539. doi: 10.1039/D4SC03921A. URL [URL removed] ?DOI=D4SC03921A.
+
+Garvesh Raskutti, Martin J Wainwright, and Bin Yu. Restricted eigenvalue properties for correlated gaussian designs. _The Journal of Machine Learning Research_ , 11:2241–2259, 2010. Yu Rong, Yatao Bian, Tingyang Xu, Weiyang Xie, Ying Wei, Wenbing Huang, and Junzhou Huang. Self-supervised graph transformer on large-scale molecular data. _Advances in Neural Information_ _Processing Systems_ , 33, 2020. Jerret Ross, Brian Belgodere, Vijil Chenthamarakshan, Inkit Padhi, Youssef Mroueh, and Payel Das. Large-scale chemical language representations capture molecular structure and properties. _Nature_ _Machine Intelligence_ , 4(12):1256–1264, 2022. doi: 10.1038/s42256-022-00580-7. Franco Scarselli, Marco Gori, Ah Chung Tsoi, Markus Hagenbuchner, and Gabriele Monfardini. The graph neural network model. _IEEE transactions on neural networks_ , 20(1):61–80, 2008. Philippe Schwaller, Th´eophile Gaudin, D´avid L´anyi, Costas Bekas, and Teodoro Laino. “found in translation”: predicting outcomes of complex organic chemistry reactions using neural sequence- to-sequence models. _Chemical Science_ , 9(28):6091–6098, 2018. ISSN 2041-6520, 2041-6539. doi: 10.1039/C8SC02339E. URL [URL removed] Marwin H. S. Segler, Thierry Kogej, Christian Tyrchan, and Mark P. Waller. Generating focused molecule libraries for drug discovery with recurrent neural networks. _ACS Central Science_ , 4(1): 120–131, January 2018. ISSN 2374-7943, 2374-7951. doi: 10.1021/acscentsci.7b00512. URL [URL removed] Philipp Seidl, Andreu Vall, Sepp Hochreiter, and G¨unter Klambauer. Enhancing activity prediction models in drug discovery with the ability to understand human language. _arXiv preprint arXiv: 2303.03363_ , 2023. Noam Shazeer and Mitchell Stern. Adafactor: Adaptive learning rates with sublinear memory cost. _arXiv preprint arXiv: 1804.04235_ , 2018. Bing Su, Dazhao Du, Zhao Yang, Yujie Zhou, Jiangmeng Li, Anyi Rao, Hao Sun, Zhiwu Lu, and Ji- Rong Wen. A molecular multimodal foundation model associating molecule graphs with natural language. _arXiv preprint arXiv: 2209.05481_ , 2022. Ross Taylor, Marcin Kardas, Guillem Cucurull, Thomas Scialom, Anthony Hartshorn, Elvis Saravia, Andrew Poulton, Viktor Kerkez, and Robert Stojnic. Galactica: A large language model for science. _arXiv preprint arXiv: 2211.09085_ , 2022. Robert Tibshirani. Regression shrinkage and selection via the lasso. _Journal of the Royal Statistical_ _Society Series B: Statistical Methodology_ , 58(1):267–288, 1996. Jesse Vig. A multiscale visualization of attention in the transformer model. In _Proceedings of the_ _57th Annual Meeting of the Association for Computational Linguistics: System Demonstrations_ , pp. 37–42, Florence, Italy, July 2019. Association for Computational Linguistics. doi: 10.18653/ v1/P19-3007. URL [URL removed]
+
+- C´edric Villani. _Optimal transport: old and new_ , volume 338. Springer, 2008.
+
+- Yuyang Wang, Jianren Wang, Zhonglin Cao, and Amir Barati Farimani. Molecular contrastive
+
+- learning of representations via graph neural networks. _Nature Machine Intelligence_ , 4(3):
+
+- 279–287, March 2022a. ISSN 2522-5839. doi: 10.1038/s42256-022-00447-x. URL https:
+
+- //[URL removed]
+
+-
+
+- Yuyang Wang, Jianren Wang, Zhonglin Cao, and Amir Barati Farimani. Molecular contrastive learning of representations via graph neural networks. _Nature Machine Intelligence_ , pp. 1–9, 2022b. doi: 10.1038/s42256-022-00447-x.
+
+13
+
+- Benjamin Warner, Antoine Chaffin, Benjamin Clavi´e, Orion Weller, Oskar Hallstr¨om, Said
+
+- Taghadouini, Alexis Gallagher, Raja Biswas, Faisal Ladhak, Tom Aarsen, Griffin Adams, Jeremy Howard, and Iacopo Poli. Smarter, better, faster, longer: A modern bidirectional encoder for fast, memory efficient, and long context finetuning and inference. _Annual Meeting of the Association_ _for Computational Linguistics_ , 2025. doi: 10.18653/v1/2025.acl-long.127.
+
+-
+
+- David Weininger. Smiles, a chemical language and information system. 1. introduction to methodology and encoding rules. _Journal of chemical information and computer sciences_ , 28(1):31–36,
+
+- 1988.
+
+- Andrew D White. The future of chemistry is language. _Nature Reviews Chemistry_ , 7(7):457–458, 2023.
+
+- Andrew Gordon Wilson. Deep learning is not so mysterious or different. _arXiv preprint arXiv:_
+
+- _2503.02113_ , 2025.
+
+-
+
+- Zhenqin Wu, Bharath Ramsundar, Evan N Feinberg, Joseph Gomes, Caleb Geniesse, Aneesh S Pappu, Karl Leswing, and Vijay Pande. Moleculenet: a benchmark for molecular machine learn- ing. _Chemical science_ , 9(2):513–530, 2018.
+
+- Zhenxing Wu, Odin Zhang, Xiaorui Wang, Li Fu, Huifeng Zhao, Jike Wang, Hongyan Du, Dejun Jiang, Yafeng Deng, Dongsheng Cao, Chang-Yu Hsieh, and Tingjun Hou. Lever- aging language model for advanced multiproperty molecular optimization via prompt en- gineering. _Nature Machine Intelligence_ , 6(11):1359–1369, October 2024. ISSN 2522- 5839. doi: 10.1038/s42256-024-00916-5. URL [URL removed] s42256-024-00916-5.
+
+- Yuning You, Tianlong Chen, Yongduo Sui, Ting Chen, Zhangyang Wang, and Yang Shen. Graph
+
+- contrastive learning with augmentations. _arXiv preprint arXiv: 2010.13902_ , 2020.
+
+A APPENDIX
+
+A.1 PROOF OF THEOREM 1: TASK-SEMANTIC ADAPTATION BOUND
+
+We prove that the domain error on a target task can be bounded in terms of source task performance plus a term that depends on the semantic similarity between task descriptions. The key insight is to use optimal transport theory to relate distributional differences to task embedding distances.
+
+Let _Pd_ denote the joint distribution of motif-task pairs ( _ϕθ_ ( _X, d_ ) _, gd_ ( _X_ )) for task _d_ , where _X ∼D_ . The domain error under task _d_ is _Rd_ ( _h_ ) = E( _Z,Y_ ) _∼Pd_ [ _ℓ_ ( _h_ ( _Z_ ) _, Y_ )].
+
+**739 Step 1: Kantorovich-Rubinstein bound.** We want to bound the difference in domain error be- tween the target task _d[′]_ and a weighted combination of source tasks _d_ . Since the loss function _ℓ_ is _Lf_ -Lipschitz by assumption, we can apply the Kantorovich-Rubinstein duality, which provides a connection between differences in expectations and Wasserstein distances (Villani, 2008):
+
+**==> picture [451 x 66] intentionally omitted <==**
+
+**750 751 Step 2: Pushforward representation.** The joint distributions _Pd_ arise from our specific model architecture. We can represent them as pushforwards of simpler distributions through our learned mapping.
+
+Define the map Ψ : ( _x, u_ ) _�→_ ( _ϕθ_ ( _x, d_ ( _u_ )) _, gd_ ( _u_ )( _x_ )) that transforms molecules and task embed- dings into motifs and tasks. This map encapsulates both our learned representation function and the ground truth property computation.
+
+14
+
+Since each task _d_ corresponds to a fixed task embedding _e_ ( _d_ ), we can write: _Pd_ = Ψ#( _D ⊗ δe_ ( _d_ )) _,_ where Ψ# Ψ## denotes the pushforward measure. This means the distribution _Pdd_ is obtained by taking the product of the molecular distribution _D_ with a point mass at the task embedding _e_ ( _d_ ),, then applying the transformation Ψ. Ψ.. For the weighted combination of source distributions: _T T_ � _αtPdt_ = Ψ# _D ⊗_ � _αtδe_ ( _dt_ ) _. t_ =1 � _t_ =1 � **767 768 Step 3: Wasserstein contraction.** Now we can use the property that the Wasserstein distance contracts under Lipschitz maps. By assumption, the map Ψ is Ψ is is _L_ Ψ-Lipschitz in the task embedding-Lipschitz in the task embedding component. This means that if two task embeddings are close, the resulting motif-task distributions will also be close. The contraction property gives us: _T T_ _W_ 1 _Pd′,_ � _αtPdt ≤ L_ Ψ _W_ 1 _D ⊗ δe_ ( _d′_ ) _, D ⊗_ � _αtδe_ ( _dt_ ) � _t_ =1 � � _t_ =1 � Since the molecular distribution _D_ is the same in both cases, the Wasserstein distance only depends on the task embedding component: _T T_ _W_ 1 _δe_ ( _d′_ ) _,_ � _αtδe_ ( _dt_ ) = � _αt∥e_ ( _d[′]_ ) _− e_ ( _dt_ ) _∥_ � _t_ =1 � _t_ =1 The distributional distance between tasks thus reduces to the geometric distance between their em- beddings. This justifies why semantic similarity should predict transfer performance. **786 787 Step 4: Finite-sample bound.** Finally, we need to account for the fact that we only have finite samples from the target task. The standard approach uses Rademacher complexity to bound the gap between empirical and population risk. For bounded loss functions and hypothesis class _H_ , concentration inequalities give (Mohri et al., 2018): ln(2 _/δ_ ) _Rd′_ ( _h_ ) _≤ R_[ˆ] _d′_ ( _h_ ) + 2R _n_ ( _H_ ) + 3� 2 _n_ with probability at least 1 _− δ_ , where _R_[ˆ] _d′_ ( _h_ ) is the empirical domain error on the target task. Combining all steps and minimizing the empirical term over _h ∈H ∈H_ yields the bound in Theorem 1. The interpretation is that target task performance is bounded by a weighted combination of source performance, plus a penalty term proportional to the distance between task embeddings, plus a finite-sample correction. A.2 PROOF OF THEOREM 2: MOTIF SAMPLE COMPLEXITY We analyze when explicit motif supervision can reduce sample complexity compared to standard dense regression. The key insight is that chemical properties often depend on sparse combinations of motifs, making this a sparse regression problem where _k ≪ p_ motifs matter. **806 807 Setup and intuition.** Consider a pretrained encoder that produces representations _ψθ_ ( _x_ ) _∈_ R _[p]_ that are _motif-aligned_ —meaning different coordinates respond to different motifs. If downstream molecular properties depend on only _k_ out of _p_ possible motifs, then the optimal linear head _w[⋆]_ should be _k_ -sparse.
+
+where Ψ# Ψ## denotes the pushforward measure. This means the distribution _Pdd_ is obtained by taking the product of the molecular distribution _D_ with a point mass at the task embedding _e_ ( _d_ ),, then applying the transformation Ψ. Ψ..
+
+**Step 3: Wasserstein contraction.** Now we can use the property that the Wasserstein distance contracts under Lipschitz maps. By assumption, the map Ψ is Ψ is is _L_ Ψ-Lipschitz in the task embedding-Lipschitz in the task embedding component. This means that if two task embeddings are close, the resulting motif-task distributions will also be close.
+
+The distributional distance between tasks thus reduces to the geometric distance between their embeddings. This justifies why semantic similarity should predict transfer performance.
+
+Combining all steps and minimizing the empirical term over _h ∈H ∈H_ yields the bound in Theorem 1. The interpretation is that target task performance is bounded by a weighted combination of source performance, plus a penalty term proportional to the distance between task embeddings, plus a finite-sample correction.
+
+15
+
+We analyze the LASSO estimator (Tibshirani, 1996), which is designed to recover sparse solutions: _w_ ˆ _∈_ arg min 1 2[+] _[ λ][∥][w][∥]_[1] _w∈_ R _[p]_ 2 _n[∥][y][ −]_[Ψ] _[w][∥]_[2] where Ψ _∈_ R _[n][×][p]_ stacks rows _ψθ_ ( _xi_ ) _[⊤]_ and _yi_ = _w[⋆][⊤] ψθ_ ( _xi_ ) + _ξi_ . **816 817818 Step 1:** mality of **Basic inequality.** _w_ ˆ, it achieves lower objective value than the true parameterThe proof follows the standard template for LASSO analysis. _w[⋆]_ : By opti- 1 2[+] _[ λ][∥][w]_[ˆ] _[∥]_[1] _[≤]_[1] 2[+] _[ λ][∥][w][⋆][∥]_[1] 2 _n[∥][y][ −]_[Ψ ˆ] _[w][∥]_[2] 2 _n[∥][y][ −]_[Ψ] _[w][⋆][∥]_[2] Since _y_ = Ψ _w[⋆]_ + _ξ_ where _ξ_ is noise, we can expand and simplify to get:
+
+We analyze the LASSO estimator (Tibshirani, 1996), which is designed to recover sparse solutions:
+
+**==> picture [183 x 22] intentionally omitted <==**
+
+where ∆= _w_ ˆ _− w[⋆]_ is the estimation error. The left side is the prediction error, while the right side has a stochastic term and a regularization term.
+
+**830 831 Step 2: Controlling the stochastic term.** The term _n_[1] _[ξ][⊤]_[Ψ∆][involves][the][noise][and][is][the][main] source of randomness. We can bound it using the dual norm relationship: 1 1 1 _≤ ∥_ ∆ _∥_ 1 _n[ξ][⊤]_[Ψ∆=] � _n_[Ψ] _[⊤][ξ,]_[ ∆] � ���� _n_[Ψ] _[⊤][ξ]_ ���� _∞_ Since the noise _ξ_ is sub-Gaussian, concentration inequalities tell us that with high probability: 1 log _p_ _≤ Cσ_ ���� _n_[Ψ] _[⊤][ξ]_ ���� _∞_ ~~�~~ _n_ We choose the regularization parameter _λ_ to be twice this bound, so that: 1 _n[ξ][⊤]_[Ψ∆] _[≤][λ]_ 2 _[∥]_[∆] _[∥]_[1] This is a standard technique in high-dimensional statistics: choose _λ_ large enough to dominate the stochastic fluctuations. **848 849 Step 3: Decomposability and cone constraint.** Now we analyze the regularization term _∥w[⋆] ∥_ 1 _−_ _∥w_ ˆ _∥_ 1. Since _w[⋆]_ is _k_ -sparse with support _S_ = supp( _w[⋆]_ ), we can decompose: ˆ _∥w[⋆] ∥_ 1 _−∥w∥_ 1 = _∥wS[⋆][∥]_[1] _[−∥][w]_[ˆ] _[S][∥]_[1] _[−∥][w]_[ˆ] _[S][c][∥]_[1] Using the reverse triangle inequality _∥a∥_ 1 _−∥a_ + _b∥_ 1 _≤∥b∥_ 1: _∥wS[⋆][∥]_[1] _[−∥][w]_[ˆ] _[S][∥]_[1][=] _[ ∥][w] S[⋆][∥]_[1] _[−∥][w] S[⋆]_[+ ∆] _[S][∥]_[1] _[≤∥]_[∆] _[S][∥]_[1] ˆ Therefore: _∥w[⋆] ∥_ 1 _−∥w∥_ 1 _≤∥_ ∆ _S∥_ 1 _−∥_ ∆ _Sc ∥_ 1. Combining with the previous steps gives: 1 2 _[≤][λ]_[3] _[λ]_ 2 _n[∥]_[Ψ∆] _[∥]_[2] 2 _[∥]_[∆] _[∥]_[1][ +] _[ λ]_[(] _[∥]_[∆] _[S][∥]_[1] _[ −∥]_[∆] _[S][c][∥]_[1][) =] 2 _[∥]_[∆] _[S][∥]_[1] _[ −][λ]_ 2 _[∥]_[∆] _[S][c][∥]_[1]
+
+Rearranging: _∥_ ∆ _Sc ∥_ 1 _≤_ 3 _∥_ ∆ _S∥_ 1 (cone constraint).
+
+16
+
+**864 Step 4: Restricted eigenvalue and final bound.** The cone constraint (Hastie et al., 2015) allows us to control the estimation error using the restricted eigenvalue (RE) condition (Raskutti et al., 2010). This condition requires that the design matrix Ψ has good properties when restricted to sparse vectors: 1 _n[∥]_[Ψ∆] _[∥]_ 2[2] _[≥][κ][∥]_[∆] _[∥]_[2] 2 for all ∆ satisfying the cone constraint. The RE condition is natural for motif-aligned representations: it says that different motifs produce sufficiently different representation patterns that they can be distinguished statistically. Using the Cauchy-Schwarz inequality _∥_ ∆ _S∥_ 1 _≤ √k∥_ ∆ _∥_ 2 and combining with our earlier bound: _κ_ 2 _[≤]_[1] 2 _[≤]_[3] _[λ] √k∥_ ∆ _∥_ 2 2 _[∥]_[∆] _[∥]_[2] 2 _n[∥]_[Ψ∆] _[∥]_[2] 2 ~~_√_~~ _k_ Solving: _∥_ ∆ _∥_ 2 _≤_[3] _κ[λ]_[.] For the prediction error: 1 2 _[≤]_[9] _[k] n[∥]_[Ψ( ˆ] _[w][ −][w][⋆]_[)] _[∥]_[2] _κ[λ]_[2] **883 884 885 Sample complexity conclusion.** With _λ_ = _Cσ_ � lo _n_ g _p_[,][achieving][prediction][error][at][most] _[ε]_[2][re-] quires: 9 _k[p] ≤ ε_[2] _κ[·][ C]_[2] _[σ]_[2][ lo] _n_[g] Solving for _n_ : 2 _[p] σ[p]_ _n ≥_[9] _[C]_[2] _[σ]_[2] _[k]_[ lo][g] = _O_[˜] _[k]_[ lo][g] _._ _κε_[2] � _κ[·] ε_[2] � This improves upon the standard dense regression bound of _O_[˜] ( _p/ε_[2] ) by a factor of _p/_ ( _k_ log _p_ ). When motifs are sparse ( _k ≪ p_ ), this represents an exponential improvement in sample complexity. A.3 DATA We provide a short overview of the dataset used in this study. A.3.1 MOLECULENET
+
+We use MoleculeNet Wu et al. (2018) as one of our benchmarks. All of the benchmarks are used
+
+with scaffold splitting. The benchmark contains the following datasets:
+
+> **906 BACE** BACE contains approximately 1.5k molecules and their bioactivity measurement for in-
+
+hibition of human _β_ -secretase 1 (BACE-1). The bioactivity values are an aggregate of scientific literature and not from a single bioassay.
+
+**910 BBBP** The blood-brain barrier penetration dataset contains approximately 2k molecules, and its activity is determined by whether it is able to pass the highly selective membrane and enter the brain fluid.
+
+**913 914 ClinTox** The clinical toxicity (ClinTox) contains two bioactivity prediction tasks: (1) FDA ap- proval and (2) failure of clinical trials. The dataset contains approximately 58k molecules.
+
+**917 HIV** The HIV dataset contains approximately 40k of molecules and measures the evidence of anti-HIV activity.
+
+17
+
+**918 SIDER** The side effect resources (SIDER) dataset contains approximately 1.4k molecules span- ning 27 assays measuring the side effects of drugs.
+
+> **921 Tox21** The Tox21 dataset measures the drug-related effects spanning 12 different prediction tasks
+
+with over 7.8k molecules.
+
+> **924 ToxCast** The ToxCast dataset provides 617 classification tasks based on in vitro drug screening.
+
+The dataset contains 8.5 molecules.
+
+> **927 MUV** The maximum unbiased validation (MUV) dataset spans 17 tasks designed to identify active compounds. The dataset contains approximately 93k molecules.
+
+**930 Lipo** The lipophilicity dataset contains hydrophobicity measurements of 4.2k molecules.
+
+**932 ESOL** The Delaney Solubility Dataset contains water solubility measurements for over 1.1k of molecules.
+
+**935 FreeSolv** The Freesolv dataset contains the measurements for hydration free energy for small molecules and contains 624 molecules.
+
+- A.3.2 PHOTOSWITCH
+
+-
+
+For additional regression tasks, we use the photoswitch dataset (Griffiths et al., 2022), where we use the datasets that contain more than 100 molecules, and we again scaffold-split the datasets.
+
+> **942 CAM** The CAM-B3LYP benchmark contains 117 molecules and computed electronic transition
+
+wavelengths in nm.
+
+> **945 PBE0** The PBE0 dataset contains 114 molecules and computed electronic transition wavelengths.
+
+_E_ **and** _Z_ **isomer** These datasets contain the wavelengths of transitions between different electronic states ( _n_ , _π_ , _π∗_ ) that have been observed for the different isomers.
+
+- A.4 TEMPLATE REPHRASES
+
+List of rephrased templates for functional groups used in Section 6.2. The 〈GROUP 〉parameters are replaced with the name of the functional group:
+
+- “is the 〈GROUP〉 group present”
+
+- “does it have a 〈GROUP〉 group”
+
+- “is there a 〈GROUP〉 group in it”
+
+- “does this structure include a 〈GROUP〉 group”
+
+- “is a 〈GROUP〉 group part of the molecule”
+
+- “does the compound contain a 〈GROUP〉 group”
+
+- “can a 〈GROUP〉 group be found here”
+
+- “is the 〈GROUP 〉functional group present”
+
+- “does the molecule feature a 〈GROUP〉 group”
+
+- “is there evidence of a 〈GROUP 〉functional group”
+
+- “does this molecule exhibit a 〈GROUP〉 group”
+
+- “is a 〈GROUP 〉functional group detectable”
+
+- “does the structure show the presence of 〈GROUP 〉”
+
+- “can a 〈GROUP〉 group be identified here”
+
+- “is 〈GROUP 〉part of the chemical composition”
+
+18
+
+ - “does the sample possess a 〈GROUP〉 group”
+
+ - “is there a 〈GROUP 〉moiety in this compound”
+
+- • “does this substance carry a 〈GROUP〉 group”
+
+- • “can the molecule be classified as containing a 〈GROUP〉 group”
+
+ - “is the 〈GROUP 〉function observed in this case”
+
+- A.5 TRAINING PARAMETERS
+
+Table 3: **Training hyperparameters.** Hyperparameter setting used to train our model.
+
+|Hyperparameter|Value|
+|---|---|
+|Batch size
76
GPUs
6 x NVIDIA H100
GPUh
252h
Alternating loss steps
20
Precision
foat16
Hidden size
768
Maximum of positional embeddings
1024
Number of hidden layers
22
Learning rate
0.01
Warmup steps
10000
Optimizer
AdaFactor (Shazeer & Stern, 2018)||
+
+**1000**
+
+**1001 1002 1003 1004 1005 1006**
+
+**1007**
+
+**1008**
+
+**1009**
+
+**1010**
+
+**1011**
+
+**1012 1013 1014 1015 1016 1017**
+
+**1018**
+
+**1019 1020 1021 1022 1023 1024 1025**
+
+19
+
+**1026** A.6 ATTENTION **1027 1028** In Section A.6, we show an example of how attention maps the property value token to the descrip- **1029** tion and the relevant atoms, in this case, that is Fluorine (F). Additionally, we show that the atom **1030** itself attends to a phrase “contains halogen” as well as the property value. **1031** In Section A.6, we show the average attention per SMILES token across all attention heads for the **1032** second-to-last layer. The results are averaged over 5000 molecules that contain a halogen group, **1033** where we fix the task description as shown in Section A.6. **1034 1035 1036 1037**
+
+**1038**
+
+**1039**
+
+**1040 1041 1042 1043 1044 1045 1046**
+
+**1047 1048 1049 1050 1051** Figure 5: **Attention heads in the second to last layer exhibit the ability to correlate the task 1052 to prediction and corresponding chemical element.** Top, the source token for correct prediction **1053** is attended by the task description and all Fluorine (F) atoms. Bottom, the Fluorine atom receives **1054** attention from value tokens as well as the phrase “contains halogen group.” Illustration created using **1055** BertViz (Vig, 2019). **1056 1057 1058 1059 1060 1061 1062 1063**
+
+**1064**
+
+**1065** Figure 6: **Average attention per SMILES token across all attention heads for the second-to-last 1066 layer for molecules containing a halogen group.** The task description is fixed as shown in A.6 and **1067** the experiment contains 5000 molecules that in turn contain the halogen group.
+
+**1068**
+
+**1069 1070 1071 1072 1073 1074 1075**
+
+**1076**
+
+**1077**
+
+**1078**
+
+**1079**
+
+20
+
+**1080** A.7 PER FUNCTIONAL GROUP EMBEDDINGS **1081 1082** Here we show a full embedding breakdown per functional group. The molecules are from the test **1083** set that has been scaffold split against the training set. As shown in the Fig. A.7 CILTs embeddings **1084** cluster for each of the groups (except thiol) into clusters based on the functional group. **1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109** Figure 7: **Functional group embeddings breakdown.** The task description is fixed for each of **1110** the functional groups. The model is in prediction mode, where the value of the functional group **1111** is masked and the molecule is shown in full. Molecules are from the test set that is scaffold split **1112** against the train set. **1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131**
+
+**1132**
+
+**1133**
+
+21
+
+**1134** A.8 CILT SCALING RESULTS BREAKDOWN **1135 1136** Here we expand on the section 6.4 results for all of the version of CILT Models we have trained that **1137** are not shown in the main text. We conduct the same linear probe experiments as in the previously **1138** mentioned section and give a breakdown based on the number of molecules in the pre-training **1139** dataset. **1140**
+
+|**1141**
**1142**
**1143**
**1144**
**1145**
**1146**
**1147**
**1148**
**1149**
**1150**
**1151**
**1152**
**1153**
**1154**
**1155**
**1156**
**1157**
**1158**
**1159**
**1160**
**1161**
**1162**
**1163**
**1164**
**1165**
**1166**
**1167**
**1168**
**1169**
**1170**
**1171**
**1172**
**1173**
**1174**
**1175**
**1176**
**1177**
**1178**
**1179**
**1180**
**1181**
**1182**
**1183**
**1184**
**1185**
**1186**
**1187**|Table 4: **Linear probe breakdown for different versions of CILT**Logistic regression and linear
regression trained on embeddings over 4-fold cross-validation scaffold split. For classifcation we
report %AUCROC (_↑_) and for regression MAE (_↓_).|
+|---|---|
+||**Classifcation (%AUCROC**_↑_**)**|
+||**Model**
**BACE**
**BBBP**
**ClinTox**
**HIV**
**SIDER**
**Tox21**
**ToxCast**
**MUV**
**Avg.**|
+||**75k**
78_._9_±_4_._0
94_._3_±_1_._3
98_._1_±_1_._6
74_._9_±_2_._0
57_._3_±_6_._4
72_._5_±_6_._3
68_._4_±_11_._0
73_._8_±_13_._0
77.3
**125k**
79_._0_±_3_._3
94_._4_±_0_._8
98_._3_±_0_._1
75_._3_±_1_._1
58_._0_±_6_._7
72_._7_±_6_._4
68_._1_±_11_._2
72_._5_±_13_._4
77.3
**250k**
81_._3_±_2_._5
94_._5_±_1_._3
98_._3_±_0_._1
75_._6_±_0_._7
58_._5_±_6_._8
72_._5_±_6_._0
68_._0_±_11_._2
75_._2_±_12_._3
78.0
**375k**
78_._9_±_3_._8
94_._4_±_0_._7
98_._7_±_1_._1
75_._7_±_1_._0
58_._8_±_5_._8
72_._3_±_6_._0
68_._6_±_11_._0
74_._2_±_11_._6
77.7
**500k**
80_._4_±_1_._2
92_._5_±_1_._2
97_._7_±_1_._5
73_._9_±_1_._5
55_._2_±_6_._3
66_._3_±_6_._9
64_._4_±_10_._3
71_._9_±_13_._7
75.3|
+||**Regression (MAE**_↓_**)**|
+||**Model**
**Lipo**
**ESOL**
**FreeSolv**
**CAM**
**PBE0**
**En**_−π∗_
**E**_π −π∗_
**Zn**_−π∗_
**Rank**|
+||**75k**
0_._81_±_0_._02
0_._91_±_0_._30
0_._90_±_0_._18
42_._0_±_12_._6
66_._5_±_7_._4
27_._6_±_11_._9
51_._3_±_8_._0
14_._0_±_5_._2
3
**125k**
0_._81_±_0_._02
0_._91_±_0_._30
0_._90_±_0_._18
38_._7_±_13_._9
67_._7_±_7_._9
27_._5_±_12_._0
51_._3_±_7_._3
14_._0_±_5_._2
3
**250k**
0_._81_±_0_._02
0_._90_±_0_._18
0_._91_±_0_._30
49_._1_±_19_._1
65_._8_±_7_._0
27_._5_±_12_._0
51_._3_±_7_._3
13_._9_±_5_._2
4
**375k**
0_._81_±_0_._02
0_._90_±_0_._18
0_._91_±_0_._30
43_._6_±_11_._9
66_._4_±_6_._8
27_._6_±_12_._0
51_._3_±_7_._3
13_._9_±_5_._2
3
**500k**
0_._80_±_0_._02
0_._88_±_0_._18
0_._91_±_0_._30
46_._9_±_15_._5
58_._5_±_7_._6
27_._5_±_12_._0
51_._3_±_7_._3
13_._9_±_5_._2
2.5|
+|||
+
+22
+
+## **1188** A.9 USE OF LLMS
+
+## **1189**
+
+> **1190** Large language models were employed as assistive tools for tasks including text rewriting,
+
+> **1191** spellchecking, minor stylistic improvements, and the writing of this statement. All content was **1192** reviewed and verified by the authors, who take full responsibility for the final manuscript. LLMs **1193** did not contribute to research ideation or substantive writing decisions. **1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241**
+
+23
+
diff --git a/open_review/iclr2026_25049.json b/open_review/iclr2026_25049.json
new file mode 100644
index 0000000000000000000000000000000000000000..228aec6f3c4df589a6cecd5e6014c31ee76381ae
--- /dev/null
+++ b/open_review/iclr2026_25049.json
@@ -0,0 +1,100 @@
+{
+ "paper_id": "iclr2026_25049",
+ "source": "iclr2026",
+ "source_year": 2026,
+ "title": "Recurrent Action Transformer with Memory",
+ "abstract": "Transformers have become increasingly popular in offline reinforcement learning (RL) due to their ability to treat agent trajectories as sequences, reframing policy learning as a sequence modeling task. However, in partially observable environments (POMDPs), effective decision-making depends on retaining information about past events - something that standard transformers struggle with due to the quadratic complexity of self-attention, which limits their context length. One solution to this problem is to extend transformers with memory mechanisms. We propose the Recurrent Action Transformer with Memory (RATE), a novel transformer-based architecture for offline RL that incorporates a recurrent memory mechanism designed to regulate information retention. We evaluate RATE across a diverse set of environments: memory-intensive tasks (ViZDoom-Two-Colors, T-Maze, Memory Maze, Minigrid-Memory, and POPGym), as well as standard Atari and MuJoCo benchmarks. Our comprehensive experiments demonstrate that RATE significantly improves performance in memory-dependent settings while remaining competitive on standard tasks across a broad range of baselines. These findings underscore the pivotal role of integrated memory mechanisms in offline RL and establish RATE as a unified, high-capacity architecture for effective decision-making over extended horizons.",
+ "rebuttal": "These results show that RATE not only improves long-horizon memory performance but also delivers concrete efficiency benefits in speed and resource usage. Key reason - segment-level recurrence reduces attention complexity (RATE process the trajectory in $N=T/K$ segments of length $K$ instead of full sequence $T$). Additionally, MRV cost is negligible relative to multi-head attention, since MRV is a single lightweight cross-attention over $m\\times m$ tensors, where $m$ ~ $10^0$.\n\nWe have revised the manuscript to improve clarity (see the highlighted in blue changes in the updated version). \n\nWe are once again grateful to the Reviewer kH4W for their detailed comments on our work. We are open to further discussion and will be happy to answer any other questions about our work.\n\n### General Response by Authors\nWe sincerely appreciate the Reviewers’ thoughtful feedback and their recognition of RATE as a principled and effective memory-augmented transformer architecture for offline RL in long-horizon, partially observable environments. Their comments affirm the contributions of our work, and we are pleased that they find the motivation, theoretical grounding, and empirical evaluation meaningful. Below, we summarize the key strengths highlighted in the reviews:\n\n1. **Clear motivation and principled architectural design.** Addressing the concrete limitation of Decision Tr [...]\n\n### Official Comment by Authors\nWe thank Reviewer 012m for the detailed assessment. We appreciate the acknowledgment of the central contributions, in particular the integration of recurrence into transformer-based RL agents to address long-context limitations. We also value the recognition of the breadth of the empirical study, including comparisons against diverse memory architectures and training schemes, as well as ablations that isolate each component of the approach and an evaluation of multiple MRV gating mechanisms.\n\nWe have revised the manuscript to address the comments on figure quali [...]\n\n### Official comment by Authors\nWe are grateful to Reviewer kH4W for detailed comments on our work, as well as for the positive assessment of the empirical study covering a comprehensive battery of memory tasks and theoretical analysis.\n\n> W1, W2. Although the motivation is clear, it seems like the performance of RATE relied heavily on previously introduced memory embeddings and cached hidden states, as shown in the ablation study RQ1. This raises a question about the degree of novelty and contribution of the MRV component itself versus inherited advantages from prior architectures. \n\nThank yo [...]\n\n### Official comment by Authors\nWe are grateful to Reviewer xQWj for comments on our work, as well as for acknowledging the comprehensive experimental coverage and the presence of a theoretical component.\n\n> W1, W4. Incremental novelty. RATE mainly extends prior memory-augmented transformers (RMT, TrXL, Compressive Transformer) by combining existing mechanisms; MRV, while effective, is a variant of cross-attention gating rather than a fundamentally new idea; \n\nThank you for the comment. RATE is indeed built on prior memory transformers, but its novelty comes from combining segment-level recurr [...]\n\n### Official comment by Authors\nWe are grateful to Reviewer tfiE for their feedback on our work. In particular, we appreciate the Reviewer's appreciation of our experiments and ablation studies.\n\n> Q1. Minors: The algorithm 1 can be clearer in term of describing the outputs. The output of the algorithm 1 is inside the for loop.\n\nIn the original notation, we meant that after processing each segment within the for loop, we obtain the predicted action values for that segment to calculate the loss, as well as an updated value for memory embeddings. We acknowledge that the current version of Algo [...]\n\n### Second part of the Authors Comment\n> Q1. The Decision Transformer (DT) underperformance on memory-dependent tasks such as T-Maze may stem not from memory limitations, but rather from its lack of trajectory stitching ability; that is, its inability to combine underperforming trajectories into coherent long-horizon trajectories. In cases where underperforming trajectories are more frequent than successful ones, DT will often follow the underperforming paths, further degrading performance. The results would be more convincing if the authors compared against (applying on top of) more advanced [...]\n\n### Second part of the Authors Comment\n**Questions:**\n\n> Q2. Can MRV’s gating dynamics be visualized—e.g., which segments’ information it chooses to retain or forget?\n\nThanks for the suggestion! We will add the visualization to the Appendix in the updated .pdf file of the paper.\n\n> Q3. How sensitive is performance to the number of memory tokens m and segment length K?\n\nThe short answer: even adding a single memory token significantly improves model performance compared to using no memory tokens at all. A few memory embeddings (5-15) are sufficient to achieve optimal performance. Dividing seque [...]\n\n### Second part of the Authors Comment\n**Questions:**\n\n> Q1. Can you explain what static recurrence means here?\n\nBy \"static recurrence\" we mean recurrence where the recurrent state is not updated by the model (no gates, no memory evolution). We've added an explanation of this term in the updated text (please, see L210-213).\n\n\n> Q2. What is \"alignment\" referring to here?\n\nIn our work, the term “alignment” refers only to a geometric notion. Two vectors are called “$\\alpha$-aligned” when the angle between them is at most a given threshold $\\alpha$, meaning that the vectors point in similar direct [...]",
+ "initial_scores": [
+ 2,
+ 8,
+ 4,
+ 4
+ ],
+ "score_mean": 4.5,
+ "score_variance": 6.33,
+ "score_spread": 6,
+ "score_min": 2,
+ "score_max": 8,
+ "decision": "Accept (Poster)",
+ "rebuttal_validity_ground_truth": true,
+ "meta_review": "",
+ "forum_id": "kByN4v0M3e",
+ "primary_area": "reinforcement learning",
+ "n_reviews": 4,
+ "per_review": [
+ {
+ "reviewer": "Reviewer_o12m",
+ "review_id": "JosbuqaS5R",
+ "scores": {
+ "rating": 2,
+ "soundness": 3,
+ "presentation": 1,
+ "contribution": 3,
+ "confidence": 3
+ },
+ "review_text_chars": 4425,
+ "edit_detected": true,
+ "edit_delta_seconds": 1049972,
+ "post_rebuttal_text_signal": false,
+ "score_mentions_in_text": []
+ },
+ {
+ "reviewer": "Reviewer_tfiE",
+ "review_id": "7BkBnY41Ew",
+ "scores": {
+ "rating": 8,
+ "soundness": 3,
+ "presentation": 4,
+ "contribution": 3,
+ "confidence": 4
+ },
+ "review_text_chars": 1169,
+ "edit_detected": true,
+ "edit_delta_seconds": 1052551,
+ "post_rebuttal_text_signal": false,
+ "score_mentions_in_text": []
+ },
+ {
+ "reviewer": "Reviewer_xQWj",
+ "review_id": "1zMEAcST2D",
+ "scores": {
+ "rating": 4,
+ "soundness": 2,
+ "presentation": 3,
+ "contribution": 2,
+ "confidence": 4
+ },
+ "review_text_chars": 3278,
+ "edit_detected": true,
+ "edit_delta_seconds": 1201316,
+ "post_rebuttal_text_signal": false,
+ "score_mentions_in_text": []
+ },
+ {
+ "reviewer": "Reviewer_kH4W",
+ "review_id": "Gh9zDPPEsz",
+ "scores": {
+ "rating": 4,
+ "soundness": 3,
+ "presentation": 2,
+ "contribution": 1,
+ "confidence": 4
+ },
+ "review_text_chars": 3937,
+ "edit_detected": true,
+ "edit_delta_seconds": 1251509,
+ "post_rebuttal_text_signal": false,
+ "score_mentions_in_text": []
+ }
+ ],
+ "any_review_edit_detected": true,
+ "any_post_rebuttal_text_signal": false,
+ "review_score_dimensions": [
+ "rating",
+ "soundness",
+ "presentation",
+ "contribution",
+ "confidence"
+ ]
+}
\ No newline at end of file
diff --git a/open_review/iclr2026_25049.md b/open_review/iclr2026_25049.md
new file mode 100644
index 0000000000000000000000000000000000000000..c64662be85c93c8fc402b2523a82d1d4549509e8
--- /dev/null
+++ b/open_review/iclr2026_25049.md
@@ -0,0 +1,877 @@
+
+
+## RECURRENT ACTION TRANSFORMER WITH MEMORY
+
+Authors withheld for review
+
+## ABSTRACT
+
+Transformers have become increasingly popular in offline reinforcement learning (RL) due to their ability to treat agent trajectories as sequences, reframing policy learning as a sequence modeling task. However, in partially observable environments (POMDPs), effective decision-making depends on retaining information about past events – something that standard transformers struggle with due to the quadratic complexity of self-attention, which limits their context length. One solution to this problem is to extend transformers with memory mechanisms. We propose the **Recurrent Action Transformer with Memory (RATE)** , a novel transformer-based architecture for offline RL that incorporates a recurrent memory mechanism designed to regulate information retention. We evaluate RATE across a diverse set of environments: memory-intensive tasks (ViZDoom-Two-Colors, T-Maze, Memory Maze, Minigrid-Memory, and POPGym), as well as standard Atari and MuJoCo benchmarks. Our comprehensive experiments demonstrate that RATE significantly improves performance in memory-dependent settings while remaining competitive on standard tasks across a broad range of baselines. These findings underscore the pivotal role of integrated memory mechanisms in offline RL and establish RATE as a unified, highcapacity architecture for effective decision-making over extended horizons. Code: [URL removed]
+
+## 1 INTRODUCTION
+
+Originally developed for Natural Language Processing (NLP), transformers (Vaswani et al., 2017) have recently demonstrated strong performance across a wide range of Reinforcement Learning (RL) settings (Agarwal et al., 2023; Li et al., 2023). They have been successfully applied to online (Parisotto et al., 2020; Esslinger et al., 2022), offline (Chen et al., 2021; Jiang et al., 2023; Wu et al., 2023; Zhuang et al., 2024; Wang et al., 2025), model-based (Chen et al., 2022; Robine et al., 2023), and in-context RL (Polubarov et al., 2025; Grigsby et al., 2024; Schmied et al., 2024). In particular, transformers show promise for tackling long-horizon credit assignment and operating in memoryintensive environments (Ni et al., 2023; Grigsby et al., 2024; Esslinger et al., 2022; Parisotto et al., 2020), provided the full trajectory fits within the model context. Despite their success, transformers face fundamental limitations when applied to long sequences due to the quadratic complexity of self-attention (Keles et al., 2023), which restricts their applicability in long-horizon inference tasks. While various techniques have been proposed to extend the context window (Dai et al., 2019; Bulatov et al., 2022), these approaches often suffer from training instability (Zhang et al., 2022) or rely on task-specific sparse attention patterns that may not generalize well beyond NLP (Beltagy et al., 2020; Zaheer et al., 2020). Memory-augmented transformers offer a promising alternative by enabling access to past information without expanding the context length. Motivated by advances in memory mechanisms for NLP models (Dai et al., 2019; Bulatov et al., 2022), we investigate how such approaches can be adapted to RL. Unlike NLP, RL involves structured and modality-rich inputs – observations, actions, and rewards – that require domain-specific encoding, and frequently exhibit high sparsity in both reward signal and observations.
+
+In RL, memory usually refers either to using past information within an episode (Lampinen et al., 2021; Ni et al., 2023), or to transferring experience across environments (Kang et al., 2023; Team et al., 2023), aiding generalization, sample efficiency, and Meta-RL (Duan et al., 2016; Wang et al., 2016), and we focus on the former.
+
+1
+
+**==> picture [278 x 213] intentionally omitted <==**
+
+Figure 1: Recurrent Action Transformer with Memory (RATE). The model processes trajectory divided into _n_ segments _Sn_ with memory embeddings _Mn_ , where _R_ denotes returns-to-go (future rewards), _o_ are observations, _a_ are actions, and _Mn_ are memory embeddings attached to each segment _Sn_ to retain important historical information.
+
+We introduce the **Recurrent Action Transformer with Memory** ( **RATE** ; see Figure 1), a memoryaugmented transformer that incorporates three complementary mechanisms: learned memory embeddings, recurrent caching of past hidden states, and a novel **Memory Retention Valve** ( **MRV** ) for selective information flow. We empirically show that memory mechanisms effectively preserve information from previous steps, allowing the model to use past information when making decisions in the present. MRV is designed to control the process of updating memory embeddings and prevent the loss of important information when processing long sequences, thus enabling the processing of highly sparse tasks. To assess the effectiveness of our memory mechanisms, we conduct extensive experiments across a diverse set of memory-intensive environments, including ViZDoom-Two-Colors (Sorokin et al., 2022), Memory Maze (Pasukonis et al., 2022), MinigridMemory (Chevalier-Boisvert et al., 2023), Passive T-Maze (Ni et al., 2023), and POPGym (Morad et al., 2023a), as well as standard RL benchmarks such as Atari (Bellemare et al., 2013) and MuJoCo (Fu et al., 2021). We also study the impact of memory on the performance of the proposed model. RATE interpolates and extrapolates well outside the transformer context and is able to retain important information for a long time when operating in highly sparse environments.
+
+Our main contributions are as follows:
+
+1. We propose **Recurrent Action Transformer with Memory** (RATE), a new transformer for offline RL that combines three complementary memory mechanisms: (i) memory embeddings, (ii) caching of hidden states, and (iii) a **Memory Retention Valve** (MRV), which uses cross-attention to retain key information over long horizons (Section 3).
+
+2. We conduct extensive evaluations on memory-intensive tasks – including ViZDoom TwoColors, Memory Maze, Minigrid-Memory, POPGym, and Passive T-Maze – showing that RATE consistently outperforms strong baselines (Section 4.1).
+
+3. We further show that RATE matches or surpasses standard baselines on the Atari and MuJoCo benchmarks, demonstrating strong generalization across task types and highlighting the model’s versatility (Section 4.1).
+
+## 2 BACKGROUND
+
+**Offline RL.** In RL (Sutton & Barto, 2018), a task is formalized as a Markov Decision Process (MDP): _⟨S, A, P, R⟩_ , where _s ∈S_ are states, _a ∈A_ are actions, _P_ ( _s[′] |s, a_ ) is a transition function, and _r_ = _R_ ( _s, a_ ) is a reward function. States satisfy the Markov property: P( _st_ +1 _|st_ ) = P( _st_ +1 _|s_ 1 _, . . . , st_ ). A trajectory _τ_ of length _T_ is a sequence ( _s_ 0 _, a_ 0 _, r_ 0 _, . . . , sT −_ 1 _, aT −_ 1 _, rT −_ 1), where _rt_ = _R_ ( _st, at_ ) is the immediate reward at the timestep _t_ . The return-to-go (Chen et al., 2021) _Rt_ =[�] _[T] t[′][ −]_ = _t_[1] _[r][t][′]_[is]
+
+2
+
+**==> picture [92 x 93] intentionally omitted <==**
+
+**----- Start of picture text -----**
+RATE
Segment 2
**----- End of picture text -----**
+
+**==> picture [91 x 93] intentionally omitted <==**
+
+**----- Start of picture text -----**
+RATE
Segment 3
**----- End of picture text -----**
+
+**==> picture [95 x 93] intentionally omitted <==**
+
+**----- Start of picture text -----**
+RATE
Segment 1
memory
embeddings
(read)
memory
embeddings
(write)
**----- End of picture text -----**
+
+**==> picture [114 x 95] intentionally omitted <==**
+
+**----- Start of picture text -----**
+DT
**----- End of picture text -----**
+
+Figure 2: Attention maps of RATE and DT on the T-Maze (Ni et al., 2023) task with corridor length _T_ = 8. DT is trained on full 8-step trajectories, while RATE processes the sequence in three segments of length 3 recurrently, passing information between segments through memory embeddings.
+
+the sum of future rewards from _t_ . The goal is to learn a policy _π_ maximizing the expected return. While online RL iteratively collects trajectories through environment interaction, offline RL uses a fixed dataset of trajectories, making it suitable for scenarios where environment interaction is costly or risky. A popular offline RL method, Decision Transformer (DT) (Chen et al., 2021), models return-conditioned trajectories with a GPT-style architecture, avoiding value estimation. However, its fixed context window limits performance in tasks with delayed rewards or long-term dependencies, motivating memory-augmented models.
+
+**POMDP.** In real-world, agents often receive partial observations rather than full states, breaking the Markov property. For instance, a robot using only camera input or an agent relying on past context. Such cases are modeled as Partially Observable MDPs (POMDPs): _⟨S, A, O, P, R, Z⟩_ , where _o ∈O_ are observations and _Zs[a][′] o_[=] _[P]_[(] _[o][t]_[+1] _[|][s][t]_[+1][=] _[s][′][, a][t]_[=] _[a]_[)][ defines the observation function.][Since] single observations are insufficient, agents must use history to infer useful state representations.
+
+## 3 RECURRENT ACTION TRANSFORMER WITH MEMORY
+
+Transformers excel at sequence modeling, including offline RL (Chen et al., 2021; Janner et al., 2021), but struggle with long-horizon tasks due to fixed context and quadratic attention cost. In memory tasks, agents must recall information seen thousands of steps earlier – something models like DT cannot do once cues fall outside context. We propose the **Recurrent Action Transformer with Memory (RATE)** , which introduces segment-level recurrence and dynamic memory control. RATE processes trajectories in segments, using lightweight memory and a learnable **Memory Retention Valve (MRV)** to decide what to retain or discard. In T-Maze (Ni et al., 2023), the agent receives a one-bit cue _o_ 0 at the first step indicating whether to turn left or right at the end of a maze. Solving the task requires remembering this cue despite sparse rewards. DT fails once _o_ 0 leaves the context, making retrieval at inference impossible. Figure 2 shows this: DT attends to _o_ 0 only when it fits the context, while RATE segments the input and propagates the memory embeddings, preserving the cue to the end and enabling explicit memory retention.
+
+RATE combines memory embeddings (Bulatov et al., 2022), cached hidden states[1] (Dai et al., 2019), and a novel MRV to handle long and sparse sequences. The architecture is shown in Figure 1. Let a trajectory
+
+## **Algorithm 1** RATE
+
+**Require:** _R ∈_ R _[T] , o ∈_ R _[d][o][×][T] , a ∈_ R _[T]_ 1: _Roa_ ˜˜[˜] _← ← ←_ EncoderEncoderEncoder _oaR_ (( _oa_ () _R_ ) ) 2: _τ_ 0: _T −_ 1 _←{_ ( _R_[˜] _t,_ ˜ _ot,_ ˜ _at_ ) _}[T] t_ =0 _[ −]_[1] 3: _Mn ← M_ 0 _∼N_ (0 _,_ 1) 4: **for** _n_ in [0 _, T//K −_ 1] **do** 5:6: _SS_ ˜ _nn ←← τ_ concat _nK_ :( _n_ +1)( _MK n, Sn, Mn_ ) 7: _a_ ˆ _n, Mn_ +1 _←_ Transformer( _S_[˜] _n_ ) 8: _Mn_ +1 _←_ MRV( _Mn, Mn_ +1) _a_ ˆ _n →L_ ( _an,_ ˆ _an_ ) _, Mn_ +1 9: **end for**
+
+**Algorithm 2** Memory Retention Valve
+
+**Require:** _Mn, Mn_ +1 _∈_ R _[m][×][d]_ 1: **Q** _h ← Mn_ **W** _Q[h][T]_
+
+**==> picture [170 x 79] intentionally omitted <==**
+
+> 1In our setting, _cached hidden states_ refers to the mechanism introduced in Transformer-XL (Dai et al., 2019), in which the hidden activations computed for preceding segments are stored and reused as an extended key-value context when processing the next segment. Concretely, instead of recomputing all past representations from scratch, the model concatenates the fixed, non-trainable hidden states from earlier segments with the current segment’s inputs, thereby enabling segment-level recurrence and information flow across boundaries without backpropagating gradients through the cached states.
+
+3
+
+_τ_ 0: _T −_ 1 of length _T_ be represented by triplets ( _Rt, ot, at_ ), where _Rt_ is the return-to-go, _ot_ the observation, and _R_ ˜ _t_ = Encoder _at_ the action. _R_ ( _Rt_ ) _,_ Each modality is encoded using modality-specific encoders (Algorithm _o_ ˜ _t_ = Encoder _o_ ( _ot_ ) _, a_ ˜ _t_ = Encoder _a_ ( _at_ ). The encoded sequence 1is): split into _N_ = _T//K_ non-overlapping segments _Sn_ of length _K_ . Thus, the effective context is _K_ eff = _N × K_ , well beyond standard attention limits. Each segment is prepended and appended with the same memory embeddings _Mn ∈_ R _[m][×][d]_ , where _m_ is the number of memory tokens and _d_ is the embedding dimension. This design follows from the use of causal self-attention in the decoder: the prefix copy of _Mn_ provides read access, since every token in the segment _Sn_ can attend backward to the incoming memory, while the suffix copy provides write access, since these memory tokens appear after the segment in the causal ordering and allow the final layers to attend forward into _Sn_ to produce updated memory. Using only the prefix would make memory readable but not updatable, whereas using only the suffix would prevent the segment from accessing previously stored information. Both copies are therefore required for RATE’s recurrent memory mechanism:
+
+**==> picture [293 x 13] intentionally omitted <==**
+
+Each segment is then processed by the transformer,
+
+**==> picture [271 x 13] intentionally omitted <==**
+
+and the resulting memory _Mn_ +1 is refined via the MRV before being passed to the next segment.
+
+Naively forwarding memory embeddings leads to error accumulation or overwriting of relevant information. To address this, we introduce the **Memory Retention Valve (MRV)** , a cross-attention module that filters new memory tokens through the lens of the previous ones (Algorithm 2):
+
+MRV( _Mn, Mn_ +1) = FFN (MultiHead(Query = _Mn,_ Key = _Mn_ +1 _,_ Value = _Mn_ +1)) (3)
+
+This mechanism allows _Mn_ to control what to retain or overwrite when updating to _Mn_ +1. Unlike static recurrence[2] , it preserves sparse, long-range information. RATE overcomes DT’s limits by extending context with recurrence, preserving early cues via MRV, and retaining key events in sparse settings. As a result, RATE solves tasks where DT fails, generalizes beyond training, and remains competitive on standard MDPs.
+
+**Attention pattern analysis.** Figure 2 compares attention maps of RATE and DT on a T-Maze sequence. DT (right) attends only within a fixed window, focusing on recent tokens while losing early cues like _o_ 0. RATE (left) segments the input and uses memory tokens to propagate information across segments. These tokens retain access to _o_ 0 even in later segments, demonstrating RATE’s ability to model long-range dependencies beyond the context window through structured memory.
+
+## 3.1 PRESERVATION PROPERTIES OF MRV
+
+We formalize the intuition that the _cross-attention–based_ MRV prevents catastrophic overwriting of memory by preserving alignment between consecutive memory states. All vectors are row-vectors. We use _∥· ∥F_ for the Frobenius norm and _∥· ∥_ 2 for the _ℓ_ 2 norm.
+
+Let _Mn ∈_ R _[m][×][d]_ and _M_[˜] _n_ +1 _∈_ R _[m][×][d]_ denote the incoming and updated memory embeddings at segment _n_ , where _m_ is the number of memory tokens and _d_ is the model dimension. We assume that each row _i_ of _Mn_ is _ℓ_ 2-normalized: _∥Mn,i∥_ 2 = 1 . The MRV computes the next memory state as: _Q_ = _MnWQ, K_ = _M_[˜] _n_ +1 _WK, V_ = _M_[˜] _n_ +1 _WV , A_ = softmax � _Q_ ~~_√_~~ _Kd[⊤]_ � _, Mn_ +1 = _AV WM ._
+
+_α_ **-alignment condition.** The memory embeddings are said to satisfy _α-alignment_[3] if there exists a constant _α ∈_ (0 _,_ 1] such that for every row _Mn,i_ , there exists a row _Vj_ for which: _⟨VjWM , Mn,i⟩≥_
+
+> 2 _Static recurrence_ denotes the practice of forwarding cached hidden states from one segment to the next without any gating or content-based filtering. For instance, Transformer-XL uses this mechanism by directly reusing past hidden states as extended key-value context, which increases the effective horizon but provides no control over what information is retained or overwritten
+
+> 3 Throughout the paper, _alignment_ refers only to a geometric notion: two vectors are “ _α_ -aligned” when the angle between them does not exceed a specified threshold. This has no relation to alignment or preference tuning in large language models.
+
+4
+
+**==> picture [396 x 68] intentionally omitted <==**
+
+Figure 3: Comparison of RATE with transformer baselines (DT, RMT, TrXL) on ViZDoom-TwoColors trained on the first _T_ train = 90 steps of the episode: with ( **a** ) and without ( **b** ) pillar in the first 45 steps of the episode; calculated at environment steps 0 – 89 ( **c** ) and 90 – 179 ( **d** ) with pillar in the first 45 steps; depending on the return-to-go ( **e, f, g** ). Episode timeout – 2100 steps.
+
+_α._ This implies that the angle between _VjWM_ and _Mn,i_ is at most arccos _α_ . Empirically, this condition holds in trained models, as the transformer tends to preserve useful memory content and avoids orthogonal rotations between segments.
+
+**Theorem 1** ( **On memory loss bounds** ) **.** _Let each memory row be ℓ_ 2 _-normalized, the α-alignment condition hold, and A_ = _softmax QK[⊤] be the MRV attention matrix. Then:_ � ~~_√_~~ _d_ �
+
+**==> picture [390 x 26] intentionally omitted <==**
+
+_In words: at least a_ �1 _−_ �2 �1 _− m[α]_ �[�] _part of the memory is guaranteed to be preserved after a single MRV update (Equation 4 (right)), and the memory loss is upper bounded by Equation 4 (left)._
+
+_Proof._ Since each row of the attention matrix _A_ is a probability distribution, we have[�] _j[A][ij]_[= 1] for every _i_ . By the pigeonhole principle, there exists an index _j[∗]_ such that _Aij∗ ≥ m_[1][.]
+
+By assumption, for each _Mn,i_ there exists a _Vj_ such that _⟨VjWM , Mn,i⟩≥ α_ . In particular, this holds for _j[∗]_ : _⟨Vj∗ WM , Mn,i⟩≥ α_ . Using the MRV definition _Mn_ +1 _,i_ =[�] _j[A][ij][V][j][W][M]_[, we write:]
+
+**==> picture [349 x 26] intentionally omitted <==**
+
+Let _θi_ be the angle between _Mn_ +1 _,i_ and _Mn,i_ . Since both vectors are _ℓ_ 2-normalized, we have: cos _θi_ = _∥M⟨nM_ +1 _n_ + _,i_ 1 _∥,_ 2 _i·∥,MMnn,i,i⟩ ∥_ 2 _[≥] m[α][.]_[ Using the identity] _[ ∥][u][ −][v][∥]_ 2[2][= 2(1] _[ −]_[cos] _[ θ]_[)][ for unit vectors:]
+
+_∥Mn_ +1 _,i − Mn,i∥_ 2[2] _[≤]_[2] 1 _−[α] , ⇒∥Mn_ +1 _,i − Mn,i∥_ 2 _≤_ 2 1 _−[α] ._ (6) � _m_ � ~~�~~ � _m_ � Summing over all memory tokens and applying the previous bound: _∥Mn_ +1 _− Mn∥_[2] _F_ = _m_ � _i_ =1 _[∥][M][n]_[+1] _[,i][ −][M][n,i][∥]_ 2[2] _[≤]_[2] _[m]_ �1 _− m[α]_ � _,_ which simplifies to: _∥Mn_ +1 _− Mn∥F ≤_ �2 _m_ �1 _− m[α]_ � _._ Consequently, since _∥Mn∥F_ = _[√] m_ due to row normalization, we conclude: _∥Mn_ +1 _− Mn∥F ≤_ �2 �1 _− m[α]_ � _· ∥Mn∥F ._ We now derive the lower bound Equation 4 (left) using the reverse triangle inequality. For any matrices _Mn_ +1 _, Mn ∈_ R _[m][×][d]_ , we have: _∥Mn_ +1 _∥F ≥∥Mn∥F − ∥Mn_ +1 _− Mn∥F ._ Substituting the upper bound from Equation 4 (right): _∥Mn_ +1 _− Mn∥F ≤_ �2 �1 _− m[α]_ � _· ∥Mn∥F ,_ we obtain: _∥Mn_ +1 _∥F ≥_ �1 _−_ �2 �1 _− m[α]_ �[�] _· ∥Mn∥F ,_ which completes the proof of Equation 4. ■
+
+4 EXPERIMENTAL EVALUATION
+
+We designed our experiments to achieve two main goals: (a) to showcase the strengths of the RATE model in memory-intensive environments (T-Maze, ViZDoom-Two-Colors, Memory Maze, MinigridMemory, POPGym), and (b) to assess its effectiveness in standard MDPs, demonstrating its versatility across domains.
+
+**Baselines.** To evaluate the performance of RATE, we compare it against a diverse set of baselines spanning several categories: **transformer-based models** including _Decision Transformer_ (DT) (Chen et al., 2021), _Recurrent Memory Transformer_ (RMT) (Bulatov et al., 2022) and _Transformer-XL_ (TrXL) (Dai et al., 2019) specially adapted by us for offline RL, and _Long-Short Decision Transformer_ (LSDT) (Wang et al., 2025); **classic baselines** such as _Behavior Cloning with_ an MLP backbone
+
+5
+
+**==> picture [238 x 115] intentionally omitted <==**
+
+**----- Start of picture text -----**
+Average Return Total
50 Red Pillars
Green Pillars
25
0
Imbalance
1
1.34 1.07
0 0.06 0.05 0.30 0.29 0.22 0.23 0.40 0.59 0.37 0.30 0.30
RATE RMTCQL-LSTMBC-LSTM TrXLDLSTMDGRU LSDT DTDMambaCQL-MLPBC-MLPRandom
**----- End of picture text -----**
+
+(BC-MLP) and _Conservative Q- Learning_ (Kumar et al., 2020) with an MLP backbone (CQL-MLP); **recurrent models** including _Behavior Cloning with an LSTM backbone_ (Hochreiter & Schmidhuber, 1997) (BC-LSTM), _CQL with LSTM_ (CQL-LSTM), _Decision LSTM_ (DLSTM) (Siebenborn et al., 2022), and its _GRU-based variant_ (Chung et al., 2014) (DGRU); and a **state space model** baseline, _Decision Mamba_ (DMamba) (Ota, 2024; Lv et al., 2024).
+
+Figure 4: ViZDoom-Two-Colors results with _T_ train=150. The top plot shows average return across all episodes (yellow), and separately for red (red) and green (green) pillars. The bottom plot shows the imbalance metric – absolute difference between red and green performance. Lower imbalance indicates more consistent behavior and is as important as average return.
+
+**Memory-intensive tasks.** We evalumore as as ate RATE in tasks that require agents average return. to retain information over time Figure 9; full details are in Appendix C. **ViZDoom-Two-Colors** : the agent must recall a briefly visible pillar color to collect matching items; **T-Maze** : a cue at the start indicates the correct turn at the end, testing sparse long-term memory; **Minigrid-Memory** : like T-Maze, but the clue must be located first, combining memory and credit assignment (Ni et al., 2023); **Memory Maze** : the agent searches for objects matching a changing target color, requiring spatial memory; **POPGym** : a suite of 48 partially observable tasks (Morad et al., 2023a) designed to probe different aspects of memory.
+
+**==> picture [234 x 171] intentionally omitted <==**
+
+**----- Start of picture text -----**
+Success Rate
1.0
0.8
0.6
0.4 RATE (Ours) DT DLSTM
RMT LSDT BC-MLP
0.2 DGRU DMamba Persistent Agent
CQL-LSTM BC-LSTM Random Agent
TrXL CQL-MLP
0. 0
10 [1] 10 [2] 10 [3] 10 [4]
T-Maze Inference Corridor Length
Figure 5: T-Maze generalization task.
**----- End of picture text -----**
+
+## 4.1 EXPERIMENTAL RESULTS
+
+**ViZDoom-Two-Colors.** Figure 4 shows training with _T_ train=150 and inference up to 2100 steps, where the pillar disappears at step 90. RATE achieves the highest return and lowest imbalance between the red and green pillars, indicating strong and consistent memory use. Figure 3 further tests transformer models trained with _T_ train = 90 on their ability to retain early cues. With the pillar present (a), RATE again yields the highest and most stable return. DT and TrXL un-
+
+derperform and show a higher imbalance. Removing the pillar (b) degrades all models, confirming reliance on the initial cue. DT’s unchanged performance across (a) and (b) highlights its failure to leverage long-term dependencies.
+
+This limitation is clearer in Figure 3 (c, d), which separates performance within and beyond the 90-step context. DT’s return drops by nearly 50% in red-pillar episodes once the cue leaves the window, while memory models (RATE, RMT, TrXL) remain stable, demonstrating their ability to retain and use information over long horizons.
+
+Figure 3 (e, f, g) shows model performance across target reward levels. RATE consistently outperforms all baselines overall (e), and this advantage is even clearer when separating red (f) and green (g) pillar episodes. While other models show large disparities, RATE maintains stable performance across both conditions, demonstrating effective use of initial cues and validating the strength of its memory architecture.
+
+**T-Maze.** Figure 5 shows the model generalization in Passive T-Maze as inference length grows from 9 to 9600 steps. All models were trained on episodes up to 900 steps; extrapolation beyond this requires long-horizon generalization. RATE achieves 100% success across all in-distribution lengths and performs well even at 9600-step inference, corresponding to trajectories of 3 _×_ 9600 = 28800 tokens due to the ( _R, o, a_ ) triplets. This highlights RATE’s ability to retain and leverage sparse cues
+
+6
+
+over extremely long horizons. Other transformers (e.g., DT, LSDT) match RATE on training-length sequences but degrade sharply beyond. DT collapses to _∼_ 50% even at moderate lengths due to its lack of memory. Memory-augmented models like RMT generalize slightly further but deteriorate. TrXL performs similarly to DT, suggesting hidden-state caching alone is insufficient for longrange recall of sparse information. RNNs and SSMs (e.g., BC-LSTM, DMamba) show flat curves and fail to learn from sparse long sequences.
+
+RATE both interpolates within training and extrapolates well beyond, a key strength for solving sparse POMDPs. Notably, poor performance of some memory baselines in Figure 5 is due to difficulty modeling long sequences during training, not just generalization failure: even for
+
+**==> picture [230 x 68] intentionally omitted <==**
+
+**==> picture [230 x 68] intentionally omitted <==**
+
+**==> picture [230 x 77] intentionally omitted <==**
+
+Figure 6: Heatmaps of success rates on T-Maze tasks. The black dashed line separates _in-distribution inference_ (with _Tval ≤ Ttrain_ ) from _out-of-distribution inference_ (with _Tval > Ttrain_ ). Results for other baselines can be found in Appendix, Figure 11.
+
+_T_ val _≤ T_ train, they may fail. However, when trained on shorter sequences, some models learn generalizable behaviors. Figure 6 visualizes inference performance for RATE (top), DT (middle), and BC-LSTM (bottom) across training/validation lengths. The black dashed line separates _in-distribution_ ( _T_ val _≤ T_ train) from _out-of-distribution_ ( _T_ val _> T_ train). From Figure 6 (bottom), BC-LSTM generalizes well when trained on short sequences ( _≤_ 150), but degrades as training lengths grow, reaching _∼_ 0.5 when trained on _T ≥_ 600, likely due to vanishing gradients or limited capacity (Pascanu et al., 2013; Trinh et al., 2018). DT (Figure 6 (middle)) handles long training sequences via attention, but fails on longer validation sequences due to fixed context. In contrast, RATE (Figure 6 (top)) maintains high success across all validation lengths, enabled by its combination of attention and recurrent memory, which overcomes the limitations of both DT and RNNs.
+
+**Minigrid-Memory.** Figure 7 presents average returns on Minigrid-Memory, where all models were trained on grids of fixed size 41 _×_ 41 and evaluated on a wide range of unseen grid sizes from 11 _×_ 11 to 501 _×_ 501. RATE achieves consistently high performance across the entire spectrum, demonstrating both strong interpolation and extrapolation capabilities. While TrXL also performs well on average, its variance is notably higher, indicating sensitivity to grid scale.
+
+**Memory Maze.** Table 1 presents results on the Memory Maze task. RATE achieves higher
+
+**==> picture [198 x 128] intentionally omitted <==**
+
+**----- Start of picture text -----**
+Average Returns Across Grid Sizes 11x11-501x501
0.8
0.6
0.4
0.2
0.0
Figure 7: Minigrid-Memory generalization task.
RATE DT RMT TrXL BC-LSTMCQL-LSTMDGRUDMambaLSDT Random
**----- End of picture text -----**
+
+average episode returns by effectively capturing implicit structure, such as maze layout. For reference, the dataset’s average return is 4.69. All models were trained on 90-step trajectory subsequences, while full episodes span 1000 steps.
+
+**POPGym.** To further assess generalization and memory capabilities, we evaluated models on all 46 tasks from the POPGym benchmark suite, which covers a wide range of partially observable RL scenarios. The benchmark is split into 33 _memory puzzle tasks_ and 15 _reactive POMDP tasks_ .
+
+Table 1: Average return _±_ SEM in the Memory Maze (9 _×_ 9) environment (ep. length: 1000 steps).
+
+|**Method**|**Random**|**BC-LSTM**|**CQL-LSTM**|**DT**|**RMT**|**TrXL**|**RATE**|
+|---|---|---|---|---|---|---|---|
+|**Return**|0.00_±_0.00|4.75_±_0.15|0.19_±_0.02|6.83_±_0.51|7.27_±_0.21|7.12_±_0.24|**7.64**_±_0.41|
+
+7
+
+> Table 2 reports average normalized scores across Table 2: Aggregated average returns on 48 POPall tasks and subsets. RATE achieves the highest Gym tasks, split into memory and reactive subsets. overall score (9 _._ 54), outperforming all baselines. On the challenging memory tasks, RATE main- **Tasks Rand. BC-MLP DT BC-LSTM RATE** tains a positive average score (0 _._ 45), while all All (48) -12.2 -6.8 5.8 9.0 **9.5** other models fall below zero – indicating a conMemory (33)-14.6 -11.9 -3.5 -0.2 **0.5** sistent failure to exploit long-term dependencies. Reactive (15) 2.3 5.1 **9.3 9.1 9.1** Notably, DT scores _−_ 3 _._ 49 and BC-MLP drops to _−_ 11 _._ 91, showing the limitations of both context-limited transformers and non-recurrent policies.
+
+Table 2: Aggregated average returns on 48 POPGym tasks, split into memory and reactive subsets.
+
+|**Tasks**|**Rand. **|**BC-MLP DT **|**BC-LSTM **|**RATE**|
+|---|---|---|---|---|
+|All (48)
Memory|-12.2
(33)-14.6|-6.8 5.8
-11.9 -3.5|9.0
-0.2|**9.5**
**0.5**|
+|Reactive|(15)
2.3|5.1 **9.3**|**9.1**|**9.1**|
+
+On reactive tasks, all models perform better, but the gap between memory-based and non-memory models narrows. RATE, DT, and BC-LSTM show almost the same results, suggesting that the greatest performance gains from RATE’s memory mechanisms occur on memory puzzle tasks. For simpler reactive POMDPs, lightweight memory mechanisms appear sufficient. These results also underscore RATE’s ability to generalize across both puzzle and reactive settings, confirming that its memory architecture does not hinder performance in simpler tasks while offering clear benefits in those with temporal dependencies. More details are provided in Appendix, Table 9.
+
+Table 3: Normalized scores on MuJoCo tasks from the D4RL benchmark (Fu et al., 2021). Although RATE is designed for memory-intensive environments, it **performs competitively** – and often surpasses – methods tailored for standard MDP control. **Top-1** and **Top-2** results are highlighted.
+
+|**Dataset**
**Environment**|**CQL**
**DT**
**TAP**
**TT**
**DMamba**
(Ota,2024)
**DMamba**
(Lv et al.,2024)
**MambaDM**
**RATE (ours)**|
+|---|---|
+|ME
HalfCheetah
ME
Hopper
ME
Walker2d|91.6
86.8_±_1.3
91.8_±_0.8
**95.0**_±_**0.2**
91.9_±_0.6
**93.5**_±_**0.1**
86.5_±_1.2
87.4_±_0.1|
+||105.4
**107.6**_±_**1.8**
105.5_±_1.7
**110.0**_±_**2.7**
**111.1**_±_**0.3**
**111.9**_±_**1.8**
**110.5**_±_**0.3**
**112.5**_±_**0.2**|
+||**108.8**
**108.1**_±_**0.2**
**107.4**_±_**0.9**
**101.9**_±_**6.8**
**108.3**_±_**0.5**
**111.6**_±_**1.2**
**108.8**_±_**0.1**
**108.7**_±_**0.5**|
+|M
HalfCheetah
M
Hopper
M
Walker2d|44.4
42.6_±_0.1
**45.0**_±_**0.1**
**46.9**_±_**0.4**
42.8_±_0.1
43.8_±_0.2
42.8_±_0.1
43.5_±_0.3|
+||58.0
**67.6**_±_**1.0**
63.4_±_1.4
61.1_±_3.6
**83.5**_±_**12.5**
**98.5**_±_**8.2**
**85.7**_±_**7.8**
**77.4**_±_**1.4**|
+||72.5
74.0_±_1.4
64.9_±_2.1
**79.0**_±_**2.8**
**78.2**_±_**0.6**
**80.3**_±_**0.1**
**78.2**_±_**0.6**
**80.7**_±_**0.7**|
+|MR
HalfCheetah
MR
Hopper
MR
Walker2d|**45.5**
36.6_±_0.8
**40.8**_±_**0.6**
**41.9**_±_**2.5**
**39.6**_±_**0.1**
**40.8**_±_**0.4**
**39.1**_±_**0.1**
**39.0**_±_**0.6**|
+||**95.0**
**82.7**_±_**7.0**
**87.3**_±_**2.3**
**91.5**_±_**3.6**
**82.6**_±_**4.6**
**89.1**_±_**4.3**
**86.1**_±_**2.5**
**83.7**_±_**8.2**|
+||**77.2**
66.6_±_3.0
66.8_±_3.1
**82.6**_±_**6.9**
70.9_±_4.3
**79.3**_±_**1.9**
**73.4**_±_**2.6**
**73.7**_±_**1.4**|
+|**Average**|**77.6**
74.7
74.8
**78.9**
**78.8**
**83.2**
**79.0**
**78.5**|
+
+**Atari and MuJoCo.** We evaluate RATE on standard RL benchmarks: Atari games and MuJoCo control tasks (Table 3, Table 4). For comparison, we include results from recent state-of-the-art methods: Decision Mamba (DMamba) (Ota, 2024; Lv et al., 2024), Mamba as Decision Maker (MambaDM) (Cao et al., 2024), Conservative Q-Learning (CQL) (Kumar et al., 2020), Trajectory Transformer (TT) (Janner et al., 2021), and TAP (Jiang et al., 2023), as reported in their original papers. Results show that RATE matches or outperforms specialized offline RL algorithms across both benchmarks. Combined with its strong performance on memory-intensive tasks, this highlights RATE’s versatility as a general-purpose offline RL model. See Appendix E for full training details and Table 10 for the evaluation protocol.
+
+## 5 ABLATION STUDY
+
+We conduct a comprehensive ablation study to assess the contributions of individual components and architectural choices in RATE, structured around three key research questions.
+
+1. _How do different components of RATE influence performance on memory tasks?_ (RQ1)
+
+2. _What is the upper-bound results RATE can achieve with access to perfect memory?_ (RQ2)
+
+3. _What role does the MRV play, and which configuration is most effective?_ (RQ3)
+
+Further ablations exploring key transformer parameters, memory tokens number, and sequence segmentation strategies are provided in Appendix F and Appendix G.
+
+**RQ1: Impact of RATE components.** To assess the contribution of individual memory mechanisms in RATE, we performed inference-time ablations by replacing memory components with random noise. In T-Maze ( _K_ = 30, _N_ = 3 segments), corrupting memory embeddings _M_ sharply reduced performance to 50% success (see Figure 8, right). The agent still reached the decision point but failed
+
+8
+
+Table 4: Raw scores on Atari games. RATE outperforms DT in 3 out of 4 environments.
+
+|**Environment**|**CQL**|**BC**|**DT**|**DMamba**
(Ota,2024)|**MambaDM**|**RATE (Ours)**|
+|---|---|---|---|---|---|---|
+|Breakout|62.5|42.8|76.9_±_27.3|70.6_±_9.3|**106.9**_±_**5.8**|**111.0**_±_**2.9**|
+|Qbert|**14013.2**|2862.0|2215.8_±_1523.7|5786.0_±_1295.2|10052.5_±_1116.5|**12486.9**_±_**280.4**|
+|SeaQuest|782.2|**992.1**|**1129.3**_±_**189.0**|**992.1**_±_**57.7**|**1286.0**_±_**42.0**|**1037.9**_±_**53.7**|
+|Pong|**18.8**|6.4|**17.1**_±_**2.9**|1.6_±_15.3|**18.4**_±_**0.8**|**18.8**_±_**0.3**|
+
+to turn correctly – showing it retained navigation skills but lost the initial cue. Thus, memory embeddings act as dedicated storage for task-relevant information, while transformer layers encode general behavior. In ViZDoomTwo-Colors (see Figure 8, left), adding noise separately to embeddings and cached hidden states showed performance was more sensitive to hidden-state corruption, highlighting their role in continuous rewards and long dependencies. Overall, memory embeddings matter most for sparse, discrete decision points (e.g., T-Maze), while cached representations are crucial in dense, continuous-feedback tasks like ViZDoom.
+
+**RQ2: Performance upper-bound estimate.** To estimate the upper-bound performance achievable by RATE, we introduce _OracleDT_ – a variant of Decision Transformer augmented with perfect prior knowledge about the environment. Specifically, OracleDT receives an additional input vector _v ∈_ R[1] _[×]_[d_model] prepended and appended to the context sequence, i.e., _S[′]_ = concat( _v, S, v_ ). This vector encodes one bit of environment-critical information known in advance. In T-Maze, _v_ represents the initial clue ( _vi_ = 0 if left, _vi_ = 1 if right); in ViZDoomTwo-Colors, it encodes the pillar color ( _vi_ = 0 for red, _vi_ = 1 for green). This setup mirrors a context augmented with perfectly trained mem-
+
+**==> picture [98 x 102] intentionally omitted <==**
+
+**==> picture [98 x 98] intentionally omitted <==**
+
+**----- Start of picture text -----**
+1.0
RATE-3 noised
0.8
0.6
0.4
0.2
0.0
0 200 400 600 800
Test corridor length
Succes Rate
**----- End of picture text -----**
+
+Figure 8: Effect of memory corruption on RATE at inference. **(left)** ViZDoom: performance drops when memory tokens or cached states are noised. **(right)** T-Maze: SR degrades when memory embeddings are corrupted.
+
+Table 5: Performance comparison between DT, RATE, and OracleDT. OracleDT is an oracleinformed variant used solely to approximate the upper bound and is not a feasible baseline.
+
+||**Success Rate**|**T-Maze**
**OracleDT**|**DT**|**RATE**|
+|---|---|---|---|---|
+||_T_ = 90|**1.00**_±_**0.00**|**1.00**_±_**0.00**|**1.00**_±_**0.00**|
+||_T_ = 480
_T_ = 900|**1.00**_±_**0.00**
**1.00**_±_**0.00**|0.50_±_0.00
0.50_±_0.00|0.90_±_0.07
0.90_±_0.07|
+|||**ViZDoom-Two-Colors**|||
+||**Total Reward**|**56.5**_±_**0.8**|24.8_±_1.4|41.5_±_1.0|
+||**Red Pillars**|**55.3**_±_**1.6**|7.2_±_0.4|38.2_±_5.1|
+||**Green Pillars**|**57.2**_±_**0.5**|42.3_±_3.3|44.7_±_5.8|
+
+ory embeddings, i.e., concat( _M, S, M_ ), where _M_ encodes all relevant information. As a result, OracleDT provides an empirical upper bound on achievable performance when key information is available explicitly. In such settings, we expect the relation _R_ [OracleDT] _≥ R_ [RATE] _≥ R_ [DT] to hold (see Table 5). Since this privileged information is not generally accessible during training, OracleDT is not a viable baseline but serves as a useful reference. The gap between OracleDT and RATE quantifies the effectiveness of RATE’s memory mechanisms in autonomously discovering, storing, and utilizing task-relevant information.
+
+**RQ 3. Memory Retention Valve scheme ablation.** In the T-Maze environment, we observed that without MRV, RATE’s performance deteriorates on long corridors ( _L ≫ K_ ), eventually reaching SR = 50% (see Table 6). This degradation occurs because critical information to be remembered goes into memory embeddings when processing the first segment of the sequence, and then it must be retrieved when making decisions on the last segment. At the same time, due to the recurrent structure of the architecture, memory embeddings continue to be updated during the processing of intermediate segments when no new information needs to be memorized, causing important information from memory embeddings to leak out. To address this information loss, we introduced the **Memory Retention Valve (MRV)** and evaluated five variants: **MRV-CA-1** : Cross-attention mechanism where updated embeddings ( _Mn_ +1) query incoming ones ( _Mn_ ); **MRV-CA-2** : Reversed variant where incoming embeddings ( _Mn_ ) query updated ones ( _Mn_ +1); **MRV-G** : Gating mechanism inspired by GTrXL (Parisotto et al., 2020); **MRV-GRU** : GRU-based (Chung et al., 2014) memory processing with
+
+9
+
+hidden states; **MRV-LSTM** : LSTMbased (Hochreiter & Schmidhuber, 1997) memory processing with cell states.
+
+Table 6: Ablation of MRV configurations in T- Maze ( _K_ eff=30 _×_ 5=150). Baseline without MRV is marked _†_ . Default: **MRV-CA-2** .
+
+Among all tested configurations, MRV-CA-2 **Model 150 360 600 900** demonstrated best performance (see Table 6). w/o MRV _[†]_ 1.00 _±_ 0.00 0.66 _±_ 0.08 0.65 _±_ 0.07 0.61 _±_ 0.07 This cross-attention scheme uses incoming **MRV-CA-2** 1.00 _±_ 0.00 0.95 _±_ 0.05 0.90 _±_ 0.07 0.90 _±_ 0.07 memory tokens ( _Mn_ ) as queries and updated MRV-G 0.86 _±_ 0.07 0.77 _±_ 0.08 0.66 _±_ 0.07 0.65 _±_ 0.08 tokens ( _Mn_ +1) as keys and values. This configMRV-GRUMRV-LSTM 0.990.85 _±±_ 0.010.06 0.740.64 _±±_ 0.070.10 0.560.51 _±±_ 0.110.11 0.550.47 _±±_ 0.120.11 uration, referred to simply as MRV throughout MRV-CA-1 0.51 _±_ 0.01 0.51 _±_ 0.01 0.49 _±_ 0.02 0.49 _±_ 0.01 the paper, effectively controls information flow through memory. By allowing the model to selectively update its memory based on the relevance of new information, it prevents loss of important context over long sequences.
+
+## 6 RELATED WORK
+
+**Transformers in RL:** Transformers have been applied to online (Parisotto et al., 2020; Lampinen et al., 2021; Morad et al., 2023b; Le et al., 2024), offline (Chen et al., 2021; Janner et al., 2021; Wang et al., 2025), and model-based RL (Chen et al., 2022). Prior work often assumes compact observations or known dynamics (Lee et al., 2022; Jiang et al., 2023), whereas RATE targets long-horizon credit assignment and memory in partially observable environments, using DT (Chen et al., 2021) as baseline. The _Long-Short Decision Transformer_ (LSDT) (Wang et al., 2025) augments DT with dual context windows but still lacks explicit, learnable memory. Fast and Forgetful Memory (FFM) (Morad et al., 2023b) and Stable Hadamard Memory (SHM) (Le et al., 2024) instead explore lightweight recurrent slots with greater stability. **RNNs in RL:** Recurrent models like LSTM (Hochreiter & Schmidhuber, 1997) and GRU (Chung et al., 2014) have long supported memory in RL. DLSTM (Siebenborn et al., 2022) replaces transformers with LSTM for sequential control, but RNNs often struggle with long-term dependencies, especially under sparse rewards (Ni et al., 2023). **SSMs in RL:** SSMs such as S4 (Gu et al., 2021) and Mamba (Gu & Dao, 2023) offer efficient alternatives to attention, showing strong offline RL results (Bar-David et al., 2023; Ota, 2024; Lv et al., 2024; Cao et al., 2024), though their ability to handle memory-intensive generalization remains unclear. **Memory-Augmented Transformers:** Extensions like Transformer-XL (Dai et al., 2019), Compressive Transformer (Rae et al., 2019), and RMT (Bulatov et al., 2022) extend context via caching or compression. RATE combines token-level memory, hidden-state caching, and a novel MRV gate. Approximate Gated Linear Transformer (Pramanik et al., 2023) replaces full attention with a gated, low-rank recurrent update that approximates outer-product memory via cosine features, enabling efficient long-range credit assignment at constant cost. Retrieval-Augmented Decision Transformer (RA-DT) (Schmied et al., 2024) augments DT with an external retrieval memory that stores past sub-trajectories, retrieves relevant ones by vector search, reweights them by utility, and integrates them through cross-attention to guide action prediction in sparse-reward RL.
+
+## 7 LIMITATIONS
+
+While RATE is tailored for long-horizon, memory-intensive tasks, its complexity may be unnecessary in fully observable or short-term settings where simpler recurrent models suffice. Nonetheless, RATE matches or exceeds their performance across all tasks. Future work may explore adaptive variants that scale memory based on task complexity.
+
+## 8 CONCLUSION
+
+We propose the **Recurrent Action Transformer with Memory** ( **RATE** ), a transformer-based architecture for offline RL that combines attention with recurrence for long-horizon decision-making. RATE integrates memory embeddings, hidden state caching, and a **Memory Retention Valve** ( **MRV** ) to selectively retain critical information across segments. RATE achieves state-of-the-art results on memory-intensive tasks such as T-Maze, Minigrid-Memory, ViZDoom-Two-Colors, Memory Maze, and 48 POPGym tasks, generalizing up to 9600-step sequences and outperforming both recurrent and transformer baselines. Theoretical analysis shows that MRV guarantees lower-bounded memory preservation across updates, and ablation studies confirm its importance for long-horizon stability. Despite its memory focus, RATE also performs competitively on standard benchmarks like Atari and MuJoCo, demonstrating broad versatility. These results establish RATE as a unified, general-purpose offline RL model that excels across both short and long temporal contexts.
+
+10
+
+## REPRODUCIBILITY STATEMENT
+
+We have taken several measures to ensure the reproducibility of our results. **Model details:** A full description of the RATE architecture, including pseudocode for both the model and the Memory Retention Valve (MRV), is provided in Section 3 and Algorithms 1 – 2. **Theoretical results:** Formal assumptions and complete proofs for our preservation theorem are given in Section 3. **Experimental setup:** Details of environments, training procedures, and evaluation protocols are reported in Section 4, with additional specifications (hyperparameters, dataset preprocessing, random seeds, and hardware setup) in Appendix E and Appendix C. **Baselines:** All baseline implementations are either drawn from widely used open-source libraries or re-implemented with hyperparameters matched to their original publications, as described in Section 4 and Appendix G. **Code and data:** An anonymous repository with the implementation of RATE, training scripts, and configuration files submitted as supplementary material. Together, these resources allow for full replication of our theoretical analyses and empirical results.
+
+## REFERENCES
+
+- Pranav Agarwal, Aamer Abdul Rahman, Pierre-Luc St-Charles, Simon JD Prince, and Samira Ebrahimi Kahou. Transformers in reinforcement learning: a survey. _arXiv preprint arXiv:2307.05979_ , 2023.
+
+- Rishabh Agarwal, Dale Schuurmans, and Mohammad Norouzi. An optimistic perspective on offline reinforcement learning. In _International Conference on Machine Learning_ , pp. 104–114. PMLR, 2020.
+
+- Shmuel Bar-David, Itamar Zimerman, Eliya Nachmani, and Lior Wolf. Decision s4: Efficient sequence-based rl via state spaces layers. _arXiv preprint arXiv:2306.05167_ , 2023.
+
+- Edward Beeching, Christian Wolf, Jilles Dibangoye, and Olivier Simonin. Deep reinforcement learning on a budget: 3d control and reasoning without a supercomputer. _CoRR_ , abs/1904.01806, 2019. URL [URL removed]
+
+- Marc G Bellemare, Yavar Naddaf, Joel Veness, and Michael Bowling. The arcade learning environment: An evaluation platform for general agents. _Journal of Artificial Intelligence Research_ , 47: 253–279, 2013.
+
+- Iz Beltagy, Matthew E Peters, and Arman Cohan. Longformer: The long-document transformer. _arXiv preprint arXiv:2004.05150_ , 2020.
+
+- Aydar Bulatov, Yury Kuratov, and Mikhail Burtsev. Recurrent memory transformer. _Advances in Neural Information Processing Systems_ , 35:11079–11091, 2022.
+
+- Jiahang Cao, Qiang Zhang, Ziqing Wang, Jiaxu Wang, Hao Cheng, Yecheng Shao, Wen Zhao, Gang Han, Yijie Guo, and Renjing Xu. Mamba as decision maker: Exploring multi-scale sequence modeling in offline reinforcement learning. _arXiv preprint arXiv:2406.02013_ , 2024.
+
+- Chang Chen, Yi-Fu Wu, Jaesik Yoon, and Sungjin Ahn. Transdreamer: Reinforcement learning with transformer world models. _arXiv preprint arXiv:2202.09481_ , 2022.
+
+- Lili Chen, Kevin Lu, Aravind Rajeswaran, Kimin Lee, Aditya Grover, Misha Laskin, Pieter Abbeel, Aravind Srinivas, and Igor Mordatch. Decision transformer: Reinforcement learning via sequence modeling. _Advances in neural information processing systems_ , 34:15084–15097, 2021.
+
+- Maxime Chevalier-Boisvert, Bolun Dai, Mark Towers, Rodrigo de Lazcano, Lucas Willems, Salem Lahlou, Suman Pal, Pablo Samuel Castro, and Jordan Terry. Minigrid & miniworld: Modular & customizable reinforcement learning environments for goal-oriented tasks. _CoRR_ , abs/2306.13831, 2023.
+
+11
+
+Junyoung Chung, Caglar Gulcehre, KyungHyun Cho, and Yoshua Bengio. Empirical evaluation of gated recurrent neural networks on sequence modeling. _arXiv preprint arXiv:1412.3555_ , 2014.
+
+- Zihang Dai, Zhilin Yang, Yiming Yang, Jaime Carbonell, Quoc V Le, and Ruslan Salakhutdinov. Transformer-xl: Attentive language models beyond a fixed-length context. _arXiv preprint arXiv:1901.02860_ , 2019.
+
+Yan Duan, John Schulman, Xi Chen, Peter L Bartlett, Ilya Sutskever, and Pieter Abbeel. Rl2: Fast reinforcement learning via slow reinforcement learning. _arXiv preprint arXiv:1611.02779_ , 2016.
+
+Kevin Esslinger, Robert Platt, and Christopher Amato. Deep transformer q-networks for partially observable reinforcement learning. _arXiv preprint arXiv:2206.01078_ , 2022.
+
+Justin Fu, Aviral Kumar, Ofir Nachum, George Tucker, and Sergey Levine. D4rl: Datasets for deep data-driven reinforcement learning, 2021.
+
+- Jake Grigsby, Linxi Fan, and Yuke Zhu. AMAGO: Scalable in-context reinforcement learning for adaptive agents. In _The Twelfth International Conference on Learning Representations_ , 2024. URL [URL removed]
+
+- Albert Gu and Tri Dao. Mamba: Linear-time sequence modeling with selective state spaces. _arXiv preprint arXiv:2312.00752_ , 2023.
+
+- Albert Gu, Karan Goel, and Christopher Ré. Efficiently modeling long sequences with structured state spaces. _arXiv preprint arXiv:2111.00396_ , 2021.
+
+- Danijar Hafner, Timothy Lillicrap, Jimmy Ba, and Mohammad Norouzi. Dream to control: Learning behaviors by latent imagination. _arXiv preprint arXiv:1912.01603_ , 2019.
+
+- Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. _Neural computation_ , 9(8): 1735–1780, 1997.
+
+- Michael Janner, Qiyang Li, and Sergey Levine. Offline reinforcement learning as one big sequence modeling problem. _Advances in neural information processing systems_ , 34:1273–1286, 2021.
+
+- Zhengyao Jiang, Tianjun Zhang, Michael Janner, Yueying Li, Tim Rocktäschel, Edward Grefenstette, and Yuandong Tian. Efficient planning in a compact latent action space. In _The Eleventh International Conference on Learning Representations_ , 2023. URL [URL removed] net/forum?id=cA77NrVEuqn.
+
+- Jikun Kang, Romain Laroche, Xindi Yuan, Adam Trischler, Xue Liu, and Jie Fu. Think before you act: Decision transformers with internal working memory. _arXiv preprint arXiv:2305.16338_ , 2023.
+
+- Feyza Duman Keles, Pruthuvi Mahesakya Wijewardena, and Chinmay Hegde. On the computational complexity of self-attention. In _International conference on algorithmic learning theory_ , pp. 597–619. PMLR, 2023.
+
+- Aviral Kumar, Aurick Zhou, George Tucker, and Sergey Levine. Conservative q-learning for offline reinforcement learning. _Advances in Neural Information Processing Systems_ , 33:1179–1191, 2020.
+
+- Andrew Lampinen, Stephanie Chan, Andrea Banino, and Felix Hill. Towards mental time travel: a hierarchical memory for reinforcement learning agents. _Advances in Neural Information Processing Systems_ , 34:28182–28195, 2021.
+
+- Hung Le, Kien Do, Dung Nguyen, Sunil Gupta, and Svetha Venkatesh. Stable hadamard memory: Revitalizing memory-augmented agents for reinforcement learning. _arXiv preprint arXiv:2410.10132_ , 2024.
+
+- Kuang-Huei Lee, Ofir Nachum, Mengjiao Sherry Yang, Lisa Lee, Daniel Freeman, Sergio Guadarrama, Ian Fischer, Winnie Xu, Eric Jang, Henryk Michalewski, et al. Multi-game decision transformers. _Advances in Neural Information Processing Systems_ , 35:27921–27936, 2022.
+
+12
+
+- Wenzhe Li, Hao Luo, Zichuan Lin, Chongjie Zhang, Zongqing Lu, and Deheng Ye. A survey on transformers in reinforcement learning. _Transactions on Machine Learning Research_ , 2023. ISSN 2835-8856. URL [URL removed] Survey Certification.
+
+- Qi Lv, Xiang Deng, Gongwei Chen, Michael Y Wang, and Liqiang Nie. Decision mamba: A multi-grained state space model with self-evolution regularization for offline RL. In _The Thirtyeighth Annual Conference on Neural Information Processing Systems_ , 2024. URL https: //openreview.net/forum?id=dc4xbVfdzy.
+
+- Volodymyr Mnih. Playing atari with deep reinforcement learning. _arXiv preprint arXiv:1312.5602_ , 2013.
+
+- Steven Morad, Ryan Kortvelesy, Matteo Bettini, Stephan Liwicki, and Amanda Prorok. Popgym: Benchmarking partially observable reinforcement learning. _arXiv preprint arXiv:2303.01859_ , 2023a.
+
+- Steven Morad, Ryan Kortvelesy, Stephan Liwicki, and Amanda Prorok. Reinforcement learning with fast and forgetful memory. _Advances in Neural Information Processing Systems_ , 36:72008–72029, 2023b.
+
+- Tianwei Ni, Michel Ma, Benjamin Eysenbach, and Pierre-Luc Bacon. When do transformers shine in RL? decoupling memory from credit assignment. In _Thirty-seventh Conference on Neural Information Processing Systems_ , 2023. URL [URL removed] APGXBNkt6h.
+
+- Toshihiro Ota. Decision mamba: Reinforcement learning via sequence modeling with selective state spaces. _arXiv preprint arXiv:2403.19925_ , 2024.
+
+- Emilio Parisotto, Francis Song, Jack Rae, Razvan Pascanu, Caglar Gulcehre, Siddhant Jayakumar, Max Jaderberg, Raphael Lopez Kaufman, Aidan Clark, Seb Noury, et al. Stabilizing transformers for reinforcement learning. In _International conference on machine learning_ , pp. 7487–7498. PMLR, 2020.
+
+- Razvan Pascanu, Tomas Mikolov, and Yoshua Bengio. On the difficulty of training recurrent neural networks. In _International conference on machine learning_ , pp. 1310–1318. Pmlr, 2013.
+
+- Jurgis Pasukonis, Timothy Lillicrap, and Danijar Hafner. Evaluating long-term memory in 3d mazes. _arXiv preprint arXiv:2210.13383_ , 2022.
+
+- Marco Pleines, Matthias Pallasch, Frank Zimmer, and Mike Preuss. Transformerxl as episodic memory in proximal policy optimization. _Github Repository_ , 2023. URL [URL removed] com/MarcoMeter/episodic-transformer-memory-ppo.
+
+- Andrey Polubarov, Nikita Lyubaykin, Alexander Derevyagin, Ilya Zisman, Denis Tarasov, Alexander Nikulin, and Vladislav Kurenkov. Vintix: Action model via in-context reinforcement learning. _arXiv preprint arXiv:2501.19400_ , 2025.
+
+- Subhojeet Pramanik, Esraa Elelimy, Marlos C Machado, and Adam White. Agalite: Approximate gated linear transformers for online reinforcement learning. _arXiv preprint arXiv:2310.15719_ , 2023.
+
+Jack W Rae, Anna Potapenko, Siddhant M Jayakumar, and Timothy P Lillicrap. Compressive transformers for long-range sequence modelling. _arXiv preprint arXiv:1911.05507_ , 2019.
+
+- Jan Robine, Marc Höftmann, Tobias Uelwer, and Stefan Harmeling. Transformer-based world models are happy with 100k interactions. In _The Eleventh International Conference on Learning Representations_ , 2023. URL [URL removed]
+
+- Thomas Schmied, Fabian Paischer, Vihang Patil, Markus Hofmarcher, Razvan Pascanu, and Sepp Hochreiter. Retrieval-augmented decision transformer: External memory for in-context rl. _arXiv preprint arXiv:2410.07071_ , 2024.
+
+13
+
+- John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. _arXiv preprint arXiv:1707.06347_ , 2017.
+
+- Max Siebenborn, Boris Belousov, Junning Huang, and Jan Peters. How crucial is transformer in decision transformer? _arXiv preprint arXiv:2211.14655_ , 2022. URL [URL removed] abs/2211.14655.
+
+- Artyom Sorokin, Nazar Buzun, Leonid Pugachev, and Mikhail Burtsev. Explain my surprise: Learning efficient long-term memory by predicting uncertain outcomes. 07 2022. doi: 10.48550/arXiv.2207. 13649.
+
+- R.S. Sutton and A.G. Barto. _Reinforcement Learning, second edition: An Introduction_ . Adaptive Computation and Machine Learning series. MIT Press, 2018. ISBN 9780262039246.
+
+- Adaptive Agent Team, Jakob Bauer, Kate Baumli, Satinder Baveja, Feryal Behbahani, Avishkar Bhoopchand, Nathalie Bradley-Schmieg, Michael Chang, Natalie Clay, Adrian Collister, et al. Human-timescale adaptation in an open-ended task space. _arXiv preprint arXiv:2301.07608_ , 2023.
+
+- Trieu Trinh, Andrew Dai, Thang Luong, and Quoc Le. Learning longer-term dependencies in rnns with auxiliary losses. In _International Conference on Machine Learning_ , pp. 4965–4974. PMLR, 2018.
+
+- Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. _Advances in neural information processing systems_ , 30, 2017.
+
+- Jane X Wang, Zeb Kurth-Nelson, Dhruva Tirumala, Hubert Soyer, Joel Z Leibo, Remi Munos, Charles Blundell, Dharshan Kumaran, and Matt Botvinick. Learning to reinforcement learn. _arXiv preprint arXiv:1611.05763_ , 2016.
+
+- Jincheng Wang, Penny Karanasou, Pengyuan Wei, Elia Gatti, Diego Martinez Plasencia, and Dimitrios Kanoulas. Long-short decision transformer: Bridging global and local dependencies for generalized decision-making. In _The Thirteenth International Conference on Learning Representations_ , 2025. URL [URL removed]
+
+- Yueh-Hua Wu, Xiaolong Wang, and Masashi Hamaya. Elastic decision transformer. _Advances in neural information processing systems_ , 36:18532–18550, 2023.
+
+- Manzil Zaheer, Guru Guruganesh, Kumar Avinava Dubey, Joshua Ainslie, Chris Alberti, Santiago Ontanon, Philip Pham, Anirudh Ravula, Qifan Wang, Li Yang, et al. Big bird: Transformers for longer sequences. _Advances in neural information processing systems_ , 33:17283–17297, 2020.
+
+- Susan Zhang, Stephen Roller, Naman Goyal, Mikel Artetxe, Moya Chen, Shuohui Chen, Christopher Dewan, Mona Diab, Xian Li, Xi Victoria Lin, et al. Opt: Open pre-trained transformer language models. _arXiv preprint arXiv:2205.01068_ , 2022.
+
+- Zifeng Zhuang, Dengyun Peng, Jinxin Liu, Ziqi Zhang, and Donglin Wang. Reinformer: Max-return sequence modeling for offline rl. _arXiv preprint arXiv:2405.08740_ , 2024.
+
+14
+
+## **Table of Contents**
+
+|**le**|**of Contents**|||
+|---|---|---|---|
+|**A **|**Discussion: Are RNNs Still**|**Better for Memory?**|**15**|
+|**B**|**Decision Transformer**||**16**|
+|**C **|**Environments**||**16**|
+||C.1
Memory-intensive environments. . . . . . . . . . . . . . . . . . . . . . . . . .||16|
+||C.2
Standard benchmarks|. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .|18|
+|**D **|**Action Associative Retrieval**||**19**|
+|**E**|**Training**||**21**|
+||E.1
ViZDoom-Two-Colors|. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .|21|
+||E.2
Passive T-Maze
. . .|. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .|21|
+||E.3
Memory Maze . . . .|. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .|21|
+||E.4
Minigrid-Memory . .|. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .|22|
+||E.5
POPGym Suite
. . .|. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .|22|
+||E.6
Atari and MuJoCo . .|. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .|22|
+|**F**|**Additional ablation studies**||**22**|
+||F.1
Additional ViZDoom-Two-Colors ablation . . . . . . . . . . . . . . . . . . . .||23|
+||F.2
Curriculum Learning|. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .|24|
+||F.3
Supplemental MRV ablation . . . . . . . . . . . . . . . . . . . . . . . . . . . .||25|
+||F.4
Ablation on number of|segments and segment length . . . . . . . . . . . . . . .|26|
+|**G **|**Transformer Ablation Studies**||**26**|
+|**H **|**Recommendations for Hyperparameter Settings**||**26**|
+|**I**|**Technical details**||**29**|
+
+## A DISCUSSION: ARE RNNS STILL BETTER FOR MEMORY?
+
+Our experiments provide a systematic comparison between recurrent and transformer-based architectures in memory-intensive tasks. When trained on short sequences, recurrent models such as BC-LSTM perform competitively. For example, in the T-Maze environment, BC-LSTM achieves perfect success rates when trained on sequences up to 150 steps, effectively capturing short-term dependencies via its internal state dynamics.
+
+However, this advantage quickly fades as training sequences grow longer. Increasing the training horizon from 150 to 600 steps causes BC-LSTM’s performance to collapse to a 50% success rate across all inference lengths – even those shorter than the training context – indicating difficulty with gradient stability and information retention over long spans (Figure 6). In contrast, RATE maintains consistently high performance under the same conditions, demonstrating stronger scalability with sequence length. RATE generalizes robustly to inference horizons up to 9600 steps (28,800 tokens), reflecting the effectiveness of its hybrid memory design. The architecture combines token-based recurrence with gated memory updates via the Memory Retention Valve (MRV), enabling reliable propagation of sparse information across long temporal distances.
+
+These findings extend to more complex environments. In ViZDoom-Two-Colors and Memory Maze (Figure 4, Table 1), RATE significantly outperforms BC-LSTM. In ViZDoom, RATE maintains balanced performance across red and green cues, whereas BC-LSTM exhibits instability and higher variance. In Memory Maze, RATE achieves substantially higher returns, benefiting from its capacity to encode and retrieve spatial-temporal patterns over long episodes.
+
+In conclusion, while RNNs remain effective for short-range temporal dependencies, their performance degrades in long-horizon, sparse-reward, and generalization-critical settings. RATE bridges this gap
+
+15
+
+**==> picture [390 x 74] intentionally omitted <==**
+
+**----- Start of picture text -----**
+ViZDoom-Two-Colors Minigrid-Memory T-Maze Memory-Maze POPGym-46
**----- End of picture text -----**
+
+Figure 9: Memory-intensive environments used to evaluate RATE memory mechanisms.
+
+by integrating attention with recurrence, offering a scalable and robust memory solution. These results underscore the architectural promise of combining transformer attention with recurrent dynamics for long-term tasks in RL.
+
+## B DECISION TRANSFORMER
+
+**Algorithm 3** Decision Transformer Decision Transformer (DT) (Chen et al., 2021) **Require** : _R ∈_ R[1] _[×][T] , o ∈_ R _[d][o][×][T] , a ∈_ R[1] _[×][T]_ is an algorithm for offline RL that reduces the RL task to a sequence modeling task. In DT, the 1: _R_[˜] ˜ _∈_ R _[T][ ×][d] ←_ Encoder _R_ ( _R_ ) scheme of which is presented in Algorithm 3, _o_ ˜ _∈_ R _[T][ ×][d] ←_ Encoder _o_ ( _o_ ) the trajectory _τ_ is not divided into segments as _a ∈_ R _[T][ ×][d] ←_ Encoder _a_ ( _a_ ) in RATE. Instead, random fragments of length 2: _τ_ 0 _..T ←{_ ( _R_[˜] 0 _,_ ˜ _o_ 0 _,_ ˜ _a_ 0) _, . . . ,_ ( _R_[˜] _T ,_ ˜ _oT ,_ ˜ _aT_ ) _}_ with MDP. The predicted actions _K_ nally this architecture was designed to work onlyare sampled from the trajectory, since origi- ˆ _a_ are sampled **Output** 3:4: _na_ ˆ _n_ = _←_ : random _a_ ˆ _n_ Transformer _→L_ ((0 _an, T,_ ˆ _an−_ ) _K_ ( _τ_ ) _n..n_ + _K_ ) autoregressively.
+
+## C ENVIRONMENTS
+
+## C.1 MEMORY-INTENSIVE ENVIRONMENTS
+
+In this section, we provide an extended description of the environments used in this paper, as well as the methodology used to collect the trajectories. Table 7 summarizes the observations type, rewards type, and actions type for each of the environments considered in this paper.
+
+## C.1.1 VIZDOOM-TWO-COLORS
+
+We used a modified ViZDoom-Two-Colors environment from (Sorokin et al., 2022) to assess the model’s memory abilities. The agent initially having 100 hit points (HP) is placed in a room without inner walls filled with acid. At each step in the environment, the agent loses a fixed amount of health (10 _/_ 32 HP per step). In the center of the environment, there is a pillar of either green or red color, which disappears after 45 environment steps. Throughout the environment, objects of two colors (green and red) are generated. When the agent interacts with an object of the same color as the pillar, it gains an increase in health of +25 and a reward of +1. When the agent interacts with an object of the opposite color, it loses a similar amount of health. The agent receives an additional reward of +0 _._ 02 for each step it survives. The episode ends when the agent has zero health. Thus, the agent needs to remember the color of the pillar to select items of the correct color, even if the pillar is out of sight or has disappeared. The agent does not receive information about its current health or rewards, as these observations essentially convey the same information as the color of the pillar but persist beyond step 45.
+
+We collected a dataset of 5000 trajectories of 90 steps in length using a trained A2C (Beeching et al., 2019) agent (an agent trained with a non-disappearing pillar). The average reward for these 90 steps is 4 _._ 46. When collecting trajectories, to ensure that the agent saw the pillar before it disappeared, the agent always appeared facing the pillar in the same place – midway between the pillar and the nearest wall. In order to successfully complete this task, the agent needs to remember the color of the pillar. This environment tests the long-term memory mechanism, since the agent needs to
+
+16
+
+Table 7: Description of observations and reward functions for the considered environments.
+
+|**Environment**|**Obs. Type**|**Rew. Type**|**Act. Space**|**Obs. Details**|
+|---|---|---|---|---|
+|ViZDoom-Two-Colors|Image|Continuous|Discrete|First-person view|
+|T-Maze|Vector|Sparse & Discrete|Discrete|Low-dimensional vector|
+|Memory Maze|Image|Sparse & Discrete|Discrete|First-person view|
+|Minigrid-Memory|Image|Sparse|Discrete|3_×_3grid centered on agent|
+|POPGym|Vector/Image|Discrete/Continuous|Discrete/Continuous|Vector or 2D grid|
+|Action Assoc. Retrieval|Vector|Sparse & Discrete|Discrete|Symbolic vector input|
+|Atari|Image|Sparse & Discrete|Discrete|Full game screen|
+|MuJoCo|Vector|Continuous|Continuous|Low-dimensional state vector|
+
+retain information about the pillar for a time much longer than the pillar has been in the environment. Using only short-term memory and, for example, collecting the next item of the same color as the previous collected item, it will not be possible for the agent to survive for a long time, as this policy is extremely unstable. This is due to the fact that in the training dataset the agent occasionally makes a mistake and picks up an object of the opposite color. Thus, irrelevant information about the desired color may enter the transformer context and the agent will start collecting items of an opposite color, which will quickly lead to a failure.
+
+## C.1.2 T-MAZE
+
+To investigate agent’s long-term memory on very long environments (the inference trajectory length is much longer than the effective context length _Keff_ ) we used a modified version of the T-Maze environment (Ni et al., 2023). The agent’s objective in this environment is to navigate from the beginning of the T-shaped maze to the junction and choose the correct direction, based on a signal given at the beginning of the trajectory using four possible actions _a ∈{left, up, right, down}_ . This signal, represented as the _clue_ variable and equals to zero everywhere except the first observation, dictates whether the agent should turn up ( _clue_ = 1) or down ( _clue_ = _−_ 1). Additionally, a constraint on the episode duration _T_ = _L_ + 2, where the maximum duration is determined by the length of the corridor _L_ to the junction, adds complexity to the problem. To address this, a binary flag, represented as the _flag_ variable, which is equal to 1 one step before the junction and 0 otherwise, indicating the arrival of the agent at the junction, is included in the observation vector. Additionally, a noise channel is added to the observation vector, with random integer values from the set _{−_ 1 _,_ 0 _,_ +1 _}_ . The observation vector is thus defined as _o_ = [ _y, clue, flag, noise_ ], where _y_ represents the vertical coordinate. The reward _r_ is given only at the end of the episode and depends on the correctness of the agent’s turn at the junction, being 1 for a correct turn and 0 otherwise. This formulation deviates from the traditional Passive T-Maze environment (Ni et al., 2023) (different observations and reward functions) and presents a more intricate set of conditions for the agent to navigate and learn within the given time constraint.
+
+The dataset consists of 2000 of trajectories for each segment of length 30 (i.e. 6000 trajectories for the _Keff_ = 3 _×_ 30 = 90) and consists only of successful episodes. An artificial oracle with a priori information about the environment was used to generate the dataset.
+
+## C.1.3 MEMORY MAZE
+
+In this first-person view 3D environment (Pasukonis et al., 2022), the agent appears in a randomly generated maze containing several objects of different colors at random locations. The agent’s task is to find an object of the same color in the maze as the outline around its observation image. After the agent finds an object of the desired color and steps on it, the color of the outline changes and the agent must find another object. The agent receives a +1 reward for stepping on the correct object. Otherwise, it receives no reward. The duration of an episode is a fixed number and is equal to 1000. Thus, the agent’s task is to find as many objects of the desired color as possible in a limited time. The agent’s effectiveness in this environment depends on its ability to memorize the structure of the maze and the location of objects in it in order to find the desired objects faster. Using the Dreamer model (Hafner et al., 2019) to collect dataset of 5000 trajectories only achieved an average award of 4 _._ 7 per episode, i.e., a rather sparse dataset.
+
+17
+
+## C.1.4 MINIGRID-MEMORY
+
+Minigrid-Memory (Chevalier-Boisvert et al., 2023) is a 2D grid environment designed to test an agent’s long-term memory and credit-assignment (Ni et al., 2023). The environment map is a T- shaped maze with a small room with an object inside it at the beginning of the corridor. The agent appears at a random coordinate in the corridor. The agent’s task is to reach the room with the object and memorize it, then reach the junction at the end of the maze and make a turn in the direction where the same object is located as in the room at the beginning of the maze. A reward _r_ = 1 _−_ 0 _._ 9 _× T[t]_[is] given for success, and 0 for failure. The episode ends after any agent turns at a junction or after a limited amount of time (95 steps) has elapsed. The agent’s observations are limited to a 3 _×_ 3 size frame. 10000 trajectories with grid size 41x41 were collected using PPO (Schulman et al., 2017) with Transformer-XL (TrXL) (Pleines et al., 2023) with a context length equal to the maximum episode duration.
+
+## C.1.5 POPGYM
+
+POPGym (Morad et al., 2023a) is a benchmark suite consisting of 46 diverse partially observable environments designed to isolate different aspects of memory use and generalization in reinforcement learning. The tasks include both short-horizon reactive scenarios and long-horizon memory puzzles that require the agent to remember information across extended delays or infer hidden states from past observations. The environments vary in observation modality (image vs. vector), reward sparsity, and temporal dependencies. For our dataset, we followed the original POPGym evaluation protocol and used a PPO (Schulman et al., 2017) agent with a GRU (Chung et al., 2014) backbone (PPO-GRU), which showed the best performance in the original benchmark. We collected trajectories using this policy for all 46 environments. The collected dataset reflects the diverse difficulty and memory requirements of the benchmark and serves as a challenging testbed for evaluating general-purpose memory architectures like RATE.
+
+## C.2 STANDARD BENCHMARKS
+
+## C.2.1 ATARI GAMES
+
+For the Atari game environments (Bellemare et al., 2013), we used the same dataset as in DT, namely the DQN replay dataset with grayscale state images (Agarwal et al., 2020). This dataset contains 500 thousand of the 50 million steps of an online DQN (Mnih, 2013) agent for each game. We use the following set of games: SeaQuest, Breakout, Pong and Qbert.
+
+## C.2.2 MUJOCO.
+
+Despite the fact that memory is not required in decision making in control environments like MuJoCo (Fu et al., 2021), we conducted additional experiments in this environment to compare with DT. For the continuous control tasks, we selected a standard MuJoCo locomotion environment and a set of trajectories from the D4RL benchmark (Fu et al., 2021). Since we chose DT and TAP as the main models for comparison on this data, we focused on Figure 10: Action Associative Retrieval. the environments used in both works (HalfCheetah, Hopper, and Walker). We used three different dataset settings: 1) **Medium** – 1 million timesteps generated by a “medium” policy that achieves about a third of the score of an expert policy; 2) **Medium-Replay** – the replay buffer of an agent trained with the performance of a medium policy (about 200k–400k timesteps in our environments); 3) **Medium-Expert** – 1 million timesteps generated by the medium policy concatenated with 1 million timesteps generated by an expert policy. The scores for the MuJoCo experiments are normalized such that 100 represents an expert policy, following the benchmark protocol outlined in (Fu et al., 2021). The performance metrics for Conservative Q-Learning (CQL) and Trajectory Autoencoding Planner (TAP) are reported from the TAP paper (Jiang et al., 2023), and for DT from the DT paper (Chen et al., 2021), as they use the same dataset and evaluation protocol.
+
+18
+
+**==> picture [396 x 537] intentionally omitted <==**
+
+**----- Start of picture text -----**
+RATE Success Rate DT Success Rate
1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 0.50±0.00 0.53±0.02 0.52±0.03 0.50±0.01 0.53±0.02 0.51±0.01 0.53±0.01 0.50±0.01 0.51±0.02 0.49±0.02
1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 0.51±0.00 0.50±0.01 0.53±0.02 0.51±0.01 0.50±0.00 0.52±0.01 0.50±0.01 0.50±0.00 0.52±0.01
1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 0.96±0.04 0.96±0.04 0.95±0.04 0.96±0.04 0.96±0.04 0.96±0.04 1.00±0.00 1.00±0.00 1.00±0.00 0.51±0.01 0.50±0.01 0.48±0.01 0.49±0.01 0.49±0.01 0.49±0.01 0.49±0.01 0.49±0.01
1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 0.99±0.01 0.97±0.03 0.96±0.04 0.94±0.06 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 0.50±0.01 0.49±0.00 0.49±0.01 0.51±0.01 0.50±0.01 0.50±0.01 0.50±0.01
1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 0.88±0.12 0.88±0.12 0.88±0.12 0.88±0.12 0.88±0.12 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 0.49±0.01 0.50±0.00 0.50±0.01 0.49±0.01 0.50±0.01 0.50±0.01
1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 0.49±0.00 0.49±0.01 0.49±0.00 0.48±0.02 0.50±0.01
1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 0.95±0.05 0.79±0.10 0.72±0.11 0.72±0.11 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 0.48±0.01 0.49±0.00 0.50±0.01 0.49±0.01
9 30 90 150 300 600 900 1200 2400 4800 9600 9 30 90 150 300 600 900 1200 2400 4800 9600
Validation Sequence Length Validation Sequence Length
RATE DT
CQL-LSTM Success Rate CQL-MLP Success Rate
1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 0.52±0.02 0.48±0.04 0.51±0.02 0.49±0.04 0.53±0.01 0.50±0.01 0.52±0.01 0.47±0.02 0.52±0.02 0.48±0.01 0.53±0.02
1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00
1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 0.50±0.01 0.51±0.02 0.49±0.02 0.50±0.02 0.47±0.02 0.48±0.01 0.48±0.01 0.48±0.01 0.47±0.02 0.50±0.01 0.51±0.01
1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00
0.88±0.12 0.87±0.13 0.90±0.10 0.85±0.15 0.86±0.14 0.88±0.12 0.86±0.14 0.89±0.12 0.91±0.10 0.89±0.11 0.74±0.15 0.45±0.04 0.52±0.01 0.50±0.01 0.49±0.01 0.50±0.01 0.48±0.02 0.51±0.02 0.52±0.03 0.52±0.01 0.54±0.04 0.52±0.01
0.77±0.14 0.74±0.15 0.76±0.14 0.74±0.15 0.76±0.14 0.74±0.15 0.73±0.15 0.75±0.15 0.72±0.16 0.77±0.14 0.67±0.15
0.75±0.14 0.74±0.15 0.76±0.14 0.76±0.14 0.75±0.14 0.74±0.15 0.76±0.14 0.75±0.14 0.75±0.14 0.75±0.14 0.74±0.15 0.54±0.04 0.49±0.00 0.50±0.01 0.48±0.02 0.49±0.01 0.52±0.02 0.51±0.01 0.49±0.02 0.50±0.03 0.52±0.01 0.51±0.01
9 30 90 150 300 600 900 1200 2400 4800 9600 9 30 90 150 300 600 900 1200 2400 4800 9600
Validation Sequence Length Validation Sequence Length
CQL-LSTM CQL-MLP
DGRU Success Rate DLSTM Success Rate
1.00±0.00 1.00±0.00 1.00±0.00 0.75±0.14 0.62±0.13 0.50±0.00 0.50±0.00 0.49±0.01 0.50±0.00 0.51±0.00 0.50±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00
1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 0.87±0.13 0.87±0.13 0.76±0.14 0.62±0.12 0.88±0.12 0.88±0.12 0.88±0.12 0.87±0.13 0.88±0.12 0.87±0.13 0.88±0.12 0.87±0.13 0.88±0.12 0.88±0.12 0.88±0.12
1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00
1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 0.86±0.14 0.88±0.12 0.85±0.13 0.78±0.13 0.74±0.15 0.74±0.15 0.76±0.14 0.76±0.14 0.76±0.14 0.76±0.14 0.79±0.13
0.74±0.15 0.73±0.15 0.74±0.15 0.76±0.14 0.76±0.14 0.72±0.16 0.77±0.13 0.76±0.14 0.76±0.14 0.77±0.13 0.76±0.14 0.49±0.02 0.52±0.02 0.49±0.02 0.49±0.00 0.49±0.01 0.47±0.02 0.51±0.01 0.52±0.02 0.49±0.01 0.49±0.01 0.53±0.02
9 30 90 150 300 600 900 1200 2400 4800 9600 9 30 90 150 300 600 900 1200 2400 4800 9600
Validation Sequence Length Validation Sequence Length
DGRU DLSTM
DMamba Model Success Rate in Passive T-Maze (mean±sem) BC-MLP Success Rate
1.00±0.00 0.49±0.01 0.48±0.01 0.51±0.03 0.51±0.01 0.49±0.02 0.51±0.01 0.48±0.01 0.48±0.01 0.49±0.01 0.51±0.00 1.0 0.46±0.03 0.51±0.04 0.46±0.01 0.52±0.01 0.52±0.03 0.52±0.02 0.52±0.02 0.55±0.04 0.46±0.02 0.52±0.01 0.48±0.02
1.00±0.00 1.00±0.00 0.49±0.02 0.49±0.00 0.50±0.00 0.50±0.02 0.50±0.00 0.49±0.01 0.49±0.02 0.49±0.02 0.50±0.01 0.90.8 0.53±0.01 0.50±0.01 0.54±0.04 0.48±0.01 0.47±0.02 0.49±0.02 0.47±0.02 0.48±0.03 0.49±0.04 0.47±0.01 0.47±0.02
1.00±0.00 1.00±0.00 1.00±0.00 0.51±0.01 0.50±0.00 0.50±0.00 0.50±0.00 0.50±0.00 0.51±0.01 0.49±0.00 0.50±0.00 0.7 0.51±0.02 0.50±0.01 0.50±0.01 0.52±0.01 0.52±0.01 0.52±0.01 0.49±0.01 0.52±0.01 0.49±0.01 0.49±0.01 0.54±0.03
0.64±0.12 0.65±0.12 0.62±0.13 0.61±0.13 0.50±0.01 0.48±0.01 0.51±0.01 0.49±0.01 0.46±0.01 0.52±0.02 0.50±0.00 0.6 0.48±0.01 0.52±0.03 0.49±0.02 0.48±0.00 0.51±0.02 0.51±0.01 0.51±0.03 0.50±0.03 0.52±0.01 0.52±0.02 0.49±0.01
0.5
0.52±0.02 0.47±0.01 0.53±0.02 0.50±0.02 0.54±0.02 0.49±0.03 0.50±0.02 0.52±0.02 0.49±0.02 0.49±0.02 0.52±0.01 0.4 0.47±0.02 0.48±0.01 0.50±0.02 0.48±0.01 0.49±0.01 0.48±0.02 0.48±0.01 0.48±0.01 0.49±0.01 0.51±0.02 0.48±0.01
9 30 90 150 300 600 900 1200 2400 4800 9600 9 30 90 150 300 600 900 1200 2400 4800 9600
Easy Validation Sequence Length Hard Validation Sequence Length
DMamba BC-MLP
LSDT Success Rate BC-LSTM Success Rate
1.00±0.00 0.55±0.04 0.51±0.00 0.50±0.02 0.48±0.03 0.43±0.05 0.34±0.08 0.28±0.09 0.21±0.10 0.19±0.11 0.15±0.12 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00
1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00
1.00±0.00 1.00±0.00 0.50±0.01 0.54±0.02 0.48±0.01 0.47±0.02 0.40±0.07 0.36±0.08 0.32±0.10 0.29±0.12 0.26±0.14 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00
1.00±0.00 1.00±0.00 1.00±0.00 0.50±0.01 0.52±0.01 0.49±0.01 0.50±0.00 0.49±0.00 0.51±0.00 0.49±0.00 0.49±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00
1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 0.51±0.02 0.49±0.00 0.48±0.02 0.46±0.03 0.45±0.05 0.42±0.08 0.38±0.11 0.87±0.12 0.87±0.13 0.86±0.14 0.87±0.13 0.89±0.12 0.87±0.13 0.89±0.12 0.88±0.12 0.89±0.11 0.87±0.13 0.90±0.10
0.51±0.06 0.49±0.04 0.44±0.02 0.47±0.00 0.47±0.03 0.54±0.03 0.54±0.02 0.47±0.03 0.51±0.01 0.55±0.05 0.49±0.04
1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 0.49±0.00 0.49±0.00 0.49±0.00 0.49±0.00 0.50±0.00 0.49±0.01 0.52±0.02 0.51±0.02 0.51±0.03 0.53±0.02 0.48±0.00 0.47±0.01 0.50±0.01 0.49±0.00 0.53±0.02 0.50±0.01 0.51±0.01
9 30 90 150 300 600 900 1200 2400 4800 9600 9 30 90 150 300 600 900 1200 2400 4800 9600
Validation Sequence Length Validation Sequence Length
LSDT BC-LSTM
RMT Success Rate TrXL Success Rate
1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 0.88±0.12 0.49±0.01 0.50±0.00 0.50±0.00 0.50±0.00 0.50±0.01 0.50±0.01 0.50±0.01 0.49±0.01 0.51±0.01
1.00±0.00 0.98±0.01 0.81±0.13 0.83±0.12 0.84±0.12 0.83±0.12 0.84±0.12 0.82±0.12 0.83±0.12 0.82±0.12 0.86±0.11 1.00±0.00 1.00±0.00 0.57±0.07 0.50±0.00 0.50±0.01 0.51±0.01 0.49±0.00 0.51±0.00 0.50±0.01 0.51±0.01 0.51±0.01
1.00±0.00 1.00±0.00 0.90±0.10 0.78±0.13 0.68±0.12 0.68±0.13 0.71±0.11 0.66±0.12 0.68±0.12 0.69±0.12 0.72±0.10 1.00±0.00 1.00±0.00 1.00±0.00 0.48±0.01 0.50±0.00 0.50±0.01 0.49±0.01 0.48±0.00 0.49±0.01 0.50±0.01 0.51±0.00
1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 0.84±0.12 0.81±0.13 0.80±0.14 0.81±0.14 0.80±0.14 0.80±0.14 0.80±0.14 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 0.97±0.03 0.51±0.00 0.51±0.00 0.51±0.00 0.49±0.01 0.52±0.01 0.50±0.00
1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 0.99±0.01 0.96±0.03 0.66±0.09 0.61±0.07 0.50±0.01 0.50±0.01 0.50±0.01 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 1.00±0.00 0.50±0.00 0.50±0.00 0.50±0.00 0.50±0.00 0.50±0.00 0.50±0.00
9 30 90 150 300 600 900 1200 2400 4800 9600 9 30 90 150 300 600 900 1200 2400 4800 9600
Validation Sequence Length Validation Sequence Length
RMT TrXL
9 9
30 30
90 90
150 150
300 300
600 600
900 900
Training Sequence Length Training Sequence Length
9 9
30
90 30
150
300 90
600
900 150
Training Sequence Length Training Sequence Length
9 9
30 30
90 90
150 150
300 300
Training Sequence Length Training Sequence Length
Easy
9 9
30 30
90 90
150 Success Rate 150
Training Sequence Length 300 300
Hard Training Sequence Length
9 9
30
30 90
90 150
150 300
600
300 900
Training Sequence Length Training Sequence Length
9 9
30 30
90 90
150 150
300 300
Training Sequence Length Training Sequence Length
**----- End of picture text -----**
+
+Figure 11: Results for all models in the T-Maze generalization task.
+
+## D ACTION ASSOCIATIVE RETRIEVAL
+
+As shown in Figure 6, DT has a SR = 50% for inference at corridor lengths longer than the transformer context length. This is due to the fact that even a DT trained on balanced data has a slight bias in the predicted probability towards one of the two required actions, which leads to the fact that when
+
+19
+
+**==> picture [396 x 330] intentionally omitted <==**
+
+Figure 12: Experimental results with RATE and DT in the AAR environment. The graphs show the 10-runs average results of training on trajectories of length _T_ = 90 and validation on trajectories of length _T_ = 180, for RATE with _Keff_ = 3 _×_ 30 = 90 and for DT with _K_ = 90.
+
+> _t > K_ the agent constantly produces only one action: up or down. In turn, the presence of memory in the agent allows us to combat this problem.
+
+To check how the agent’s performance changes during training, we design an **Action Associative Retrieval** ( **AAR** ) Figure 10 environment.
+
+There are two states in this environment: _S_ 0 and _S_ 1. The agent appears in state _S_ 0 and by performing the action _a_ 0 _∈{_ 0 _,_ 1 _}_ moves to state _S_ 1. Next, the agent must take _N −_ 2 steps to move from state _S_ 1 to state _S_ 1 by performing action _a_ = 2 (no op.). At the end of the episode, the agent must perform the same action that moved it from state _S_ 0 to state _S_ 1 in order to move from state _S_ 1 to state _S_ 0. Thus, the action _a ∈{_ 0 _,_ 1 _,_ 2 _}_ . Agent observations _o_ = [ _state, flag, noise_ ], where _state ∈{_ 0 _,_ 1 _}_ is the index of the current state, _flag ∈{_ 0 _,_ 1 _}_ is a flag equal to 1 in case the next step requires returning to the initial state and equal to 0 otherwise, _noise ∈{−_ 1 _,_ 0 _,_ +1 _}_ is the noise channel. The agent receives a +1 reward if it returns to the initial state _S_ 0 by performing the action that took it out from the _S_ 0 to the _S_ 1, and _−_ 1 in other cases. The training dataset consists of oracle-generated 6000 trajectories with positive reward.
+
+More formally, we can talk about the presence of memory in an agent when solving AAR (T-Mazelike) tasks under the condition that:
+
+**==> picture [351 x 31] intentionally omitted <==**
+
+This condition means that if the agent has memory, the sum of the average conditional probabilities over all experiments will be greater than one, i.e., these probabilities are independent of each other.
+
+20
+
+Provided that the sum of these probabilities is less than or equal to one, the agent will choose at best the same target action in most experiments, even if another action is required.
+
+where _a_[0] _, a_[1] _∈A_ – two mutually exclusive actions leading to a reward; _t_ is the step at which the final action is required; _N_ 0 _, N_ 1 are the number of experiments in environments where target action _at_ = _a_[0] and _at_ = _a_[1] , respectively.
+
+In the results Figure 12, the first 1% of training steps was removed because it corresponds to the beginning of the training and is unrepresentative. Blue dots correspond to the beginning of training, red dots to the end of training. As can be seen from Figure 12, during training, the probabilities _pi_ ( _at_ = _a_[0] _|a_ 0 = _a_[0] ) and _pi_ ( _at_ = _a_[1] _|a_ 0 = _a_[1] ) on the training trajectories have a strong positive correlation ( _Rtrain[DT]_[= 1] _[.]_[00][ and] _[ R] train[RAT E]_ = 0 _._ 97), where _R_ – correlation coefficient. This indicates that within-context (effective context) DT and RATE models are able to predict both _a_[0] and _a_[1] actions equally well.
+
+At the same time, during validation, for the RATE model this pattern is preserved – the red points corresponding to the probabilities of choosing actions _a_[0] and _a_[1] are in the upper right part of the graph, positive correlation persists ( _Rval[RAT E]_ = 0 _._ 80). On the other hand, in the DT case, the cluster of red dots is skewed toward choosing action _a_[1] and action _a_[0] with equal probabilities equal to 0 _._ 5. Thus, in sum, these probabilities are less or equal to one, as evidenced by a strong negative correlation ( _Rval[DT]_[=] _[ −]_[0] _[.]_[97][).][The results confirm the inability of DT to generalize on trajectories whose lengths] exceed the context length and the ability of RATE to handle such tasks.
+
+## E TRAINING
+
+This section provides additional details on the training process of the baselines considered in the paper. We treated the inclusion of the feed-forward network (FFN) block in RATE’s transformer decoder as a hyperparameter, as RATE performed slightly better without FFN in some environments. In contrast, other transformer-based baselines were trained with the standard transformer decoder including FFN.
+
+## E.1 VIZDOOM-TWO-COLORS
+
+Since the pillar disappears at time _t_ =45, all trajectories span from _t_ =0 to _t_ =90 to ensure that the cue remains available during training. In this setting, we compare DT with context length _K_ =90 to RATE, RMT, and TrXL models using _K_ =30 and _N_ =3 segments. Thus, RATE processes sequences of the same total length _K_ eff= _N ×K_ =90 but accesses only _K_ =30 tokens at a time. Additionally, we ran experiments with _N_ =3, _K_ =50, and _T_ =150 to validate model robustness under longer and more complex configurations.
+
+## E.2 PASSIVE T-MAZE
+
+We trained models on sequences of length _T_ train _∈{_ 9 _,_ 30 _,_ 90 _,_ 150 _,_ 300 _,_ 600 _,_ 900 _}_ and evaluated them on _T_ val _∈{_ 9 _,_ 30 _,_ 90 _,_ 150 _,_ 300 _,_ 600 _,_ 900 _,_ 1200 _,_ 2400 _,_ 4800 _,_ 9600 _}_ . For RATE, each sequence was split into _N_ = 3 segments, yielding a context length of _K_ = _T_ train _/_ 3. All training trajectories started from _t_ = 0, ensuring the cue was always included. In what follows, we adopt the notation **MODEL-N** , where _N_ = 3 indicates segmentation into three recurrent blocks (e.g., RATE-3 is trained on full sequences of length _T_ = 90 with _K_ = 30). This convention is used throughout the ablation studies.
+
+## E.3 MEMORY MAZE
+
+To train RATE, DT, RMT, and TrXL on Memory Maze, we used the same approach as for ViZDoomTwo-Colors environment, but instead of using fixed trajectories starting at _t_ = 0, we sampled consecutive 90-step subsequences from the original 1000-step trajectories. Each subsequence was sampled with a stride of 90 steps, resulting in approximately 11 training sequences per original trajectory. As in the ViZDoom-Two-Colors case, training for DT was performed with a context length of _K_ = 90 and for RATE, RMT, and TrXL with a context length of _K_ = 30 and number of segments _N_ = 3, i.e., effective context length _Keff_ = _N × K_ = 3 _×_ 30 = 90.
+
+21
+
+## E.4 MINIGRID-MEMORY
+
+To train baselines in this environment, we used only mazes of fixed size 41 _×_ 41, ensuring a consistent corridor length during training. For evaluation, models were validated on mazes ranging from 11 _×_ 11 to 501 _×_ 501, where corridor lengths vary within each grid, enabling assessment of both interpolation and extrapolation capabilities. All training trajectories used an episode timeout of 96 steps, while validation trajectories across all maze sizes used a longer timeout of 500 steps. As in T-Maze, each trajectory began at _t_ = 0, ensuring the cue was always observed. During training, RATE used a context length of _K_ = 30 with _N_ = 3 segments, while other baselines (except RMT and TrXL) used _K_ = 90.
+
+## E.5 POPGYM SUITE
+
+POPGym (Morad et al., 2023a) comprises 46 tasks of varying memory complexity, including both memory puzzles and reactive POMDPs. Since episode lengths vary widely across tasks – from as short as 12 steps to as long as 1000 – we ensured a consistent and fair memory evaluation for RATE by setting the context length _K_ = _T/_ 3 and using _N_ = 3 segments for every environment, where _T_ denotes the maximum episode length of each task. This uniform configuration allowed RATE to process full trajectories with recurrent segmentation, ensuring its memory capacity was equally tested across tasks of different lengths and difficulties.
+
+## E.6 ATARI AND MUJOCO
+
+When training RATE on Atari games and MuJoCo control tasks, sequences of length _T_ = 90 (Atari) and _T_ = 60 (MuJoCo) were sampled randomly from the original trajectories in the dataset. These trajectories were then divided into _N_ = 3 segments of length _K_ = 30 (Atari) and _K_ = 20 (MuJoCo), forming an effective context of length _Keff_ = _N × K_ = 90 (60 for MuJoCo).
+
+For Atari, we used the identical experimental design described in the DT paper (Chen et al., 2021). It is worth noting that we presented raw scores for Atari, rather than gamer-normalized scores as described in the DT paper. Table 4 shows the results for Atari environments. RATE outperforms DT significantly in environments like Breakout and Qbert. We attribute this to the observation that, although these environments do not explicitly demand memory, intricate dynamics from the past exert a greater influence on agent behavior than in environments such as SeaQuest. Actions executed in the past notably alter the present state of the environment in Breakout and Qbert, whereas in SeaQuest, such actions hold little significance. For instance, the emergence of enemies and divers in SeaQuest is entirely independent of the agent’s prior actions.
+
+For MuJoCo, our findings suggest that the conventional strategy of utilizing return is not suitable for our segment-based scheme. The issue arises during the trajectory, where the agent’s return persistently diminishes. However, the true value of the agent’s state at the onset and conclusion of the episode could remain unchanged, provided the agent’s policy performs consistently well. To rectify this discrepancy, we propose a novel evaluation strategy for MuJoCo tasks. In this approach, each segment commences with the maximum return, simulating the scenario where the agent initiates the trajectory anew. This method effectively mitigates the aforementioned issue, enhancing the accuracy of our evaluation process. Our MuJoCo experiments in Table 3 show that this benefits performance significantly for some environments. Thus, using RATE allowed us to obtain the best metrics for MuJoCo in 3/9 cases compared to the other baselines. RATE also outperforms DT in 9/9 tasks.
+
+## F ADDITIONAL ABLATION STUDIES
+
+To determine the optimal hyperparameters associated with memory mechanisms, additional ablation studies were performed in ViZDoom-Two-Colors and T-Maze environments, and the results are presented in Figure 14 and Figure 13 (right). From the ablation studies results, it was found that for environments like ViZDoom-Two-Colors with continuous reward signal and image observations, the best results can be obtained using number of cached memory tokens mem_len = ( _K ×_ 3 + 2 _×_ num_mem_tokens) _× N_ , where _K_ – context length and _N_ – number of segments.
+
+22
+
+Table 8: RATE hyperparameters for different experiments. _‡_ – Leaky ReLU used in Atari.Pong. The listed hyperparameters for ViZDoom-Two-Colors and T-Maze correspond to the experiments with _T_ train = 150, while for POPGym, they reflect the settings used in the POPGym-Concentration task.
+
+|**Hyperparameter**|**ViZDoom2C**|**Memory Maze**|**T-Maze**|**Minigrid-Memory**|**POPGym**|**Atari**|**MuJoCo**|
+|---|---|---|---|---|---|---|---|
+|_Memory-specifc parameters_||||||||
+|Number of memory tokens|15|15|10|10|30|15|5|
+|Number of cached tokens|100|360|0|180|100|360|60|
+|Number of MRV heads|2|0|2|4|2|1|1|
+|MRV activation|ReLU|ReLU|ReLU|ReLU|ReLU|ReLU_‡_|ReLU|
+|_Transformer architecture_||||||||
+|Number of layers|6|6|8|4|10|6|3|
+|Number of attention heads|8|8|8|4|2|8|1|
+|Embedding dimension|64|64|64|128|32|128|128|
+|Context length_K_|50|30|50|30|18|30|20|
+|Number of segments|3|3|3|3|3|3|3|
+|Skip dec FFN|False|True|True|False|True|True|True|
+|_Regularization_||||||||
+|Hidden dropout|0.2|0.5|0.2|0.3|0.1|0.2|0.2|
+|Attention dropout|0.05|0.2|0.1|0.1|0.05|0.05|0.05|
+|Weight decay|0.001|0.1|0.001|0.001|0.001|0.1|0.1|
+|_Training confguration_||||||||
+|Max epochs|150|80|200|500|200|10|10|
+|Batch size|128|64|64|64|32|128|4096|
+|Loss function|CE|CE|CE|CE|CE|CE|MSE|
+|Optimizer|AdamW|AdamW|AdamW|AdamW|AdamW|AdamW|AdamW|
+|Learning rate|3e-4|3e-4|1e-4|1e-4|3e-4|3e-4|6e-5|
+|Grad norm clip|5.0|1.0|1.0|5.0|5.0|1.0|1.0|
+|Cosine decay|False|True|False|False|False|True|False|
+|Linear warmup|True|True|True|True|True|True|True|
+|(_β_1_, β_2)|(0.9, 0.999)|(0.9, 0.95)|(0.9, 0.999)|(0.9, 0.999)|(0.9, 0.999)|(0.9, 0.95)|(0.9, 0.95)|
+
+On the other hand, for environments with sparse events like T-Maze, it has been found that using caching of hidden states of previous tokens (mem_len _>_ 0) prevents remembering important information.
+
+**==> picture [195 x 99] intentionally omitted <==**
+
+**==> picture [195 x 66] intentionally omitted <==**
+
+Figure 13: ( **left** ) Investigating the RATE memory tokens noise effect in the ViZDoom-Two-Colors. ( **right** ) Results of RATE-3 (trained on corridor lengths _≤_ 90) ablation studies in the T-Maze environment. n_head_ca – number of MRV attention heads, num_mem_tokens – number of memory tokens.
+
+## F.1 ADDITIONAL VIZDOOM-TWO-COLORS ABLATION
+
+The effect of combining of memory tokens with noise is shown in Figure 13 (left). The noise was applied as a convex combination: memory_tokens = (1 _− α_ ) _×_ memory_tokens + _α ×_ noise. With unchanged caching of hidden states from previous steps at growth of the noise parameter _α_ , at first there is a decrease of performance at inference on green pillars (up to _α_ = 0 _._ 5), and only then a decrease of performance at inference on red pillars. This phenomenon can be explained by the fact that memory embeddings is trained to record mostly information about red pillars, which helps to combat bias in the training data.
+
+23
+
+Table 9: Performance on POPGym tasks (mean _±_ sem over three runs, 100 seeds each).
+
+|||||||**Dataset**|
+|---|---|---|---|---|---|---|
+|**Environment**|**RATE**|**DT**|**Random**|**BC-MLP**|**BC-LSTM**|**Average**|
+|||||||**Return**|
+|AutoencodeEasy-v0|_−_0_._29_±_0_._00|_−_0_._47_±_0_._00|_−_0_._50_±_0_._00|_−_0_._47_±_0_._00|_−_0_._32_±_0_._00|_−_0_._26|
+|AutoencodeMedium-v0|_−_0_._47_±_0_._00|_−_0_._49_±_0_._00|_−_0_._50_±_0_._00|_−_0_._49_±_0_._00|_−_0_._47_±_0_._00|_−_0_._48|
+|AutoencodeHard-v0|_−_0_._46_±_0_._00|_−_0_._49_±_0_._00|_−_0_._50_±_0_._01|_−_0_._50_±_0_._00|_−_0_._44_±_0_._00|_−_0_._43|
+|BattleshipEasy-v0|_−_0_._81_±_0_._02|_−_0_._93_±_0_._03|_−_0_._46_±_0_._01|_−_1_._00_±_0_._00|_−_0_._49_±_0_._01|_−_0_._35|
+|BattleshipMedium-v0|_−_0_._91_±_0_._02|_−_0_._91_±_0_._03|_−_0_._39_±_0_._01|_−_1_._00_±_0_._00|_−_0_._81_±_0_._02|_−_0_._43|
+|BattleshipHard-v0|_−_0_._92_±_0_._01|_−_0_._97_±_0_._01|_−_0_._41_±_0_._00|_−_1_._00_±_0_._00|_−_0_._67_±_0_._01|_−_0_._40|
+|ConcentrationEasy-v0|_−_0_._06_±_0_._02|_−_0_._05_±_0_._01|_−_0_._19_±_0_._01|_−_0_._92_±_0_._00|_−_0_._14_±_0_._00|_−_0_._12|
+|ConcentrationMedium-v0|_−_0_._84_±_0_._00|_−_0_._84_±_0_._00|_−_0_._84_±_0_._00|_−_0_._88_±_0_._00|_−_0_._84_±_0_._00|_−_0_._87|
+|ConcentrationHard-v0|_−_0_._25_±_0_._00|_−_0_._25_±_0_._01|_−_0_._19_±_0_._00|_−_0_._92_±_0_._00|_−_0_._19_±_0_._01|_−_0_._44|
+|CountRecallEasy-v0|0_._07_±_0_._01|_−_0_._46_±_0_._01|_−_0_._93_±_0_._00|_−_0_._92_±_0_._00|0_._05_±_0_._00|0_._22|
+|CountRecallMedium-v0|_−_0_._47_±_0_._01|_−_0_._75_±_0_._03|_−_0_._88_±_0_._00|_−_0_._88_±_0_._00|_−_0_._47_±_0_._00|_−_0_._48|
+|CountRecallHard-v0|_−_0_._54_±_0_._00|_−_0_._81_±_0_._02|_−_0_._93_±_0_._00|_−_0_._92_±_0_._00|_−_0_._56_±_0_._00|_−_0_._55|
+|HigherLowerEasy-v0|0_._50_±_0_._00|0_._50_±_0_._00|0_._00_±_0_._01|0_._47_±_0_._00|0_._50_±_0_._00|0_._51|
+|HigherLowerMedium-v0|0_._50_±_0_._00|0_._50_±_0_._00|_−_0_._01_±_0_._00|0_._49_±_0_._00|0_._50_±_0_._00|0_._49|
+|HigherLowerHard-v0|0_._52_±_0_._00|0_._51_±_0_._00|0_._01_±_0_._01|0_._50_±_0_._00|0_._51_±_0_._01|0_._49|
+|LabyrinthEscapeEasy-v0|0_._95_±_0_._00|0_._80_±_0_._01|_−_0_._39_±_0_._00|0_._72_±_0_._05|0_._92_±_0_._01|0_._95|
+|LabyrinthEscapeMedium-v0|_−_0_._81_±_0_._01|_−_0_._82_±_0_._01|_−_0_._94_±_0_._01|_−_0_._89_±_0_._01|_−_0_._86_±_0_._00|_−_0_._94|
+|LabyrinthEscapeHard-v0|_−_0_._56_±_0_._01|_−_0_._67_±_0_._04|_−_0_._84_±_0_._04|_−_0_._71_±_0_._03|_−_0_._69_±_0_._02|_−_0_._49|
+|LabyrinthExploreEasy-v0|0_._95_±_0_._00|0_._88_±_0_._06|_−_0_._34_±_0_._01|0_._87_±_0_._01|0_._93_±_0_._00|0_._96|
+|LabyrinthExploreMedium-v0|0_._79_±_0_._00|0_._77_±_0_._01|_−_0_._73_±_0_._00|0_._26_±_0_._01|0_._71_±_0_._01|0_._79|
+|LabyrinthExploreHard-v0|0_._88_±_0_._00|0_._86_±_0_._01|_−_0_._61_±_0_._00|0_._45_±_0_._01|0_._82_±_0_._01|0_._87|
+|MineSweeperEasy-v0|0_._15_±_0_._03|_−_0_._33_±_0_._04|_−_0_._26_±_0_._03|_−_0_._47_±_0_._01|0_._20_±_0_._00|0_._28|
+|MineSweeperMedium-v0|_−_0_._44_±_0_._00|_−_0_._40_±_0_._01|_−_0_._43_±_0_._00|_−_0_._49_±_0_._00|_−_0_._35_±_0_._01|_−_0_._27|
+|MineSweeperHard-v0|_−_0_._20_±_0_._00|_−_0_._37_±_0_._02|_−_0_._39_±_0_._01|_−_0_._48_±_0_._00|_−_0_._16_±_0_._00|_−_0_._10|
+|MultiarmedBanditEasy-v0|0_._37_±_0_._01|0_._27_±_0_._01|0_._02_±_0_._00|0_._05_±_0_._00|0_._17_±_0_._02|0_._62|
+|MultiarmedBanditMedium-v0|0_._22_±_0_._03|0_._27_±_0_._01|0_._01_±_0_._00|0_._01_±_0_._00|0_._17_±_0_._01|0_._43|
+|MultiarmedBanditHard-v0|0_._32_±_0_._01|0_._35_±_0_._01|0_._01_±_0_._00|0_._21_±_0_._01|0_._14_±_0_._00|0_._59|
+|NoisyPositionOnlyCartPoleEasy-v0|0_._88_±_0_._03|0_._87_±_0_._02|0_._11_±_0_._00|0_._23_±_0_._00|0_._44_±_0_._01|0_._98|
+|NoisyPositionOnlyCartPoleMedium-v0|0_._18_±_0_._01|0_._17_±_0_._01|0_._11_±_0_._00|0_._16_±_0_._00|0_._22_±_0_._01|0_._36|
+|NoisyPositionOnlyCartPoleHard-v0|0_._33_±_0_._01|0_._34_±_0_._00|0_._12_±_0_._01|0_._18_±_0_._00|0_._25_±_0_._01|0_._57|
+|NoisyPositionOnlyPendulumEasy-v0|0_._87_±_0_._00|0_._84_±_0_._01|0_._27_±_0_._01|0_._31_±_0_._00|0_._88_±_0_._00|0_._90|
+|NoisyPositionOnlyPendulumMedium-v0|0_._60_±_0_._01|0_._56_±_0_._01|0_._26_±_0_._00|0_._28_±_0_._00|0_._66_±_0_._00|0_._67|
+|NoisyPositionOnlyPendulumHard-v0|0_._68_±_0_._00|0_._63_±_0_._01|0_._27_±_0_._01|0_._30_±_0_._00|0_._72_±_0_._00|0_._73|
+|PositionOnlyCartPoleEasy-v0|0_._93_±_0_._03|1_._00_±_0_._00|0_._12_±_0_._00|0_._15_±_0_._00|0_._17_±_0_._00|1_._00|
+|PositionOnlyCartPoleMedium-v0|0_._05_±_0_._01|0_._03_±_0_._00|0_._04_±_0_._00|0_._05_±_0_._00|0_._06_±_0_._00|1_._00|
+|PositionOnlyCartPoleHard-v0|0_._07_±_0_._00|0_._34_±_0_._08|0_._05_±_0_._00|0_._09_±_0_._00|0_._12_±_0_._00|1_._00|
+|PositionOnlyPendulumEasy-v0|0_._54_±_0_._02|0_._51_±_0_._03|0_._27_±_0_._00|0_._29_±_0_._00|0_._91_±_0_._00|0_._92|
+|PositionOnlyPendulumMedium-v0|0_._47_±_0_._01|0_._49_±_0_._01|0_._26_±_0_._00|0_._28_±_0_._00|0_._82_±_0_._00|0_._82|
+|PositionOnlyPendulumHard-v0|0_._49_±_0_._01|0_._55_±_0_._01|0_._26_±_0_._00|0_._30_±_0_._00|0_._89_±_0_._00|0_._88|
+|RepeatFirstEasy-v0|1_._00_±_0_._00|0_._45_±_0_._16|_−_0_._49_±_0_._01|_−_0_._50_±_0_._00|1_._00_±_0_._00|1_._00|
+|RepeatFirstMedium-v0|0_._10_±_0_._02|0_._42_±_0_._14|_−_0_._50_±_0_._00|_−_0_._50_±_0_._00|_−_0_._50_±_0_._00|0_._99|
+|RepeatFirstHard-v0|0_._99_±_0_._01|_−_0_._21_±_0_._18|_−_0_._50_±_0_._00|_−_0_._50_±_0_._00|0_._99_±_0_._01|1_._00|
+|RepeatPreviousEasy-v0|1_._00_±_0_._00|1_._00_±_0_._00|_−_0_._49_±_0_._01|_−_0_._52_±_0_._00|1_._00_±_0_._00|1_._00|
+|RepeatPreviousMedium-v0|_−_0_._46_±_0_._00|_−_0_._47_±_0_._00|_−_0_._51_±_0_._00|_−_0_._48_±_0_._00|_−_0_._45_±_0_._00|_−_0_._48|
+|RepeatPreviousHard-v0|_−_0_._38_±_0_._01|_−_0_._38_±_0_._00|_−_0_._50_±_0_._01|_−_0_._50_±_0_._00|_−_0_._38_±_0_._00|_−_0_._39|
+|VelocityOnlyCartPoleEasy-v0|1_._00_±_0_._00|1_._00_±_0_._00|0_._11_±_0_._00|0_._99_±_0_._00|1_._00_±_0_._00|1_._00|
+|VelocityOnlyCartPoleMedium-v0|1_._00_±_0_._00|0_._96_±_0_._02|0_._04_±_0_._00|0_._63_±_0_._00|1_._00_±_0_._00|0_._99|
+|VelocityOnlyCartPoleHard-v0|1_._00_±_0_._00|1_._00_±_0_._00|0_._06_±_0_._00|0_._83_±_0_._01|1_._00_±_0_._00|1_._00|
+
+## F.2 CURRICULUM LEARNING
+
+Since in the T-Maze environment, the number of actions at the junction relates to the number of actions when moving straight along the corridor as _L_[1][and tends to][ 0][ as] _[ L]_[ increases, there is a significant] imbalance in the agent’s action distribution, which can cause problems when performing rare class (turning actions) prediction. Theoretically, this situation can be remedied through curriculum learning. Curriculum learning (CL) is a technique in which a model is trained on examples of increasing difficulty. In this approach, the model is first trained on the set of trajectories _Q_ 1 = _q_ 1 of length _K ×_ 1, then the trained model is re-trained on the set of trajectories _Q_ 2 = _q_ 1 _∪ q_ 2, where the set _q_ 2 is formed by trajectories of length _K ×_ 2, and so on (in order of increasing complexity of the trajectories). Thus, for the _N_ segments considered during training, the set _QN_ =[�] _[N] i_ =1 _[q][i]_[is used.]
+
+In the T-Maze environment, DT, RATE, RMT, and TrXL were trained with and without curriculum learning because this approach theoretically produces better results. However, it is important to note
+
+24
+
+Table 10: Experimental setup and evaluation metrics across different environments. _Nruns_ denotes the number of model runs; _Nseeds_ denotes the number of inference episodes with different seeds; sem denotes standard error of the mean, and std denotes standard deviation.
+
+|**Environment**|**Experiment Setup**
_N_runs
_N_seeds|**Results**
**Metric**
**Notation**|
+|---|---|---|
+|_Memory-intensive environments_|||
+|ViZDoom-Two-Colors
6
100
T-Maze
4
100
Memory Maze
3
100
Minigrid-Memory
3
100
POPGym
3
100||Return
mean_±_sem
Success Rate
mean_±_sem
Return
mean_±_sem
Return
mean_±_sem
Return
mean_±_sem|
+|_Diagnostic environment_|||
+|Action Associative Retrieval
10
—||Success Rate
mean_±_sem|
+
+**==> picture [396 x 232] intentionally omitted <==**
+
+Figure 14: Results of RATE ablation studies in the ViZDoom-Two-Colors environment.
+
+that the T-Maze task is successfully solved by the RATE model without using curriculum learning, and even vice versa – its use slightly degraded performance on long corridors. However, with respect to TrXL, the use of CL yielded slightly better results. The work showed that using CL does not achieve significantly better performance on the T-Maze task. The results of using the CL on the T-Maze environment are presented in Figure 16 (left), and the results of applying noise to memory embeddings to assess its importance are presented in Figure 16 (right).
+
+## F.3 SUPPLEMENTAL MRV ABLATION
+
+One of the options for implementing the memory tokenization gating mechanism was an approach similar to the one proposed in Gated Transforer-XL (GTrXL) (Parisotto et al., 2020) work. Thus, the MRV-G scheme was inspired by the gating mechanism from GTrXL and implemented as follows:
+
+**==> picture [273 x 28] intentionally omitted <==**
+
+25
+
+Table 11: RATE encoders for each part of ( _R, o, a_ ) triplets. We use an Embedding layer for encoding discrete actions and a Linear layer for continuous ones. _‡_ – channels / kernel sizes / padding. For POPGym tasks with grid-based observations (e.g., MineSweeper and Battleship), we encoded the grid using a token dictionary followed by a linear encoder to produce a fixed-length vector. Actions were encoded using an embedding layer for all discrete control tasks, while a linear layer was used for continuous control environments (e.g., PositionOnlyPendulum).
+
+|**Environment**|**Encoder Confguration**|
+|---|---|
+||**Return**
**Observation**
**Conv. params**_‡_
**Action**|
+|_Image-based environments_||
+|ViZDoom-Two-Colors
Memory Maze
Minigrid-Memory
Atari|Linear
Conv2D_×_3
(32, 64, 64) / (8, 4, 3) / 0
Embedding
Linear
Conv2D_×_3
(32, 64, 64) / (8, 4, 3) / 2
Embedding
Linear
Conv2D_×_3
(32, 64, 64) / (8, 4, 3) / 0
Embedding
Linear
Conv2D_×_3
(32, 64, 64) / (8, 4, 3) / 0
Embedding|
+|_Vector-based environments_||
+|T-Maze
MuJoCo
Action Associative Retrieval
POPGym|Linear
Linear
—
Embedding
Linear
Linear
—
Linear
Linear
Linear
—
Embedding
Linear
Linear
—
Embedding / Linear|
+||_h_=tanh(_MnWg_+ (_Mn_+1_× r_)_Ur_)
(10)
˜
_Mn_+1 =_σ_(_Mn_(1_−z_) +_z × h_)
(11)|
+
+The results of the RATE (trained on corridor lengths of _≤_ 150) inference on the T-Maze environment with these MRV configurations are shown in Figure 17 and in Table 6. The results presented in Figure 17 confirm the high stability of RATE when using cross-attention-based MRV (MRV-CA-2), as well as the model’s ability to hold important information in memory embeddings when inference on long tasks.
+
+## F.4 ABLATION ON NUMBER OF SEGMENTS AND SEGMENT LENGTH
+
+Partitioning the trajectories into fixed-length segments allows the RATE model to train on long trajectories without increasing the context size, which makes the parameters _N_ (the number of segments into which the training trajectories are divided) and _K_ (the context length, i.e., the size of a single segment) critical because they determine the length of the effective context _Keff_ = _K × N_ . Figure 18 presents the results of ablation studies for parameters _N_ and _K_ at fixed _Keff_ = 90.
+
+## G TRANSFORMER ABLATION STUDIES
+
+**Transformer core hyperparameters.** This section presents the results of ablation studies on the main hyperparameters of the RATE transformer. The RATE configuration for the T-Maze environment specified in Table 8 was chosen for the ablation studies. The ablation studies focus on understanding the impact of key hyperparameters by systematically varying one parameter while keeping others constant. The results are shown in Figure 20, Figure 21, and Figure 22.
+
+**Feed-Forward Network.** For RATE, the inclusion of the decoder feed-forward block is treated as a tunable hyperparameter. In most environments, we disable it, as doing so often leads to better performance Figure 19. However, for ViZDoom-Two-Colors and Minigrid-Memory, we found that retaining the feed-forward block yields slightly improved results, and thus it is enabled in those settings.
+
+## H RECOMMENDATIONS FOR HYPERPARAMETER SETTINGS
+
+Transformer-based models require careful hyperparameter tuning, and the addition of memory mechanisms in RATE introduces a few more components. However, **configuring RATE remains**
+
+26
+
+**==> picture [397 x 283] intentionally omitted <==**
+
+Figure 15: Memory Retention Valve configurations used in the ablation study. **MRV-CA-2** : crossattention-based MRV which uses an attention mechanism to control the updating of memory embeddings and which is used in the work as the main mechanism. **MRV-CA-1** : uses the same mechanism as MRV-CA-2 but the updated memory embeddings _Mn_ +1 are fed to Query, and the incoming memory embeddings _Mn_ are fed to Key and Value. **MRV-G** : gated MRV which uses a gating mechanism similar to the one used in Gated Transformer-XL (Parisotto et al., 2020). **MRV-GRU** : uses a GRU (Chung et al., 2014) block to process updated memory embeddings with hidden states. **MRV-LSTM** : uses a LSTM (Hochreiter & Schmidhuber, 1997) block to process updated memory embeddings with cached states.
+
+**==> picture [195 x 99] intentionally omitted <==**
+
+**==> picture [195 x 99] intentionally omitted <==**
+
+Figure 16: ( **left** ). Results with and without the use of curriculum learning and ( **right** ) results of replacing RATE memory tokens with white noise at inference in T-Maze.
+
+**largely similar to tuning a standard transformer** . Based on extensive empirical evaluation, we provide the following **practical guidelines** to simplify the setup process.
+
+## **Step-by-step configuration:**
+
+> 1. **Segment setup.** Divide each trajectory into _N_ = 3 segments. For a trajectory of length _T_ , set the context length to _K_ = _T//_ 3.
+
+27
+
+**==> picture [396 x 188] intentionally omitted <==**
+
+Figure 17: Results of RATE inference with different MRV configurations on the T-Maze environment. Training was performed with the number of segments _N_ = 5 and context length _K_ = 30, i.e. on trajectories of length _≤_ 150. MRV-CA-2 is the final MRV configuration that is used throughout the work and is designated as MRV.
+
+**==> picture [195 x 102] intentionally omitted <==**
+
+**==> picture [195 x 101] intentionally omitted <==**
+
+Figure 18: Ablation of segment size _K_ and Figure 19: Ablation of feed-forward block usage segment count _N_ with fixed effective context in the decoder. _K_ eff = _K↑× N ↓_ = 90.
+
+2. **Memory configuration.** Use the following default parameters for RATE’s memory mechanisms:
+
+ - num_mem_tokens = 5
+
+ - n_head_ca = 1
+
+ - mrv_act = ReLU
+
+ - mem_len =
+
+ - (3 _× K_ + 2 _×_ num_mem_tokens) _× N_ for dense reward environments (e.g., ViZDoom-Two-Colors, Minigrid-Memory)
+
+ - 0 for sparse reward environments (e.g., T-Maze)
+
+3. **Transformer core.** Set the standard architecture parameters (number of layers, attention heads, embedding dimension, etc.) based on the task complexity and computational constraints.
+
+4. **Memory tuning.** After adjust, fine-tune memory-related parameters if needed (e.g., num_mem_tokens, mem_len, dropout rates).
+
+This configuration provides a strong default setup and has consistently performed well across all evaluated tasks.
+
+28
+
+**==> picture [127 x 65] intentionally omitted <==**
+
+Figure 20: Results of ablation by the number of layers of the RATE model in T-Maze environment.
+
+**==> picture [127 x 65] intentionally omitted <==**
+
+**==> picture [128 x 64] intentionally omitted <==**
+
+Figure 21: Results of ablation Figure 22: Results of ablation by by the number of attention heads the features sizes of the RATE of the RATE model in T-Maze model in T-Maze environment. environment.
+
+Table 12: Comparison of RATE and DT Model Parameters. RATE has 1.0-7.7% less parameters compared to DT due to the fact that RATE does not use feed-forward network in the transformer decoder by default.
+
+|**Environment**|**RATE**|**DT**|**diff, %**|
+|---|---|---|---|
+|T-Maze|1,723,840|1,775,488|-2.91|
+|ViZDoom-Two-Colors|4,537,504|4,672,032|-2.88|
+|Minigrid-Memory|2,000,864|2,051,872|-2.49|
+|Memory Maze|1,639,840|1,673,696|-2.02|
+|POPGym|6,760,192|6,827,008|-0.98|
+
+## I TECHNICAL DETAILS
+
+Table 12 and Table 13 shows the technical parameters of the training models. Note that the difference between the number of DT and RATE parameters is small. Training RATE with trajectory splitting into _N_ segments allows _∼ N_ smaller GPU memory size usage than for DT. The training was conducted using a single NVIDIA A100 80 Gb graphics card.
+
+Table 13: Computational efficiency comparison between RATE and DT models across different memory-intensive environments. We report three key metrics: (1) training time per epoch (mean±std, in seconds), (2) inference latency per step (mean±sem, in milliseconds), and (3) GPU memory footprint (in MiB). Lower values indicate better efficiency.
+
+|**Environment**|**RATE**
Train (s)
Test (ms)
Size (MiB)|**DT**
Train (s)
Test (ms)
Size (MiB)|
+|---|---|---|
+|T-Maze
ViZDoom-Two-Colors
Minigrid-Memory
Memory Maze
POPGym|16.17±2.75
7.20±0.31
3,148
77.44±3.56
10.35±0.52
7,750
33.74±2.65
9.94±2.24
4,102
110.26±2.97
38.98±0.62
6,638
3.37±0.25
8.91±0.37
5,948|95.75±0.49
10.69±0.14
8,608
68.18±1.56
10.45±0.41
14,046
16.77±1.37
10.43±2.84
4,298
82.69±1.56
40.36±0.46
10,386
3.64±0.53
8.98±0.32
10,696|
+
+29
+
diff --git a/open_review/iclr2026_25050.json b/open_review/iclr2026_25050.json
new file mode 100644
index 0000000000000000000000000000000000000000..2f5b942440ae666a26b814c010e443abf56d5800
--- /dev/null
+++ b/open_review/iclr2026_25050.json
@@ -0,0 +1,100 @@
+{
+ "paper_id": "iclr2026_25050",
+ "source": "iclr2026",
+ "source_year": 2026,
+ "title": "Do LLMs Signal When They’re Right? Evidence from Neuron Agreement",
+ "abstract": "Large language models (LLMs) commonly boost reasoning via sample-evaluate-ensemble decoders (e.g., majority voting), achieving label free gains without ground truth. However, prevailing strategies score candidates using only external outputs such as token probabilities, entropies, or self evaluations, and these signals can be poorly calibrated after post training. We instead analyze internal behavior based on neuron activations and uncover three findings: (1) external signals are low dimensional projections of richer internal dynamics; (2) correct responses activate substantially fewer unique neurons than incorrect ones throughout generation; and (3) activations from correct responses exhibit stronger cross sample agreement, whereas incorrect ones diverge. Motivated by these observations, we propose Neuron Agreement Decoding (NAD), an unsupervised best of N method that selects candidates using activation sparsity and cross sample neuron agreement, operating solely on internal signals and without requiring comparable textual outputs. NAD enables early correctness prediction within the first 32 generated tokens and supports aggressive early stopping. Across math and science benchmarks with verifiable answers, NAD matches majority voting; on open ended coding benchmarks where majority voting is inapplicable, NAD consistently outperforms Avg@64. By pruning unpromising trajectories early, NAD reduces token usage by 99\\% with minimal loss in generation quality, showing that internal signals provide reliable, scalable, and efficient guidance for label free ensemble decoding.",
+ "rebuttal": "### **W1:**\n\n1. Intuitively, model behavior is determined by all neurons, including the output distribution in the final layer, which directly determines entropy. These two indicators are therefore not independent, and we argue that the activation patterns of all neurons naturally subsume entropy; the reverse, however, does not hold.\n2. Because the above reasoning is quite straightforward, we only conducted a simple experiment and justification: namely, that a certain projection of neuron activations is correlated with entropy, whereas the reverse is not true. Thank you for the suggestion, we will expand the discussion on this justification.\n\n### **W2:**\n**On selected models:** The models we selected are all state-of-the-art, including commonly used Qwen models and the DeepSeek distillation series.\n\n**On baselines:** We have added results for three additional baselines (**Short-1@k**, **Self-Certainty**, and **DeepConf**, a contemporaneous work of ours), as shown in **Table 1**. Our method is competitive compared to theirs. Moreover, Self-Certainty and DeepConf rely on majority voting and therefore cannot handle open-domain tasks such as **code generation**, whereas **NAD can**, which is an advantage of our method.\n\n### **W3:**\n\nWe supplemented our experiments using the bootstrap method with larger sample sizes, as shown in the **Appendix (Figure 11)**. The results demonstrate that our method is robust.\n\n### **Q1:**\n**Regarding correctness**: We have added additional results in the **appendix(Figure 12)**. The results show that the trends for correct and incorrect samples are similar, and the difference in neuron counts further supports our Insight 2.\n\n**Regarding the power law**: We tried various fitting strategies, but none led to a substantial increase in the Pearson correlation coefficient, i.e., they did not exhibit a power-law relationship. We still appreciate your suggestion.\n\n### **Q2:**\n\nSince we report results on a large number of tasks and aim to present our method’s performance on a broader range of datasets, we combine **AIME24 & AIME25** for reporting.\n\n### **Q3:**\n\nWe apologize for the inconsistency. Our intention was to contrast these tasks with open-ended code generation. However, the current draft of the paper still uses the term math reasoning due to an oversight. We will revise the terminology in the next version of the paper to ensure consistency with standard usage. We use the most commonly adopted GPQA-Diamond subset.\n\n### **Q4:**\n\nThe total token cost is proportional to the average. Dividing by N = 64 gives the average number of saved tokens.\n\n### **Q5:**\n\nWe will include statistical significance metrics in the revised version.\n\n### **Q6:**\n\n1. The figure shows the total token consumption across the entire task, not an expectation; therefore confidence intervals are unnecessary.\n2. There is no contradiction. Our goal is to use as few tokens as possible while achieving high prediction accuracy, not merely the highest final accuracy. Indeed, the highest accuracy occurs at B = 16k, but token consumption is also the largest. From the curve, with 32 tokens, we already achieve ~80% accuracy, and accuracy increases only gradually afterward until reaching its maximum at 16k.\n3. The curve simulates a token-by-token generation process. We perform early stopping at several positions: at each early-stop point, we use the currently generated tokens to predict the correctness of all future responses (not yet generated). The accuracy of this prediction corresponds to the blue curve. As the early-stop position becomes later, token consumption (red curve) increases, and accuracy generally increases as well. Nevertheless, stopping at 32 tokens already yields strong performance.\n\n### **Q7:**\n\nThe choice of the early-stop position currently relies on heuristic experience. As shown in Figure 8, we consider 32 tokens to be a well-balanced choice, but the figure also shows the method is *not sensitive* to this choice (anywhere from 32–256 works). Thank you for the suggestion, it motivates us to explore selecting the early-stop position using small-scale datasets/models as future work.\n\n### **Suggestions:**\n\nThank you for the suggestions. We have updated the paper accordingly.\n\n### **W1:**\n\nWe have added experiments on both simpler and more challenging datasets, as shown in the **Appendix (Table 5)**. In both settings, our method achieves improvements over the baselines.\n\n### **W2:**\n\nPlease refer to **W1**.\n The *Pass@1* you mentioned is likely meant to be *Pass@k* (since **Avg@64 is the unbiased estimator of Pass@1**).\n To demonstrate that our method remains effective even when the model is uncertain, we report the standard deviation of accuracies over 64 samples in the Appendix (Table 8). Standard deviation quantitatively captures the dispersion of accuracy across [...]\n\n### **W1:**\n\nWe have added results for three additional baselines (**Short-1@k**, **Self-Certainty**, and **DeepConf**, a contemporaneous work of ours), as shown in **Table 1**. Compared with these methods, our method is competitive. Moreover, the implementations of Self-Certainty and DeepConf rely on majority voting, which cannot handle open-domain tasks such as code generation, whereas **NAD can**, which constitutes an advantage of our method.\n\n### **W2:**\n\nThe statement *“NAD enables early correctness prediction within the first 32 generated tokens”* is obtained by first generating the full [...]\n\n### **W1:**\n\nWe have added results for the larger **Qwen2.5-72B-Instruct**, which can be found in **Table 4 in the Appendix**. The results demonstrate that our method remains effective on larger models.\n\n### **W2:**\n\n**Choice of $k$**: We have already conducted ablation studies on $k$ in **Section 5.3 (Figure 7)**, where we also explain our reason for choosing the value of $k$ (a larger $k$ provides stronger discriminative power between correct and incorrect samples).\n\n**Choice of the gating function**: In current mainstr\n[rebuttal truncated]",
+ "initial_scores": [
+ 6,
+ 6,
+ 4,
+ 2
+ ],
+ "score_mean": 4.5,
+ "score_variance": 3.67,
+ "score_spread": 4,
+ "score_min": 2,
+ "score_max": 6,
+ "decision": "Reject",
+ "rebuttal_validity_ground_truth": false,
+ "meta_review": "",
+ "forum_id": "mbu8EEnp3a",
+ "primary_area": "interpretability and explainable AI",
+ "n_reviews": 4,
+ "per_review": [
+ {
+ "reviewer": "Reviewer_gDoM",
+ "review_id": "q2QF9xWDWT",
+ "scores": {
+ "rating": 6,
+ "soundness": 3,
+ "presentation": 3,
+ "contribution": 3,
+ "confidence": 4
+ },
+ "review_text_chars": 1641,
+ "edit_detected": true,
+ "edit_delta_seconds": 962109,
+ "post_rebuttal_text_signal": false,
+ "score_mentions_in_text": []
+ },
+ {
+ "reviewer": "Reviewer_jKnt",
+ "review_id": "1zn4ZXUZN7",
+ "scores": {
+ "rating": 6,
+ "soundness": 3,
+ "presentation": 3,
+ "contribution": 3,
+ "confidence": 4
+ },
+ "review_text_chars": 3955,
+ "edit_detected": true,
+ "edit_delta_seconds": 994506,
+ "post_rebuttal_text_signal": false,
+ "score_mentions_in_text": []
+ },
+ {
+ "reviewer": "Reviewer_nzaY",
+ "review_id": "D99DklozeF",
+ "scores": {
+ "rating": 4,
+ "soundness": 3,
+ "presentation": 3,
+ "contribution": 2,
+ "confidence": 4
+ },
+ "review_text_chars": 5302,
+ "edit_detected": true,
+ "edit_delta_seconds": 1183898,
+ "post_rebuttal_text_signal": false,
+ "score_mentions_in_text": []
+ },
+ {
+ "reviewer": "Reviewer_NEts",
+ "review_id": "kDwXNnnqSH",
+ "scores": {
+ "rating": 2,
+ "soundness": 2,
+ "presentation": 3,
+ "contribution": 2,
+ "confidence": 4
+ },
+ "review_text_chars": 5282,
+ "edit_detected": true,
+ "edit_delta_seconds": 1338361,
+ "post_rebuttal_text_signal": false,
+ "score_mentions_in_text": []
+ }
+ ],
+ "any_review_edit_detected": true,
+ "any_post_rebuttal_text_signal": false,
+ "review_score_dimensions": [
+ "rating",
+ "soundness",
+ "presentation",
+ "contribution",
+ "confidence"
+ ]
+}
\ No newline at end of file
diff --git a/open_review/iclr2026_25050.md b/open_review/iclr2026_25050.md
new file mode 100644
index 0000000000000000000000000000000000000000..c8200268d46426a340f8771853efb4c374f5f468
--- /dev/null
+++ b/open_review/iclr2026_25050.md
@@ -0,0 +1,325 @@
+
+
+DO LLMS SIGNAL WHEN THEY’RE RIGHT?
+
+Authors withheld for review
+
+ABSTRACT Large language models (LLMs) commonly boost reasoning via sample-evaluate- ensemble decoders, achieving label free gains without ground truth. However, prevailing strategies score candidates using only external outputs such as token probabilities, entropies, or self evaluations, and these signals can be poorly cali- brated after post training. We instead analyze internal behavior based on neuron activations and uncover three findings: (1) external signals are low dimensional projections of richer internal dynamics; (2) correct responses activate substantially fewer unique neurons than incorrect ones throughout generation; and (3) activa- tions from correct responses exhibit stronger cross sample agreement, whereas incorrect ones diverge. Motivated by these observations, we propose Neuron Agreement Decoding (NAD), an unsupervised best-of-N method that selects can- didates using activation sparsity and cross sample neuron agreement, operating solely on internal signals and without requiring comparable textual outputs. NAD enables early correctness prediction within the first 32 generated tokens and sup- ports aggressive early stopping. Across math and science benchmarks with verifi- able answers, NAD matches majority voting; on open ended coding benchmarks where majority voting is inapplicable, NAD consistently outperforms Avg@64. By pruning unpromising trajectories early, NAD reduces token usage by 99% with minimal loss in generation quality, showing that internal signals provide reliable, scalable, and efficient guidance for label free ensemble decoding. 1 INTRODUCTION Large language models (LLMs) have demonstrated remarkable reasoning capabilities (Wei et al., 2022; Tang et al., 2024). To further boost their performance, sample-evaluate-ensemble methods have been widely adopted. These methods leverage answer consistency by selecting the best re- sponse through majority voting (Wang et al., 2022), often yielding higher quality than single re- sponses. Notably, this approach requires no ground truth labels, essentially providing a “free lunch” improvement. Beyond inference-time applications, this paradigm has also been integrated into un- supervised reinforcement learning, enabling models to train at larger scales without ground truth, thereby raising the performance ceiling. Beyond majority voting, recent sample-evaluate- **What We See vs. What’s Inside a Large Language Model 042** ensemble methods have developed more sophisExternal Behaviors Internal Behaviors **043044** ticatedall responsesensembleas equallystrategies.importantInsteadlikeofmajoritytreating **Text output** Influence ActivationActivationPattern voting, Chen et al. (2023) prompts the model Count to self-evaluate before ensemble and select the Low-dimensional **046047** most consistent answer among candidates. AnConfidenceEntropy Projection ActivationsNeuron other line of work explores the model’s response Neuron-Agreement confidence, leveraging output states from the forSample-Evaluate-Ensemble Decoding (ours) ward pass (e.g., token probabilities) to evalu- ate and ensemble responses. Typically, high- confidence responses exhibit better quality and Figure 1: Comparison between NAD and other low-confidence ones shall be pruned (Fu et al., ensemble methods. Our approach relies solely on 2025). However, these methods rely solely on internal signals during the sampling process, withmodel outputs, with confidence or entropy metout requiring comparable textual outputs.
+
+1
+
+##
+
+- rics based on token probabilities — what we define as the external behaviors of LLMs. This raises
+
+- critical questions: Do models inherently encode response quality signals in their outputs? How reli- able are such assessments? According to GPT-4 reports (Achiam et al., 2023), LLMs lose calibration capabilities after post-training, showing no clear linear relationship between token probability and response correctness. This appears to contradict the effectiveness demonstrated in existing work. In this paper, we further investigate the model’s internal behaviors, neuron activation vectors, to
+
+- explore their relationships with external behaviors and response correctness. Through extensive
+
+- experiments, we reveal that: 1) External behaviors (e.g., entropy) represent low-dimensional pro- jections of internal behaviors. This is intuitive, as token probabilities determine output tokens and are themselves determined by neuron activations across layers. 2) Consequently, internal behaviors contain richer signals, leading to our discovery of their relationship with response quality — cor- rect responses activate significantly fewer neurons compared to incorrect ones. 3) Finally, through visualization, we observe patterns among correct responses. They tend to activate similar unique neurons. These novel patterns in LLMs’ internal behaviors inspire better evaluation methods and more efficient assessment of sampled response correctness, ultimately yielding superior ensemble results.
+
+-
+
+Building on these insights, we propose **Neuron-Agreement Decoding (NAD)** , an unsupervised method that selects high-quality reasoning trajectories solely based on internal neuron activations. Specifically, NAD favors either responses with minimal neuron activations or those that exhibit the greatest agreement with other sampled responses. Leveraging such signals also enables us to predict response correctness at a very early stage of generation (e.g., within the first 32 tokens), rather than requiring full sequences as in external ensemble methods, thereby substantially improving the efficiency and effectiveness of sample-then-ensemble decoding. The distinction between our approach and existing ensemble methods is illustrated in Figure 1. For evaluation, we consider both tasks with easily verifiable correctness (with ground truth, suitable for majority voting) and more challenging scenarios (without ground truth or with multiple valid so- lutions, such as code generation), validating our method’s effectiveness. Moreover, when combined with an early-stopping strategy, NAD reduces token consumption in parallel sampling by up to two orders of magnitude while delivering superior performance. Our contributions are summarized as follows:
+
+• We conduct a deep investigation into the relationships among internal neuron activation,
+
+external behaviors, and response correctness in LLMs.
+
+• We design a Neuron-Agreement Decoding (NAD) method for scalable best-of-N sampling. • Experimental results validate the effectiveness of our findings and method, while the efficiency gains are also achieved through the early-stopping strategy. 2 RELATED WORK **092 093 Outputs-based Voting.** Self-consistency (Wang et al., 2022) is a test-time ensemble technique that samples multiple chain-of-thought (CoT) solutions from an LLM and selects the final answer by majority vote. This method significantly improved performance on arithmetic and commonsense QA benchmarks, revealing that while any single chain might be incorrect, aggregating multiple solutions can correct errors. Variants of this idea include Soft Self-Consistency (Wang et al., 2024), which gives partial credit to similar answers rather than exact match voting. Self-consistency works well when outputs are relatively constrained (e.g., numerical or factual answers), but is less applicable to open-ended generation, where answers cannot be easily compared for voting. **100 101 Confidence-Based Selection.** Another line of work exploits internal confidence or uncertainty
+
+metrics. Kang et al. (2025) introduced self-certainty, which uses the model’s token-level probabil-
+
+ities to estimate the confidence of each reasoning chain. In their best-of- _N_ selection framework,
+
+self-certainty scores guided the choice of the final answer, achieving better scaling with _N_ . Fu et al.
+
+(2025) proposed DeepConf, which monitors token prediction entropy during generation to prune low-confidence reasoning paths on the fly, thereby saving computation while maintaining accuracy. These approaches require access to the model’s probability distribution at each step. However, these approaches still rely on the availability of comparable answers, which limits their applicability.
+
+2
+
+3 PILOT STUDY OF INTERNAL BEHAVIORS Existing ensemble methods still rely heavily on external signals, overlooking internal dynamics in
+
+LLMs. Inspired by the model utility law (Cao et al., 2025), in this section, we investigate how
+
+internal signals in the model (i.e., neuron activations) correlate with these external signals (e.g.
+
+certainty and entropy), and whether we can leverage them to guide the selection of the highest-
+
+quality trajectory in the early stage of generation. In Section 3.1, we first introduce the definition of activated neurons; in Section 3.2, we demonstrate the correlation between neuron activations and external signals; in Section 3.3, we present preliminary experiments about the correlation between neuron activation patterns and model performance, which highlight two key insights to serve as the main basis for our proposed method.
+
+3.1 NEURON ACTIVATION SET Neuron activation patterns can reveal the internal dynamics of LLMs, which are closely associated with specific types of abilities in LLMs (Pan et al., 2024; Templeton et al., 2024). Here, we adopt the definition of activated neurons of Cao et al. (2025): Given an LLM with an input _x_ , it can generate an output token sequence _**y**_ = ( _y_ 1 _, y_ 2 _, . . . , yt_ ) from a single sampling, the SwiGLU-based (Chowdhery et al., 2023) contribution of neuron _i_ in layer _l_ to output token _yj_ as: _f_ neuron( _i, l, yj |_ _**y** picture [432 x 31] intentionally omitted <==**
+
+where _l_ = 1 _,_ 2 _, ..., L_ represents the layer index, and _i_ = 1 _,_ 2 _, ..., N_ indicates the neuron index in each layer. The implementation of the threshold function _η_ can be found in Appendix B.
+
+In this work, we refine the definition into a more fine-grained form to better capture activations throughout the reasoning process. Specifically, we divide the entire reasoning process into _B_ -sized chunks _**y**_ = ( _**y**_ 1 _,_ _**y**_ 2 _, ...,_ _**y** ⌈t/B⌉_ ), compute the activation set for each chunk using the definition in Eq.(2), and then take their union: _⌈t/B⌉_ _N_ activated( _x,_ _**y**_ ) = � _N_ activated( _x,_ _**y** i_ ) (3) _i_ =1 This modification allows us to better capture localized information within the reasoning process. 3.2 NEURON ACTIVATIONS: APPROXIMATE PREIMAGES OF CONFIDENCE METRICS
+
+We hypothesize (operationally) that a model’s internal dynamics during inference—captured as the
+
+set of activated neurons—can be viewed as giving rise to **approximate** low-dimensional summaries
+
+such as self-certainty; reducing behavior to such scalars discards much of the underlying high- dimensional information. We test this via two complementary findings: (1) **activated neurons can, 155 to some extent, aggregate into those scalar metrics** , i.e., the set of activated neurons contains the information needed to compute those metrics; and (2) **activated neurons exhibit patterns that scalar metrics cannot capture** .
+
+Concretely, we use Qwen3-4B-Think to generate 64 responses per instance on AIME24, record-
+
+ing for each response both several scalar metrics and its corresponding set of activated neurons. For (1), we count the number of activated neurons per chunk and compute each chunk’s mean self-certainty and entropy, then measure the correlation between neuron counts and the conventional scalar metrics. The results, shown in Fig. 2, demonstrate significant correlations (with p-value
+
+3
+
+12.0 1.4 Pearson r = -0.605 Pearson r = 0.633 11.8 Spearman r = -0.631 1.2 Spearman r = 0.660 11.6 1.0 11.4 0.8 11.2 0.6 11.0 0.4 10.8 0.2 10.6 0.0 150 200 250 300 350 400 450 500 150 200 250 300 350 400 450 500 Activated Neuron Count Figure 2: Scatter plots of the number of activated neurons versus confidence-based metrics (Self- Certainty and Entropy). The neuron counts show significant correlations with both metrics, indicating that the activated neuron states provide a high-dimensional representation of traditional confidence measures. less than 0.05): neuron count correlates positively with entropy and negatively with self-certainty, thereby supporting (1). For (2), to uncover structure in how different samples activate neurons, we embed samples with t-SNE using the Jaccard index between activated-neuron sets as the similarity measure, i.e. [�] _[N]_[activated][(] _[x][,]_ _**[y]**[j]_[)] _[|] Sij_ = _[|][N]_[activated][(] _[x][,]_ _**[y]**[i]_[)] (4) _|N_ activated( _x,_ _**y** i_ )[�] _N_ activated( _x,_ _**y** j_ ) _|[.]_ Where _**y** i,_ _**y** j_ are different responses. The t-SNE visualization in Fig. 3 colors each sample by the sequence’s average entropy. The plot reveals clear clustering of responses by their activated- neuron patterns; importantly, samples within the same cluster do not necessarily share similar en- tropy values, and samples from different clusters can exhibit similar entropy. This indicates that the activated-neuron patterns encode high-dimensional structure that scalar metrics such as entropy cannot represent. Taken together, these results suggest that confidence- type scalar metrics are effectively low-dimensional projections of high-dimensional activated-neuron states[1] . This observation naturally raises the ques- tion: if scalar confidence can guide answer selection, can we exploit richer, higher-dimensional state infor- mation to guide selection more effectively? To ex- plore this possibility, in the next section we conduct a deeper analysis of the relationship between neuron activation patterns and response correctness. 3.3 PRELIMINARY EXPERIMENTS To investigate the correlation between neuron actiFigure 3: t-SNE representation of activated vation patterns and model performance, we continue neurons, with point colors indicating the av- with the same experimental setup, while recording erage entropy of the corresponding samples. both the correctness of each response and its correNo clear consistency is observed between sponding set of activated neurons. entropy and the resulting clusters, suggest- ing that the activated neurons contain high- Figure 4(a) shows the visualization of multiple samdimensional structural information not capples for selected instances, where green points corre- tured by entropy. spond to correct responses and red points to incorrect ones. We observe two clear patterns: 1) Neuron acti- vation patterns across different responses tend to form natural clusters, indicating a form of consensus; 2) In-
+
+1We cannot exhaust all possible activated neuron patterns and their mappings to scalar metrics. In future work, we aim to explore more combinations.
+
+4
+
+**==> picture [432 x 333] intentionally omitted <==**
+
+**----- Start of picture text -----**
+216217 t-SNE Dimensionality ReductionNeuron Activation Evolution 40k35k Alright First: By Euler's formula ..., so I want AB \cdotToken-wise Neuron Activation End (Incorrect)End (Correct)IncorrectCorrect
218 -16 First:next, a=2\sqrt{30}… answer=624. The condition IA⊥OI … second …, 30k AC ... Wait answer=104., ..., Maybe ...
219 -17 First: Using Euler's 25k20k
220 -18 a=4\sqrt{30} ... answer=468. formula ... So 15k
221222 -19-20 74 75 76 77 78a=4\sqrt{30} ... answer=468.First: Using formula 79 ... Hence80 Euler's 81 10k5k0 0 200 400 FirstSecond expressions ...600: By Euler's Formula, ..., Equate the two areaanswer=468. Final 800 output 1000
223 t-SNE-1 Unique Neuron Count Token Position (Chunk ID)
(a) (b) (c)
224
225
Figure 4: Preliminary AIME24 results. (a) t-SNE of responses to one prompt: center clusters share
226 similar reasoning; outliers diverge. (b) Correct answers activate far fewer neurons than incorrect
227 ones. (c) Token-wise trajectories show incorrect responses repeatedly shift strategies, engaging
228 more neurons. These observations motivate Insight 1 and Insight 2 presented in Section 3.3.
229
230
231 correct responses tend to lie at the margins of clusters, farther from neighboring samples, whereas
232 correct reasoning trajectories align more tightly with the central distribution. These lead to our first
233 key insight:
234
Insight 1. By leveraging neuron activation patterns across responses, we can define consensus and
235 identify reasoning trajectories more likely to be correct without requiring text-level matching.
236
237 Complementing the clustering result, we compare neuron activations for correct vs. incorrect sam-
238 ples during generation (Fig. 4(b,c)). In Fig. (b), correct samples consistently exhibit substantially
fewer activated neurons than incorrect ones, consistent with the view that successful trajectories
239
balance exploration and exploitation—reaching answers with fewer trial-and-error steps—whereas
240
failures over-explore. Fig. (c) tracks the growth of unique activated neurons with generated tokens
241 for each sampling; correct trajectories activate fewer neurons throughout. This pattern aligns with
242 the overall statistics and suggests using activation signals to terminate low-quality generations early.
243 These observations lead to our second key insight:
t-SNE-2
Cumulative Unique Neurons
**----- End of picture text -----**
+
+**Insight 2.** The number of activated neurons in the early stage of generation can serve as a signal to distinguish high-quality answers from low-quality ones. Specifically, high-quality answers tend to activate fewer neurons.
+
+Aligned by generation step (Fig. 4(c)), correct chains activate fewer neurons at matched tokens, indicating a non-length effect and motivating chunk-conditioned early stopping.
+
+Building on these two insights, we can design corresponding algorithms that leverage neuron acti-
+
+vation patterns across samples to uncover consensus and identify higher-quality answers. 4 METHODOLOGY
+
+Building on the insights from above preliminary experiments (Section 3.3), we aim to operationalize two key observations regarding neuron activations in sampled reasoning trajectories. These obser- vations suggest two complementary strategies for selecting high-quality reasoning trajectories. In the following, we introduce two independent methods that correspond to these insights. Figure 5 illustrates the overall framework.
+
+## 4.1 NEURON-AGREEMENT DECODING (NAD)
+
+To operationalize the notion of _consensus_ , we build directly on **Insight 1** . Samples of the same input exhibiting similar neuron activation patterns tend to correspond to correct reasoning, while incorrect ones deviate substantially. We capture consensus by exploiting these internal dynamics of the model.
+
+Concretely, for a given input _x_ , we generate _n_ sampled trajectories _{_ ( _x,_ _**y** i_ ) _}[n] i_ =1[,][and][obtain][their] activated neuron sets _{N_ activated( _x,_ _**y** i_ ) _}[n] i_ =1[as][defined][in][Section][3.1.][Pairwise][similarities][among] samples, already formalized by the Jaccard index in Section 3.3, provide a relational structure over
+
+5
+
+**==> picture [432 x 557] intentionally omitted <==**
+
+**----- Start of picture text -----**
+270
271 Generate @ k token Stop Neuron JA sim. matrix Selector selected Continue ONE path
272 n paths in parallel 𝐽𝐴(𝑅𝑖, 𝑅𝑗) = RRii ∩𝑅 ∪𝑅𝑗𝑗 kNNMedoid calibrationprior
273274275 Q1: …… 🔍 R1 R2 Rn-1 RR21 DBSCAN N First: Euler’s formula, 𝑂𝐼2𝑅) [2] …= 𝑅(𝑅−By
276 Rn-1 Second: Equate the two
277 Math PhD-Level Rn areas … Final output
278279 … Rn R1 R2 Rn-1 Rn {answer=468} Answer
280
281 Figure 5: Framework of Neuron Agreement Decoding (NAD). NAD selects high-quality answers by
282 leveraging the consensus of internal neuron activations during the sampling process, without relying
283 on canonical textual outputs. This consistency can be identified using the proposed kNN-based
284 approach, among others. Moreover, this procedure can be applied at an early stage of sequence
generation, pruning low-quality responses in advance and reducing token usage.
285
286
287 the sampled responses. The resulting consensus matrix S ∈ [0 , 1] [n][×][n] captures agreement among
288 samples at the level of neuron activations.
289
Building upon this representation, our goal is to identify consensus samples — those most consistent
290 with others in their neuron activations — and thereby select trajectories that are more likely to be
291
correct. We propose the following structure discovery methods:
292
293 k NN-Agreement. For each sample i , compute the sum of its top- k pairwise similarity scores to
294 other solutions, denoted as si . Select the solution [ˆ] i with the highest si .
295 Global Medoid. The medoid denotes the point that minimizes the total distance to all other samples.
296 Under the Jaccard Index metric, this corresponds to maximizing the sum of similarities:
297 n
298 ˆ i = arg max i � Sij.
299 j =1
300
301 DBSCAN. We apply the clustering algorithm to the distance matrix D = 1 − S to identify clusters.
302 Select the largest cluster C , then find the medoid within this cluster:
303304 ˆ i = arg max i p � ∈C q � ∈C Spq.
305
306 Building on Insight 2 , we propose an alternative selection strategy: since correct reasoning trajec-
307 tories tend to activate relatively fewer neurons, we choose the trajectory with the fewest activated
308 neurons among the n samples:
309 ˆ i = arg min |N activated( x, y i ) |.
i
310
311 This approach does not rely on pairwise similarities between samples; instead, it treats the number
of activated neurons in a single sample as a proxy for its quality, allowing us to select trajectories
312
that are more likely to be correct efficiently. We denote this approach as MinAct .
313
314
4.2 INTEGRATE NAD WITH CONFIDENCE MECHANISM
315
316
……
……
**----- End of picture text -----**
+
+NAD essentially provides a way to perform majority voting without relying on text matching. This step is orthogonal to confidence-based filtering strategies such as DeepConf (Fu et al., 2025). There- fore, we can first apply a confidence-based method to filter the generated trajectories, and then apply NAD to further improve the quality of the generated sequences. We adopt the tail-token confidence strategy from DeepConf. To be specific, let _Pt_ ( _j_ ) denote the probability of the _t_ -th token in a trajectory generating the _j_ -th top- _k_ token. The token confidence score is defined as
+
+**==> picture [247 x 31] intentionally omitted <==**
+
+6
+
+We compute the average confidence score over the last _Ttail_ tokens of the generated sequence, filter out the bottom _p_ % low-confidence sequences, and then apply the NAD procedure described in Section 4.1. For the NAD method equipped with the confidence-based filtering mechanism, we mark it with the _†_ symbol.
+
+## 4.3 EARLY STOPPING STRATEGY
+
+Early stopping in parallel sampling improves LLM inference by terminating weak reasoning traces
+
+and reallocating compute to stronger ones, reducing redundancy. Based on preliminary experi- ments, we hypothesize that a trace’s correctness can be predicted early from its neuron activation patterns. We apply these methods to prune low-quality traces. Specifically, for a partial output _**y** ≤j_ = ( _y_ 1 _, y_ 2 _, . . . , yj_ ), we compute the set of neurons activated by _x_ up to the current position _j_ as _N_ activated( _x,_ _**y** ≤j_ ) by Eq.(3), employ the selection schemes from Section 4.1, and resume generation from the selected trace by itself. We set _j_ equal to the chunk size, _B_ = 32 for the experiments. To analyze this phenomenon in a relatively independent manner, we do not apply the confidence-based filtering method in experiments related to early stopping. The choice of the early stopping position will be further discussed in Section 5.3.
+
+5 EXPERIMENTS
+
+5.1 SETUP
+
+**Models.** We evaluate NAD on three models: Qwen3-4B-thinking-2507, Qwen3-4B-Instruct2507 (Team, 2025) and DeepSeek-R1-0528-Qwen3-8B (DeepSeek-AI, 2025). For each input, we generate _n_ = 64 samples with a temperature of 0 _._ 6 and a top- _p_ value of 0 _._ 9.
+
+**Datasets.** We evaluate NAD on two settings: (1) scientific reasoning with canonical answers, including AIME24, AIME25 (Art of Problem Solving, 2024a;b; 2025a;b) and GPQA (Rein et al., 2024)); and (2) open-ended code generation, including LiveCodeBench v5 (Jain et al., 2024), HumanEval (Chen et al., 2021) and MBPP (Austin et al., 2021), where majority voting is inapplicable.
+
+**Protocol & Baselines.** Under this protocol we report following baselines: (i) **Avg@64** (mean accuracy over all _n_ samples); (ii) **Cons@64** majority vote for tasks with canonical answers (ties count as failure); (iii) **Short-1@64** (Hassid et al., 2025), i.e. select the shortest response; (iv) **SelfCertainty** (Kang et al., 2025); (v) **DeepConf** (Fu et al., 2025). We evaluate under a fixed sampling budget _n_ = 64 and a low-interaction regime that mirrors deployments where repeated environment calls are expensive; for code, we adopt a single-execution protocol (only the finally selected candidate is executed once). For More detailed settings, please refer to Appendix C.
+
+5.2 RESULTS The main results are summarized in Table 1, which indicate that: 1) Our approach substantially outperforms baselines in terms of overall performance; 2) On math reasoning datasets with extractable ground-truth answers, our methods demonstrate clear advantages over sampling average while remaining competitive with majority voting based methods, i.e. Cons@64, Self-Certainty and DeepConf; On code generation benchmarks, where existing sample-evaluate-ensemble methods are not applicable, our methods still yield performance gains over our curated baseline on most tasks; 3) Compared to alternative methods that leverage the global structure across _n_ samples, the minimum- activation method relies solely on the number of activated neurons, which limits its effectiveness; nevertheless, it still significantly surpasses average sampling. Table 2 reports performance changes and token savings on scientific benchmarks under the early- stopping scheme in Section 4.3; code results appear in Appendix Table 3. Relative to parallel sam- pling, our method permits stopping after the first chunk, sharply reducing tokens while consistently surpassing random sampling in accuracy. These gains show that early internal neuron activations provide reliable signals of answer quality. 5.3 ANALYSIS
+
+7
+
+|
|||||
+|---|---|---|---|---|
+||Model
Method|**Math Reasoning**
AIME24+25
GPQA|**Code Generation**
Avg.
HumanEval
LCBv5
MBPP||
+||Qwen3-4B-Think
Avg@64
Cons@64
Short-1@64
Self-Certainty
DeepConf
NAD-kNN_†_
NAD-Medoid_†_
NAD-DBSCAN_†_
NAD-MinAct_†_|74.6
66.3
86.7
68.2
83.3
68.2
76.7
61.1
**88.3**
70.7||96.0
61.8
84.6
76.7
–
–
–
–
97.0
61.7
85.4
79.1
–
–
–
–
–
–
–
–|
+|||85.0
**71.7**||97.0
**62.3**
**86.4**
**80.5**|
+|||83.3
69.7||**97.6**
61.7
86.0
79.6|
+|||85.0
71.2||**97.6**
61.7
86.0
80.3|
+|||83.3
69.7||95.1
58.7
85.0
78.4|
+||R1-Qwen3-8B
Avg@64
Cons@64
Short-1@64
Self-Certainty
DeepConf
NAD-kNN_†_
NAD-Medoid_†_
NAD-DBSCAN_†_
NAD-MinAct_†_|71.3
60.2
83.3
**70.2**
83.3
65.2
71.7
56.1
**85.0**
67.7||92.8
57.7
83.1
73.0
–
–
–
–
92.7
58.7
80.4
76.0
–
–
–
–
–
–
–
–|
+|||**85.0**
66.7||95.1
55.1
84.4
77.2|
+|||**85.0**
68.7||95.7
**59.3**
85.4
**78.8**|
+|||**85.0**
67.7||**96.3**
58.1
**85.6**
78.5|
+|||81.7
60.1||95.1
56.9
83.6
75.5|
+||Qwen3-4B-Instruct
Avg@64
Cons@64
Short-1@64
Self-Certainty
DeepConf
NAD-kNN_†_
NAD-Medoid_†_
NAD-DBSCAN_†_
NAD-MinAct_†_|51.7
59.2
**65.0**
61.1
61.7
60.6
51.7
61.1
63.3
63.7||90.8
34.0
**75.4**
62.2
–
–
–
–
90.9
30.5
74.3
63.6
–
–
–
–
–
–
–
–|
+|||58.3
66.2||**92.7**
**35.3**
75.0
**65.5**|
+|||53.3
65.7||**92.7**
34.7
75.0
64.3|
+|||53.3
**66.7**||**92.7**
**35.3**
75.3
64.7|
+|||60.0
61.6||92.1
31.7
75.3
64.2|
+||Table 1: Main results of our experiments. Our methods achieve performance competitive with
majority voting and consistently surpass sampling average.
Model
Method
**AIME24+25**
**GPQA**
Avg. Acc.
Acc.
Token (∆%)
Acc.
Token (∆%)
Qwen3-4B-Think
Avg@64
74.6
55.2
66.3
102.2
70.4
NAD-kNN
80.0
1.3 (-97.6%)
67.2
2.0 (-98.0%)
73.6
NAD-Medoid
81.7
1.3 (-97.6%)
68.2
2.0 (-98.0%)
**75.0**
NAD-DBSCAN
81.7
1.3 (-97.6%)
65.7
2.0 (-98.0%)
73.7
NAD-MinAct
80.0
1.2 (-97.8%)
67.7
1.8 (-98.2%)
73.9
R1-Qwen3-8B
Avg@64
70.6
48.1
58.1
99.6
64.4
NAD-kNN
78.4
1.0 (-97.9%)
56.1
1.8 (-98.2%)
67.3
NAD-Medoid
75.0
1.1 (-97.7%)
54.0
1.9 (-98.1%)
64.5
NAD-DBSCAN
75.0
1.1 (-97.7%)
54.5
1.9 (-98.1%)
64.8
NAD-MinAct
76.7
0.9 (-98.1%)
58.1
1.7 (-98.3%)
**67.4**
Qwen3-4B-Instruct
Avg@64
51.7
32.0
59.2
41.6
55.5
NAD-kNN
55.0
0.4 (-98.8%)
58.6
0.9 (-97.8%)
56.8
NAD-Medoid
55.0
0.6 (-98.1%)
56.6
1.0 (-97.6%)
55.8
NAD-DBSCAN
55.0
0.6 (-98.1%)
56.6
1.0 (-97.6%)
55.8
NAD-MinAct
**61.7**
0.4 (-98.8%)
**63.1**
0.9 (-97.8%)
**62.4**
Table 2: Accuracy and total token consumption of different methods on scientifc reasoning bench-
marks after applying early stopping introduced in Section 4.3. Token consumption is reported in
millions (M). Our method achieves a two-order-of-magnitude reduction in token usage while main-
taining accuracy advantages over random sampling.||||
+
+8
+
+Accuracy(%) R1-Qwen3-8B Accuracy(%) Qwen3-4B-Think 100 100 80 80 60 60 40 AIME24 AIME25 GPQA LCBv5 MBPP HumanEval 40 AIME24 AIME25 GPQA LCBv5 MBPP HumanEval Min-Activation Max-Activation Min-Activation Max-Activation Figure 6: Comparison between minimizing and maximizing activated neurons. On scientific reason- ing benchmarks, responses with minimal activated neurons are significantly better; while on coding benchmarks, the performance gap narrows or even reverses. 0.012 Correct 0.00040 Correct 0.00016 Correct 0.010 Incorrect 0.000350.00030 Incorrect 0.000140.00012 Incorrect 0.008 0.00025 0.00010 0.006 0.00020 0.00008 0.004 0.00015 0.00006 0.00010 0.00004 0.002 0.00005 0.00002 0.000 100 150 200 250 300 350 400 0.00000 4000 6000 8000 10000 12000 14000 16000 18000 0.00000 5000 10000 15000 20000 25000 30000 35000 40000 Unique Neuron Count Unique Neuron Count Unique Neuron Count (a) (b) (c) Figure 7: Effect of different top- _k_ settings on the distribution of activated neurons for correct and incorrect responses. From left to right: top- _k_ = 2K, 200K, and no top- _k_ . The no-top- _k_ setting achieves the best separation. **457 458 459 Different implementations for activated neuron** NAD-kNN **460 computation.** In Section 3.1, we aggregate activated 86 neurons by simply taking the union of all chunks, 20 treating them equally. To investigate the effect of 84 this aggregate method, we adopt top- _k_ operation (Cao 82 15 et al., 2025; Wang et al., 2025) to merge neurons 80 across sequences. Specifically, we retain only the 78 10 neurons with the top- _k_ contribution scores, where _k_ 76 5 ranges from 2K to 200K, and eventually no top- _k_ fil74 tering is applied (our method). The corresponding 0 distributions of activated neurons are shown in FigEarly Stopping Position (log scale)2[6] 2[8] 2[10] 2[12] 2[14] ure 7. We observe that as _k_ increases: (1) the distri- **470471** bution of activated neurons for correct samples grad-uallyples shiftsshiftstotothetheright;left, while(2) thethatdistributionfor incorrectof incor-samFiguretion as a function of early stopping position.8: Accuracy and token consump- rect samples becomes increasingly uniform. OverThe results show that performance does not all, the distinction between the two distributions bemonotonically improve as the stopping posi- comes more pronounced. We hypothesize that when tion is delayed, suggesting that token gener- _k_ is small, the activated neurons focus on highation may introduce noise; stopping at 32 to- contribution reasoning paths, losing some finer dekens achieves relatively good performance. tails. As _k_ increases, more detailed information is incorporated, providing a more comprehensive and discriminative view of the model’s internal states. **479 The Effect of Early Stopping Position.** In the main experiments, we fix the early stopping posi- tion at _B_ = 32. Intuitively, the later the truncation point in generation, the richer the information conveyed by activated neurons. In this section, we investigate how different early stopping posi- tions affect model performance and token consumption. Results across positions ranging from 32 to 16384 are shown in Figure 8. Interestingly, we find that later stopping does not necessarily yield better answer quality (For more results, please refer to Figure 9-Figure 10 in the Appendix). For example, on the AIME24+25 dataset, the kNN method achieves higher accuracy when stopping at the 4096th token compared to using the full response (86.7 vs. 85.0). This phenomenon may
+
+9
+
+be attributed to noise accumulation and signal dilution: as generation proceeds, additional activa- tions may introduce redundancy or errors that obscure the earlier, more reliable signals, leading to degraded answer selection despite longer reasoning traces.
+
+- **490 Relationship between neuron activation and performance.** In Section 3.3, we observed on AIME24 that correct responses activate fewer neurons than incorrect ones. To further examine this
+
+- phenomenon, we compare it against the opposite strategy: selecting the reasoning trajectory that
+
+- maximizes neuron activations. The results are reported in Figure 6. On math and science reasoning
+
+- benchmarks, our hypothesis is confirmed: responses selected based on minimal activations achieve significantly higher accuracy than those based on maximal activations; whereas on code generation tasks, the difference is much less pronounced, and in some cases, the maximal-activation strategy even outperforms the minimal-activation ones. We suggest that this is because (1) code generation is more open-ended, with multiple valid ways to implement the same functionality, and (2) it inherently requires the model to draw upon a broader range of knowledge, including programming languages, libraries, and domain-specific conventions, which thereby weakens the relationship between neuron activations and performance. We hope that further exploration of this line of research can facilitate extending parallel reasoning to more general domains.
+
+-
+
+## 6 CONCLUSION
+
+In this work, we analyze LLM internals via neuron-activation patterns in correct vs. incorrect out- puts. Correct outputs activate fewer neurons and align more, a reliable quality signal. We propose Neuron-Agreement Decoding (NAD), selecting responses from internal activations. On math, sci- ence, and coding, NAD matches majority voting on well-defined tasks and beats average sampling on open-ended coding. Early pruning cuts tokens up to 99% without quality loss. These results show that neuron-level signals improve efficiency and reliability, motivating the ensemble decoding based on internal dynamics.
+
+REFERENCES
+
+- Hmmt. [URL removed] 2025. Accessed: 2025.
+
+-
+
+- Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Ale- man, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, et al. Gpt-4 technical report. _arXiv preprint arXiv:2303.08774_ , 2023.
+
+- Art of Problem Solving. 2024 aime i. [URL removed] index.php/2024_AIME_I, 2024a. Accessed: 2025. Art of Problem Solving. 2024 aime ii. [URL removed] index.php/2024_AIME_II, 2024b. Accessed: 2025. Art of Problem Solving. 2025 aime i. [URL removed] index.php/2025_AIME_I, 2025a. Accessed: 2025. Art of Problem Solving. 2025 aime ii. [URL removed]
+
+- index.php/2025_AIME_II, 2025b. Accessed: 2025.
+
+- Jacob Austin, Augustus Odena, Maxwell Nye, Maarten Bosma, Henryk Michalewski, David Dohan, Ellen Jiang, Carrie Cai, Michael Terry, Quoc Le, et al. Program synthesis with large language models. _arXiv preprint arXiv:2108.07732_ , 2021. Yixin Cao, Jiahao Ying, Yaoning Wang, Xipeng Qiu, Xuanjing Huang, and Yugang Jiang. Model
+
+- utility law: Evaluating llms beyond performance through mechanism interpretable metric. _arXiv_
+
+- _preprint arXiv:2504.07440_ , 2025.
+
+-
+
+- Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde de Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, Alex Ray, Raul Puri, Gretchen Krueger, Michael Petrov, Heidy Khlaaf, Girish Sastry, Pamela Mishkin, Brooke Chan, Scott Gray, Nick Ryder, Mikhail Pavlov, Alethea Power, Lukasz Kaiser, Mohammad Bavarian,
+
+10
+
+- Clemens Winter, Philippe Tillet, Felipe Petroski Such, Dave Cummings, Matthias Plappert, Fo-
+
+- tios Chantzis, Elizabeth Barnes, Ariel Herbert-Voss, William Hebgen Guss, Alex Nichol, Alex Paino, Nikolas Tezak, Jie Tang, Igor Babuschkin, Suchir Balaji, Shantanu Jain, William Saunders, Christopher Hesse, Andrew N. Carr, Jan Leike, Josh Achiam, Vedant Misra, Evan Morikawa, Alec Radford, Matthew Knight, Miles Brundage, Mira Murati, Katie Mayer, Peter Welinder, Bob Mc- Grew, Dario Amodei, Sam McCandlish, Ilya Sutskever, and Wojciech Zaremba. Evaluating large language models trained on code, 2021. Xinyun Chen, Renat Aksitov, Uri Alon, Jie Ren, Kefan Xiao, Pengcheng Yin, Sushant Prakash,
+
+- Charles Sutton, Xuezhi Wang, and Denny Zhou. Universal self-consistency for large language
+
+- model generation. _arXiv preprint arXiv:2311.17311_ , 2023. Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, et al. Palm: Scaling language modeling with pathways. _Journal of Machine Learning Research_ , 24(240): 1–113, 2023.
+
+- DeepSeek-AI. Deepseek-r1: Incentivizing reasoning capability in llms via reinforcement learning, 2025. URL [URL removed] Yichao Fu, Xuewei Wang, Yuandong Tian, and Jiawei Zhao. Deep think with confidence (deepconf). _arXiv preprint arXiv:2508.15260_ , 2025. Michael Hassid, Gabriel Synnaeve, Yossi Adi, and Roy Schwartz. Don’t overthink it. preferring shorter thinking chains for improved llm reasoning. _arXiv preprint arXiv:2505.17813_ , 2025. Naman Jain, King Han, Alex Gu, Wen-Ding Li, Fanjia Yan, Tianjun Zhang, Sida Wang, Armando Solar-Lezama, Koushik Sen, and Ion Stoica. Livecodebench: Holistic and contamination free evaluation of large language models for code. _arXiv preprint arXiv:2403.07974_ , 2024.
+
+- Zhewei Kang, Xuandong Zhao, and Dawn Song. Scalable best-of-n selection for large language models via self-certainty. _arXiv preprint arXiv:2502.18581_ , 2025. Hunter Lightman, Vineet Kosaraju, Yura Burda, Harri Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. Let’s verify step by step. _arXiv preprint_
+
+- _arXiv:2305.20050_ , 2023.
+
+- Haowen Pan, Yixin Cao, Xiaozhi Wang, Xun Yang, and Meng Wang. Finding and editing multi- modal neurons in pre-trained transformers. In Lun-Wei Ku, Andre Martins, and Vivek Srikumar (eds.), _Findings of the Association for Computational Linguistics: ACL 2024_ , pp. 1012–1037, Bangkok, Thailand, August 2024. Association for Computational Linguistics. doi: 10.18653/ v1/2024.findings-acl.60. URL [URL removed] 60/.
+
+-
+
+- David Rein, Betty Li Hou, Asa Cooper Stickland, Jackson Petty, Richard Yuanzhe Pang, Julien Di- rani, Julian Michael, and Samuel R Bowman. Gpqa: A graduate-level google-proof q&a bench- mark. In _First Conference on Language Modeling_ , 2024.
+
+-
+
+-
+
+ - Noam Shazeer. Glu variants improve transformer. _arXiv preprint arXiv:2002.05202_ , 2020.
+
+- Zhengyang Tang, Xingxing Zhang, Benyou Wang, and Furu Wei. Mathscale: scaling instruction tuning for mathematical reasoning. In _Proceedings of the 41st International Conference on Ma-_ _chine Learning_ , pp. 47885–47900, 2024. Qwen Team. Qwen3 technical report, 2025. URL [URL removed] Adly Templeton, Tom Conerly, Jonathan Marcus, Jack Lindsey, Trenton Bricken, Brian Chen, Adam Pearce, Craig Citro, Emmanuel Ameisen, Andy Jones, Hoagy Cunningham, Nicholas L Turner, Callum McDougall, Monte MacDiarmid, C. Daniel Freeman, Theodore R. Sumers, Edward Rees, Joshua Batson, Adam Jermyn, Shan Carter, Chris Olah, and Tom Henighan. Scaling monosemanticity: Extracting interpretable features from claude 3 sonnet. _Trans-_ _former Circuits Thread_ , 2024. URL [URL removed] scaling-monosemanticity/index.html.
+
+11
+
+- Han Wang, Archiki Prasad, Elias Stengel-Eskin, and Mohit Bansal. Soft self-consistency improves
+
+- language model agents. In _Proc. ACL_ , 2024.
+
+##
+
+- Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc Le, Ed Chi, Sharan Narang, Aakanksha Chowdh- ery, and Denny Zhou. Self-consistency improves chain of thought reasoning in language models. _arXiv preprint arXiv:2203.11171_ , 2022. ICLR 2023.
+
+##
+
+- Yaoning Wang, Jiahao Ying, Yixin Cao, Yubo Ma, and Yugang Jiang. Effieval: Efficient and general-
+
+- izable model evaluation via capability coverage maximization. _arXiv preprint arXiv:2508.09662_ ,
+
+- 2025.
+
+- Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Fei Xia, Ed Chi, Quoc V Le, Denny Zhou, et al. Chain-of-thought prompting elicits reasoning in large language models. _Advances in_ _neural information processing systems_ , 35:24824–24837, 2022.
+
+- Yuxin Zuo, Kaiyan Zhang, Li Sheng, Shang Qu, Ganqu Cui, Xuekai Zhu, Haozhan Li, Yuchen Zhang, Xinwei Long, Ermo Hua, et al. Ttrl: Test-time reinforcement learning. _arXiv preprint_
+
+- _arXiv:2504.16084_ , 2025.
+
+LLM ASSISTANCE DISCLOSURE
+
+We used large language model (LLM) tools for grammar and wording refinement during manuscript preparation. We also used image-generation tools to create a stylized alpaca illustration to aid reader understanding. All technical content, analyses, and citations were authored, verified, and remain the sole responsibility of the authors. A LIMITATIONS
+
+Despite efficient early selection, open issues remain: (1) **Selector impact** : we introduced several selectors but did not determine which is most effective under different sampling patterns. (2) **Storage 623 overhead** : compute cost is small, yet storing neuron activations requires substantial disk and mem- ory; more space-efficient representations of internal dynamics are a key direction. Our comparisons use a fixed budget _n_ = 64 and a single-execution protocol for code; approaches with many more samples or multiple executions target a different resource regime. Engineering-wise, storage can be non-trivial, but bitset or bitmap encodings and parallel Jaccard under early stopping (@32 token) keep added overhead small. B IMPLEMENTATION FOR THRESHOLD FUNCTION
+
+In this paper, we adopt a top- _k_ threshold function for key neuron selection, which can be calculated as follows: **634 635 1. Calculate the highest activations on the** _j_ **-th token** _yj_ **in each layer** _l_ **: 636** _**F** jl_ = topk( _**A**_ ( _yj, l_ ) _,_ 64) _,_ (6) where _**A**_ ( _yj, l_ ) _∈_ R _[N]_ denotes the contribution score matrix on token _yj_ in layer _l_ , with [ _**A**_ ( _yj, l_ )] _i_ = _f_ neuron( _i, l, yj | x ⊕ y
||||
+|---|---|---|---|
+||Model
Method|**Math Reasoning**
AIME24+25
GPQA|**Code Generation**
Avg.
HumanEval
LCBv5
MBPP|
+||Qwen2.5-72B-Instruct
Avg@64
Cons@64
NAD-kNN_†_
NAD-Medoid_†_
NAD-DBSCAN_†_
NAD-MinAct_†_|14.2
51.5
**18.3**
55.0|87.6
26.5
76.2
51.2
–
–
–
–|
+|||**18.3**
54.5|88.4
25.8
76.8
52.8|
+|||**18.3**
54.0|87.8
**28.1**
**77.2**
53.1|
+|||**18.3**
54.0|**89.0**
27.5
77.0
**53.2**|
+|||11.7
**57.6**|87.8
26.4
76.3
51.9|
+||Table 4: Results ofQwen2.5-72B-Instructon all datasets. The results demonstrate that our
method remains effective on larger models.
Model
Method
HMMT25
MATH500-L1
Qwen3-4B-Think
Avg@64
50.5
99.1
Cons@64
60.0
**100.0**
NAD-kNN_†_
56.7
**100.0**
NAD-Medoid_†_
60.0
**100.0**
NAD-DBSCAN_†_
60.0
**100.0**
NAD-MinAct_†_
**66.7**
**100.0**
R1-Qwen3-8B
Avg@64
48.7
99.2
Cons@64
**63.3**
**100.0**
NAD-kNN_†_
**63.3**
**100.0**
NAD-Medoid_†_
60.0
97.7
NAD-DBSCAN_†_
60.0
97.7
NAD-MinAct_†_
56.7
97.7
Qwen3-4B-Instruct
Avg@64
29.7
**97.7**
Cons@64
30.0
**97.7**
NAD-kNN_†_
30.0
**97.7**
NAD-Medoid_†_
**36.7**
**97.7**
NAD-DBSCAN_†_
33.3
**97.7**
NAD-MinAct_†_
30.0
95.4
Table 5: Ablation studies on math datasets of varying diffculty (HMMT25 (HMM, 2025) and
MATH500-L1 (Lightman et al., 2023)). The results show that our method is effective on both easy
and hard datasets.|||
+
+14
+
+**==> picture [432 x 648] intentionally omitted <==**
+
+**----- Start of picture text -----**
+756 NAD-kNN NAD-Medoid NAD-DBSCAN NAD-MinAct
757 86 20 83 20 83 20 86 20
84 82 82
84
758 82 15 81 15 81 15 15
80 80 80 82
759 78 10 79 10 79 10 80 10
760 76 5 78 5 78 5 78 5
74 77 77
761 2 [6] 2 [8] 2 [10] 2 [12] 2 [14] 0 2 [6] 2 [8] 2 [10] 2 [12] 2 [14] 0 2 [6] 2 [8] 2 [10] 2 [12] 2 [14] 0 2 [6] 2 [8] 2 [10] 2 [12] 2 [14] 0
Early Stopping Position (log scale) Early Stopping Position (log scale) Early Stopping Position (log scale) Early Stopping Position (log scale)
762
763 Figure 9: Accuracy and token consumption as a function of early stopping position of
764 R1-Qwen3-8B on AIME24.
765
766767768769770 77.575.072.570.067.565.062.560.0 NAD-kNN 2520151050 80787674727068 NAD-Medoid 2520151050 80787674727068 NAD-DBSCAN 2520151050 72.570.067.565.062.560.057.5 NAD-MinAct 2520151050
771 2 [6] 2 [8] 2 [10] 2 [12] 2 [14] 2 [6] 2 [8] 2 [10] 2 [12] 2 [14] 2 [6] 2 [8] 2 [10] 2 [12] 2 [14] 2 [6] 2 [8] 2 [10] 2 [12] 2 [14]
Early Stopping Position (log scale) Early Stopping Position (log scale) Early Stopping Position (log scale) Early Stopping Position (log scale)
772
773 Figure 10: Accuracy and token consumption as a function of early stopping position of
774 R1-Qwen3-8B on AIME25.
775
776
777 of TTRL (Zuo et al., 2025), and the results are shown in Table 7. The TTRL method yields marginal
778 improvements on the in-domain dataset (AIME24) but exhibits a substantial drop under the OOD
779 setting. Moreover, compared with the inference-time ensemble approach of NAD, TTRL incurs a
780 much higher training cost.
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
Medoid KNN-Medoid DBSCAN-Medoid
798 87.5 DeepSeek-R1-8B 80 Qwen3-4B-Inst 90.0 Qwen3-4B-Think
799 85.0 87.5
75
800 82.580.0 70 85.082.5
801 77.5 65 80.0
802 75.0 60 77.5
72.5
75.0
803 70.0 55
72.5
804 67.5 50 70.0
4 8 16 32 64 4 8 16 32 64 4 8 16 32 64
805 Number of Samples per Problem (k)
806
807 Figure 11: Results on AIME24 under different sampling counts n estimated via bootstrap, where
808 the shaded regions denote the bounds of the 95% confidence interval (CI). As n increases, the
ensemble accuracy shows an upward trend and generally surpasses sampling average for larger n ,
809
demonstrating the robustness of our method.
Accuracy Accuracy Accuracy Accuracy
Token Consumption (M) Token Consumption (M) Token Consumption (M) Token Consumption (M)
Accuracy Accuracy Accuracy Accuracy
Token Consumption (M) Token Consumption (M) Token Consumption (M) Token Consumption (M)
Accuracy (%)
**----- End of picture text -----**
+
+15
+
+Method AIME24 AIME25 GPQA HumanEval LCB-v5 MBPP Avg@64 58.8 44.7 59.2 90.8 34.0 **75.4** TTRL 58.9 37.8 59.8 **92.9** 33.3 74.3 NAD-kNN _†_ **66.7** 50.0 66.2 92.7 **35.3** 75.0 NAD-Medoid _†_ 63.3 43.3 65.7 92.7 34.7 75.0 NAD-DBSCAN _†_ 63.3 43.3 **66.7** 92.7 **35.3** 75.3 NAD-MinAct _†_ **66.7 53.3** 61.6 92.1 31.7 75.3 Table 6: Performance comparison between NAD and TTRL. TTRL offers only marginal in-domain gains, suffers significant OOD degradation, and incurs substantially higher training cost than NAD. Method _τ_ = 0 _._ 3 _τ_ = 0 _._ 6 _τ_ = 0 _._ 9 Avg@64 70.7 71.3 69.3 Cons@64 81.7 83.3 80.0 NAD-kNN 83.3 85.0 80.0 NAD-Medoid 81.7 85.0 76.7 NAD-DBSCAN 81.7 85.0 78.3 NAD-MinAct 78.3 81.5 80.0 Table 7: Ablation of temperature of R1-Qwen3-8B on AIME dataset. Our method achieves consis- tent improvements across different temperature ( _τ_ ) settings. Model **Math Reasoning Code Generation 853** AIME24 AIME25 GPQA HumanEval LCBv5 MBPP Qwen3-4B-Think 4.6 4.6 1.9 1.1 2.3 0.5 R1-Qwen3-8B 4.5 5.4 2.3 1.4 2.0 0.9 Qwen3-4B-Instruct 5.2 5.5 2.2 1.4 1.7 7.8 Table 8: Standard deviation of accuracy across sampling runs. The results demonstrate that NAD is effective when accuracy is concentrated (e.g., HumanEval) as well as when it is dispersed (e.g., AIME).
+
+16
+
+12.0 1.4 11.8 1.2 11.6 1.0 11.4 0.8 11.2 0.6 11.0 0.4 10.8 0.2 10.6 0.0 200 250 300 350 400 450 500 200 250 300 350 400 450 500 Activated Neuron Count Figure 12: A more detailed version of Figure 2. The blue points represent correct samples, while the red points represent incorrect samples. The results show no significant difference in their overall trends, and the discrepancy in neuron counts further supports our Insight 2.
+
+17
+
diff --git a/open_review/iclr2026_25052.json b/open_review/iclr2026_25052.json
new file mode 100644
index 0000000000000000000000000000000000000000..0123c6002917e2cedb4401261de2fa126d355094
--- /dev/null
+++ b/open_review/iclr2026_25052.json
@@ -0,0 +1,83 @@
+{
+ "paper_id": "iclr2026_25052",
+ "source": "iclr2026",
+ "source_year": 2026,
+ "title": "ExPO-HM: Learning to Explain-then-Detect for Hateful Meme Detection",
+ "abstract": "Hateful memes have emerged as a particularly challenging form of online abuse, motivating the development of automated detection systems. Most prior approaches rely on direct detection, producing only binary predictions. Such models fail to provide the context and explanations that real-world moderation requires. Recent Explain-then-Detect approaches, using Chain-of-Thought prompting or LMM agents, perform worse than simple SFT baselines, and even advanced post-training methods such as GRPO fail to close the gap. Our analysis identifies two key issues of such systems: important policy-relevant cues such as targets and attack types are not hypothesized by the model as a likely explanation; and the binary reward signal is insufficient to guide reasoning. To address these challenges, we propose ExPO-HM (Explain-then-Detect Policy Optimization for Hateful Memes), inspired by the training and evaluation process of human annotators. ExPO-HM combines SFT warmup, GRPO with curriculum learning, and Conditional Decision Entropy (CDE) as both metric and reward for reasoning quality. Across three hateful meme benchmarks, ExPO-HM achieves state-of-the-art performance on binary detection, fine-grained classification, and reasoning quality, with up to 15\\% and 17\\% F1 improvement over the GRPO and DPO baselines, respectively. By moving hateful meme detection from simple binary alarms to explanation-driven detection, ExPO-HM provides accurate, interpretable, and actionable moderation support. Code available at: https://github.com/JingbiaoMei/ExPO-HM",
+ "rebuttal": "Dear Chairs and Reviewers,\n\nWe sincerely thank you for the thoughtful and constructive feedback. Here is a summary of the review outcome for your convenience.\n\n## Overall Outcome\n\nAll reviewers assessed the submission as a strong and technically sound contribution, with overall ratings of 6, 8, and 6. We carefully addressed all concerns during the author-response period and have incorporated the corresponding updates in the revised manuscript.\n## Strengths Highlighted by Reviewers:\n1. ExPO-HM addresses an important problem in hateful meme detection (Reviewer oNni), and the shift from direct detection to explain-then-detect provides clear practical value for real-world content moderation (Reviewer nfaS). \n2. ExPO-HM addresses a comprehensive set of tasks in hateful meme detection, including binary classification, fine-grained classification, and explanation generation (Reviewer ttL2).\n3. ExPO-HM is well-motivated, drawing inspiration from human-annotator training (Reviewr ttL2).\n4. All three reviewers recognized that ExPO-HM achieves state-of-the-art results across multiple datasets.\n5. All three reviewers noted the comprehensive experimental evaluation, with Reviewers ttL2 and oNni further highlighting the strength of the ablation studies.\n\n## Weaknesses Raised and Our Revisions\n\n### LLM-as-judge reliability and reproducibility.\n- To address Reviewer ttL2’s concern about reproducibility and Reviewer nfaS’s request for multiple judges, we added evaluations using four additional LLM judges, including three recent open-source models. Results show consistent trends across all judges.\n- To address Reviewer ttL2’s concern about the dependency of the prompt used for the LLM judge, we also tested a paraphrased judge prompt, which produced nearly identical results.\n- See Response Part 1 to Reviewer ttL2, Response Part 1 to Reviewer nfaS, and revised Appendix E.\n### Explanation faithfulness and Human evaluation.\n- In response to Reviewer nfaS, we conducted two complementary human evaluations (coherence and helpfulness). We found high alignment between human assessments and LLM judge scores.\n- See Response Part 3 to Reviewer nfaS and revised Sec. 4.7.\n### CDE and Model Calibration.\n- Addressing Reviewer nfaS’s concern about calibration, we added empirical calibration analysis (ECE, Brier score) and provided a theoretical justification explaining why CDE leads to improved calibration.\n- See Response Part 2 to Reviewer nfaS and revised Sec. 4.6.\n### Additional analyses and results.\n- Detailed CDE hyperparameter analysis (Response Part 2 to Reviewer ttL2; Appendix C.3)\n- Fine-grained attack and target-group results (Response Part 2 to Reviewer ttL2; Appendix I)\n- A clarified policy-manual construction process (Response Part 2 to Reviewer ttL2; Appendix B.2)\n- Expanded case analysis, including representative failure cases (Response Part 1 to Reviewer nfaS; Appendix J.2)\n\n\nFinally, we thank the area chairs and reviewers once again for their time, thoughtful feedback, and constructive suggestions. We hope our work contributes meaningfully to reducing harmful content and advancing research in this area.\n\nThank you for your detailed and in-depth review of our work. \n\nWe appreciate your positive assessment of our paper, including the recognition of the importance of the task we are tackling, the comprehensiveness of our baseline comparisons, the strong performance of EXPO-HM relative to prior methods, and the clarity of our ablation studies. Thank you for noting the minor spelling mistakes. We have corrected these in the revised version and highlighted in blue.\n\nWe are grateful for your encouraging feedback and recommendation.\n\n### Response Part 1\nThank you for your insightful review. In response to your questions:\n\n> The proposed method shows heavy reliance on LLM-as-judge for rationale quality. It's reasonable to introduce different LLMs to evaluate the effectiveness of the proposed three components. \n\nThank you for raising this concern. In addition to the GPT-4o mini judge (used to ensure a fair comparison with prior work [1]), we conduct additional experiments with GPT-5 (gpt-5-2025-08-07) and three additional open-source LLM judges, including Qwen3-4B-Instruct-2507, gpt-oss-20b, and gemma-3-4b-it. We also inclu [...]\n\n### Response Part 1\nThank you so much for your careful and in-depth review. In response to your questions:\n\n>While LLM-as-a judge for explanation/reasoning evaluation is becoming widely used approach, however, they are limited in many setups. Related to this, prompt plays a role for judge and reproducibility if often challenging.\n\nThank you for this question. We agree that LLM-as-a-judge evaluation can pose reproducibility challenges despite its widespread use. To ensure reproducibility and fair comparison, we use the same judge model (gpt-4o-mini-2024-07-18) and the same evaluation prompt as [...]\n\n### Response Part 2\n>The CDE reward depends on the model’s own decision distribution; while penalizing confident errors helps, more experiments on calibration and robustness would strengthen confidence. \n\nThank you for raising this question on calibration. \n\n**Connection between CDE and calibration.**\n\nWe note that maximizing the CDE reward implicitly encourages better calibration. By design, the CDE reward penalizes confident wrong predictions and rewards confident correct decisions. This encourages a well-behaved decision distribution: the model is confident only when it is likely to be corr [...]\n\n### Response Part 2\n>Hyperparameters (e.g., CDE) can be sensitive to the dataset, how are they set for different datasets?\n\nFor all GRPO experiments across all datasets, we keep the training hyperparameters fixed and follow the default settings from VeRL, ensuring fairness and reproducibility.\n\nFor CDE hyperparameters, we conduct hyperparameter tuning only on the HatefulMemes validation set. After identifying the optimal values, we apply them directly to MAMI and PrideMM, where they also yield s\n[rebuttal truncated]",
+ "initial_scores": [
+ 6,
+ 8,
+ 6
+ ],
+ "score_mean": 6.67,
+ "score_variance": 1.33,
+ "score_spread": 2,
+ "score_min": 6,
+ "score_max": 8,
+ "decision": "Accept (Poster)",
+ "rebuttal_validity_ground_truth": true,
+ "meta_review": "",
+ "forum_id": "bEejbORUI5",
+ "primary_area": "applications to computer vision, audio, language, and other modalities",
+ "n_reviews": 3,
+ "per_review": [
+ {
+ "reviewer": "Reviewer_ttL2",
+ "review_id": "r8ZlRIcMl7",
+ "scores": {
+ "rating": 6,
+ "soundness": 3,
+ "presentation": 3,
+ "contribution": 3,
+ "confidence": 4
+ },
+ "review_text_chars": 1818,
+ "edit_detected": true,
+ "edit_delta_seconds": 933584,
+ "post_rebuttal_text_signal": false,
+ "score_mentions_in_text": []
+ },
+ {
+ "reviewer": "Reviewer_oNni",
+ "review_id": "KNBDvWYmpk",
+ "scores": {
+ "rating": 8,
+ "soundness": 3,
+ "presentation": 3,
+ "contribution": 3,
+ "confidence": 3
+ },
+ "review_text_chars": 2881,
+ "edit_detected": true,
+ "edit_delta_seconds": 973041,
+ "post_rebuttal_text_signal": false,
+ "score_mentions_in_text": []
+ },
+ {
+ "reviewer": "Reviewer_nfaS",
+ "review_id": "srdSWvhOks",
+ "scores": {
+ "rating": 6,
+ "soundness": 3,
+ "presentation": 3,
+ "contribution": 3,
+ "confidence": 3
+ },
+ "review_text_chars": 1379,
+ "edit_detected": true,
+ "edit_delta_seconds": 1121023,
+ "post_rebuttal_text_signal": false,
+ "score_mentions_in_text": []
+ }
+ ],
+ "any_review_edit_detected": true,
+ "any_post_rebuttal_text_signal": false,
+ "review_score_dimensions": [
+ "rating",
+ "soundness",
+ "presentation",
+ "contribution",
+ "confidence"
+ ]
+}
\ No newline at end of file
diff --git a/open_review/iclr2026_25052.md b/open_review/iclr2026_25052.md
new file mode 100644
index 0000000000000000000000000000000000000000..159b768b262a50a0a3d533e5ba1b6e0490bf5882
--- /dev/null
+++ b/open_review/iclr2026_25052.md
@@ -0,0 +1,958 @@
+
+
+## - EXPO-HM: LEARNING TO EXPLAIN THEN-DETECT FOR HATEFUL MEME DETECTION
+
+Authors withheld for review
+
+## ABSTRACT
+
+Hateful memes have emerged as a particularly challenging form of online abuse, motivating the development of automated detection systems. Most prior approaches rely on direct detection, producing only binary predictions. Such models fail to provide the context and explanations that real-world moderation requires. Recent Explain-then-Detect approaches, using Chain-of-Thought prompting or LMM agents, perform worse than simple SFT baselines, and even advanced post-training methods such as GRPO fail to close the gap. Our analysis identifies two key issues of such systems: important policy-relevant cues such as targets and attack types are not hypothesized by the model as a likely explanation; and the binary reward signal is insufficient to guide reasoning. To address these challenges, we propose ExPO-HM (Explain-then-Detect Policy Optimization for Hateful Memes), inspired by the training and evaluation process of human annotators. ExPO-HM combines SFT warmup, GRPO with curriculum learning, and Conditional Decision Entropy (CDE) as both metric and reward for reasoning quality. Across three hateful meme benchmarks, ExPO-HM achieves state-of-the-art performance on binary detection, fine-grained classification, and reasoning quality, with up to 15% and 17% F1 improvement over the GRPO and DPO baselines, respectively. By moving hateful meme detection from simple binary alarms to explanation-driven detection, ExPO-HM provides accurate, interpretable, and actionable moderation support. Code available at: [URL removed]
+
+_This paper contains content for demonstration purposes that may be disturbing for some readers._
+
+## 1 INTRODUCTION
+
+The rise of social media has led to a surge in hateful content, notably in the form of memes. This has sparked growing research interest in automated hateful meme detection systems that aim at supporting human moderation (Kiela et al., 2020; Liu et al., 2022; Prakash et al., 2023; Shah et al., 2024). Most prior work focuses on direct detection, which only provides a binary classification as to whether a meme is hateful or benign (Cao et al., 2023; Mei et al., 2024; Su et al., 2025). However, recent studies show that moderators require additional information to improve efficiency (Calabrese et al., 2024), such as what type of attack is present, and why the system considers the meme harmful. Additionally, social media users may also benefit from understanding these explanations of harmfulness.
+
+Interestingly, human annotators are not trained and evaluated on binary judgments; common practice is that they are guided by a detailed moderation policy manual that defines policy violations such as
+
+1
+
+**==> picture [378 x 111] intentionally omitted <==**
+
+Figure 1: Comparing previous methods with ExPO-HM.
+
+disparagement of protected groups (Singhal et al., 2023). It would be infeasible to train annotators by showing them only raw examples with binary labels; the fine-grained framework provides the necessary structure for both training and evaluation. This human analogy highlights a crucial gap: if humans require fine-grained guidelines and reasoning to make reliable judgments, automated systems could benefit from the same. We call this setting “Explain-then-Detect”, where the system first generates a natural language rationale and then produces a classification decision.
+
+Recent work builds Explain-then-Detect Large Multimodal Model (LMM) systems using Chain-ofThought (CoT) prompting (Wei et al., 2023; Pan et al., 2025) or agent-based frameworks (Huang et al., 2024), but these perform worse than direct Supervised Fine-tuning (SFT) baselines (Mei et al., 2025). Reinforcement learning methods such as Group-Relative Policy Optimization (GRPO) (Shao et al., 2024) can strengthen model reasoning through post-training, yet we find that applying GRPO directly still underperforms SFT for hateful meme detection. Our study reveals two key challenges for Explain-then-Detect systems. First, model explanations often fail to identify the correct violated policy or target, leading to misleading predictions. Second, the binary reward signal in GRPO is too weak to guide reasoning, just as human annotators cannot learn from only yes/no labels.
+
+To address these issues, we propose ExPO-HM ( **Ex** plain-then-Detect **P** olicy **O** ptimization for **H** ateful **M** emes), inspired by how human annotators are trained and evaluated. ExPO-HM first uses SFT warmup on a policy manual, mirroring the guideline-based training of human annotators. We then apply GRPO with curriculum learning, mimicking how annotators are first trained and evaluated on fine-grained categories before making binary judgments. We further introduce Conditional Decision Entropy (CDE) both as a metric for explanation quality and as a reward signal to encourage decisive reasoning. We summarize our contributions:
+
+- **Paradigm.** We introduce the first Explain-then-Detect hateful meme detection that outperforms direct detection, enabling accurate and interpretable hateful meme understanding.
+
+- **Methods.** ExPO-HM mimics human moderator training, combining policy manual SFT warmup, GRPO curriculum learning, and CDE-based reward optimization.
+
+- **Evaluation.** We propose a comprehensive evaluation setup that reflects real-world moderation, extending beyond binary classification to fine-grained categories and hateful reasoning judged by LLMs, with extensive baseline comparisons.
+
+- **Results.** ExPO-HM surpasses previous best systems, and achieves new state-of-the-art performance across binary, fine-grained, and reasoning benchmarks, with up to **15%** and **17%** F1 improvement over the GRPO and DPO baseline, respectively.
+
+## 2 RELATED WORK
+
+**Direct Hateful Meme Detection** Most existing approaches to hateful meme detection treat the task as binary classification. Numerous studies fine-tune CLIP-based models using only binary labels and train dedicated classifiers (Pramanick et al., 2021; Kumar & Nandakumar, 2022; Burbi et al., 2023; Cao et al., 2023; Ji et al., 2024; Mei et al., 2024). Decoder-based LMMs have also been fine-tuned for this task (Alayrac et al., 2022; Laurenc¸on et al., 2023; Hu et al., 2024). In particular, Mei et al. (2025) trains a classifier and retriever on top of the LMM embeddings, achieving state-ofthe-art binary detection performance.
+
+2
+
+In contrast, fine-grained classification, such as identifying attack types or target groups, has received far less attention, despite its importance in real-world moderation. Annotated datasets are available (Mathias et al., 2021a; Dimitrov et al., 2021; Fersini et al., 2022; Shah et al., 2024), and some earlier work has explored this problem (Zia et al., 2021; Mathias et al., 2021b), but recent progress has been limited. Mod-Hate (Cao et al., 2024) and IntMeme (Hee & Lee, 2025) leverage finegrained annotations during training but do not report fine-grained results. MemeCLIP (Shah et al., 2024) addresses this by fine-tuning separate CLIP-based classifiers for each split. In this paper, we systematically evaluate models under different setups and extend the evaluation to fine-grained classification, addressing this important gap.
+
+**Explain-then-Detect Hateful Meme Detection** Compared to direct hateful meme classification, research on explainable hateful meme detection is far more limited. With the rise of decoderbased language models, some Explain-then-Detect systems have emerged. For example, Lin et al. (2024) leverages a debate between two language models to decide meme harmfulness, while LOREHM (Huang et al., 2024) adopts a reasoning-agent framework with retrieval and reflection. However, these systems still primarily target binary classification.
+
+A key challenge is the lack of annotated explanation data. Hatred (Hee et al., 2023), built on the Facebook Hateful Memes dataset (Kiela et al., 2020), remains the only open-source dataset with human-written rationales. Other efforts, such as the recent Arabic hateful meme dataset ArMeme (Kmainasi et al., 2025), are not yet publicly available. Moreover, reasoning tasks remain difficult (Nguyen & Ng, 2024). Existing Explain-then-Detect systems not only struggle with reasoning but also underperform direct detection models in binary classification, underscoring the cost of requiring explanations without tailored optimization strategies. In this paper, we make two key contributions. First, we benchmark a comprehensive set of Explain-then-Detect systems using the Hatred dataset. Second, inspired by human moderator training, we develop ExPO-HM, the first Explain-then-Detect system that surpasses both prior explainable and direct detection approaches, delivering accurate and interpretable hateful meme detection.
+
+## 3 EXPO-HM METHODOLOGY
+
+## 3.1 PRELIMINARIES
+
+**Problem Statement.** A common binary hateful memes classification dataset (Kiela et al., 2020) is _D_ = _{_ ( _Ii, c[∗] i_[)] _[}][N] i_ =1[,][where] _[I][i][∈]_[R] _[C][×][H][×][W]_[is][an][image][with][overlaid][text][(] _[C]_[for][channels,] _[H]_ for height, _W_ for width), and the ground-truth label _c[∗] i[∈{]_[0] _[,]_[ 1] _[}]_[ denotes][ benign][ /][ hateful][.][In] addition, we consider annotations including fine-grained labels _zi[∗]_[(e.g.,][protected][category,][attack] type) (Mathias et al., 2021a) and, when available, gold explanations (Hee et al., 2023) **e** _[∗] i_[.][We] thus define the three tasks for hateful meme detection: (1) predicting binary class _ci_ ; (2) predicting fine-grained class _zi_ ; (3) generating **e** _i_ . For text-based evaluation, we denote the textualized label prediction as _di_ (from _ci_ or _zi_ ) and the corresponding ground-truth text label as _d[∗] i_[.] **Large Multimodal Models (LMMs).** Given a meme _I_ and a prompt _p_ , we denote the input to LMM as **x** = ( _I, p_ ). An LMM with parameters _θ_ defines an auto-regressive policy over output text tokens **y** = ( _y_ 1 _, . . . , y|_ **y** _|_ ):
+
+**==> picture [266 x 31] intentionally omitted <==**
+
+where _t_ indexes the output tokens. _Direct-Detection_ methods decode labels directly, via answers like “yes” / “no” (Lin et al., 2024). In contrast, _Explain-then-Detect_ first generates reasoning and then the label. Following the standard long CoT format (DeepSeek-AI et al., 2025), the output sequence is:
+
+**==> picture [331 x 13] intentionally omitted <==**
+
+where **e** is the generated explanation and _d_ is the textualized label prediction.
+
+**Supervised Fine-Tuning (SFT).** Given an input **x** and a target output sequence **y** _[∗]_ , the model is trained by maximizing the likelihood of **y** _[∗]_ :
+
+3
+
+**==> picture [274 x 32] intentionally omitted <==**
+
+This serves as the general form of SFT used in our baselines.
+
+**Direct Preference Optimization (DPO).** We consider DPO (Rafailov et al., 2023) as a baseline fine-tuning method. Preference pairs ( **y**[+] _,_ **y** _[−]_ ) are sampled on-policy from the reference model _π_ ref via the Explain-then-Detect prompting format. A response **y** is selected as the preferred response **y**[+] if its decision _d_ matches the ground-truth label _d[∗]_ ; otherwise, it is treated as the rejected response **y** _[−]_ .
+
+We optimize the DPO objective:
+
+**==> picture [322 x 25] intentionally omitted <==**
+
+where _σ_ is the sigmoid function and _π_ ref is the reference model, i.e., the initial model before DPO fine-tuning.
+
+**Group Relative Policy Optimization (GRPO).** GRPO (Shao et al., 2024) is an online Policy Gradient method that discards the critic model to save computation. To estimate the advantage, it samples a group of outputs ( **y** 1 _, . . . ,_ **y** _G_ ) from the old policy _πθ_ old for each input **x** . The advantage for the _g_ -th sample in a group is computed by normalizing its reward against the group’s reward distribution _{r_ 1 _, . . . , rG}_ :
+
+**==> picture [266 x 25] intentionally omitted <==**
+
+We consider verifiable reward functions in this paper. The policy is then optimized with the clipped objective:
+
+**==> picture [398 x 41] intentionally omitted <==**
+
+## 3.2 CONDITIONAL DECISION ENTROPY
+
+The reasoning quality is difficult to optimize in hateful meme detection, as there is no reliable reward model due to the scarce rationale corpora and subjective human judgements. To address this, we propose Conditional Decision Entropy (CDE) as a proxy measure. The principle of CDE is straightforward: good reasoning should lead to a sharp and correct decision, while poor reasoning produces confusion.
+
+**CDE Definition.** For an input **x** , the LMM _πθ_ generates an explanation and decision response **y** = ( **e** _, d_ ) _∼ πθ_ ( _· |_ **x** ) in the format of Eq. 2, where the final decision is sampled conditioned on the explanation and input _d ∼ πθ_ ( _· |_ **e** _,_ **x** ). We define CDE as the entropy of the decision _conditioned on_ the produced explanation:
+
+**==> picture [295 x 13] intentionally omitted <==**
+
+**Monte Carlo Estimator for CDE** To evaluate reasoning quality with CDE, we estimate the average CDE over the validation set. For each example **x** _i_ , we sample _K_ = 16 explanations **e** _ik_ with the policy _πθ_ and compute the entropy of the decision distribution. The estimator is
+
+**==> picture [331 x 31] intentionally omitted <==**
+
+In the binary classification case, we experimented with collapsing the decision vocabulary to _V ∈{_ Yes _,_ No _}_ , making CDE equivalent to binary entropy. We observed no significant difference compared to using the full vocabulary. For generalizability to fine-grained multi-class labels, we therefore adopt the full vocabulary formulation. A full derivation is provided in Appendix G.
+
+4
+
+**==> picture [396 x 167] intentionally omitted <==**
+
+Figure 2: Architecture of ExPO-HM. Our framework consists of three key components: 1 **SFT-PM Warmup.** The VLM is first trained with SFT using structured policy manuals derived from finegrained labels and dataset guidelines, teaching the model to align decisions with explicit moderation policies. 2 **GRPO with Curriculum Learning** . Training follows a two-stage schedule: the first 50% of steps use fine-grained data only for reasoning exploration, and the remaining 50% use a balanced 50/50 mix of fine-grained and binary data. 3 **GRPO with CDE reward** . In addition to the format reward ( _r_ format) and accuracy ( _r_ acc) reward used in standard GRPO, we also add a Conditional Decision Entropy ( _r_ CDE) reward.
+
+## 3.3 EXPO-HM FRAMEWORK
+
+Inspired by human moderator training, where annotators first study annotation guidelines and then practice applying them to tasks of increasing difficulty, ExPO-HM, as shown in Figure 2, first learn policy knowledge through SFT, then refines its reasoning via GRPO with curriculum learning, progressing from fine-grained to binary classification.
+
+**SFT Warmup on Structured Policy Manuals (SFT-PM).** We first teach the LMM moderation policy knowledge by converting each dataset’s fine-grained labels into a structured policy manual as the input prompt. Descriptions derived from the dataset annotation guidelines are added to each policy item in the policy manual. Details of this conversion process are provided in Appendix B.2. We optimize the language modelling loss in Eq. 3 with this policy manual augmented input for each meme, and the target response **y** _[∗]_ is the fine-grained label _d[∗] i_[.][Note][that][we][do][not][use][human-] written gold hateful explanation _e[∗]_ in the warmup stage, as they are off-policy and lead to worse performance, which we discuss in Sec 4.5.
+
+**GRPO with Curriculum Learning (GRPO-CL).** After the SFT-PM warmup, we conduct GRPO curriculum learning. We begin with fine-grained classification to incentivize policy understanding through diverse reasoning exploration, then introduce binary classification for hateful vs. benign detection. We test various curriculum schedulers, switching after fine-grained accuracy plateaus, adjusting the budget split between stages, or adjusting the mixing ratio of the fine-grained and binary data in the second stage, and find similar performance as long as fine-grained reasoning precedes binary. We therefore adopt a simple 50/50/50 strategy: the first 50% of steps use fine-grained data only, and the remaining 50% use a balanced 50/50 mix of fine-grained and binary data.
+
+We optimize the clipped surrogate loss in Eq. 6 using the group-relative advantage in Eq. 5. The reward _rig_ corresponds to the _g_ -th response in the sampled group for the _i_ -th training example
+
+**==> picture [278 x 11] intentionally omitted <==**
+
+where _r_ format _∈{_ 0 _,_ 1 _}_ checks if the output obeys the correct template in Eq. 2. The accuracy reward _r_ acc _∈_ [0 _,_ 1] measures prediction correctness with partial credit for multi-class fine-grained classification and penalties for over-prediction. For binary classification, it requires an exact match and thus _r_ acc _∈{_ 0 _,_ 1 _}_ . For the GRPO baseline, we set _w_ = 0, leaving only the format and accuracy rewards. Now let’s define CDE Reward _r_ CDE.
+
+5
+
+**CDE as a Reward** Although GRPO with curriculum learning improves over the naive GRPO baseline, it still falls short in producing reliable reasoning. As introduced in Sec. 3.2, CDE provides a proxy for reasoning quality. If the prediction is sharp and correct, the reasoning is helpful and should be rewarded; if it is wrong but confident, the reasoning is misleading and should be penalized. We therefore incorporate it as an additional reward to guide ExPO-HM.
+
+For each group-sampled example **y** _ig_ of each input **x** _i_ , we denote the CDE as _hig_ and correctness as _δig_ :
+
+**==> picture [291 x 13] intentionally omitted <==**
+
+We reward confident correctness, tolerate uncertainty when wrong, and penalize confident errors. The CDE reward for the example **yig** is
+
+**==> picture [392 x 49] intentionally omitted <==**
+
+CDE rewards contribute a maximum of weight _w_ , with _ρ_ controlling the penalty strength for overconfident wrong predictions. Unless otherwise noted, we use default hyperparameters _a_ = 0 _._ 1, _b_ = 0 _._ 5, _w_ = 0 _._ 2, and _ρ_ = 0 _._ 25. A detailed hyperparameter analysis is provided in Appendix C.3. The _r_ CDE can thus be fed into Eq. 9 to obtain the reward to compute advantage to optimize the GRPO objective.
+
+## 4 EXPERIMENTS
+
+## 4.1 EXPERIMENTAL SETUP
+
+**Dataset.** We evaluate the binary and fine-grained classification on three meme classification datasets: HatefulMemes (Kiela et al., 2020), MAMI (Fersini et al., 2022), and PrideMM (Shah et al., 2024).
+
+**Tasks** We evaluate binary classification (hateful vs benign) on all three datasets. For fine-grained classification, we assess attack methods and target groups on HatefulMemes, attack methods on MAMI, and stance towards LGBTQ+, along with target group detection on PrideMM. Due to the scarcity of annotated hate rationales, we only evaluate reasoning quality on HatefulMemes, where gold human rationales are available (Hee et al., 2023). Detailed dataset descriptions and statistics are provided in Appendix B.
+
+**Evaluation Metrics.** We evaluate classification tasks using macro F1 following prior work (Shah et al., 2024). For fine-grained classification, we use micro F1 due to a highly imbalanced class distribution. For reasoning quality, we adopt the LLM-as-a-judge method (Yang et al., 2023; Mei et al., 2025) to measure alignment between model-generated and human rationales. The detailed evaluation setup is provided in Appendix D. We further include different LLM judge experiments in Appendix E. In addition, we report CDE as a proxy to reasoning quality and verify its correlation with LLM-as-a-judge in Section 4.3. We also report human evaluation of the reasoning in Section 4.7
+
+## 4.2 BASELINES
+
+We compare ExPO-HM with comprehensive baselines on Qwen2.5-VL-3B and Qwen2.5-VL7B (Bai et al., 2025) in Table 1. In this section, we describe the baseline setup briefly. Full implementation details are provided in Appendix C to ensure reproducibility.
+
+**SFT.** In this paper, we consider two variants of SFT as baselines. _Direct-SFT_ is trained with the ground-truth label as the target ( **y** _[∗]_ = _d[∗]_ in Eq. 3), while _CoT-SFT_ uses Explain-then-Detect prompt adopted in DPO and GRPO, where the target sequence is the chosen response in DPO sampling ( **y** _[∗]_ = **y**[+] in Eq. 3). In practice, we find that _Direct-SFT_ consistently outperforms _CoT-SFT_ , even when inference is performed with the Explain-then-Detect prompt. We therefore report _Direct-SFT_ as the default baseline. For classification, we train and report separate models based on the binary
+
+6
+
+and the fine-grained subset, and report the best results. Full results for each model are provided in Table 3, while Table 1 reports the best system.
+
+**DPO & GRPO.** For DPO and GRPO, we initialize from the fine-grained SFT warmup, but without the policy-manual style augmentation. We sweep different _β_ values in DPO to get the best performance on the validation set. The GRPO baseline is trained with the same compute budget as ExPO-HM, using identical hyperparameter settings in both the warmup and GRPO fine-tuning stages.
+
+**Best prior systems.** We compare ExPO-HM with the best prior systems. RA-HMD (Mei et al., 2025) is the state-of-the-art direct detection model, combining two-stage fine-tuning and retrievalaugmented classification. Although primarily designed for direct detection, it supports reasoning evaluation via prompting, so we report its LLM-as-a-judge scores. All RA-HMD results are based on Qwen2.5-VL-7B (Bai et al., 2025). For Explain-then-Detect, we compare two recent systems: LOREHM (Huang et al., 2024), a reflective reasoning agent with tool-calling capability built on LLaVA-Next-34B (Liu et al., 2024), and U-CoT+ (Pan et al., 2025), which uses human-guided CoT prompting with Qwen2-VL-7B (Wang et al., 2024a) for meme-to-text conversion and Qwen2.514B (Qwen et al., 2025) for answer generation. We can only report their results on the binary classification due to their prompt-based agent design, these systems cannot be directly adapted for fine-grained classification or structured reasoning tasks. Furthermore, we did not include closedsource reasoning LMMs such as the OpenAI o-series (OpenAI, 2024) as baselines, since over 30% of requests were blocked by the API server due to the harmful nature of the examples.
+
+Table 1: Comparing ExPO-HM with baseline systems across three datasets. _B_ stands for Binary and _R_ stands for Reasoning. LLM refers to the LLM-as-a-judge score. Best results are in **bold** . _↑_ indicates higher is better, _↓_ lower is better.
+
+|# **Model**|**HatefulMemes**
_B_
_Attack_
_Target_
_R_
F1_↑_
F1_↑_
F1_↑_LLM_↑_CDE_↓_|**MAMI**
_B_
_Attack_
_R_
F1_↑_
F1_↑_CDE_↓_|**PrideMM**
_B_
_Stance Target_
_R_
F1_↑_F1_↑_
F1_↑_CDE_↓_|
+|---|---|---|---|
+|_Direct Detection Baselines_||||
+|1 Qwen2.5-VL-3B
2
_Zero-shot_
3
_SFT_
4 Qwen2.5-VL-7B
5
_Zero-shot_
6
_SFT_
7
_RA-HMD_|53.1
42.1
60.1
-
-
71.9
64.3
69.3
-
-
59.8
50.3
60.2
-
-
75.0
64.7
71.1
-
-
80.2
-
-
5.5
-|61.1
48.2
-
77.9
61.8
-
63.4
50.2
-
78.1
63.1
-
81.0
-
-|58.6
53.7
48.8
-
74.3
58.6
53.2
-
65.2
56.8
51.1
-
75.6
60.2
61.0
-
77.8
-
-
-|
+|_Explain-then-Detect Systems_||||
+|8 LOREHM (34B)
9 U-CoT+ (14B)
10 Qwen2.5-VL-3B
11 _Zero-shot_
12 _SFT_
13 _DPO_
14 _GRPO_
15 _ExPO-HM_
16 Qwen2.5-VL-7B
17 _Zero-shot_
18 _SFT_
19 _DPO_
20 _GRPO_
21 _ExPO-HM_|65.6
-
-
-
-
72.4
-
-
-
-
52.5
41.7
58.7
3.3
0.42
62.3
62.7
63.3
3.6
0.40
59.6
52.3
58.1
3.5
0.42
63.4
55.6
66.1
3.8
0.32
74.7
71.5
73.7
5.1
0.16
65.9
44.7
64.5
5.0
0.33
74.5
58.4
69.4
5.0
0.33
73.6
63.2
66.6
4.9
0.32
74.5
61.2
64.5
5.2
0.26
**81.1**
**75.6**
**77.2**
**6.2**
**0.03**|75.3
-
-
79.9
-
-
58.7
41.7
0.32
69.2
60.1
0.34
66.8
50.2
0.36
76.6
61.2
0.19
80.7
70.4
0.08
63.9
46.5
0.23
72.8
62.6
0.19
72.3
56.6
0.22
76.8
63.7
0.09
**82.3**
**73.0**
**0.04**|-
-
-
-
71.4
-
-
-
52.6
51.2
40.8
0.33
63.2
56.6
49.8
0.29
64.2
55.5
48.9
0.34
72.1
57.3
48.4
0.18
75.6
66.5
62.1
0.12
59.4
54.6
50.2
0.28
68.3
58.0
50.9
0.28
69.5
56.3
52.3
0.30
73.2
58.6
60.1
0.14
**78.7**
**68.4**
**65.1**
**0.08**|
+
+## 4.3 COMPARING EXPO-HM TO BASELINE SYSTEMS
+
+Table 1 compares ExPO-HM with the aforementioned baseline post-training methods and state-ofthe-art systems. We report qualitative examples and error cases in Appendix J. Here, we summarize the key observations.
+
+7
+
+**Baseline Explain-then-Detect methods hurt classification performance.** Under _Explain-thenDetect_ , post-training variants (SFT/DPO/GRPO, #18-#20 for Qwen2.5-VL-7B) consistently underperform the Direct-Detection SFT baseline (#6), except for the comparable performance on the MAMI Attack classification. Larger agentic and CoT systems (LOREHM, U-CoT+, #8-#9) also fall short of strong Direct-Detection baselines like SFT and RA-HMD (#6-#7 ). For instance, the binary classification on HatefulMemes is 80.2 on RA-HMD vs 72.4 F1 with U-CoT+. On HatefulMemes binary classification, RA-HMD reaches 80.2 F1, compared to 72.4 with U-CoT+. Explainthen-Detect systems are crucial for building automatic moderation systems that can truly support real-world moderators, but these results highlight that simply adding explicit rationales through CoT prompting or standard post-training hurts classification accuracy. This motivates the design of EXPO-HM, which aims to improve Explain-then-Detect systems without sacrificing predictive performance.
+
+**Naive post-training barely improves performance.** Explain-then-Detect post-training (#18–#20) improves classification over zero-shot (#17), but reasoning quality stagnates, failing to meet the goal of improving reasoning through post-training. On HatefulMemes with Qwen2.5-VL-7B, the zeroshot LLM-as-a-judge score is 5.0; DPO drops below this, while GRPO only nudges it to 5.2. Even with online RL, reasoning remains difficult to improve. Moreover, post-training still underperforms strong CoT systems specifically designed for hateful meme detection (#8-#9). This underscores the need for dedicated post-training methods like EXPO-HM, which are tailored to hateful meme detection and designed to improve not only classification accuracy but also the quality of explanations.
+
+**ExPO-HM consistently outperforms.** ExPO-HM delivers the strongest performance across binary detection, fine-grained classification, and reasoning. On Qwen2.5-VL-7B, it surpasses RA-HMD and all post-training baselines, achieving large gains in fine-grained F1 ( **+14.4** on HatefulMemes Attack, **+12.7** on Target, compared to GRPO with equal compute). Reasoning also improves markedly, with 6.2 on LLM-as-a-judge vs. 5.2 for GRPO. In Appendix E, we conduct additional evaluations using different LLM judges and paraphrased prompts, and ExPO-HM consistently outperforms all baselines under all settings. Appendix I further reports per-class metrics for Attack and Target detection on HatefulMemes, showing that ExPO-HM achieves consistent improvements, particularly on the most challenging categories. These results confirm ExPO-HM’s effectiveness across datasets and tasks.
+
+**Strong correlation between LLM-as-a-judge metric and CDE metric.** On the HatefulMemes reasoning dataset, we observe a strong alignment between the LLM-as-a-judge score and the CDE score. To quantify this, we evaluate the correlation based on results from all the reported setups, with three random seeds each, yielding 60 data points. We find a strong negative correlation (Pearson _r_ = _−_ 0 _._ 78, Spearman _ρ_ = _−_ 0 _._ 81, both _p <_ 0 _._ 001), confirming that lower CDE values, reflecting more confident and accurate reasoning, correspond to higher reasoning quality.
+
+## 4.4 ABLATION STUDY OF EXPO-HM COMPONENTS
+
+We conduct an ablation study to examine the contribution of the three key components in ExPO-HM. Results on HatefulMemes with Qwen2.5-VL-7B are reported in Table 2. Without SFT-PM, the warmup falls back to SFT with finegrained labels without policy manual augmentation. Without GRPO-CL, GRPO is trained on a randomly
+
+Table 2: Ablation Study of ExPO-HM Components.
+
+||**#**|**Components**
SFT-PM GRPO-CL|**Components**
SFT-PM GRPO-CL|CDE|_B_
F1_↑_|**HatefulMemes**
_Attack Target_
F1_↑_
F1_↑_
LLM|**HatefulMemes**
_Attack Target_
F1_↑_
F1_↑_
LLM|**HatefulMemes**
_Attack Target_
F1_↑_
F1_↑_
LLM|_R_
_↑_CDE_↓_|
+|---|---|---|---|---|---|---|---|---|---|
+||1|-|-|-|74.5|61.2|64.5|5.2|0.263|
+||2
3
4|✓
✓
✓|-
✓
✓|-
-
✓|75.8
78.4
81.1|70.8
74.3
75.6|70.2
76.1
77.2|5.6
5.8
6.2|0.092
0.056
0.026|
+
+mixed set of binary and fine-grained data. Without CDE, GRPO uses only the format and accuracy rewards.
+
+**SFT-PM enhanced the fine-grained warmup.** Compared to the baseline warmup without policy manual augmentation (#1), SFT-PM improves performance across all metrics. This indicates that
+
+8
+
+Table 3: Comparing SFT warmup variants on HatefulMemes on Qwen2.5-VL-7B: no warmup (-), SFT on binary labels (SFT-B), SFT on gold reasoning (SFT-R), SFT on fine-grained labels (SFTFG), and SFT with policy-manual augmentation (SFT-PM).
+
+|**#**
**Warmup**|**SFT**
_B_
_Attack_
_Target_
_R_
F1_↑_
F1_↑_
F1_↑_
LLM_↑_|**w/ GRPO-CL and CDE**
_B_
_Attack_
_Target_
_R_
F1_↑_
F1_↑_
F1_↑_
LLM_↑_|
+|---|---|---|
+|1
-
65.9
44.7
64.5
5.0
73.3
69.3
72.1
5.2
2
SFT-B
74.1
58.2
69.4
4.9
73.5
66.8
70.1
5.1
3
SFT-R
72.2
51.6
63.1
5.0
79.2
72.3
73.2
5.7
4
SFT-FG
72.5
58.4
67.7
4.9
78.9
73.4
73.4
5.6
5
SFT-PM
74.3
64.6
68.8
5.0
81.1
75.6
77.2
6.2|||
+
+fine-grained labels alone are insufficient for policy understanding, while policy manual augmentation substantially strengthens both classification and reasoning. In Sec. 4.5, we further present a systematic comparison of different warmup strategies.
+
+**GRPO-CL further improves performance.** Building on SFT-PM, adding curriculum learning to GRPO (#3) yields further gains across the board. The key difference is ordering, GRPO-CL first lets the model explore reasoning over the fine-grained labels before binary classification. This order proves crucial: standard GRPO produces short average responses (28 tokens) in binary classification, while GRPO-CL nearly doubles this (52 tokens), indicating not only higher quality but also more detailed reasoning is incentivized during training.
+
+**CDE improves both accuracy and explanation quality.** Adding CDE on top of SFT-PM and GRPO-CL further improves the performance. Notably, LLM-judge score improved to 6.2, and a marked drop in CDE 0.026, suggesting that the model’s rationales become more aligned with sharp, correct decisions.
+
+## 4.5 EFFECTS OF DIFFERENT WARMUP STRATEGY
+
+Table 3 compares five warmup strategies for Qwen2.5-VL-7B on the HatefulMemes dataset. For each, we report the Explain-then-Detect performance after SFT and the performance after GRPOCL with CDE reward.
+
+**Good SFT does not necessarily transfer to good RL performance.** Although SFT-B performs better than SFT-R and SFT-FG at the SFT stage, its performance after GRPO-CL is comparably worse than its counterparts, even below the no-warmup baseline. This suggests that binary-only warmup fails to equip the model with the moderation concepts needed for reasoning-guided RL. In contrast, our proposed SFT-PM explicitly teaches such concepts via policy manual augmentation, yielding both stronger SFT performance and the best results after ExPO-HM training.
+
+## 4.6 CDE ANALYSIS
+
+**==> picture [214 x 128] intentionally omitted <==**
+
+Figure 3: Comparison of CDE distributions between ExPO-HM and GRPO on the HatefulMemes validation set with Qwen2.5-VL-7B.
+
+9
+
+**CDE Distribution Analysis.** Figure 3 presents box-and-whisker plots of CDE distributions for ExPO-HM and GRPO on the HatefulMemes validation set with Qwen2.5-VL-7B. ExPO-HM maintains very low CDE for correct predictions ( _µ_ = 0 _._ 019) and higher CDE for wrong ones ( _µ_ = 0 _._ 048), yielding a clear separation. In contrast, the GRPO baseline shows high CDE for both correct ( _µ_ = 0 _._ 278) and wrong predictions ( _µ_ = 0 _._ 226), showing weaker separation. This demonstrates that ExPO-HM produces reasoning that is not only more accurate but also better aligned with decision confidence.
+
+**CDE for Decision Calibration.** The CDE reward penalizes confident wrong predictions and rewards confident correct decisions. This encourages a well-behaved decision distribution: the model becomes confident only when it is likely to be correct, and becomes uncertain when the outcome is ambiguous.
+
+To validate whether CDE reward improves calibration, we compute Expected Calibration Error (ECE) and Brier score using the model’s probability assigned to the final answer token, conditioned on the generated explanation under the Explain-then-Detect setup. We observe that ExPOHM consistently improves calibration compared to the GRPO baseline. Notably, for Qwen2.5-VL3B, ExPO-HM reduces the Brier score from 0.590 to 0.283, indicating substantially more reliable decision confidence. Full calibration results are reported in Appendix H.1. We additionally provide a derivation of the upper bound on the Brier score under the ideal ExPO-HM policy in Appendix H.2.
+
+**CDE and Policy Entropy.** We test whether adding the CDE reward causes policy entropy collapse, a phenomenon reported in prior RL work (Cui et al., 2025) when entropy bonuses are removed. Our results show that overall policy entropy remains comparable to the baseline GRPO system without CDE, confirming that the CDE reward, acting only on the decision part of the generation, does not reduce exploration.
+
+**CDE Hyperparameters.** For CDE hyperparameters, we conduct standard hyperparameter tuning via grid search on the HatefulMemes validation set. Once the optimal values were identified, we fixed these parameters and applied them directly to MAMI and PrideMM. We observe that as long as the hyperparameters fall within a reasonable range, the model performance remains highly stable. We provide the detailed insights of hyperparameter tuning in Appendix C.3.
+
+## 4.7 HUMAN EVALUATION OF MODEL-GENERATED REASONING
+
+To assess the quality of the generated reasoning beyond LLM-as-a-judge evaluation, we further conduct two complementary human evaluations. Each example is independently evaluated by three crowd-sourced annotators with at least an undergraduate degree and demonstrated familiarity with internet meme culture. We evaluate both the GRPO baseline and our ExPO-HM model. The detailed evaluation setup and full results are provided in Appendix F.
+
+**Coherence Evaluation.** Annotators judge whether the model’s final decision is logically supported by its rationale. The GRPO baseline achieves 96% coherent outputs, whereas ExPO-HM attains 100% coherence.
+
+**Helpfulness Evaluation.** Annotators also rate how helpful each rationale is for understanding why the meme is hateful or benign, using a 0–4 Likert scale following prior work (Wang et al., 2024b). We obtain average helpfulness scores of 1.6 for GRPO and 2.2 for ExPO-HM. After normalizing the scores to the same 0–10 scale used by the LLM-as-a-judge (4.1 vs. 5.5), we observe high agreement between human and LLM evaluations in the relative improvement from GRPO to ExPO-HM.
+
+## 5 CONCLUSION
+
+We propose ExPO-HM, which combines SFT warmup on policy-manual–augmented data with GRPO curriculum learning, guided by a Conditional Decision Entropy reward to promote highquality reasoning. Comprehensive experiments show that ExPO-HM achieves state-of-the-art performance on binary detection, fine-grained classification, and reasoning quality.
+
+10
+
+## ETHICAL STATEMENT
+
+**Societal benefits.** Hateful meme detection systems such as ExPO-HM can help automatically identify and mitigate harmful online content, reducing the prevalence of hate speech. By providing explanations in addition to predictions, our system not only supports safer digital environments for end-users but also alleviates the burden on human content moderators, improving their wellbeing. We believe such systems play an essential role in fostering respectful online communication and contributing to healthier digital communities.
+
+**Intended use.** We will enforce strict access controls for releasing model checkpoints and artifacts. Access will be limited to researchers who agree to our terms of use, which explicitly restrict the system to the detection and prevention of hateful speech. Any use that promotes, condones, or encourages hate speech or other harmful content is strictly prohibited.
+
+**Misuse potential.** Although ExPO-HM is not designed to introduce bias, it is trained on datasets that may reflect societal or annotator biases (Pramanick et al., 2021). These biases could propagate into model predictions. To mitigate risks of unfair or disproportionate moderation, human oversight remains essential when deploying such systems.
+
+**Deployment considerations.** Moderation of hateful content is inherently influenced by cultural norms and subjective judgments. Expressions considered benign in one context may be offensive in another. Since ExPO-HM is trained with policy manuals, its outputs depend critically on the underlying moderation policies. Careful review and adaptation of community guidelines are crucial to ensure responsible deployment across diverse cultural and linguistic contexts.
+
+**Usage of Datasets.** The datasets used in this study, HatefulMemes, MAMI, and PrideMM, were curated for research purposes to combat online hate speech. We strictly adhere to the terms of use established by the dataset authors.
+
+## REPRODUCIBILITY STATEMENT
+
+We provide detailed dataset usage and statistics in Appendix B, including all augmentation procedures introduced in this paper. For the evaluation of reasoning, we detail the process in Appendix D. Experimental setups, implementation details including code base usage, software version, hardware configuration, and hyperparameter settings are described in Appendix C to facilitate reproducibility. Code and data available: [URL removed]
+
+## REFERENCES
+
+Jean-Baptiste Alayrac, Jeff Donahue, Pauline Luc, Antoine Miech, Iain Barr, Yana Hasson, Karel Lenc, Arthur Mensch, Katherine Millican, Malcolm Reynolds, Roman Ring, Eliza Rutherford, Serkan Cabi, Tengda Han, Zhitao Gong, Sina Samangooei, Marianne Monteiro, Jacob L. Menick,
+
+11
+
+Sebastian Borgeaud, Andy Brock, Aida Nematzadeh, Sahand Sharifzadeh, Mikołaj Bi´nkowski, Ricardo Barreira, Oriol Vinyals, Andrew Zisserman, and Kar´en Simonyan. Flamingo: a visual language model for few-shot learning. _Advances in Neural Information Processing Systems_ , 35: 23716–23736, Dec 2022. URL [URL removed]
+
+- Shuai Bai, Keqin Chen, Xuejing Liu, Jialin Wang, Wenbin Ge, Sibo Song, Kai Dang, Peng Wang, Shijie Wang, Jun Tang, Humen Zhong, Yuanzhi Zhu, Mingkun Yang, Zhaohai Li, Jianqiang Wan, Pengfei Wang, Wei Ding, Zheren Fu, Yiheng Xu, Jiabo Ye, Xi Zhang, Tianbao Xie, Zesen Cheng, Hang Zhang, Zhibo Yang, Haiyang Xu, and Junyang Lin. Qwen2.5-vl technical report. (arXiv:2502.13923), February 2025. doi: 10.48550/arXiv.2502.13923. URL [URL removed] arXiv:2502.13923 [cs].
+
+- Giovanni Burbi, Alberto Baldrati, Lorenzo Agnolucci, Marco Bertini, and Alberto Del Bimbo. Mapping memes to words for multimodal hateful meme classification. In _2023 IEEE/CVF International Conference on Computer Vision Workshops (ICCVW)_ , pp. 2824–2828, 2023. doi: 10.1109/ICCVW60793.2023.00303.
+
+- Agostina Calabrese, Leonardo Neves, Neil Shah, Maarten W. Bos, Bj¨orn Ross, Mirella Lapata, and Francesco Barbieri. Explainability and hate speech: Structured explanations make social media moderators faster. (arXiv:2406.04106), 2024. doi: 10.48550/arXiv.2406.04106. URL [URL removed] arXiv:2406.04106 [cs].
+
+- Rui Cao, Ming Shan Hee, Adriel Kuek, Wen-Haw Chong, Roy Ka-Wei Lee, and Jing Jiang. Procap: Leveraging a frozen vision-language model for hateful meme detection. In _Proceedings of the 31st ACM International Conference on Multimedia_ , MM ’23, pp. 5244–5252. Association for Computing Machinery, 2023. ISBN 9798400701085. doi: 10.1145/3581783.3612498. URL [URL removed]
+
+- Rui Cao, Roy Ka-Wei Lee, and Jing Jiang. Modularized networks for few-shot hateful meme detection. In _Proceedings of the ACM Web Conference 2024_ , WWW ’24, pp. 4575–4584. Association for Computing Machinery, 2024. ISBN 9798400701719. doi: 10.1145/3589334.3648145. URL [URL removed]
+
+- Ganqu Cui, Yuchen Zhang, Jiacheng Chen, Lifan Yuan, Zhi Wang, Yuxin Zuo, Haozhan Li, Yuchen Fan, Huayu Chen, Weize Chen, Zhiyuan Liu, Hao Peng, Lei Bai, Wanli Ouyang, Yu Cheng, Bowen Zhou, and Ning Ding. The entropy mechanism of reinforcement learning for reasoning language models, May 2025. URL [URL removed]
+
+- DeepSeek-AI, Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Ruoyu Zhang, Runxin Xu, Qihao Zhu, Shirong Ma, Peiyi Wang, Xiao Bi, Xiaokang Zhang, Xingkai Yu, Yu Wu, Z. F. Wu, Zhibin Gou, Zhihong Shao, Zhuoshu Li, Ziyi Gao, Aixin Liu, Bing Xue, Bingxuan Wang, Bochao Wu, Bei Feng, Chengda Lu, Chenggang Zhao, Chengqi Deng, Chenyu Zhang, Chong Ruan, Damai Dai, Deli Chen, Dongjie Ji, Erhang Li, Fangyun Lin, Fucong Dai, Fuli Luo, Guangbo Hao, Guanting Chen, Guowei Li, H. Zhang, Han Bao, Hanwei Xu, Haocheng Wang, Honghui Ding, Huajian Xin, Huazuo Gao, Hui Qu, Hui Li, Jianzhong Guo, Jiashi Li, Jiawei Wang, Jingchang Chen, Jingyang Yuan, Junjie Qiu, Junlong Li, J. L. Cai, Jiaqi Ni, Jian Liang, Jin Chen, Kai Dong, Kai Hu, Kaige Gao, Kang Guan, Kexin Huang, Kuai Yu, Lean Wang, Lecong Zhang, Liang Zhao, Litong Wang, Liyue Zhang, Lei Xu, Leyi Xia, Mingchuan Zhang, Minghua Zhang, Minghui Tang, Meng Li, Miaojun Wang, Mingming Li, Ning Tian, Panpan Huang, Peng Zhang, Qiancheng Wang, Qinyu Chen, Qiushi Du, Ruiqi Ge, Ruisong Zhang, Ruizhe Pan, Runji Wang, R. J. Chen, R. L. Jin, Ruyi Chen, Shanghao Lu, Shangyan Zhou, Shanhuang Chen, Shengfeng Ye, Shiyu Wang, Shuiping Yu, Shunfeng Zhou, Shuting Pan, S. S. Li, Shuang Zhou, Shaoqing Wu, Shengfeng Ye, Tao Yun, Tian Pei, Tianyu Sun, T. Wang, Wangding Zeng, Wanjia Zhao, Wen Liu, Wenfeng Liang, Wenjun Gao, Wenqin Yu, Wentao Zhang, W. L. Xiao, Wei An, Xiaodong Liu, Xiaohan Wang, Xiaokang Chen, Xiaotao Nie, Xin Cheng, Xin Liu, Xin Xie, Xingchao Liu, Xinyu Yang, Xinyuan Li, Xuecheng Su, Xuheng Lin, X. Q. Li, Xiangyue Jin, Xiaojin Shen, Xiaosha Chen, Xiaowen Sun, Xiaoxiang Wang, Xinnan Song, Xinyi Zhou, Xianzu Wang, Xinxia Shan, Y. K. Li, Y. Q. Wang, Y. X. Wei, Yang Zhang, Yanhong Xu, Yao Li, Yao Zhao, Yaofeng Sun, Yaohui Wang, Yi Yu, Yichao Zhang, Yifan Shi, Yiliang Xiong, Ying He, Yishi Piao, Yisong Wang, Yixuan Tan, Yiyang Ma, Yiyuan Liu, Yongqiang Guo, Yuan Ou, Yuduan Wang, Yue Gong, Yuheng Zou, Yujia He, Yunfan Xiong, Yuxiang Luo, Yuxiang You, Yuxuan Liu, Yuyang Zhou,
+
+12
+
+Y. X. Zhu, Yanhong Xu, Yanping Huang, Yaohui Li, Yi Zheng, Yuchen Zhu, Yunxian Ma, Ying Tang, Yukun Zha, Yuting Yan, Z. Z. Ren, Zehui Ren, Zhangli Sha, Zhe Fu, Zhean Xu, Zhenda Xie, Zhengyan Zhang, Zhewen Hao, Zhicheng Ma, Zhigang Yan, Zhiyu Wu, Zihui Gu, Zijia Zhu, Zijun Liu, Zilin Li, Ziwei Xie, Ziyang Song, Zizheng Pan, Zhen Huang, Zhipeng Xu, Zhongyu Zhang, and Zhen Zhang. Deepseek-r1: Incentivizing reasoning capability in llms via reinforcement learning. (arXiv:2501.12948), January 2025. doi: 10.48550/arXiv.2501.12948. URL [URL removed] arXiv:2501.12948 [cs].
+
+- Dimitar Dimitrov, Bishr Bin Ali, Shaden Shaar, Firoj Alam, Fabrizio Silvestri, Hamed Firooz, Preslav Nakov, and Giovanni Da San Martino. Detecting propaganda techniques in memes. In _Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)_ , pp. 6603–6617, Online, Aug 2021. Association for Computational Linguistics. doi: 10.18653/v1/ 2021.acl-long.516. URL [URL removed]
+
+- Elisabetta Fersini, Francesca Gasparini, Giulia Rizzi, Aurora Saibene, Berta Chulvi, Paolo Rosso, Alyssa Lees, and Jeffrey Sorensen. Semeval-2022 task 5: Multimedia automatic misogyny identification. In _Proceedings of the 16th International Workshop on Semantic Evaluation (SemEval2022)_ , pp. 533–549, Seattle, United States, Jul 2022. Association for Computational Linguistics. doi: 10.18653/v1/2022.semeval-1.74. URL [URL removed] semeval-1.74.
+
+- Ming Shan Hee and Roy Ka-Wei Lee. Demystifying hateful content: Leveraging large multimodal models for hateful meme detection with explainable decisions. 2025. doi: 10.48550/ARXIV. 2502.11073. URL [URL removed]
+
+- Ming Shan Hee, Wen-Haw Chong, and Roy Ka-Wei Lee. Decoding the underlying meaning of multimodal hateful memes. (arXiv:2305.17678), Jun 2023. URL [URL removed] 2305.17678. arXiv:2305.17678 [cs].
+
+- Edward J Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. LoRA: Low-rank adaptation of large language models. In _International Conference on Learning Representations_ , 2022. URL [URL removed] id=nZeVKeeFYf9.
+
+- Yushi Hu, Otilia Stretcu, Chun-Ta Lu, Krishnamurthy Viswanathan, Kenji Hata, Enming Luo, Ranjay Krishna, and Ariel Fuxman. Visual program distillation: Distilling tools and programmatic reasoning into vision-language models. In _2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)_ , pp. 9590–9601, Seattle, WA, USA, June 2024. IEEE. ISBN 979-83503-5300-6. doi: 10.1109/CVPR52733.2024.00916. URL [URL removed] org/document/10655837/.
+
+- Jianzhao Huang, Hongzhan Lin, Liu Ziyan, Ziyang Luo, Guang Chen, and Jing Ma. Towards lowresource harmful meme detection with lmm agents. In Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen (eds.), _Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing_ , pp. 2269–2293, Miami, Florida, USA, November 2024. Association for Computational Linguistics. URL [URL removed] 136.
+
+- Junhui Ji, Xuanrui Lin, and Usman Naseem. Capalign: Improving cross modal alignment via informative captioning for harmful meme detection. In _Proceedings of the ACM Web Conference 2024_ , pp. 4585–4594, Singapore Singapore, May 2024. ACM. ISBN 979-8-4007-0171-9. doi: 10.1145/ 3589334.3648146. URL [URL removed]
+
+- Douwe Kiela, Hamed Firooz, Aravind Mohan, Vedanuj Goswami, Amanpreet Singh, Pratik Ringshia, and Davide Testuggine. The hateful memes challenge: Detecting hate speech in multimodal memes. In _Advances in Neural Information Processing Systems_ , volume 33, pp. 2611–2624. Curran Associates, Inc., 2020. URL [URL removed] paper/2020/hash/1b84c4cee2b8b3d823b30e2d604b1878-Abstract.html.
+
+- Mohamed Bayan Kmainasi, Abul Hasnat, Md Arid Hasan, Ali Ezzat Shahroor, and Firoj Alam. Memeintel: Explainable detection of propagandistic and hateful memes. (arXiv:2502.16612),
+
+13
+
+February 2025. doi: 10.48550/arXiv.2502.16612. URL [URL removed] 16612. arXiv:2502.16612 [cs].
+
+- Gokul Karthik Kumar and Karthik Nandakumar. Hate-CLIPper: Multimodal hateful meme classification based on cross-modal interaction of CLIP features. In _Proceedings of the Second Workshop on NLP for Positive Impact (NLP4PI)_ , pp. 171–183, Abu Dhabi, United Arab Emirates (Hybrid), December 2022. Association for Computational Linguistics. doi: 10.18653/v1/2022.nlp4pi-1.20. URL [URL removed]
+
+- Hugo Laurenc¸on, Lucile Saulnier, L´eo Tronchon, Stas Bekman, Amanpreet Singh, Anton Lozhkov, Thomas Wang, Siddharth Karamcheti, Alexander M. Rush, Douwe Kiela, Matthieu Cord, and Victor Sanh. Obelics: An open web-scale filtered dataset of interleaved image-text documents. (arXiv:2306.16527), August 2023. URL [URL removed] arXiv:2306.16527 [cs].
+
+- Hongzhan Lin, Ziyang Luo, Wei Gao, Jing Ma, Bo Wang, and Ruichao Yang. Towards explainable harmful meme detection through multimodal debate between large language models. In _Proceedings of the ACM Web Conference 2024_ , WWW ’24, pp. 2359–2370, New York, NY, USA, 2024. Association for Computing Machinery. ISBN 9798400701719. doi: 10.1145/3589334.3645381. URL [URL removed]
+
+- Chen Liu, Gregor Geigle, Robin Krebs, and Iryna Gurevych. Figmemes: A dataset for figurative language identification in politically-opinionated memes. In _Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing_ , pp. 7069–7086, Abu Dhabi, United Arab Emirates, Dec 2022. Association for Computational Linguistics. URL https: //aclanthology.org/2022.emnlp-main.476.
+
+- Haotian Liu, Chunyuan Li, Yuheng Li, Bo Li, Yuanhan Zhang, Sheng Shen, and Yong Jae Lee. Llava-next: Improved reasoning, ocr, and world knowledge, January 2024. URL [URL removed]
+
+- Lambert Mathias, Shaoliang Nie, Aida Mostafazadeh Davani, Douwe Kiela, Vinodkumar Prabhakaran, Bertie Vidgen, and Zeerak Waseem. Findings of the woah 5 shared task on fine grained hateful memes detection. _Proceedings of the 5th Workshop on Online Abuse and Harms (WOAH 2021)_ , pp. 201–206, 2021a. doi: 10.18653/v1/2021.woah-1.21.
+
+- Lambert Mathias, Shaoliang Nie, Aida Mostafazadeh Davani, Douwe Kiela, Vinodkumar Prabhakaran, Bertie Vidgen, and Zeerak Waseem. Findings of the WOAH 5 shared task on fine grained hateful memes detection. In Aida Mostafazadeh Davani, Douwe Kiela, Mathias Lambert, Bertie Vidgen, Vinodkumar Prabhakaran, and Zeerak Waseem (eds.), _Proceedings of the 5th Workshop on Online Abuse and Harms (WOAH 2021)_ , pp. 201–206, Online, August 2021b. Association for Computational Linguistics. doi: 10.18653/v1/2021.woah-1.21. URL https: //aclanthology.org/2021.woah-1.21/.
+
+- Jingbiao Mei, Jinghong Chen, Weizhe Lin, Bill Byrne, and Marcus Tomalin. Improving hateful meme detection through retrieval-guided contrastive learning. In Lun-Wei Ku, Andre Martins, and Vivek Srikumar (eds.), _Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)_ , pp. 5333–5347, Bangkok, Thailand, August 2024. Association for Computational Linguistics. doi: 10.18653/v1/2024.acl-long.291. URL [URL removed]
+
+- Jingbiao Mei, Jinghong Chen, Guangyu Yang, Weizhe Lin, and Bill Byrne. Robust adaptation of large multimodal models for retrieval augmented hateful meme detection. In Christos Christodoulopoulos, Tanmoy Chakraborty, Carolyn Rose, and Violet Peng (eds.), _Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing_ , pp. 23817–23839, Suzhou, China, November 2025. Association for Computational Linguistics. ISBN 979-8-89176332-6. URL [URL removed]
+
+- Khoi P. N. Nguyen and Vincent Ng. Computational meme understanding: A survey. In Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen (eds.), _Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing_ , pp. 21251–21267, Miami, Florida, USA, November 2024. Association for Computational Linguistics. URL https: //aclanthology.org/2024.emnlp-main.1184.
+
+14
+
+OpenAI. Openai o1 system card. (arXiv:2412.16720), December 2024. doi: 10.48550/arXiv.2412. 16720. URL [URL removed] arXiv:2412.16720 [cs].
+
+- Fengjun Pan, Anh Tuan Luu, and Xiaobao Wu. Detecting harmful memes with decoupled understanding and guided cot reasoning. (arXiv:2506.08477), 2025. doi: 10.48550/arXiv.2506.08477. URL [URL removed] arXiv:2506.08477 [cs].
+
+- Nirmalendu Prakash, Ming Shan Hee, and Roy Ka-Wei Lee. Totaldefmeme: A multi-attribute meme dataset on total defence in singapore. In _Proceedings of the 14th Conference on ACM Multimedia Systems_ , MMSys ’23, pp. 369–375, New York, NY, USA, Jun 2023. Association for Computing Machinery. ISBN 9798400701481. doi: 10.1145/3587819.3592545. URL https: //dl.acm.org/doi/10.1145/3587819.3592545.
+
+- Shraman Pramanick, Shivam Sharma, Dimitar Dimitrov, Md. Shad Akhtar, Preslav Nakov, and Tanmoy Chakraborty. Momenta: A multimodal framework for detecting harmful memes and their targets. In _Findings of the Association for Computational Linguistics: EMNLP 2021_ , pp. 4439–4455, Punta Cana, Dominican Republic, Nov 2021. Association for Computational Linguistics. doi: 10.18653/v1/2021.findings-emnlp.379. URL [URL removed] 2021.findings-emnlp.379.
+
+- Qwen, An Yang, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chengyuan Li, Dayiheng Liu, Fei Huang, Haoran Wei, Huan Lin, Jian Yang, Jianhong Tu, Jianwei Zhang, Jianxin Yang, Jiaxi Yang, Jingren Zhou, Junyang Lin, Kai Dang, Keming Lu, Keqin Bao, Kexin Yang, Le Yu, Mei Li, Mingfeng Xue, Pei Zhang, Qin Zhu, Rui Men, Runji Lin, Tianhao Li, Tianyi Tang, Tingyu Xia, Xingzhang Ren, Xuancheng Ren, Yang Fan, Yang Su, Yichang Zhang, Yu Wan, Yuqiong Liu, Zeyu Cui, Zhenru Zhang, and Zihan Qiu. Qwen2.5 technical report. (arXiv:2412.15115), January 2025. doi: 10.48550/arXiv.2412.15115. URL [URL removed] org/abs/2412.15115. arXiv:2412.15115 [cs].
+
+- Rafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D Manning, Stefano Ermon, and Chelsea Finn. Direct preference optimization: Your language model is secretly a reward model. In _Thirty-seventh Conference on Neural Information Processing Systems_ , 2023. URL https: //openreview.net/forum?id=HPuSIXJaa9.
+
+- Siddhant Bikram Shah, Shuvam Shiwakoti, Maheep Chaudhary, and Haohan Wang. Memeclip: Leveraging clip representations for multimodal meme classification. In Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen (eds.), _Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing_ , pp. 17320–17332, Miami, Florida, USA, November 2024. Association for Computational Linguistics. doi: 10.18653/v1/2024.emnlp-main.959. URL [URL removed]
+
+- Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, Y. K. Li, Y. Wu, and Daya Guo. Deepseekmath: Pushing the limits of mathematical reasoning in open language models. (arXiv:2402.03300), April 2024. doi: 10.48550/ arXiv.2402.03300. URL [URL removed] arXiv:2402.03300 [cs].
+
+- Mohit Singhal, Chen Ling, Pujan Paudel, Poojitha Thota, Nihal Kumarswamy, Gianluca Stringhini, and Shirin Nilizadeh. Sok: Content moderation in social media, from guidelines to enforcement, and research to practice. pp. 868–895, 2023. doi: 10.1109/EuroSP57164.2023.00056. URL [URL removed]
+
+- Xuanyu Su, Yansong Li, Diana Inkpen, and Nathalie Japkowicz. A context-aware contrastive learning framework for hateful meme detection and segmentation. In Luis Chiruzzo, Alan Ritter, and Lu Wang (eds.), _Findings of the Association for Computational Linguistics: NAACL 2025_ , pp. 5201–5215, Albuquerque, New Mexico, April 2025. Association for Computational Linguistics. ISBN 979-8-89176-195-7. doi: 10.18653/v1/2025.findings-naacl.289. URL https: //aclanthology.org/2025.findings-naacl.289/.
+
+- Peng Wang, Shuai Bai, Sinan Tan, Shijie Wang, Zhihao Fan, Jinze Bai, Keqin Chen, Xuejing Liu, Jialin Wang, Wenbin Ge, Yang Fan, Kai Dang, Mengfei Du, Xuancheng Ren, Rui Men, Dayiheng Liu, Chang Zhou, Jingren Zhou, and Junyang Lin. Qwen2-vl: Enhancing vision-language model’s perception of the world at any resolution. (arXiv:2409.12191), October 2024a. doi: 10.48550/ arXiv.2409.12191. URL [URL removed] arXiv:2409.12191 [cs].
+
+15
+
+- Zhilin Wang, Yi Dong, Jiaqi Zeng, Virginia Adams, Makesh Narsimhan Sreedhar, Daniel Egert, Olivier Delalleau, Jane Scowcroft, Neel Kant, Aidan Swope, and Oleksii Kuchaiev. Helpsteer: Multi-attribute helpfulness dataset for steerlm. In Kevin Duh, Helena Gomez, and Steven Bethard (eds.), _Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers)_ , pp. 3371–3384, Mexico City, Mexico, 2024b. Association for Computational Linguistics. doi: 10.18653/v1/2024.naacl-long.185. URL [URL removed] naacl-long.185/.
+
+- Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Brian Ichter, Fei Xia, Ed Chi, Quoc Le, and Denny Zhou. Chain-of-thought prompting elicits reasoning in large language models. (arXiv:2201.11903), Jan 2023. doi: 10.48550/arXiv.2201.11903. URL [URL removed] abs/2201.11903. arXiv:2201.11903 [cs].
+
+- Yongjin Yang, Joonkee Kim, Yujin Kim, Namgyu Ho, James Thorne, and Se-Young Yun. Hare: Explainable hate speech detection with step-by-step reasoning. In Houda Bouamor, Juan Pino, and Kalika Bali (eds.), _Findings of the Association for Computational Linguistics: EMNLP 2023_ , pp. 5490–5505, Singapore, December 2023. Association for Computational Linguistics. doi: 10.18653/v1/2023.findings-emnlp.365. URL [URL removed] findings-emnlp.365/.
+
+- Tianyi Zhang*, Varsha Kishore*, Felix Wu*, Kilian Q. Weinberger, and Yoav Artzi. Bertscore: Evaluating text generation with bert. In _International Conference on Learning Representations_ , 2020. URL [URL removed]
+
+- Haris Bin Zia, Ignacio Castro, and Gareth Tyson. Racist or sexist meme? classifying memes beyond hateful. In Aida Mostafazadeh Davani, Douwe Kiela, Mathias Lambert, Bertie Vidgen, Vinodkumar Prabhakaran, and Zeerak Waseem (eds.), _Proceedings of the 5th Workshop on Online Abuse and Harms (WOAH 2021)_ , pp. 215–219, Online, August 2021. Association for Computational Linguistics. doi: 10.18653/v1/2021.woah-1.23. URL [URL removed] org/2021.woah-1.23/.
+
+16
+
+## A USE OF LARGE LANGUAGE MODELS
+
+Our coding work was assisted by Github Copilot. OpenAI ChatGPT was only used for proofreading and spell-checking. We claim that the content presented in this paper was fully original.
+
+## B DATASET DETAILS AND STATISTICS
+
+## B.1 DATASET DETAILS AND PROMPT USED
+
+**HatefulMemes.** Released by Meta in 2020, HatefulMemes (Kiela et al., 2020) contains 12,000 memes annotated as hateful or benign by trained experts. This benchmark dataset synthesizes memes targeting religion, race, disability, and gender. It includes confounder examples where the benign memes are generated by altering either the image or text to challenge models’ ability in multimodal reasoning.
+
+In 2021, Meta further released an extended annotation set, the Fine-Grained Hateful Meme Classification dataset (Mathias et al., 2021a). This dataset augments the original HatefulMemes with detailed labels for both attack types and target groups, enabling fine-grained classification.
+
+For fine-grained classification training and evaluation, except for the SFT-PM training, we adopt the following prompts for _attack types_ :
+
+Does this meme express hate or negative bias toward any of the following protected groups? Religion, Race, Sex, Nationality, Disability
+
+Please respond with one or more of the protected categories if applicable. If the meme does not contain any hateful content, respond with Benign.
+
+## For _target groups_ :
+
+Does this meme use any of the following types of attack against a group? Dehumanizing, Inferiority, Inciting violence, Mocking, Contempt, Slurs, Exclusion Please respond with one or more of the attack types if applicable. If the meme does not contain any hateful content, respond with Benign.
+
+**MAMI.** The MAMI dataset (Fersini et al., 2022) focuses on detecting misogynistic memes sourced from various social media platforms, including Twitter and Reddit, as well as meme creation and sharing websites, and even anti-women websites and forums. It contains annotations for two tasks: (1) binary classification of misogyny and (2) categorization of misogyny types. In this work, we use the binary task to detect whether a meme is misogynistic and treat the type categorization as a fine-grained multi-class, multi-label classification problem. Each sample can take one or more of four attack type labels: objectification, shaming, stereotype, and violence, or Benign if no harm is present.
+
+For all fine-grained training and evaluation tasks on fine-grained classes except for the SFT-PM training, we use the prompt:
+
+Does this meme use any of the following types of attack against a group? objectification, shaming, stereotype, violence Please respond with one or more of the attack types if applicable. If the meme does not contain any hateful content, respond with Benign.
+
+**PrideMM.** PrideMM (Shah et al., 2024) contains LGBTQ+ themed memes annotated for four tasks: hate speech detection, hate target identification, topical stance classification, and humor detection. In this work, we use the hate speech classification annotations for the binary hateful meme detection.
+
+We further use the hate target identification and topical stance classification in our fine-grained classification setup. Both tasks are formulated as multi-class, single-label classification.
+
+17
+
+For all fine-grained training and evaluation tasks except for the SFT-PM training, we use the _Target_ identification prompt:
+
+Based on the content and context of this meme, does this meme express hate or negative bias toward any of the following targets?
+
+Choose from the following options: undirected individual community organization
+
+If the meme does not contain any hateful content, respond with Benign. What is the target type?
+
+## _Stance_ classification prompt:
+
+Based on the content and context of this meme, what is the stance towards LGBTQ+ individuals or communities?
+
+Choose from the following options: neutral, support, oppose
+
+What is the stance?
+
+**Explain-Then-Detect Prompt.** The above shows the prompt used for the direct detection setup. For the Explain-Then-Detect Prompt, we adapt the prompt from the VeRL training library:
+
+ Output the thinking process in and final answer in tags. The output format should be as follows: ... ... Please strictly follow the format.
+
+The is replaced with the specific prompts defined above.
+
+## B.2 POLICY MANUAL CONSTRUCTION
+
+For HatefulMemes, MAMI, and PrideMM, the dataset authors provide detailed annotation guidelines in prose, including lists of protected or offensive categories (e.g., ethnicity, race, violence) and their definitions. We extract this information and convert it into a concise bullet-point list, which we refer to as the policy manual. Below is an example of the original annotation guideline from (Kiela et al., 2020):
+
+_”A direct or indirect attack on people based on characteristics, including ethnicity, race, nationality... We define attack as violent or dehumanizing (comparing people to non-human things, e.g. animals) speech, statements of inferiority...”_
+
+Representing the annotation guidelines in the structured Policy Manual form makes it easier to create targeted instruction-following SFT data compared to using long-form prose descriptions. The conversion from guideline to policy manual is a one-time process performed by a human expert. Below, we detail the specific policy manuals for each dataset.
+
+**HatefulMemes.** For policy-manual SFT, we use the following prompts:
+
+- Does this meme use any of the following types of attack against a group? - Dehumanizing: Presenting a group as subhuman, explicitly or implicitly
+
+- Inferiority: Claiming that a group is inferior, less worthy, or less important
+
+- Inciting violence: Calling for or encouraging harm—physical or otherwise—towards a group
+
+- Mocking: Belittling or making jokes about a group
+
+- Contempt: Expressing strong disgust, hatred, or intense negative emotion
+
+- Slurs: Using prejudicial or derogatory terms to describe a group - Exclusion: Advocating for removal, segregation, or marginalization of a group If the meme does not use any of these attack types, respond with Benign.
+
+18
+
+- Does this meme express hate or negative bias toward any of the following protected groups? - Religion: A group defined by shared belief systems - Race: A group defined by racialized physical characteristics - Sex: A group defined by sexual attributes or sexual identification - Nationality: A group defined by country or region of origin - Disability: A group defined by conditions leading to permanent dependencies If the meme does not target any protected group, respond with Benign.
+
+## **MAMI.** For policy-manual SFT, we use the following prompts:
+
+**==> picture [397 x 138] intentionally omitted <==**
+
+**----- Start of picture text -----**
+Based on the content and context of this meme, does it use any of the following types of attack against
a group?
Choose from the following options:
- objectification: The content reduces individuals or groups to objects, ignoring their personhood or
agency
- shaming: The content ridicules, mocks, or publicly humiliates individuals or groups
- stereotype: The content attributes oversimplified, generalized, or exaggerated traits to individuals or
groups
- violence: The content depicts or encourages physical harm, threats, or violent actions against indi-
viduals or groups
If the meme does not contain any hateful content, respond with Benign.
What is the attack type?
**----- End of picture text -----**
+
+## **PrideMM.** For policy-manual SFT, we use the following prompts:
+
+**==> picture [397 x 240] intentionally omitted <==**
+
+**----- Start of picture text -----**
+Based on the content and context of this meme, does this meme express hate or negative bias toward
any of the following targets?
Choose from the following options:
- undirected: General targeting without specific individuals or groups
- individual: Targeting specific individuals
- community: Targeting LGBTQ+ communities or groups
- organization: Targeting specific organizations or institutions
If the meme does not contain any hateful content, respond with Benign.
What is the target type?
Based on the content and context of this meme, what is the stance towards LGBTQ+ individuals or
communities?
Choose from the following options:
- neutral: The content does not express clear support or opposition
- support: The content expresses positive attitudes or support
- oppose: The content expresses negative attitudes or opposition
What is the stance?
**----- End of picture text -----**
+
+## B.3 DATASET STATISTICS
+
+**Binary Classification statistics.** Table 4 shows the data split for our binary evaluation datasets. For HatefulMemes, we use the dev ~~s~~ een split as the validation set, test ~~s~~ een as the test set.
+
+**Fine-grained Classification Statistics.** Table 5 reports the detailed distribution of fine-grained attributes in the HatefulMemes dataset, covering both attack types and protected categories. Note that we use the dev ~~u~~ nseen split for final evaluation.
+
+Table 6 provides the fine-grained label distributions for the MAMI dataset, focusing on Sub-task B (Type of Misogyny).
+
+19
+
+Table 4: Statistical summary of binary classification datasets.
+
+|Datasets|Train
Test
#Benign
#Hate
#Benign
#Hate|Train
Test
#Benign
#Hate
#Benign
#Hate|
+|---|---|---|
+||||
+|HatefulMemes
MAMI
PrideMM|5450
3050
4500
4500
2581
2482|500
500
500
500
260
247|
+
+Table 5: Statistics of fine-grained attributes in the HatefulMemes dataset, showing attack types and protected categories across train, dev ~~u~~ nseen, and dev ~~s~~ een splits.
+
+|**Fine-grained types**|**train**
**dev**
~~**u**~~**nseen**
**dev**
~~**s**~~**een**|
+|---|---|
+|||
+|_Attack type_|dehumanizing
1318
104
121
inferiority
658
35
49
inciting
~~v~~iolence
407
23
26
mocking
378
29
35
contempt
235
6
10
slurs
205
4
6
exclusion
114
8
13|
+|||
+|_Protected category_|religion
1078
77
95
race
1008
63
78
sex
746
46
56
nationality
325
20
26
disability
255
17
22|
+
+Table 7 summarizes the fine-grained label distributions for the PrideMM dataset, including both target categories and stance annotations across the training and test splits.
+
+**Hateful Reasoning Corpus Statistics.** Table 8 presents the dataset statistics for Hatred, which only includes hateful memes paired with explanations. The test set corresponds to the original HatefulMemes dev ~~s~~ een split.
+
+## B.4 DATASET LICENSES
+
+To access the Facebook HatefulMemes dataset, one must follow the license from Facebook[1] . HarMeme and Harm-P are distributed for research purposes only, without a license for commercial use. MAMI is under Apache License 2.0. There is no specified license for PrideMM.
+
+## C EXPERIMENT SETUP AND IMPLEMENTATION DETAILS
+
+**Software Environment.** PyTorch 2.5.1, CUDA 12.4, Huggingface Transformer 4.45.0 and Python 3.10.12 were used for implementing the experiments. All the reported metrics were computed by TorchMetrics 1.0.1.
+
+**Hardware Environment.** We conducted our GRPO and ExPO-HM experiments on a server equipped with 8 Nvidia H100 with 80GB of VRAM. For the DPO and SFT baselines, we use 1 GPU.
+
+**Training Details** We freeze the vision module throughout fine-tuning, following the standard LMM fine-tuning protocol. We conduct all training with LoRA (Hu et al., 2022), with LoRA rank=64, _α_ = 128. For DPO sampling and all the inference, we use vLLM inference engine 0.9.2.
+
+> 1[URL removed]
+
+20
+
+Table 6: Statistics of Sub-task B in the MAMI dataset: type of misogyny labels across training and test sets. We treat this as a multilabel, multiclass fine-grained classification task.
+
+|**Category**|**Training Set**
**Test Set**|
+|---|---|
+|||
+|Shaming
Stereotype
Objectifcation
Violence|1274 (25.48%)
146 (29.20%)
2810 (56.20%)
350 (70.00%)
2202 (44.04%)
348 (69.60%)
953 (19.06%)
153 (30.60%)|
+
+Table 7: Statistics of fine-grained attributes in the PrideMM dataset, showing target categories and stance labels across training and test sets.
+
+|**Fine-grained types**|**Train**
**Test**|
+|---|---|
+|||
+|_Target_|Benign
2208
260
Undirected
666
68
Individual
219
19
Community
986
122
Organization
249
38|
+|||
+|_Stance_|Neutral
1252
140
Support
1645
182
Oppose
1431
185|
+
+## C.1 SFT AND DPO TRAINING
+
+For Qwen2.5-VL fine-tuning, we employ the officially recommended fine-tuning library LLaMA-Factory 0.9.3[2] with official hyperparameter settings for all training tasks in both the SFT and DPO, except for the LoRA config that we mentioned above. For DPO, we sweep _β_ = 0 _._ 1 _,_ 0 _._ 3 _,_ 0 _._ 5 _,_ 0 _._ 7 _,_ 0 _._ 9 and report the best results. For all runs, we train for 3 epochs, and then select the best checkpoint based on validation performance.
+
+## C.2 GRPO TRAINING
+
+We use the VeRL library verl 0.4.1[3] . We use the default hyperparameter settings for all training except for the LoRA configuration. For all runs, we train for 3 epochs, and then select the best checkpoint based on validation performance. The run time for ExPO-HM is about 4 hours on 8 GPUs, which is the same for the baseline GRPO experiment.
+
+## C.3 CDE REWARD HYPERPARAMETER
+
+For CDE hyperparameters, we conduct standard hyperparameter tuning via grid search on the HatefulMemes validation set. Once the optimal values were identified, we fixed these parameters and applied them directly to MAMI and PrideMM.
+
+We observe that as long as the hyperparameters fall within a reasonable range, the model performance remains highly stable. Based on our hyperparameter tuning, we recommend the following default hyperparameters for new datasets: _a_ = 0 _._ 1, _b_ = 0 _._ 5, _w_ = 0 _._ 2, and _ρ_ = 0 _._ 25. The stable ranges, within which performance differences remain small, are: 0 _._ 05 _≤ a ≤_ 0 _._ 15, 0 _._ 4 _≤ b ≤_ 0 _._ 6, 0 _._ 15 _≤ w ≤_ 0 _._ 25, and 0 _._ 1 _≤ ρ ≤_ 0 _._ 5.
+
+The following observations summarize the sensitivity characteristics of each CDE hyperparameter:
+
+The following intuitions summarize the observed sensitivity patterns:
+
+- **Low-entropy cutoff (** _a_ **):** If _a_ is too small (e.g., _<_ 0 _._ 05), the reward provides limited benefit and tends to encourage overconfident predictions, leading to larger KL divergence
+
+> 2[URL removed]
+
+> 3[URL removed]
+
+21
+
+Table 8: Statistics of the Hatred dataset, which only includes hateful memes with explanations. The test set corresponds to the original HatefulMemes dev ~~s~~ een split.
+
+||**train**
**test**
**total**|
+|---|---|
+|#Hatred (hateful memes only)
2,982
246
3,228||
+
+and reduced policy entropy. If _a_ is too large (e.g., 0 _._ 20), the CDE reward becomes too easy to satisfy, resulting in diminished improvement over the default value. A default value of _a_ = 0 _._ 1 consistently performs well.
+
+- **High-entropy cutoff (** _b_ **):** A small value of _b_ (e.g., 0 _._ 25) excessively narrows the confidence band, pushing predictions into the overconfident region, significantly increasing KL divergence, reducing policy entropy, and destabilizing training. Conversely, overly large values make the reward too permissive and degrade performance. The recommended default value of 0.5 achieves a balance between stability and effectiveness.
+
+- **CDE weight (** _w_ **):** Large weights cause the CDE reward to dominate over the accuracy reward, which degrades performance when _w >_ 0 _._ 5 compared to the default value of 0 _._ 2. Extremely small weights, on the other hand, yield only marginal improvements over the baseline. A moderate value ( _w_ = 0 _._ 2) is most effective.
+
+- **Penalty rate (** _ρ_ **):** Hyperparameter tuning for _ρ_ shows relatively low sensitivity. The default value works reliably across datasets. Performance degrades compared to the default setting when the penalty is removed (values near zero) or when it becomes overly strong (e.g., _ρ_ = 1 _._ 0).
+
+## D EVALUATION OF MODEL-GENERATED REASONING
+
+Following prior work (Yang et al., 2023; Mei et al., 2025), we assess explanation quality using an LLM judge. Specifically, we provide GPT-4o mini (gpt-4o-mini-2024-07-18) with reference explanations from (Hee et al., 2023). Following previous works (Mei et al., 2025), we adopt the same prompt:
+
+Compare the model-generated reasoning with the reference human reasoning for this hateful meme.
+
+Reference: _{_ reference reasoning _}_ Model: _{_ model ~~r~~ easoning _}_ Model Prediction: _{_ model ~~p~~ rediction _}_
+
+Rate how well the model reasoning aligns with the reference on a scale of 0-10: - 9-10: Excellent alignment, captures all key points
+
+- 7-8: Good alignment, captures most key points
+
+- 5-6: Satisfactory alignment, captures some key points - 3-4: Poor alignment, misses many key points
+
+- 1-2: Very poor alignment, minimal understanding - 0: Completely wrong or unrelated Score: [0-10] Explanation: [1-2 sentences]
+
+- E ADDITIONAL RESULTS ON MODEL-GENERATED REASONING EVALUATION
+
+In this section, we provide extended experiments and analysis for the LLM-as-a-judge evaluation used in our work. While LLM-based evaluators are widely adopted for assessing explanation qual-
+
+22
+
+ity and reasoning consistency, concerns remain regarding reproducibility, prompt sensitivity, and potential model deprecation. We address these concerns through (1) evaluation across multiple open-source judges, (2) inclusion of prompt-free metrics, and (3) sensitivity analysis with paraphrased prompts.
+
+## E.1 EVALUATION ACROSS MULTIPLE LLM JUDGES
+
+To ensure a fair comparison, we adopt the same judge model (gpt-4o-mini-2024-07-18) and the same evaluation prompt as prior work (Mei et al., 2025) in the main text. However, we acknowledge that evaluation with a commercial closed-source model may raise reproducibility concerns, particularly if the model is deprecated in the future. To address this, we conduct additional evaluations using open-source LLM judges with the same prompt for reproducibility, including Qwen3-4B-Instruct-2507, gpt-oss-20b, and gemma-3-4b-it. We further report scores using a newer and stronger closed-source judge GPT-5 (gpt-5-2025-08-07) for reference.
+
+We also include BERTScore (Zhang* et al., 2020), which measures sequence-level semantic similarity between human rationales and model-generated explanations. Because BERTScore does not rely on prompts, it serves as a fully reproducible complement to LLM-based evaluations.
+
+We compute BERTScore using the official implementation[4] . Following the same setup as our LLMas-a-judge evaluation, we use the Hatred annotations from (Hee et al., 2023) as the reference rationales and compute the BERTScore for each model-generated explanation.
+
+Table 9: Extended LLM-as-a-judge and BERTScore evaluation across models and training methods. Higher is better. The best-performing training method for each model is shown in **bold** .
+
+|Model|GPT-4o mini|GPT-5|Qwen3|Gemma-3|gpt-oss|BERTScore|
+|---|---|---|---|---|---|---|
+|||**Qwen2.5-VL-3B**|||||
+|Zero-shot|3.3|1.5|2.0|2.9|2.4|0.52|
+|SFT|3.6|2.0|2.4|3.8|2.6|0.53|
+|DPO|3.5|2.2|2.3|3.7|3.0|0.53|
+|GRPO|3.8|2.8|3.0|4.2|3.2|0.53|
+|ExPO-HM|**5.1**|**3.6**|**4.2**|**5.5**|**4.0**|**0.56**|
+|||**Qwen2.5-VL-7B**|||||
+|Zero-shot|5.0|3.8|4.5|5.2|4.0|0.55|
+|SFT|5.0|4.0|4.6|5.5|3.9|0.55|
+|DPO|4.9|3.5|4.5|4.9|3.6|0.54|
+|GRPO|5.2|4.1|4.7|5.9|4.6|0.59|
+|ExPO-HM|**6.2**|**5.0**|**5.5**|**7.0**|**5.3**|**0.65**|
+
+Table 9 shows the detailed results.
+
+We note that different LLM judges exhibit different scoring distributions. BERTScore is less sensitive to subtle performance differences, likely due to its limited semantic understanding compared to modern LLMs. GPT-5, Qwen3, and gpt-oss tend to be more strict, while Gemma-3 tends to be more generous. Nevertheless, ExPO-HM models are consistently rated as the best-performing system under all evaluation metrics with substantial margins over GRPO models. This further validates the effectiveness of ExPO-HM.
+
+## E.2 PROMPT SENSITIVITY ANALYSIS
+
+To study prompt robustness, we manually paraphrased the evaluation prompt and re-evaluated all models using gpt-4o-mini-2024-07-18. As shown in Table 10, the results remain largely unchanged, suggesting that our evaluation is not sensitive to prompt phrasing.
+
+Below is the paraphrased prompt for reference:
+
+> 4[URL removed]
+
+23
+
+Table 10: Prompt sensitivity analysis using GPT-4o mini as the judge. Higher is better.
+
+|Model|Original Prompt|Paraphrased Prompt|
+|---|---|---|
+||**Qwen2.5-VL-3B**||
+|Zero-shot|3.3|3.2|
+|SFT|3.6|3.4|
+|DPO|3.5|3.3|
+|GRPO|3.8|3.9|
+|ExPO-HM|**5.1**|**5.1**|
+||**Qwen2.5-VL-7B**||
+|Zero-shot|5.0|5.0|
+|SFT|5.0|5.2|
+|DPO|4.9|5.0|
+|GRPO|5.2|5.1|
+|ExPO-HM|**6.2**|**6.3**|
+
+Evaluate how closely the model’s explanation matches the human reference rationale for this hateful meme.
+
+Reference: _{_ reference reasoning _}_ Model: _{_ model ~~r~~ easoning _}_ Model Prediction: _{_ model ~~p~~ rediction _}_
+
+Rate how well the model reasoning aligns with the reference on a scale of 0-10: - 9-10: Outstanding alignment, captures all major points
+
+- 7-8: Strong alignment, captures most important points
+
+- 5-6: Moderate alignment, includes some relevant points
+
+- 3-4: Weak alignment, overlooks many key points
+
+- 1-2: Very weak alignment, shows little understanding
+
+- 0: Completely incorrect or unrelated
+
+If the model prediction is not hateful, which is incorrect, the highest score you may assign is 2.
+
+Explanation: [1-2 sentences] Score: [0-10]
+
+## F HUMAN EVALUATION ON MODEL-GENERATED REASONING
+
+To assess the quality of the reasoning beyond LLM-as-a-judge, we further conduct two complementary human evaluations. Each example is independently evaluated by three crowd-sourced annotators with at least an undergraduate degree and demonstrated familiarity with internet meme culture. We evaluate both the GRPO baseline and our ExPO-HM model, and we randomize the order in which model outputs are presented to mitigate ordering or anchoring biases. An illustration of the annotation interface is provided in Figure 4.
+
+## F.1 COHERENCE EVALUATION
+
+Annotators judge whether the model’s final decision is logically supported by its rationale. For each example, we ask:
+
+_“Does the model’s final decision logically follow from its rationale? In other words, is the decision grounded in the explanation provided?”_
+
+Annotators answer Yes or No. The GRPO baseline achieves 96% coherent outputs, while ExPOHM achieves 100% coherence.
+
+24
+
+**==> picture [394 x 540] intentionally omitted <==**
+
+**----- Start of picture text -----**
+Example 5 Image ID: 06491
Model A
Decision: YES
Rationale:
The meme uses the term "tranny," which is a derogatory and offensive term used to refer to transgender
people. This language is hurtful and dehumanizing.
Model B
Decision: YES
Rationale:
The meme contains the text "tranny for sale," which is a derogatory term used to refer to transgender
individuals. This language is offensive and promotes harmful stereotypes and discrimination against the
transgender community. The use of such language in a meme is generally considered hateful and
disrespectful.
📋 Ground Truth Annotation
Target Group(s): the lgbt community
Expert Reasoning:
• dehumanizes the lgbt community as objects by suggesting that transgenders can be put on sale.
Your Evaluation
Task 1: Coherence - Does the decision logically follow from the rationale?
Model A:
Yes
No
Model B:
Yes
No
Task 2: Helpfulness - How helpful is the rationale for understanding the meme?
Model A:
0 1 2 3 4
Unrelated Weakly Related Partially Helpful Mostly Helpful Highly Helpful
Model B:
0 1 2 3 4
Unrelated Weakly Related Partially Helpful Mostly Helpful Highly Helpful
Optional: Additional Comments
Any additional observations or notes...
**----- End of picture text -----**
+
+Figure 4: Human evaluation interface. Annotators assess the coherence and helpfulness of modelgenerated rationales, with access to the meme and ground-truth expert annotation.
+
+25
+
+## F.2 HELPFULNESS EVALUATION
+
+Annotators also rate how helpful the rationale is for understanding why the meme is hateful. For each example, we ask the annotator:
+
+_“How helpful is the model’s rationale for understanding why the meme is hateful or benign?”_
+
+We adopt a 0–4 Likert scale (adapted from prior work (Wang et al., 2024b)), defined as:
+
+- **0 — Unrelated / Incorrect:** Rationale is irrelevant, incorrect, or unusable; provides no moderation value.
+
+- **1 — Weakly Related:** Touches on the content but lacks specificity or clarity; cannot support moderation.
+
+- **2 — Partially Helpful:** Contains some relevant entities or violation cues but is incomplete or partially incorrect; usable only with major edits.
+
+- **3 — Mostly Helpful:** Identifies target/violation with minor inaccuracies; usable with light editing.
+
+- **4 — Highly Helpful:** Fully accurate and specific; clearly identifies entities and violations; directly usable as a moderation rationale.
+
+Annotators are additionally given the gold human rationale for reference, consistent with the LLMas-a-judge setup.
+
+We obtain average helpfulness scores of 1.6 for GRPO and 2.2 for ExPO-HM. After normalizing the scores to the same 0–10 scale used by the LLM-as-a-judge, we observe high agreement between human and LLM evaluations in the relative improvement from GRPO to ExPO-HM. We provide a detailed comparison in Table 11. Inter-annotator agreement is strong, with Krippendorff’s _α_ ordinal = 0 _._ 71.
+
+Table 11: Comparison of human and LLM evaluation of explanation quality. Human scores are reported in both the original 0–4 Likert scale and a normalized 0–10 scale for comparability with LLM-as-a-judge scores.
+
+|**Model**|**LLM (GPT-4o mini)**|**LLM (GPT-5)**|**Human (0–4, Raw)**|**Human (0–10, Scaled)**|
+|---|---|---|---|---|
+|GRPO|5.2|4.1|1.6|4.1|
+|ExPO-HM|6.2|5.0|2.2|5.5|
+
+26
+
+## G CDE DERIVATION AND ALTERNATIVE ESTIMATOR
+
+## G.1 CDE DERIVATION
+
+Here, we provide the full derivation for the CDE metrics estimation. We consider the CDE metrics for a model parameter with _θ_ over a dataset _D_ .
+
+**==> picture [237 x 12] intentionally omitted <==**
+
+By Monte Carlo over the dataset
+
+**==> picture [201 x 27] intentionally omitted <==**
+
+By Monte Carlo sampling _K_ times
+
+**==> picture [245 x 31] intentionally omitted <==**
+
+Approximate _pθ_ ( **e** _i |_ **x** ) _≈ K_[1]
+
+**==> picture [296 x 47] intentionally omitted <==**
+
+For the entropy _H_ ( _d |_ **e** _i,_ **x** ), we by default compute it over the full decision vocabulary:
+
+**==> picture [303 x 23] intentionally omitted <==**
+
+where _V_ denotes the output vocabulary. For practical efficiency, we do not compute entropy over the entire vocabulary; instead, we approximate it using the top 10–50 tokens by likelihood, which substantially reduces computation and memory costs. When a fine-grained class is represented by multiple tokens, we compute the average token entropy similar to the policy entropy computation.
+
+For binary classification, one may collapse the vocabulary into Yes, No by grouping all tokens semantically aligned with “yes/positive” or “no/negative,” and normalizing their probabilities.
+
+## G.2 ALTERNATIVE ESTIMATOR THROUGH CHAIN RULE
+
+When considering the CDE, we can expand through: By the chain rule of entropy:
+
+**==> picture [279 x 27] intentionally omitted <==**
+
+1. _H_ (( **e** _, d_ ) _|_ **x** ) Sequence entropy: the total entropy of generating both reasoning and decision.
+
+2. _H_ ( **e** _|_ **x** ) Reasoning entropy: measures the diversity of reasoning paths the model can produce for an input.
+
+3. _H_ ( _d |_ **e** _,_ **x** ) Conditional decision entropy (CDE): quantifies the uncertainty of the model’s decision given its own on-policy reasoning path **e** .
+
+Both (1) and (2) can be estimated directly via sequence-level sampling. Then CDE, (3) can be obtained by subtraction, using the chain rule in Eq. 14.
+
+## G.3 ALTERNATIVE ESTIMATOR WHEN LOGITS IS NOT AVAILABLE
+
+When model logits are not accessible, we approximate entropy by sampling _K_ = 16 responses directly from the LMM and measuring entropy over the final detection decisions.
+
+27
+
+**==> picture [297 x 24] intentionally omitted <==**
+
+where _pθ_ ( _d |_ **x** ) is estimated by counting the relative frequencies of positive vs. negative decisions among the _K_ sampled responses. This can similarly be applied towards fine-grained classes.
+
+To approximate full CDE without logits, one can fix a reasoning trajectory and resample _K_ responses **y** _ik_ conditioned on that reasoning (e.g., by sampling with temperature 0 _._ 7–1 _._ 0). The Monte Carlo estimator in Eq. 12 is then applied to obtain the CDE for each sampled reasoning path. Finally, averaging across multiple such sampled reasonings provides an overall CDE estimate.
+
+## H CDE FOR CONFIDENCE CALIBRATION
+
+Maximizing the CDE reward implicitly encourages better confidence calibration. By design, the CDE reward penalizes confident wrong predictions and rewards confident correct decisions. This encourages a well-behaved decision distribution: the model becomes confident only when it is likely to be correct, and becomes uncertain when the outcome is ambiguous.
+
+## H.1 CALIBRATION EVALUATION
+
+To validate whether CDE reward improves calibration, we compute Expected Calibration Error (ECE) and Brier score using the model’s probability assigned to the final answer token, conditioned on the generated explanation under the Explain-then-Detect setup. For ECE, we use 10 bins.
+
+We evaluate calibration for zero-shot, SFT, GRPO, and ExPO-HM across both 3B and 7B model sizes. As shown in Table 12, ExPO-HM consistently achieves substantially better calibration than all baselines by a large margin. Notably, for the 3B model, ExPO-HM reduces the Brier score from 0.590 → 0.283, indicating significantly improved decision reliability.
+
+Table 12: Calibration metrics (ECE and Brier score) under the Explain–then–Detect setting. Lower values indicate better calibration. ExPO-HM achieves the best calibration across all configurations.
+
+|**Model**|**Variant**|**ECE**_↓_|**Brier**_↓_|
+|---|---|---|---|
+||Zero-shot|0.525|0.590|
+|Qwen2.5-VL-3B|SFT
GRPO|0.486
0.394|0.534
0.441|
+||ExPO-HM|**0.232**|**0.283**|
+||Zero-shot|0.301|0.335|
+|Qwen2.5-VL-7B|SFT
GRPO|0.234
0.221|0.282
0.287|
+||ExPO-HM|**0.160**|**0.214**|
+
+## H.2 THEORETICAL ANALYSIS
+
+We show that, under the ideal ExPO-HM policy, i.e., when the CDE reward is maximized, the induced decision distribution admits a Brier score that is upper bounded by a small constant determined only by the CDE entropy thresholds _a_ and _b_ . This provides theoretical justification for why optimizing CDE improves calibration.
+
+**Setup.** Following the notation introduced in Sec. 3.1, let _d[∗] i[∈{]_[0] _[,]_[ 1] _[}]_[ denote the ground-truth label.] Under our Explain-then-Detect formulation, the model produces a probability
+
+**==> picture [248 x 12] intentionally omitted <==**
+
+To simplify the derivation, we instead let
+
+**==> picture [241 x 11] intentionally omitted <==**
+
+28
+
+which denotes the model probability assigned to the **correct** class.
+
+The binary Brier score for sample _i_ can then be expressed as
+
+**==> picture [234 x 13] intentionally omitted <==**
+
+For convenience, we define correctness by
+
+**==> picture [240 x 24] intentionally omitted <==**
+
+We compute the binary entropy via
+
+**==> picture [300 x 11] intentionally omitted <==**
+
+where _H_ 2 denotes binary entropy in bits.
+
+**Entropy thresholds imposed by CDE.** The CDE reward uses two entropy thresholds: Lowentropy cutoff _a_ = 0 _._ 1 and High-entropy cutoff _b_ = 0 _._ 5, defining:
+
+**==> picture [319 x 10] intentionally omitted <==**
+
+Let the corresponding confidence thresholds be
+
+**==> picture [267 x 13] intentionally omitted <==**
+
+For brevity, we write _H_ 2 _[−]_[1] for the inverse of _H_ 2 on the relevant monotone branch (either [0 _,_ 1 _/_ 2] or [1 _/_ 2 _,_ 1]), depending on whether we are in the low- or high-confidence regime.
+
+**Optimal ExPO-HM policy under CDE.** Maximizing CDE encourages:
+
+- _high confidence_ ( _hi ≤ a_ ) for correct predictions ( _ti_ = 1);
+
+- _high uncertainty_ ( _hi ≥ b_ ) for incorrect predictions ( _ti_ = 0).
+
+The optimal CDE-maximizing decision distribution satisfies
+
+**==> picture [286 x 24] intentionally omitted <==**
+
+Thus, we obtain
+
+**==> picture [305 x 31] intentionally omitted <==**
+
+It is easy to find _pa_ = 0 _._ 987 _, pb_ = 0 _._ 110 from Eq. 22.
+
+**Bounding the Brier score.** We bound the Brier score by considering the correct and incorrect predictions separately using the probability constraints in Eq. 25.
+
+**Case 1: Correct predictions.** When _ti_ = 1,
+
+**==> picture [261 x 12] intentionally omitted <==**
+
+**Case 2: Incorrect predictions.** When _ti_ = 0, similarly
+
+**==> picture [260 x 12] intentionally omitted <==**
+
+Thus, for all samples,
+
+**==> picture [257 x 25] intentionally omitted <==**
+
+29
+
+Table 13: Fine-grained _attack types_ results on HatefulMemes. We report overall attack accuracy, micro F1, and per-class F1 for each attack type. Due to space constraints, we use abbreviated labels for attack types; the full names are provided in Table 5.
+
+|Model|Overall Metrics (%)
Acc.
Micro F1|Attack Types F1 (%)
Benign
Dehum.
Infer.
Mock.
Incit.
Excl.
Contempt
Slurs|
+|---|---|---|
+|Zero-shot
SFT
DPO
GRPO
**ExPO-HM**|44.6
44.7
57.8
58.4
63.2
63.2
60.4
61.2
**74.8**
**75.6**|72.3
36.6
14.0
16.4
19.1
37.5
5.4
16.0
78.7
43.6
5.6
12.2
18.6
22.2
9.5
22.2
81.2
44.3
22.6
26.1
20.0
19.5
6.8
21.1
79.6
36.5
12.0
18.4
23.4
21.7
5.4
22.2
**84.6**
**62.1**
**46.0**
**60.0**
**59.5**
**61.2**
**53.3**
**66.7**|
+
+Table 14: Fine-grained _Protected categories_ results on HatefulMemes. We report overall accuracy, micro F1, and per-class F1 for each protected category.
+
+|Model|Overall Metrics (%)
Acc.
Micro F1|Protected Categories F1 (%)
Benign
Nationality
Religion
Race
Sex
Disability|
+|---|---|---|
+|Zero-shot
SFT
DPO
GRPO
**ExPO-HM**|64.3
64.5
67.6
69.4
66.1
66.6
64.1
64.5
**76.5**
**77.2**|77.7
26.7
29.2
42.5
15.4
23.5
79.9
33.4
34.4
44.7
22.6
40.0
79.1
21.4
36.6
40.8
15.4
26.7
75.5
23.1
64.0
49.1
54.9
35.7
**84.7**
**61.1**
**67.1**
**51.5**
**58.8**
**51.9**|
+
+**Dataset-level bound.** Let _N_ corr and _N_ wrong be the number of correct and incorrect predictions in a dataset of size _N_ . We have
+
+**==> picture [315 x 30] intentionally omitted <==**
+
+In the extreme (and likely unrealistic) worst case where the model makes errors on all examples ( _N_ wrong = _N_ ), the bound simplifies to
+
+**==> picture [251 x 12] intentionally omitted <==**
+
+For a balanced binary classification scenario with 50% accuracy ( _N_ corr = _N_ wrong = _N/_ 2), the bound becomes
+
+**==> picture [278 x 23] intentionally omitted <==**
+
+These results show that, under the ideal ExPO-HM policy induced by maximizing the CDE reward, the decision distribution is constrained to a region with substantially lower Brier loss compared to an unconstrained policy. This provides theoretical support that ExPO-HM encourages more calibrated probability estimates.
+
+## I FINE-GRAINED RESULTS
+
+In addition to the overall micro F1 reported in the main text, we provide detailed fine-grained results on the HatefulMemes dataset for both attack types and protected categories using the Qwen2.5-VL7B models in Table 13 and Table 14. For both fine-grained setups, we observe that the benign class achieves relatively high performance, whereas most fine-grained categories remain highly challenging for existing baselines: many per-class F1 scores fall below 50%. Recognizing different attack types is particularly difficult for all baselines, and certain protected categories, such as sex and nationality, are especially difficult. Overall, ExPO-HM shows substantial improvements across all fine-grained categories, demonstrating strong gains over all baseline systems.
+
+30
+
+## J COMPARING GRPO AND EXPO-HM PREDICTIONS
+
+## J.1 CASE ANALYSIS
+
+Table 15 and Table 16 show examples where ExPO-HM corrects prediction errors made by the GRPO baseline on Qwen2.5-VL-7B, illustrating its ability to generate higher-quality explanations and leading to correct final prediction.
+
+Table 15: Part 1 of the Visualization of cases from GRPO Qwen2.5-VL-7B and ExPO-HM Qwen2.5VL-7B Models.
+
+Case 1 Case 2 Case 3 Meme Ground Truth #Hateful #Hateful #Hateful GRPO Prediction #Benign #Benign #Benign ExPO-HM Prediction #Hateful #Hateful #Hateful The meme uses a visual The meme uses a wheelchair as a vipun by showing dogs sual metaphor for the The meme is a humorand labeling them as “a “hardest part to eat in ous observation about group of men.” This is a a vegetable.” This is a sandwich maker that common internet meme a play on words and can be used as an ironformat that uses animals is not intended to be ing board. It does not to represent a group of offensive. The joke is contain any offensive or people, often for humorbased on a common derogatory content dious effect. The image GRPO Explanation phrase and the visual of rected at any specific itself does not contain a wheelchair, which is a group or individual. The any explicit content or tool for mobility, not a joke is based on a praclanguage that could be derogatory symbol. The tical use of a kitchen apconsidered hateful. The meme is not targeting pliance and does not exuse of animals to reprepress any form of hate sent a group of people is any specific group or race, and the humor or discrimination. a common meme trope is based on a general and is generally not inobservation rather than tended to be offensive. any harmful stereotype.
+
+The meme makes a derogatory comparison by using a woman’s body to represent an ironing board, which ExPO-HM Explanation is a dehumanizing and objectifying portrayal. This type of humor is often used to degrade women and is considered dehumanizing.
+
+The meme uses a derogatory term to refer to a group of men, which is a form of deThe meme uses a humanizing and can be derogatory term “vegconsidered degrading. etable” to refer to a The use of a dog to person in a wheelchair, represent a group of which is a form of men is also an example dehumanizing and of speciesism, which derogatory language. is a form of prejudice This type of language against non-human is considered hateful animals. While the as it dehumanizes and meme is not explicitly degrades the person in violent, it does contain the wheelchair elements that can be seen as dehumanizing and degrading
+
+31
+
+## J.2 ERROR ANALYSIS
+
+During the analysis of the common error cases shared by both the GRPO baseline and ExPO-HM, i.e., cases that ExPO-HM is still unable to correct, we observe two major categories of failures. The first category consists of highly implicit memes, whose harmful intent can only be uncovered through complex, multi-step reasoning. The second category includes memes that require external world knowledge and/or subtle contextual linkage, making their interpretation dependent on background information not explicitly contained in the meme itself. These examples are inherently difficult, and even human annotators may misinterpret them Kiela et al. (2020). Table 17 presents three representative cases.
+
+The first meme uses an apparently nonsensical statement (“potato is my favorite color of the alphabet”) to implicitly portray the individual as extremely unintelligent. The models fail to (i) infer the underlying stereotype associated with intellectual disability, and (ii) connect the negative depiction of cognitive ability to the corresponding protected group defined in the policy manual.
+
+The second meme requires linking the reference to 9/11 with broader immigration discourse, yet the models fail to associate the event with anti-immigrant sentiment or identify the targeted group.
+
+For the third meme, the models’ rationales focus narrowly on the absence of explicit slurs or group identifiers and interpret “trash” as a generic political metaphor, thereby overlooking its dehumanizing use toward the group depicted in the image.
+
+For future work, developing a larger corpus of implicit hate-speech examples with high-quality chain-of-thought annotations may help pretrain models to better understand subtle and contextdependent hateful content that requires complex reasoning. In addition, incorporating retrieval augmented generation pipeline to supply relevant external knowledge, such as historical, geopolitical, or stereotype-related context, may further improve the model’s ability to identify implicit hate that is not directly observable from the meme alone.
+
+32
+
+Table 16: Part 2 of the Visualization of cases from GRPO Qwen2.5-VL-7B and ExPO-HM Qwen2.5VL-7B Models.
+
+Case 4 Case 5 Case 6 Meme Ground Truth #Hateful #Hateful #Hateful GRPO Prediction #Benign #Benign #Benign ExPO-HM Prediction #Hateful #Hateful #Hateful The meme appears to The meme depicts a be a humorous take on a political situation, usperson covered in soap The meme makes a ing exaggerated expressuds, which is a comclaim about the exissions and a juxtaposimon reaction to too tence of Muhammad tion of images to convey muchwasher.soapThein texta dish-hubased on a scientific a message. The top imdiscovery, which is a age shows a person with morously suggests that religious and historical a bearded face, possisomeone has added too topic. However, the bly representing a politmuch soap to the dishGRPO Explanation meme does not use any ical figure. The bottom washer again. There are offensive language or image shows a person no elements in the imimagery that would be aiming a shotgun, which age or text that indicate considered hate speech. could be interpreted as any form of discrimiIt is a humorous and a metaphor for taking nation or hate towards speculative statement, back what was claimed. a specific group. The not a direct attack on The use of such imagery meme is a light-hearted any group or individual. and text is not inherently joke about a common hateful but rather a form household issue. of political commentary or satire. The meme makes a false and absurd claim about the existence The meme contains a The meme uses a provocative statement of Muhammad based derogatory term “dishand imagery that could on a fictional scenario washer” in a way that involving human DNA be interpreted as threatcould be seen as dehuening or aggressive in a goat carcass. This is manizing, as it reduces towards muslims. The not a real scientific disExPO-HM Explanation a person to a machine. use of a religious figure This type of language covery and is intended and the phrase “we’re to be humorous at the can be considered dehutaking it back” suggests expense of religious manizing and is often a sense of reclaiming beliefs. The content is used in a derogatory or asserting dominance, not respectful to any manner. which can be seen as a religious group and can form of hate speech. be seen as mocking or degrading.
+
+The meme appears to be a humorous take on a political situation, using exaggerated expressions and a juxtaposition of images to convey a message. The top image shows a person with a bearded face, possibly representing a political figure. The bottom image shows a person aiming a shotgun, which could be interpreted as a metaphor for taking back what was claimed. The use of such imagery and text is not inherently hateful but rather a form of political commentary or satire.
+
+33
+
+Table 17: Visualization of error cases from GRPO Qwen2.5-VL-7B and ExPO-HM Qwen2.5VL-7B Models.
+
+||Error Case 1|Error Case 2|Error Case 3|
+|---|---|---|---|
+|Meme||||
+|Ground Truth|#Hateful|#Hateful|#Hateful|
+|GRPO Prediction|#Benign|#Benign|#Benign|
+|ExPO-HM Prediction|#Benign|#Benign|#Benign|
+|||The meme references a||
+|GRPO Explanation|The
meme
uses
a
play on words where
“potato” is a pun on the
letter “P” in the alpha-
bet.
It is a humorous
and light-hearted joke
that does not contain
any offensive or harmful
content.|tragic event and makes
a statement about the
safety of allowing ev-
eryone into the US. It
does not use any of-
fensive language or im-
agery that would be con-
sidered hateful towards
a specifc group.
The
statement is a general
observation
about
the
balance between safety
and freedom of entry,
which
is
a
topic
of
public debate and con-
cern.
The meme does
not target any particular
group or individual in a|The
meme
does
not
contain any explicit hate
speech
or
derogatory
language
towards
a
specifc group.
The
content is a political
commentary
using
a
metaphor
about
trash
and a garbage collector,
which is a common way
to express dissatisfac-
tion with a group or
situation.
The meme
does
not
target
any
particular race, religion,
nationality, or other pro-
tected characteristics.|
+|||derogatory manner.||
+|ExPO-HM Explanation|The meme does not con-
tain any explicit or im-
plicit content that is con-
sidered hateful.
It is
a humorous statement
about a person’s prefer-
ence for the letter ’P’ in
the alphabet, which is a
common internet meme.|The meme does not con-
tain any explicit hate
speech or slurs.
It
is a factual statement
about the 9/11 attacks
and the subsequent se-
curity measures.
The
language used is neu-
tral and does not express
any bias or prejudice
against any group. The
meme is not intended to
incite hatred or discrim-
ination.|The meme appears to
be a political statement,
likely referencing the at-
tire of the individuals in
the image, which is all
white. The meme does
not contain any explicit
or implicit hate speech
directed at any specifc
group or individual. The
context and intent of the
meme seem to be politi-
cal rather than hateful.|
+
+34
+
diff --git a/open_review/iclr2026_25055.json b/open_review/iclr2026_25055.json
new file mode 100644
index 0000000000000000000000000000000000000000..853ccbec774ae565f1859451ca773a37e6968289
--- /dev/null
+++ b/open_review/iclr2026_25055.json
@@ -0,0 +1,117 @@
+{
+ "paper_id": "iclr2026_25055",
+ "source": "iclr2026",
+ "source_year": 2026,
+ "title": "The Unseen Bias: How Norm Discrepancy in Pre-Norm MLLMs Leads to Visual Information Loss",
+ "abstract": "Multimodal Large Language Models (MLLMs), which couple pre-trained vision encoders and language models, have shown remarkable capabilities. However, their reliance on the ubiquitous Pre-Norm architecture introduces a subtle yet critical flaw: a severe norm disparity between the high-norm visual tokens and the low-norm text tokens. In this work, we present a formal theoretical analysis demonstrating that this imbalance is not a static issue. Instead, it induces an \"asymmetric update dynamic\", where high-norm visual tokens exhibit a ''representational inertia,'' causing them to transform semantically much slower than their textual counterparts. This fundamentally impairs effective cross-modal feature fusion. Our empirical validation across a range of mainstream MLLMs confirms that this theoretical dynamic---the persistence of norm disparity and the resulting asymmetric update rates---is a prevalent phenomenon. Based on this insight, we propose a remarkably simple yet effective solution: inserting a single, carefully initialized LayerNorm layer after the visual projector to enforce norm alignment. Experiments conducted on the LLaVA-1.5 architecture show that this intervention yields significant performance gains not only on a wide suite of multimodal benchmarks but also, notably, on text-only evaluations such as MMLU, suggesting that resolving the architectural imbalance leads to a more holistically capable model.",
+ "rebuttal": "We thank the reviewer for raising these insightful points regarding the impact of data scaling and specific model architectures. We address your comments point-by-point below:\n\n1. **On whether increasing training data alleviates norm discrepancy (Qwen2.5-VL):**\n We respectfully submit that scaling up training data does not necessarily resolve the norm discrepancy. To illustrate this, we cite **Qwen2.5-VL** as a counter-example. According to its technical report, the model was trained on a total of **4.1T multimodal tokens**. Despite this substantial training volume, the norm of image tokens remains high at **56.88**, whereas the text token norm is only **0.86**. This demonstrates that a significant norm discrepancy persists even under massive-scale training settings.\n\n2. **On the Ovis series:**\nWe sincerely appreciate the reviewer for bringing the **Ovis series** to our attention. Following this suggestion, we have conducted experiments on the Ovis models and have updated **Section 4** of the revised manuscript accordingly. Our measurements reveal that a significant norm discrepancy persists within the Ovis architecture, where the average image embedding norm is approximately **64** compared to a text embedding norm of **1.38**. We attribute this substantial gap to the fact that the Ovis visual vocabulary is generated from the **SigLIP2 model**; given that the majority of parameters are preserved during this process [1], the model inherits the inherent high-magnitude characteristics of the original vision encoder.\n3. **On the Kimi and GLM series:**\n We acknowledge that the norm discrepancies in the **Kimi and GLM series** are indeed mitigated. However, we hypothesize that this improvement is attributable to their use of more **complex adapter architectures or specific initialization strategies**, which facilitate better norm balancing even with fewer training tokens (e.g., Kimi utilized **2.3T tokens** according to their report, while GLM did not disclose this detail). Notably, their technical reports do not discuss the motivations or principles behind their adapter designs, nor do they specify the initialization methods used. **Therefore, we believe that this aspect remains a valuable direction for further exploration.** [2][3]\n\n[1] Ovis2.5 Technical Report\n\n[2] Kimi-VL Technical Report\n\n[3] GLM-4.5V and GLM-4.1V-Thinking: Towards Versatile Multimodal Reasoning with Scalable Reinforcement Learning\n\n**Response to Weakness:**\n\nWe appreciate the reviewer's comment regarding the broader context of multimodal learning. However, we respectfully clarify that the primary objective of this paper is to specifically isolate and quantify the impact of **norm discrepancy** on model performance. To achieve this scientific rigor, we adopted a **controlled variable approach**. By deliberately keeping other factors—such as data quality and training strategies—constant, we were able to establish a clear causal link between norm discrepancy and optimization instability. While we agree that factors like dat [...]\n\n**Response to Weakness:**\n\nWe thank the reviewer for these critical comments regarding our theoretical assumptions and the mechanism of our solution. We offer the following clarifications and additional evidence:\n\n\n\n1. **On the validity of theoretical assumptions (Update Magnitude & Distributions):**\n While we acknowledge that assumptions like symmetric distributions are simplifications (which motivated our empirical analysis in **Section 4**), we respectfully argue that the assumption of **uniform update magnitude** is well-grounded in the **Pre-Norm architecture**. In Pre-Norm transforme [...]\n\nWe thank the reviewer for these constructive suggestions regarding model coverage and scale. We address these points as follows:\n\n1. **On Model Coverage (Qwen-VL, InternVL):**\n While we acknowledge the importance of validating on diverse architectures, strictly replicating the pre-training of models like **Qwen-VL** or **InternVL** is unfeasible for academic research due to their **massive and proprietary datasets** (e.g., Qwen utilized 4.1T tokens). Furthermore, simply applying our method to their released pre-trained weights would introduce **numerous uncontrolled confounding variables** [...]\n\nWe sincerely apologize for the presentation flaws in the initial submission, which were due to an oversight. We have meticulously **corrected the typo in the title** and replaced the placeholder subcaptions. We have also refined the captions of the figures to ensure they are informative and self-explanatory.\n\n\nTo verify the generalizability of our solution on modern architectures, we extended our experiments using the **Qwen2.5-Instruct** backbone. While strictly replicating the full Qwen2.5-VL pre-training process would be the ideal approach, it is unfeasible for academic research due to the [...]",
+ "initial_scores": [
+ 4,
+ 8,
+ 4,
+ 8,
+ 6
+ ],
+ "score_mean": 6.0,
+ "score_variance": 4,
+ "score_spread": 4,
+ "score_min": 4,
+ "score_max": 8,
+ "decision": "Accept (Poster)",
+ "rebuttal_validity_ground_truth": true,
+ "meta_review": "",
+ "forum_id": "GVVNG2EMQv",
+ "primary_area": "foundation or frontier models, including LLMs",
+ "n_reviews": 5,
+ "per_review": [
+ {
+ "reviewer": "Reviewer_uNHA",
+ "review_id": "knUlBmqVXM",
+ "scores": {
+ "rating": 4,
+ "soundness": 3,
+ "presentation": 2,
+ "contribution": 2,
+ "confidence": 4
+ },
+ "review_text_chars": 2039,
+ "edit_detected": true,
+ "edit_delta_seconds": 918219,
+ "post_rebuttal_text_signal": false,
+ "score_mentions_in_text": []
+ },
+ {
+ "reviewer": "Reviewer_Wqxf",
+ "review_id": "3ArrkkOfNq",
+ "scores": {
+ "rating": 8,
+ "soundness": 3,
+ "presentation": 3,
+ "contribution": 3,
+ "confidence": 2
+ },
+ "review_text_chars": 2606,
+ "edit_detected": true,
+ "edit_delta_seconds": 946569,
+ "post_rebuttal_text_signal": false,
+ "score_mentions_in_text": []
+ },
+ {
+ "reviewer": "Reviewer_XYFm",
+ "review_id": "AxbId1SrpV",
+ "scores": {
+ "rating": 4,
+ "soundness": 3,
+ "presentation": 2,
+ "contribution": 3,
+ "confidence": 3
+ },
+ "review_text_chars": 3826,
+ "edit_detected": true,
+ "edit_delta_seconds": 1017231,
+ "post_rebuttal_text_signal": false,
+ "score_mentions_in_text": []
+ },
+ {
+ "reviewer": "Reviewer_hK3Y",
+ "review_id": "dHcsuVjkQ4",
+ "scores": {
+ "rating": 8,
+ "soundness": 4,
+ "presentation": 4,
+ "contribution": 4,
+ "confidence": 3
+ },
+ "review_text_chars": 2258,
+ "edit_detected": true,
+ "edit_delta_seconds": 1299687,
+ "post_rebuttal_text_signal": false,
+ "score_mentions_in_text": []
+ },
+ {
+ "reviewer": "Reviewer_K4C3",
+ "review_id": "EtS7jNH4NX",
+ "scores": {
+ "rating": 6,
+ "soundness": 4,
+ "presentation": 2,
+ "contribution": 3,
+ "confidence": 3
+ },
+ "review_text_chars": 1848,
+ "edit_detected": true,
+ "edit_delta_seconds": 2238239,
+ "post_rebuttal_text_signal": false,
+ "score_mentions_in_text": []
+ }
+ ],
+ "any_review_edit_detected": true,
+ "any_post_rebuttal_text_signal": false,
+ "review_score_dimensions": [
+ "rating",
+ "soundness",
+ "presentation",
+ "contribution",
+ "confidence"
+ ]
+}
\ No newline at end of file
diff --git a/open_review/iclr2026_25055.md b/open_review/iclr2026_25055.md
new file mode 100644
index 0000000000000000000000000000000000000000..8f7a5b81cccfc4ceb8545d9da2953ffd3d7fdefa
--- /dev/null
+++ b/open_review/iclr2026_25055.md
@@ -0,0 +1,660 @@
+
+
+## THE UNSEEN BIAS: HOW NORM DISCREPANCY IN - PRE-NORM MLLMS LEADS TO VISUAL INFORMA TION LOSS
+
+Authors withheld for review
+
+## ABSTRACT
+
+Multimodal Large Language Models (MLLMs), which couple pre-trained vision encoders and language models, have shown remarkable capabilities. However, their reliance on the ubiquitous Pre-Norm architecture introduces a subtle yet critical flaw: a severe norm disparity between the high-norm visual tokens and the lownorm text tokens. In this work, we present a formal theoretical analysis demonstrating that this imbalance is not a static issue. Instead, it induces an “asymmetric update dynamic,” where high-norm visual tokens exhibit a “representational inertia,” causing them to transform semantically much slower than their textual counterparts. This fundamentally impairs effective cross-modal feature fusion. Our empirical validation across a range of mainstream MLLMs confirms that this theoretical dynamic—the persistence of norm disparity and the resulting asymmetric update rates—is a prevalent phenomenon. Based on this insight, we propose a remarkably simple yet effective solution: inserting a single, carefully initialized LayerNorm layer after the visual projector to enforce norm alignment. Experiments conducted on the LLaVA-1.5 architecture show that this intervention yields significant performance gains not only on a wide suite of multimodal benchmarks but also, notably, on text-only evaluations such as MMLU, suggesting that resolving the architectural imbalance leads to a more holistically capable model.
+
+## 1 INTRODUCTION
+
+In recent years, Multimodal Large Language Models (MLLMs) have achieved significant progress, demonstrating robust performance across a wide range of cross-modal tasks (Comanici et al., 2025; Hurst et al., 2024; Wu et al., 2024; Bai et al., 2025). A prevailing architectural paradigm involves augmenting a pre-trained Large Language Model (LLM) with visual capabilities by coupling it with a pre-trained Vision Encoder (VE). The VE, typically a Vision Transformer (ViT) (Dosovitskiy et al., 2020), first partitions an image into a sequence of patches and encodes them into a series of feature vectors, or “visual tokens.” To bridge the modality gap, a lightweight adapter module is then introduced. This module’s core function is to act as a translator, projecting these visual tokens into the LLM’s word embedding space, thereby making visual information comprehensible to a model originally designed for text (Zhang et al., 2024).
+
+Despite their powerful general-purpose capabilities, emerging research has revealed inherent limitations in MLLMs. For instance, many models struggle with the perception of fine-grained visual details (Rahmanzadehgervi et al., 2024). Furthermore, within their self-attention mechanisms—the core component for weighing the importance of different inputs—visual tokens often receive less
+
+> _∗_ Email: [email removed]
+
+1
+
+focus than their textual counterparts (Chen et al., 2024a). To address these challenges, we identify a more fundamental problem rooted in the now-ubiquitous Pre-Norm Xiong et al. (2020) architectural design. In this paradigm, normalization is applied before the main computational block ( _F_ ), with the residual update defined as:
+
+**==> picture [264 x 13] intentionally omitted <==**
+
+This architecture is widely adopted because it is easier to train. By leaving the residual path **h**[(] _[l]_[)] unaltered, it creates an identity-like connection that ensures smooth gradient flow, preventing vanishing gradients in deep networks. However, this design has a critical side effect: since the output of the residual sum is never re-normalized, the variance—and consequently, the L2 norm—of the hidden states tends to accumulate and grow with network depth (Kim et al., 2025). As is shown in Figure 1b, it creates a particularly acute imbalance in MLLMs where high-norm visual tokens and lower-norm text tokens are processed together within a shared Pre-Norm LLM backbone—as the visual tokens themselves are generated by a deep, Pre-Norm ViT.
+
+Our formal theoretical analysis reveals a critical dynamic: a fundamental asymmetry in the evolutionary pace of visual and textual representations through the LLM’s layers. We demonstrate that for high-norm visual tokens, the Pre-Norm update mechanism induces a high “representational inertia”, causing them to undergo a much slower semantic transformation. In contrast, lower-norm textual tokens adapt their representations more readily, leading to a mismatched rate of convergence towards a unified multimodal space. Notably, this dynamic divergence arises not from an intrinsic property of visual versus textual information, but from an architectural artifact: the interplay between the Pre-Norm design and the prevailing MLLM paradigm.
+
+Bridging theory and practice, we first confirmed that these norm disparities and asymmetric update rates are prevalent across mainstream open-source VL models. Based on this validation, we propose a targeted intervention: inserting a normalization layer to enforce strict norm alignment. However, practical implementation reveals a critical optimization bottleneck. Since text embeddings in modern LLMs (e.g., Qwen2.5) exhibit extremely low magnitudes, aligning visual tokens to this target requires initializing the normalization gain to a minute value. This naively triggers a _vanishing gradient problem_ , detaching the vision encoder from supervision. To resolve this, we introduce a Global Weight Compensation (GWC) mechanism. This technique decouples the forward norm compression from the backward gradient magnitude, ensuring effective learning even under extreme alignment constraints.
+
+In this work, our key contributions are threefold:
+
+- **Theoretical Identification of Asymmetric Dynamics.** We are the first to identify and theoretically formalize the issue of cross-modal norm disparity in Pre-Norm MLLMs. Our analysis reveals an “asymmetric update dynamic” where high-norm visual tokens exhibit “representational inertia,” leading to a slower semantic evolution compared to text tokens.
+
+- **Extensive Empirical Validation.** We provide extensive empirical validation across a suite of mainstream open-source MLLMs, demonstrating that the predicted norm disparities and asymmetric update rates exist, confirming our theoretical model in practice.
+
+- **A Simple and Robust Solution.** We propose Gradient-Aware Norm Alignment, incorporating a novel WC mechanism. This approach resolves the optimization dilemma caused by extreme norm compression. Our experiments show that this method yields significant performance gains not only on multimodal tasks but also, notably, on text-only benchmarks, indicating a more holistic improvement to the model’s capabilities.
+
+## 2 PRELIMINARIES
+
+Our analysis is grounded in the core components of modern Transformers: self-attention, normalization, and the choice of residual architecture.
+
+**Self-Attention and Normalization Layers.** The self-attention mechanism projects input sequences into queries ( _**Q**_ ), keys ( _**K**_ ), and values ( _**V**_ ) to compute unnormalized dot-product scores
+
+2
+
+**==> picture [119 x 167] intentionally omitted <==**
+
+**==> picture [258 x 176] intentionally omitted <==**
+
+(a) Pre-Norm vs Post-Norm (b) The Norm Mismatch Problem Induced by MLLM Architectures
+
+_**QK**[T]_ . To stabilize training and manage activation scales, normalization is applied. **LayerNorm** (Ba et al., 2016) normalizes features per token, where _**g**_ and _**β**_ are learnable gain and bias parameters:
+
+**==> picture [166 x 26] intentionally omitted <==**
+
+**RMSNorm** (Zhang & Sennrich, 2019) is a computationally efficient variant that omits meancentering and is widely adopted in modern LLMs:
+
+**==> picture [149 x 29] intentionally omitted <==**
+
+**Pre-Norm vs. Post-Norm Residuals.** A Transformer block refines representations via an additive update: _**h**_[(] _[l]_[+1)] = _**h**_[(] _[l]_[)] + ∆ _**h**_[(] _[l]_[)] . The placement of normalization dictates the network’s training dynamics:
+
+- **Post-Norm** : Normalizes after the residual sum, preserving strong representational fidelity but often impeding gradient flow in deep networks:
+
+**==> picture [160 x 13] intentionally omitted <==**
+
+- **Pre-Norm** : Normalizes within the residual branch, leaving the skip connection unaltered:
+
+**==> picture [129 x 13] intentionally omitted <==**
+
+**==> picture [92 x 11] intentionally omitted <==**
+
+This uninterrupted connection guarantees stable gradients. However, because the residual output _**h**_[(] _[l]_[+1)] bypasses normalization, the variance—and consequently the L2 norm—monotonically accumulates with depth (Kim et al., 2025).
+
+Building on these definitions, we formalize our central argument: the Pre-Norm design inherently creates a destructive dynamic imbalance in MLLMs. By injecting features from a deep, pre-trained vision encoder (where norms have already accumulated) into the relatively low-norm embedding space of an LLM, a severe initial L2 norm disparity is established exactly at the cross-modal interface.
+
+- 3 THEORETICAL ANALYSIS OF NORM-INDUCED DECOUPLING EFFECT
+
+In this section, we present a theoretical proof that this initial norm imbalance is not a static issue but rather the catalyst for an accelerated geometric divergence between the two modalities, ultimately suppressing the cross-modal attention signal. The full mathematical derivation is provided in the Appendix.
+
+3
+
+## 3.1 ANALYTICAL FRAMEWORK AND ASSUMPTIONS
+
+Our proof is predicated on a set of simplifying assumptions that capture the core dynamics of the Pre-Norm architecture:
+
+- **Modality Norm Imbalance** : We analyze two cases: the **imbalanced case** ( _k_ = _[∥] ∥_ _**[h] h**_[vis] txt _∥[∥]_ 2[2] _[>]_[ 1][) and] the ideal **balanced case** ( _k_ = 1).
+
+- **Uniform Update Magnitude** : Due to the Pre-Norm design, the magnitude of the update vector, _∥_ ∆ _**h**_[(] _[l]_[)] _∥_ 2, is decoupled from the input norm _∥_ _**h**_[(] _[l]_[)] _∥_ 2. We denote this uniform magnitude as _C_[(] _[l]_[)] for a given layer.
+
+- **Consistent Update Geometry** : We assume the update vector ∆ _**h**_ forms a consistent expected angle, _ϕ_ , with the hidden state _**h**_ for all tokens within a given layer.
+
+- **Random Rotational Direction** : We assume the direction of the rotational component of the update is drawn from a symmetric distribution over the relevant subspace.
+
+## 3.2 ASYMMETRIC ANGULAR VELOCITY AND GEOMETRIC DIVERGENCE
+
+To quantify the rate of directional change, we introduce the concept of **effective angular velocity** . The update vector ∆ _**h**_ can be decomposed into a component parallel to the hidden state _**h**_ (which only scales its length) and a component orthogonal to it (which causes rotation). The effective angular velocity, measured by the angle of pure rotation _θ_ eff, is driven solely by this orthogonal component. As derived in Appendix B, its tangent is given by:
+
+**==> picture [264 x 26] intentionally omitted <==**
+
+A direct and critical consequence of our framework is that this angular velocity becomes asymmetric in the imbalanced case. Because a uniform update magnitude _C_[(] _[l]_[)] is applied to hidden states of different norms, the high-norm vision tokens exhibit a lower effective angular velocity than the low-norm text tokens. Formally, for _∥_ _**h**_ vis _∥_ 2 _> ∥_ _**h**_ txt _∥_ 2, it follows that:
+
+**==> picture [252 x 11] intentionally omitted <==**
+
+This disparity imparts a higher “representational inertia” to visual tokens. In Appendix B, we rigorously prove that this asymmetry leads to an accelerated geometric divergence between the representations of the two modalities, which in turn weakens the underlying similarity signal available to the attention mechanism.
+
+## 3.3 SIGNAL DEGRADATION AND ATTENTION COLLAPSE
+
+The geometric divergence derived above has a specific and destructive consequence for the attention mechanism: it prevents the semantic alignment of related tokens. In a functioning multimodal model, a text query **q** seeks a semantically relevant visual key **k**[+] . Specifically, this retrieval process involves evolving the hidden states into a configuration where their projections are geometrically aligned in the shared metric space, allowing their dot product to be maximized.
+
+However, the “representational inertia” creates a mechanical barrier to this alignment. While the low-norm text token rapidly updates its orientation to query the image, the high-norm visual token updates too slowly to reciprocate. This results in a persistent _angular misalignment_ for semantically related pairs. Mathematically, the dot product signal for a relevant pair, _S_ rel _∝_ **q** _·_ **k**[+] , is fundamentally capped by this geometric lag.
+
+In contrast, for irrelevant pairs (noise), the vectors remain approximately orthogonal in highdimensional space regardless of the inertia. The critical failure mode is thus a collapse in the Signalto-Noise Ratio (SNR). Because the score of the relevant visual token _S_ rel is suppressed while the background noise levels remain static, the attention mechanism—governed by the Softmax operation—loses its ability to sharply distinguish the target visual region. Formally, we prove in Appendix B.4 that for the expected attention scores of semantically relevant pairs:
+
+**==> picture [240 x 13] intentionally omitted <==**
+
+4
+
+This provides a first-principles explanation for the diffuse and unfocused attention maps observed in baseline models (Appendix G). The norm imbalance denies the model the geometric agility required to establish strong correlations, leading to the effective loss of visual information.
+
+- 4 EMPIRICAL VALIDATION: PROBING THE DYNAMICS OF NORM IMBALANCE
+
+Our theoretical analysis provides a formal, first-principles explanation for how norm imbalance can impair multimodal fusion. However, this framework relies on a set of simplifying assumptions to ensure analytical tractability, while the dynamics of large-scale MLLMs are considerably more complex. Therefore, to bridge the gap between our idealized model and real-world behavior, we conduct a series of empirical investigations. These experiments are designed to probe whether the core consequences predicted by our theory—namely, the persistence of norm imbalance and the resulting asymmetric update dynamics—manifest in state-of-the-art Pre-Norm MLLMs. Our investigation is guided by the following research questions:
+
+- **RQ1: Existence of Initial Norm Disparity.** Do visual and text tokens exhibit a significant norm mismatch at the modality interface?
+
+- To answer this, we benchmarked the L2 norms from both sides of the modality interface. For the visual modality, we measured the output norms of four representative vision encoders—CLIP (Radford et al., 2021), SigLIP (Zhai et al., 2023), SigLIP-v2 (Tschannen et al., 2025), and MoonViT (Team et al., 2025). For the text modality, we established a baseline by computing the average L2 norm of the text embedding layers from prominent LLMs: Qwen2.5 (Bai et al., 2025), Qwen3 (Yang et al., 2025), and Llama3.2 (Grattafiori et al., 2024). The analysis of vision encoders was conducted on a dataset of 1000 samples drawn from the MMBench, POPE, and MM-Star benchmarks, which serves as the foundation for all subsequent experiments in this section. The combined results are presented in Table 1.
+
+Table 1: L2 norms and hidden dimensions at the modality interface: Vision Encoder outputs vs. LLM text embeddings (mean _±_ std).
+
+|**Modality**|**Model**|**Dimension**|**Average L**2**Norm**|
+|---|---|---|---|
+||CLIP-ViT-large-patch14|1024|29.30 _±_17.12|
+|Visual|SigLIP-SO-400m-patch14-384
SigLIP2-SO-400m-patch14-384|1152
1152|71.78 _±_13.95
59.37 _±_106.08|
+||MoonViT-SO-400M|1152|72.17 _±_7.13|
+||Qwen2.5-7B-Instruct|3584|0.80|
+|Text|Qwen3-8B-Instruct|4096|1.38|
+||Llama3.2-3B-Instruct|3072|1.09|
+
+As shown in 1, vision encoder output norms are substantially larger than those of text embeddings. This disparity persists because the encoders’ contrastive pre-training—even with a final post-norm—is not designed to align with the norm scale of an external LLM’s embedding space.
+
+- **RQ2: The Efficacy of the Adapter.** Does the projection adapter harmonize the initial norm disparity before the tokens enter the LLM backbone? Within MLLMs, the projector’s role is to map visual tokens into the LLM’s textual embedding space. A critical question is whether this process also serves to align their norms. To investigate this, we analyzed a suite of prominent models: LLaVA-v1.5 (Li et al., 2024a), Qwen-2.5-VL (Bai et al., 2025), KimiVL (Team et al., 2025), and GLM-4.1V (Hong et al., 2025). For each model, we measured the L2 norm of visual tokens both before and after the projector and compared them to the text token norm. The results are summarized in Table 2.
+
+- The results in Table 2 reveal a clear spectrum of effectiveness across different projector designs. While sophisticated projectors like those in KimiVL and GLM-4.1V demonstrate a significant capability for norm compression, a substantial disparity between visual and text token norms persists in all analyzed models. This varied effectiveness highlights a key finding: simply inserting a normalization layer within the projector is not a guaranteed solution. With the exception of
+
+5
+
+Table 2: L2 norms of visual tokens (before and after projector, mean _±_ std) vs. text tokens.
+
+|**Model**|**Visual (Before Proj.)**|**Visual (After Proj.)**|**Text (Embedding)**|
+|---|---|---|---|
+|LLaVA-v1.5|28.71 _±_16.87|39.96 _±_45.58|1.08|
+|Qwen-2.5-VL|3484.24 _±_3882.82|56.88 _±_25.73|0.86|
+|KimiVL|137.93 _±_34.43|4.78 _±_2.21|0.85|
+|GLM-4.1V|47.44 _±_4.58|4.58 _±_2.03|0.80|
+
+LLaVA-v1.5, all other models incorporate internal norm layers, yet their final output norms differ by an order of magnitude.
+
+This leads to a broader discussion on current design practices. We note that these architectural choices and their impact on cross-modal norm alignment are seldom, if ever, addressed in the models’ respective technical reports.
+
+Notably, the systemic inflation of text embedding norms observed in Qwen-2.5-VL and Qwen2-VL (detailed in Appendix C) corroborates that norm discrepancy is a fundamental bottleneck. This phenomenon suggests that the model is forced to inefficiently adjust its static embedding parameters to passively compensate for the massive norm gap at the modality interface.
+
+- **RQ3: Asymmetry in Update Dynamics.** Do visual and textual hidden states exhibit different update rates, as predicted by our theory of asymmetric angular velocity?
+
+This question serves as the most direct empirical test of our theory’s core mechanism. We use the cosine similarity between consecutive layers ( _l −_ 1 and _l_ ) as a proxy for the rate of representational change, a metric conceptually linked to angular velocity. A higher similarity score implies a smaller angular change and thus a slower update rate. We computed this metric for both modalities across all layers to determine if a systematic divergence in their update rates exists, as shown in Figure 3.
+
+The results in Figure 3 confirm our theoretical predictions, revealing a consistent divergence in update rates between visual and text tokens across all analyzed models. Notably, the magnitude of this dynamic asymmetry appears to be directly correlated with the initial norm disparity identified in RQ1 and RQ2. Models with a smaller initial norm gap, such as Kimi-VL and GLM-4.5V, exhibit a less pronounced difference in update rates. Conversely, models with a more severe norm imbalance, like LLaVA-1.5 and Qwen-2.5-VL, demonstrate a significantly larger gap in their update dynamics, providing strong correlational evidence for our theory.
+
+- **RQ4: Norm Discrepancy in Models with Visual Embedding Tables.** Does the significant norm disparity persist in architectures utilizing probabilistic visual tokenization, such as Ovis 2.5 (Lu et al., 2025)?
+
+To verify whether the norm discrepancy and its dynamic consequences persist across different architectural paradigms, we conducted experiments on Ovis-2.5-9B, a model that employs probabilistic visual tokenization. Unlike LLaVA-style models that project continuous features, Ovis utilizes a discrete visual vocabulary derived from a SigLIP2 encoder.
+
+**==> picture [388 x 137] intentionally omitted <==**
+
+**----- Start of picture text -----**
+Inter-Layer Cosine Similarity Analysis
(Ovis-2.5 Similarity)
1.0
3: L22 norms in Ovis 2.5. Note that 0.8
the visual tokens are strictly clustered
(low std), their magnitude remains drastically 0.6
higher than text tokens. 0.4
Modality Source Avg L 2 Norm 0.2
Image Similarity
Visual SigLIP2 Vocab 64.00 0.0 Text Similarity Decoder Layer Index
(Frozen) ± 0.71
Text Vocab 1.38 Figure 2: Layer-wise cosine similarity in Ovis
Text
(Base LLM) ± 0.32 2.5. Despite the massive norm gap (64 vs
0 4 8 12 16 20 24 28 32 36
Cosine Similarity
**----- End of picture text -----**
+
+Table 3: L22 norms in Ovis 2.5. Note that while the visual tokens are strictly clustered (low std), their magnitude remains drastically higher than text tokens.
+
+Figure 2: Layer-wise cosine similarity in Ovis 2.5. Despite the massive norm gap (64 vs 1.38), the update rates of visual and text tokens remain remarkably synchronized.
+
+6
+
+As detailed in Table 3, a substantial static norm discrepancy persists in Ovis 2.5: the visual vocabulary exhibits an average norm of 64.00—likely stemming from its derivation via the SigLIP2 encoder—compared to the text norm of 1.38.
+
+However, Figure 2 indicates that the internal dynamics differ from those observed in continuous projection models. Despite the norm disparity, the update rates (proxied by cosine similarity) for visual and text tokens do not exhibit the marked asymmetry found in LLaVA-style architectures. The curves overlap significantly, suggesting that the discrete tokenization paradigm may inherently mitigate the representational inertia usually associated with high-norm inputs.
+
+**==> picture [396 x 267] intentionally omitted <==**
+
+**----- Start of picture text -----**
+Inter-Layer Cosine Similarity Analysis Inter-Layer Cosine Similarity Analysis
(LLaVA-1.5 Similarity) (Qwen-2.5-VL Similarity)
1.0 1.0
0.8 0.8
0.6 0.6
0.4 0.4
0.2 0.2
Image Similarity Image Similarity
Text Similarity Text Similarity
0.0 0.0
Decoder Layer Index Decoder Layer Index
(a) LLaVA-1.5 (b) Qwen-2.5-VL
Inter-Layer Cosine Similarity Analysis Inter-Layer Cosine Similarity Analysis
(GLM4.1-V Similarity) (Kimi-VL Similarity)
1.0
0.8 0.8
0.6 0.6
0.4 0.4
0.2 0.2
Image Similarity Image Similarity
Text Similarity Text Similarity
0.0 0.0
Decoder Layer Index Decoder Layer Index
(c) GLM4.1-V (d) Kimi-VL
0 4 8 12 16 20 24 28 32 0 3 6 9 12 15 18 21 24 27
0 5 10 15 20 25 30 35 40 0 3 6 9 12 15 18 21 24 27
Cosine Similarity Cosine Similarity
Cosine Similarity Cosine Similarity
**----- End of picture text -----**
+
+Figure 3: Inter-layer cosine similarity of hidden states for visual vs. text tokens.
+
+## 5 EXPERIMENTS
+
+Our theoretical analysis in Section 3 posited a mechanism whereby norm disparity leads to update asymmetry and, consequently, suppressed visual attention. A critical question remains, however: do these internal dynamics translate into a tangible degradation of the model’s downstream capabilities? To investigate this link between internal mechanics and practical performance, we conducted a series of comparative experiments.
+
+## 5.1 METHOD: GRADIENT-AWARE NORM ALIGNMENT
+
+To enforce norm alignment between visual and text tokens, we introduce a straightforward intervention: inserting an additional LayerNorm layer immediately after the visual projector. Crucially, the learnable gain parameter **g** of this layer is initialized to explicitly match the average L2 norm of the text tokens within the LLM’s embedding space.
+
+**Determining the Alignment Target.** First, we compute the target L2 norm, _T_ , by averaging the norms of all non-zero vectors from the language model’s text embedding matrix, **W** _e_ :
+
+**==> picture [331 x 27] intentionally omitted <==**
+
+Based on this target, the gain parameter **g** is initialized to a scalar _g_ init = _T/√D_ .
+
+7
+
+**The Optimization Dilemma.** A critical challenge arises from the intrinsic properties of the LLM’s embedding space. Specifically, pre-trained text embeddings exhibit an **extremely small magnitude** (e.g., _∥_ **w** _∥_ 2 _≈_ 1 even for _D_ = 4096). Consequently, aligning to this target requires initializing **g** to a minute value (e.g., _g_ init _≈_ 0 _._ 01). In standard backpropagation, the gradient flowing back to the vision encoder is scaled by this weight: _∇_ **x** ˆ _L_ = _∇_ **y** _L ⊙_ **g** . Thus, a minute initialization triggers a _vanishing gradient problem_ , detaching the vision encoder from supervision.
+
+**Resolution via Global Weight Compensation.** To resolve this, we propose a **Global Weight Compensation** mechanism implemented via a backward hook. Instead of redefining the gradient simply as identity, we actively rescale the gradients to counteract the dampening effect of the small initialization. Formally, let ¯ _g_ = _D_[1] � _i[|][g][i][|]_[ be the mean magnitude of the gain vector.][We define the] backward pass dynamics as:
+
+**==> picture [303 x 38] intentionally omitted <==**
+
+By multiplying the gradient by the inverse of the global weight magnitude, we effectively cancel out the scaling term ( **g** _·_ ¯ _g[−]_[1] _≈_ 1), restoring the gradient flow to a unit scale while maintaining the precise architectural norm alignment in the forward pass.
+
+## 5.2 EXPERIMENTAL SETUP
+
+Our experiments are conducted within the LLaVA-1.5 architectural framework. Specifically, we employ Llama-3.2-3B-Instruct (Grattafiori et al., 2024) and Qwen2.5-7B-Instruct (Bai et al., 2025) as the base language model and SigLIP-SO400M-Patch14-384 as the vision encoder. Further details are provided in Appendix E.
+
+A detailed list of the evaluation benchmarks is provided in the Appendix E; for all tasks, we employed a greedy decoding strategy.
+
+## 5.3 RESULTS AND ANALYSIS
+
+## 5.3.1 MAIN PERFORMANCE GAINS
+
+The results in Table 4 reveal a backbone-dependent response. For Llama-3.2, simple norm alignment suffices to yield robust improvements. Conversely, Qwen2.5 exhibits the predicted _vanishing gradient_ pathology: the minute initialization stifles gradient flow to the adapter, causing naive alignment to improve only text metrics while stagnating on multimodal tasks. Introducing our Global Weight Compensation (GWC) resolves this optimization bottleneck, unlocking gains across both domains. While this validates that norm alignment is fundamental for holistic model capability, the potential for gradient oscillation with GWC suggests that exploring more stable compression strategies remains a vital direction for future research.
+
+We visualized the attention matrices in Appendix G. The analysis reveals that in the baseline model, text-to-image attention is inappropriately and broadly concentrated on the bottom regions of the image. This suggests a failure in semantic fusion, caused by the positional proximity bias introduced by RoPE’s distance-decay property. In stark contrast, our norm-aligned model’s text-to-image attention correctly converges on the specific image regions that are semantically relevant to the text query. This visual evidence provides direct confirmation that our method successfully restores meaningful cross-modal attention by correcting the underlying dynamic imbalance, thus enabling true feature fusion.
+
+We also analyze the temporal evolution of layer-wise similarity and its convergence behavior during pre-training in Appendix F.
+
+## 5.3.2 ABLATION STUDY: THE CRITICAL ROLE OF INITIALIZATION
+
+To isolate the effect of our proposed initialization strategy, we conducted a crucial ablation study. We compared our method against a baseline where the added LayerNorm layer was initialized with default parameters (gain=1, bias=0). We analyzed the learned parameters immediately after the
+
+8
+
+Table 4: Performance comparison on various benchmarks across different backbones. **w/ Norm (w/o GWC)** denotes norm alignment with naive initialization (leading to gradient vanishing). **w/ Norm (w/ GWC)** denotes our proposed **Global Weight Compensation** mechanism.
+
+|**Model**|**Method**|**MMBench**_dev_|**MM-Star**|**POPE**|**SEED-Bench-2**|**OCRBench**|
+|---|---|---|---|---|---|---|
+||w/o Norm|71.39|37.72|88.14|42.86|40.70|
+|**Llama**|w/ Norm (w/o GWC)|**72.16**(+0.77)|41.19(+3.47)|**88.88**(+0.74)|**47.26**(+4.40)|**45.60**(+4.90)|
+||**w/ Norm (w/ GWC)**|71.82(+0.43)|**41.24**(+3.52)|88.26(+0.12)|45.56(+2.70)|44.10(+3.40)|
+||w/o Norm|76.80|50.34|87.51|56.65|47.00|
+|**Qwen**|w/ Norm (w/o GWC)|75.60(-1.20)|48.08(-2.26)|87.83(+0.32)|**59.51**(+2.86)|47.60(+0.60)|
+||**w/ Norm (w/ GWC)**|**77.66**(+0.86)|**50.58**(+0.24)|**87.87**(+0.36)|58.27(+1.62)|**49.40**(+2.40)|
+|**Model**|**Method**|**ScienceQA**|**AI2D**|**HellaSwag**|**MMLU**|**Avg**|
+||w/o Norm|78.99|60.17|65.96|45.19|59.01|
+|**Llama**|w/ Norm (w/o GWC)|80.83(+1.84)|**63.24**(+3.07)|**66.01**(+0.05)|**53.21**(+8.02)|**62.04**(+3.03)|
+||**w/ Norm (w/ GWC)**|**81.00**(+2.01)|61.85(+1.68)|65.99(+0.03)|51.60(+6.41)|61.27(+2.26)|
+||w/o Norm|82.81|73.74|70.56|71.02|68.49|
+|**Qwen**|w/ Norm (w/o GWC)|82.20(-0.61)|72.70(-1.04)|**73.73**(+3.17)|71.14(+0.12)|68.71(+0.22)|
+||**w/ Norm (w/ GWC)**|**82.93**(+0.12)|**74.61**(+0.87)|71.64(+1.09)|**71.74**(+0.72)|**69.41**(+0.92)|
+
+LLaVA Stage 1 pre-training phase. As shown in Table 5, the parameters of the default-initialized layer remained largely unchanged from their initial state, indicating that the optimization process failed to begin effectively without a reasonable starting point. In contrast, our method shows meaningful parameter updates even after this initial stage. This demonstrates that simply adding a norm layer is insufficient; our targeted initialization is essential to place the parameters in a gradient-rich region of the loss landscape, enabling effective learning.
+
+Table 5: Learned parameters of the added LayerNorm layer after Stage 1 pre-training, comparing default initialization with our proposed strategy.
+
+|**Parameter**|**Metric**|**Default Init**|**Our Init**|
+|---|---|---|---|
+|||**(After Stage 1)**|**(After Stage 1)**|
+|**Gain (g)**|L2Norm
Mean of Abs.|53.2500
0.9609 (_±_0.0005)|2.2812
0.0400 (_±_0.0001)|
+|**Bias (****_β_)**|Mean of Abs.|0.0175 (_±_0.0002)|0.0152 (_±_0.0001)|
+
+## 5.3.3 DIAGNOSTIC ANALYSIS: VERIFYING THE MECHANISM OF IMPROVEMENT
+
+Finally, we performed a diagnostic analysis to investigate whether the performance gains correlate with the mitigation of the dynamic imbalance we identified. We analyzed the internal states of the fully trained model (after Stage 2) comparing the baseline against our norm-aligned method. Figure 4 visualizes two key metrics:
+
+- **Layer-wise L2 Norms (Fig. 4a):** The left panel indicates that our method effectively harmonizes the visual token norms with the text token norms starting from the initial layers and maintains this alignment throughout the model’s depth. In contrast, the baseline model exhibits a marked and persistent norm divergence.
+
+- **Inter-layer Cosine Similarity (Fig. 4b):** The right panel illustrates the corresponding shift in update dynamics. With our intervention, the update rates (proxied by cosine similarity) of visual and text tokens exhibit significantly improved synchronization. This observation suggests that our method successfully mitigates the extreme asymmetry present in the baseline, where the persistently high similarity of visual tokens pointed to substantial “representational inertia.”
+
+Collectively, these findings corroborate our theoretical framework: correcting the static norm disparity appears to alleviate the asymmetric update rates, thereby facilitating the observed improvements in downstream performance.
+
+9
+
+**==> picture [396 x 142] intentionally omitted <==**
+
+**----- Start of picture text -----**
+L2 Norm of Hidden States vs. Layer Depth Hidden State Similarity vs. Layer Depth
w/o Norm - Image Normw/o Norm - Text Norm 1.0
80 w Norm - Image Norm w Norm - Text Norm
0.9
60 0.8
0.7
40
0.6
20 0.5
0.4 w/o Norm w/o Norm - Text Similarity- Image Similarity
w Norm - Image Similarity
0 w Norm - Text Similarity
0 5 10 15 20 25 0 5 10 15 20 25
Layer Layer Transition (L to L+1)
(a) (b)
Average L2 Norm
Average Cosine Similarity
**----- End of picture text -----**
+
+Figure 4: A comparison of token dynamics with and without our norm alignment method. (a) shows the layer-wise L2 norm evolution, while (b) shows the inter-layer cosine similarity, which acts as a proxy for update rate.
+
+## 6 CONCLUSION
+
+Our analysis reveals a critical, previously undiscovered dynamic within Pre-Norm MLLMs: an “asymmetric update.” We have formalized this dynamic theoretically and validated it empirically, showing it to be a direct consequence of the severe norm disparity between visual and text tokens. This analysis demonstrates that the dynamic manifests as “representational inertia” in high-norm visual tokens, fundamentally impairing cross-modal fusion at an architectural level. It was this deep analysis of the mechanism that motivated our targeted solution of enforcing norm alignment via a single LayerNorm with global Weight Compensation. The resulting significant performance gains on both multimodal and, critically, text-only tasks, serve as compelling validation for our core analysis, confirming that resolving this dynamic imbalance unlocks the model’s full potential.
+
+## REFERENCES
+
+- Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, et al. Gpt-4 technical report. _arXiv preprint arXiv:2303.08774_ , 2023.
+
+- Jean-Baptiste Alayrac, Jeff Donahue, Pauline Luc, Antoine Miech, Iain Barr, Yana Hasson, Karel Lenc, Arthur Mensch, Katherine Millican, Malcolm Reynolds, et al. Flamingo: a visual language model for few-shot learning. _Advances in neural information processing systems_ , 35:23716– 23736, 2022.
+
+- Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. Layer normalization. _arXiv preprint arXiv:1607.06450_ , 2016.
+
+- Shuai Bai, Keqin Chen, Xuejing Liu, Jialin Wang, Wenbin Ge, Sibo Song, Kai Dang, Peng Wang, Shijie Wang, Jun Tang, et al. Qwen2. 5-vl technical report. _arXiv preprint arXiv:2502.13923_ , 2025.
+
+- Tianyi Bai, Hao Liang, Binwang Wan, Yanran Xu, Xi Li, Shiyu Li, Ling Yang, Bozhou Li, Yifan Wang, Bin Cui, et al. A survey of multimodal large language model from a data-centric perspective. _arXiv preprint arXiv:2405.16640_ , 2024.
+
+- Junbum Cha, Wooyoung Kang, Jonghwan Mun, and Byungseok Roh. Honeybee: Locality-enhanced projector for multimodal llm. In _Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition_ , pp. 13817–13827, 2024.
+
+- Liang Chen, Haozhe Zhao, Tianyu Liu, Shuai Bai, Junyang Lin, Chang Zhou, and Baobao Chang. An image is worth 1/2 tokens after layer 2: Plug-and-play inference acceleration for large visionlanguage models. In _European Conference on Computer Vision_ , pp. 19–35. Springer, 2024a.
+
+- Lin Chen, Jinsong Li, Xiaoyi Dong, Pan Zhang, Yuhang Zang, Zehui Chen, Haodong Duan, Jiaqi Wang, Yu Qiao, Dahua Lin, et al. Are we on the right way for evaluating large vision-language models? _Advances in Neural Information Processing Systems_ , 37:27056–27087, 2024b.
+
+- Xinlong Chen, Yue Ding, Weihong Lin, Jingyun Hua, Linli Yao, Yang Shi, Bozhou Li, Yuanxing Zhang, Qiang Liu, Pengfei Wan, et al. Avocado: An audiovisual video captioner driven by temporal orchestration. _arXiv preprint arXiv:2510.10395_ , 2025.
+
+- Gheorghe Comanici, Eric Bieber, Mike Schaekermann, Ice Pasupat, Noveen Sachdeva, Inderjit Dhillon, Marcel Blistein, Ori Ram, Dan Zhang, Evan Rosen, et al. Gemini 2.5: Pushing the frontier with advanced reasoning, multimodality, long context, and next generation agentic capabilities. _arXiv preprint arXiv:2507.06261_ , 2025.
+
+- Chaorui Deng, Deyao Zhu, Kunchang Li, Chenhui Gou, Feng Li, Zeyu Wang, Shu Zhong, Weihao Yu, Xiaonan Nie, Ziang Song, et al. Emerging properties in unified multimodal pretraining. _arXiv preprint arXiv:2505.14683_ , 2025.
+
+- Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. An image is worth 16x16 words: Transformers for image recognition at scale. _arXiv preprint arXiv:2010.11929_ , 2020.
+
+- Yingjie Fu, Bozhou Li, Linyi Li, Wentao Zhang, and Tao Xie. The first prompt counts the most! an evaluation of large language models on iterative example-based code generation. _Proceedings of the ACM on Software Engineering_ , 2(ISSTA):1583–1606, 2025.
+
+- Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Alex Vaughan, et al. The llama 3 herd of models. _arXiv preprint arXiv:2407.21783_ , 2024.
+
+- Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. Measuring massive multitask language understanding. _arXiv preprint arXiv:2009.03300_ , 2020.
+
+11
+
+Wenyi Hong, Wenmeng Yu, Xiaotao Gu, Guo Wang, Guobing Gan, Haomiao Tang, Jiale Cheng, Ji Qi, Junhui Ji, Lihang Pan, et al. Glm-4.1 v-thinking: Towards versatile multimodal reasoning with scalable reinforcement learning. _arXiv e-prints_ , pp. arXiv–2507, 2025.
+
+- Aaron Hurst, Adam Lerer, Adam P Goucher, Adam Perelman, Aditya Ramesh, Aidan Clark, AJ Ostrow, Akila Welihinda, Alan Hayes, Alec Radford, et al. Gpt-4o system card. _arXiv preprint arXiv:2410.21276_ , 2024.
+
+- Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In _International conference on machine learning_ , pp. 448–456. pmlr, 2015.
+
+- Aniruddha Kembhavi, Mike Salvato, Eric Kolve, Minjoon Seo, Hannaneh Hajishirzi, and Ali Farhadi. A diagram is worth a dozen images. In _European conference on computer vision_ , pp. 235–251. Springer, 2016.
+
+- Jeonghoon Kim, Byeongchan Lee, Cheonbok Park, Yeontaek Oh, Beomjun Kim, Taehwan Yoo, Seongjin Shin, Dongyoon Han, Jinwoo Shin, and Kang Min Yoo. Peri-ln: Revisiting normalization layer in the transformer architecture. _arXiv preprint arXiv:2502.02732_ , 2025.
+
+- Bo Li, Yuanhan Zhang, Dong Guo, Renrui Zhang, Feng Li, Hao Zhang, Kaichen Zhang, Peiyuan Zhang, Yanwei Li, Ziwei Liu, et al. Llava-onevision: Easy visual task transfer. _arXiv preprint arXiv:2408.03326_ , 2024a.
+
+- Bohao Li, Yuying Ge, Yi Chen, Yixiao Ge, Ruimao Zhang, and Ying Shan. Seed-bench-2-plus: Benchmarking multimodal large language models with text-rich visual comprehension. _arXiv preprint arXiv:2404.16790_ , 2024b.
+
+- Bozhou Li and Wentao Zhang. Id-align: Rope-conscious position remapping for dynamic highresolution adaptation in vision-language models. _arXiv preprint arXiv:2505.21465_ , 2025.
+
+- Junnan Li, Dongxu Li, Silvio Savarese, and Steven Hoi. Blip-2: Bootstrapping language-image pre-training with frozen image encoders and large language models. In _International conference on machine learning_ , pp. 19730–19742. PMLR, 2023a.
+
+- Yifan Li, Yifan Du, Kun Zhou, Jinpeng Wang, Wayne Xin Zhao, and Ji-Rong Wen. Evaluating object hallucination in large vision-language models. _arXiv preprint arXiv:2305.10355_ , 2023b.
+
+- Haotian Liu, Chunyuan Li, Qingyang Wu, and Yong Jae Lee. Visual instruction tuning. _Advances in neural information processing systems_ , 36:34892–34916, 2023.
+
+- Yuan Liu, Haodong Duan, Yuanhan Zhang, Bo Li, Songyang Zhang, Wangbo Zhao, Yike Yuan, Jiaqi Wang, Conghui He, Ziwei Liu, et al. Mmbench: Is your multi-modal model an all-around player? In _European conference on computer vision_ , pp. 216–233. Springer, 2024a.
+
+- Yuliang Liu, Zhang Li, Mingxin Huang, Biao Yang, Wenwen Yu, Chunyuan Li, Xu-Cheng Yin, Cheng-Lin Liu, Lianwen Jin, and Xiang Bai. Ocrbench: on the hidden mystery of ocr in large multimodal models. _Science China Information Sciences_ , 67(12):220102, 2024b.
+
+- Zheng Liu, Hao Liang, Bozhou Li, Tianyi Bai, Wentao Xiong, Chong Chen, Conghui He, Wentao Zhang, and Bin Cui. Synthvlm: High-efficiency and high-quality synthetic data for vision language models. _arXiv preprint arXiv:2407.20756_ , 2024c.
+
+- Pan Lu, Swaroop Mishra, Tanglin Xia, Liang Qiu, Kai-Wei Chang, Song-Chun Zhu, Oyvind Tafjord, Peter Clark, and Ashwin Kalyan. Learn to explain: Multimodal reasoning via thought chains for science question answering. _Advances in Neural Information Processing Systems_ , 35:2507–2521, 2022.
+
+- Shiyin Lu, Yang Li, Qing-Guo Chen, Zhao Xu, Weihua Luo, Kaifu Zhang, and Han-Jia Ye. Ovis: Structural embedding alignment for multimodal large language model. _arXiv preprint arXiv:2405.20797_ , 2024.
+
+12
+
+Shiyin Lu, Yang Li, Yu Xia, Yuwei Hu, Shanshan Zhao, Yanqing Ma, Zhichao Wei, Yinglun Li, Lunhao Duan, Jianshan Zhao, et al. Ovis2. 5 technical report. _arXiv preprint arXiv:2508.11737_ , 2025.
+
+- Lingchen Meng, Jianwei Yang, Rui Tian, Xiyang Dai, Zuxuan Wu, Jianfeng Gao, and Yu-Gang Jiang. Deepstack: Deeply stacking visual tokens is surprisingly simple and effective for lmms. _Advances in Neural Information Processing Systems_ , 37:23464–23487, 2024.
+
+Jianing Qi, Jiawei Liu, Hao Tang, and Zhigang Zhu. Beyond semantics: Rediscovering spatial awareness in vision-language models. _arXiv preprint arXiv:2503.17349_ , 2025.
+
+- Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. In _International conference on machine learning_ , pp. 8748–8763. PmLR, 2021.
+
+- Pooyan Rahmanzadehgervi, Logan Bolton, Mohammad Reza Taesiri, and Anh Totti Nguyen. Vision language models are blind. In _Proceedings of the Asian Conference on Computer Vision_ , pp. 18– 34, 2024.
+
+- Jianlin Su, Murtadha Ahmed, Yu Lu, Shengfeng Pan, Wen Bo, and Yunfeng Liu. Roformer: Enhanced transformer with rotary position embedding. _Neurocomputing_ , 568:127063, 2024.
+
+- Kimi Team, Angang Du, Bohong Yin, Bowei Xing, Bowen Qu, Bowen Wang, Cheng Chen, Chenlin Zhang, Chenzhuang Du, Chu Wei, et al. Kimi-vl technical report. _arXiv preprint arXiv:2504.07491_ , 2025.
+
+- Michael Tschannen, Alexey Gritsenko, Xiao Wang, Muhammad Ferjad Naeem, Ibrahim Alabdulmohsin, Nikhil Parthasarathy, Talfan Evans, Lucas Beyer, Ye Xia, Basil Mustafa, et al. Siglip 2: Multilingual vision-language encoders with improved semantic understanding, localization, and dense features. _arXiv preprint arXiv:2502.14786_ , 2025.
+
+- Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. _Advances in neural information processing systems_ , 30, 2017.
+
+- Xilin Wei, Xiaoran Liu, Yuhang Zang, Xiaoyi Dong, Pan Zhang, Yuhang Cao, Jian Tong, Haodong Duan, Qipeng Guo, Jiaqi Wang, et al. Videorope: What makes for good video rotary position embedding? _arXiv preprint arXiv:2502.05173_ , 2025.
+
+- Zhiyu Wu, Xiaokang Chen, Zizheng Pan, Xingchao Liu, Wen Liu, Damai Dai, Huazuo Gao, Yiyang Ma, Chengyue Wu, Bingxuan Wang, et al. Deepseek-vl2: Mixture-of-experts vision-language models for advanced multimodal understanding. _arXiv preprint arXiv:2412.10302_ , 2024.
+
+- Ruibin Xiong, Yunchang Yang, Di He, Kai Zheng, Shuxin Zheng, Chen Xing, Huishuai Zhang, Yanyan Lan, Liwei Wang, and Tieyan Liu. On layer normalization in the transformer architecture. In _International conference on machine learning_ , pp. 10524–10533. PMLR, 2020.
+
+- An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, et al. Qwen3 technical report. _arXiv preprint arXiv:2505.09388_ , 2025.
+
+- Rowan Zellers, Ari Holtzman, Yonatan Bisk, Ali Farhadi, and Yejin Choi. Hellaswag: Can a machine really finish your sentence? _arXiv preprint arXiv:1905.07830_ , 2019.
+
+- Xiaohua Zhai, Basil Mustafa, Alexander Kolesnikov, and Lucas Beyer. Sigmoid loss for language image pre-training. In _Proceedings of the IEEE/CVF international conference on computer vision_ , pp. 11975–11986, 2023.
+
+- Biao Zhang and Rico Sennrich. Root mean square layer normalization. _Advances in neural information processing systems_ , 32, 2019.
+
+13
+
+Duzhen Zhang, Yahan Yu, Jiahua Dong, Chenxing Li, Dan Su, Chenhui Chu, and Dong Yu. Mmllms: Recent advances in multimodal large language models. _arXiv preprint arXiv:2401.13601_ , 2024.
+
+Zhijian Zhuo, Yutao Zeng, Ya Wang, Sijun Zhang, Jian Yang, Xiaoqing Li, Xun Zhou, and Jinwen Ma. Hybridnorm: Towards stable and efficient transformer training via hybrid normalization. _arXiv preprint arXiv:2503.04598_ , 2025.
+
+14
+
+## A BACKGROUND & RELATED WORK
+
+## A.1 MULTIMODAL LARGE LANGUAGE MODELS
+
+The remarkable success and emergent capabilities of Large Language Models (LLMs) in natural language processing have catalyzed efforts to generalize their powerful abilities to other modalities (Achiam et al., 2023; Hurst et al., 2024; Comanici et al., 2025; Fu et al., 2025; Bai et al., 2025; Yang et al., 2025; Wu et al., 2024; Chen et al., 2025). In the multimodal domain, this trend has spurred the rapid development of Multimodal Large Language Models (MLLMs).
+
+Early explorations in MLLMs, such as Flamingo (Alayrac et al., 2022) and BLIP-2 (Li et al., 2023a), primarily relied on the cross-attention mechanism for modality fusion. A subsequent evolution witnessed a paradigm shift toward a simpler and more efficient approach, an approach popularized by LLaVA (Liu et al., 2023) that has now become the undisputed mainstream. The LLaVA-style architecture eschews the complexity of cross-attention in favor of a more direct solution: it employs a simple projection module, typically a Multi-Layer Perceptron (MLP), to map visual token features directly into the LLM’s word embedding space. Conceptually, this treats the image as a sequence of special “visual words” prepended to the text input, which are then processed uniformly by the LLM in an auto-regressive manner. The simplicity, scalability, and powerful performance of this paradigm—particularly when combined with visual instruction tuning—have firmly established it as the foundational blueprint for the vast majority of today’s advanced MLLMs
+
+Despite the dominance of the LLaVA paradigm, the pursuit of optimal cross-modal fusion remains an active area of research. Investigators continue to experiment with more sophisticated projector designs (Team et al., 2025; Hong et al., 2025; Cha et al., 2024), alternative representation schemes like visual vocabularies (Lu et al., 2024), or deeper fusion strategies (Meng et al., 2024), novel methods for adapting the core architectures of large models for multimodal scenarios (Deng et al., 2025; Wei et al., 2025; Li & Zhang, 2025). Beyond these methods, other researchers have approached the challenge from a data-centric perspective (Bai et al., 2024; Liu et al., 2024c).
+
+## A.2 NORMALIZATION
+
+Normalization layers are a cornerstone of modern deep learning, designed to stabilize the training process and accelerate model convergence. By re-scaling the distribution of activations between layers, normalization effectively mitigates the internal covariate shift problem and ensures smooth gradient propagation in deep networks. While Batch Normalization (BN) (Ioffe & Szegedy, 2015) was a seminal work in this area, its dependency on batch size makes it less suitable for natural language processing tasks with variable sequence lengths. Layer Normalization (LayerNorm) was therefore introduced, performing normalization along the feature dimension independently of the batch, and it quickly became the standard for Transformer architectures (Vaswani et al., 2017). This paradigm was further refined by RMSNorm Zhang & Sennrich (2019), which improves computational efficiency by removing the mean re-centering step while maintaining performance, leading to its widespread adoption in many modern LLMs such as Llama.
+
+A critical design axis in Transformer architectures is the placement of the normalization layer relative to the residual connection, giving rise to the Pre-Norm and Post-Norm paradigms Xiong et al. (2020). The original Post-Norm design applies normalization after the residual addition, which can help preserve strong representational fidelity but is often prone to training instability in deep models. In contrast, the Pre-Norm approach places normalization within the residual branch, greatly improving gradient flow and training stability by maintaining a “clean” skip-connection path. This has made it the de facto standard for large-scale language models. However, the Pre-Norm architecture has a well-documented side effect: because the hidden states on the main path are never re-normalized, their L2 norm tends to accumulate and grow with network depth (Zhuo et al., 2025).
+
+Qi et al. (2025) have also observed the norm discrepancy between visual and textual tokens in MLLMs, they predominantly attribute the resulting performance degradation to the failure of Rotary Positional Embeddings (RoPE (Su et al., 2024) ) in handling high-magnitude features. However, we argue that this attribution overlooks the fundamental mechanics of the Pre-Norm architecture. Specifically, in this paradigm, normalization is applied before the query and key projections; consequently, the vectors processed by RoPE are already normalized.
+
+15
+
+Recently, the community has begun to re-evaluate this classic dichotomy, spurring research into alternative placement strategies. Recent works, like Peri-Norm (Kim et al., 2025) and HybridNorm (Zhuo et al., 2025), have begun to explore combining normalization at different points of the residual connection to merge the benefits of both paradigms. These efforts, however, aim to find a universally optimal static design for unimodal models. In contrast, our work takes a diagnostic perspective: rather than proposing a new general architecture, we are the first to deeply analyze and reveal how the de facto standard Pre-Norm design itself directly induces a destructive dynamic imbalance within the multimodal context.
+
+## B APPENDIX: DETAILED DERIVATION AND PROOFS
+
+This appendix provides the full mathematical derivation for the claims made in Section 3.3. We connect the architectural cause (norm imbalance) to the functional failure (SNR collapse) through a continuous four-step theoretical framework.
+
+## B.1 STEP 1: KINEMATICS — NORM IMBALANCE INDUCES VELOCITY ASYMMETRY
+
+We begin by establishing the kinematic relationship between token norm and update speed. Consider a hidden state **h** updated by a residual vector ∆ **h** . The update can be decomposed into a parallel component (magnitude scaling) and an orthogonal component (direction rotation). The effective angular velocity, _θ_ eff, is determined by the ratio of the orthogonal update to the current state magnitude.
+
+Under the assumptions of **Uniform Update Magnitude** ( _∥_ ∆ **h** _∥≈ C_ ) and **Consistent Update Geometry** , the tangent of the effective rotation angle is derived as:
+
+**==> picture [260 x 24] intentionally omitted <==**
+
+This formula establishes an inverse relationship: **higher norm implies lower angular velocity** . Applying this to the visual ( **h** vis) and text ( **h** txt) tokens, where _∥_ **h** vis _∥≫∥_ **h** txt _∥_ , we arrive at a fundamental velocity asymmetry:
+
+**==> picture [220 x 10] intentionally omitted <==**
+
+**Transition:** Having established that the modalities rotate at significantly different speeds, we next model how this velocity mismatch affects the evolution of their alignment over time.
+
+## B.2 STEP 2: DYNAMICS — RECURSIVE DECAY OF SEMANTIC SIMILARITY
+
+We now derive the law governing the evolution of the cosine similarity between the two modalities across layers. Let Θ[(] _[l]_[)] be the angle between the visual and text hidden states at layer _l_ .
+
+**Theorem 1: Recursive Decay.** Assuming the rotational updates are drawn from a symmetric distribution in the orthogonal subspace, the expected cosine similarity evolves according to:
+
+**==> picture [279 x 14] intentionally omitted <==**
+
+where the retention factor _γ_ eff[(] _[l]_[)][is the product of the cosines of the individual angular velocities:]
+
+**==> picture [249 x 14] intentionally omitted <==**
+
+**Transition:** This theorem tells us that alignment retention depends on the product cos( _θ_ vis) cos( _θ_ txt). The critical question is: Does the extreme asymmetry derived in Step 1 make this retention factor better or worse compared to a balanced scenario?
+
+## B.3 STEP 3: OPTIMIZATION — ASYMMETRY ACCELERATES GEOMETRIC DIVERGENCE
+
+We compare the decay factor _γ_ in the Imbalanced case ( _θ_ vis _≪ θ_ txt) against the Balanced case ( _θ_ vis _≈ θ_ txt).
+
+16
+
+**Lemma 1** (Asymmetry Maximizes Decay Rate) **.** _For a fixed total update potential (represented by the geometric mean of angular velocities), the similarity retention factor γ_ = cos( _θ_ 1) cos( _θ_ 2) _is maximized when velocities are symmetric (θ_ 1 = _θ_ 2 _). Conversely, asymmetry strictly decreases γ._
+
+_Proof._ Maximizing _γ_ is equivalent to minimizing 1 _/γ_[2] = (1 + tan[2] _θ_ 1)(1 + tan[2] _θ_ 2). By the AM-GM inequality, for a fixed product of tangents, the sum tan[2] _θ_ 1 + tan[2] _θ_ 2 is minimized when tan _θ_ 1 = tan _θ_ 2. Thus, the asymmetric condition _∥_ **h** vis _∥≫∥_ **h** txt _∥_ forces the system into a suboptimal regime where similarity decays strictly faster than in the balanced case.
+
+**Definition of the Lag Angle** ∆ _ϕ_ **.** Since the similarity decays faster in the imbalanced case, the final angle between the vectors will be strictly larger. We define this accumulated geometric deficit as the **Lag Angle** :
+
+∆ _ϕ_ = Θimb _−_ Θbal _>_ 0 (11)
+
+**Transition:** We have proven that visual tokens lag behind the optimal alignment direction by ∆ _ϕ_ . Finally, we must determine if the attention mechanism can tolerate this lag or if it leads to functional failure.
+
+B.4 STEP 4: FROM GEOMETRIC MISALIGNMENT TO SIGNAL-TO-NOISE RATIO COLLAPSE
+
+Finally, we connect the geometric lag ∆ _ϕ_ derived in Step 3 to the failure of the attention mechanism. We analyze the interaction between the learnable projection matrices **W** = **W** _Q[T]_ **[W]** _[K]_[and the] degraded input statistics.
+
+**1. Spectral Degradation of the Semantic Signal.** The expected attention score is given by the bilinear form E[ _S_ ] = Tr( **WC** _vu_ ), where **C** _vu_ = E[ **vu** _[T]_ ] is the cross-covariance matrix of the inputs. In the Imbalanced case, the geometric lag ∆ _ϕ_ causes the visual vector **v** imb to deviate from the optimal alignment direction. By performing an orthogonal decomposition along the signal direction (aligned with the text vector **u** ), we have:
+
+**v** imb = cos(∆ _ϕ_ ) **v** signal + sin(∆ _ϕ_ ) **v** _⊥_ (12)
+
+Since the orthogonal component **v** _⊥_ contains no correlation with the query, the singular values (spectral energy) of the covariance matrix are dampened:
+
+**==> picture [241 x 11] intentionally omitted <==**
+
+**2. The Fundamental Spectral Upper Bound.** We consider the maximization of the attention score under the constraint that the model parameters must remain finite. Let the magnitude of the projection matrix be bounded by some fixed radius _R_ (i.e., _∥_ **W** _∥F ≤ R_ ). We invoke **Von Neumann’s Trace Inequality** , which states that the trace of a matrix product is bounded by the dot product of their singular values: Tr( **WC** ) _≤_[�] _σi_ ( **W** ) _σi_ ( **C** ). Applying this, the maximum achievable expected score is strictly limited by the spectrum of the input covariance:
+
+**==> picture [330 x 21] intentionally omitted <==**
+
+Since ∆ _ϕ >_ 0, we have cos(∆ _ϕ_ ) _<_ 1. This proves a structural theorem: **For any fixed capacity _R_ of the projection layers, the norm-induced geometric lag strictly reduces the maximum extractable attention score.** The model cannot recover the lost signal energy without unboundedly increasing its weights.
+
+**3. Signal-to-Noise Ratio (SNR) Collapse.** The attention mechanism’s efficacy relies on the gap between signal and noise:
+
+**==> picture [256 x 12] intentionally omitted <==**
+
+- **Signal:** As proven above, the maximum signal is capped by the factor cos(∆ _ϕ_ ).
+
+- **Noise:** For irrelevant tokens, the vectors are initialized to be approximately orthogonal (Θirrel _≈_ 90 _[◦]_ ). The geometric divergence acts as an isotropic random walk, introducing no systematic bias. Thus, the noise floor remains constant: E[ _S_ irrel[imb][]] _[ ≈]_[0][.]
+
+Consequently, the Signal-to-Noise Ratio collapses (Gapimb _<_ Gapbal). This reduced gap forces the Softmax function to produce a higher-entropy, more uniform distribution, mathematically explaining the diffuse attention maps observed in experiments.
+
+17
+
+## C EMPIRICAL ANALYSIS OF EMBEDDING NORM SHIFTS
+
+To investigate the impact of multimodal training on the embedding space, we analyzed the statistical properties of token embeddings across the Qwen2 and Qwen2.5 model families. We systematically compared the pre-trained pure language models (Base) against their visual-language counterparts (VL).
+
+## C.1 GLOBAL STATISTICS
+
+Table 6 presents the global statistics (Mean and Standard Deviation) of the embedding norms. We observe that while Qwen2-VL maintains a mean norm similar to its base model, Qwen2.5-VL exhibits a noticeable systemic inflation (Mean: 0 _._ 80 _→_ 0 _._ 90), indicating a broader shift in the embedding distribution during multimodal alignment.
+
+Table 6: Comparison of global embedding statistics (L2 Norm Mean and Standard Deviation) between Base (Pure Text) and VL (Multimodal) models.
+
+|**Qwen2 Family**(7B)
**Metric**
**Base**
**VL**|**Qwen2.5 Family**(7B)
**Base**
**VL**|
+|---|---|
+|||
+|Mean Norm (_µ_)
0.6908
0.6820
Std. Deviation (_σ_)
0.1610
0.1588|0.8031
0.8965
0.1801
0.1821|
+
+## C.2 DETAILED ANALYSIS OF TOP-NORM TOKENS
+
+Tables 7 and 8 detail the Top-10 tokens with the highest L2 norms. The comparison reveals a fundamental structural change in the embedding space:
+
+1. **Base Models (Pure Text):** In pure language models, the tokens with the highest norms are typically rare subwords or specific syntactic markers (e.g., ’´aveis’, ’"=>’). The maximum norm is relatively contained ( _≈_ 1 _._ 0 _−_ 1 _._ 1).
+
+2. **VL Models (Multimodal):** Upon multimodal training, the visual boundary tokens (<|vision ~~s~~ tart|>, <|vision ~~e~~ nd|>) emerge as extreme outliers. In Qwen2-VL, they reach norms of _≈_ 2 _._ 4, far exceeding the previous maximums. This explicitly confirms that the model allocates significantly larger magnitudes to visual anchors to accommodate the high-norm visual features.
+
+Table 7: **Qwen2 Family Comparison:** Top-10 tokens by L2 norm. Note how the visual tokens (in VL) far exceed the magnitude of the outliers in the Base model.
+
+|**Rank**|**Qwen2-7B-Instruct (Base)**
**Token**
**L**2 **Norm**|**Qwen2-VL-7B-Instruct (VL)**
**Token**
**L**2 **Norm**|
+|---|---|---|
+||||
+|**1**
**2**
**3**
4
5
6
7
8
9
10|’´aveis’
1.0273
’"=>’
0.9741
>();_\\_n_\\_n
0.9258
’s’
0.9072
’is’
0.9004
’an’
0.8999
’le’
0.8994
’ed’
0.8979
’ .’
0.8965
’ar’
0.8965|**<|vision**
~~**s**~~**tart|>**
**2.4590**
**<|vision**
~~**e**~~**nd|>**
**2.3320**
’´aveis’
1.0049
’"=>’
0.9458
’s’
0.9067
>();_\\_n_\\_n
0.9009
’ .’
0.8999
’is’
0.8989
’an’
0.8975
’le’
0.8965|
+
+## D DETAILED IMPLEMENTATION OF NORM ALIGNMENT
+
+Our norm alignment layer, denoted as GlobalWeightCompensatedLayerNorm, is designed to enforce norm compression in the forward pass while preserving gradient magnitude in the back-
+
+18
+
+Table 8: **Qwen2.5 Family Comparison:** Top-10 tokens by L2 norm. In the Base model, visual tokens are initialized to zero or unused. In the VL model, they become the largest vectors.
+
+|**Rank**|**Qwen2.5-7B-Instruct (Base)**
**Token**
**L**2 **Norm**|**Qwen2.5-VL-7B-Instruct (VL)**
**Token**
**L**2 **Norm**|
+|---|---|---|
+||||
+|**1**
**2**
**3**
4
5
6
7
8
9
10|’´aveis’
1.1201
’,’
1.1025
’is’
1.0322
’s’
1.0303
’an’
1.0293
’en’
1.0283
’(Chinese Char)’
1.0264
’ out’
1.0264
’on’
1.0254
’le’
1.0254|**<|vision**
~~**e**~~**nd|>**
**2.1523**
**<|vision**
~~**s**~~**tart|>**
**1.4004**
’,’
1.2764
’ unb’
1.2158
’´aveis’
1.1748
’:_\\_n_\\_n’
1.1670
’en’
1.1670
’s’
1.1650
’(Chinese Char)’
1.1650
’(Chinese Char)’
1.1650|
+
+ward pass. Unlike standard LayerNorm, we introduce a gradient compensation mechanism to handle the extremely small initialization of the gain parameter.
+
+**Forward Pass (Standard LayerNorm).** Given the input vector **x** _∈_ R _[D]_ (representing the projected visual tokens), we first compute the mean _µ_ and variance _σ_[2] across the feature dimension:
+
+**==> picture [281 x 30] intentionally omitted <==**
+
+The input is then normalized and transformed by the affine parameters, the learnable gain **g** and bias _**β**_ :
+
+**==> picture [267 x 21] intentionally omitted <==**
+
+Crucially, consistent with our method description in Section 5.1, **g** is initialized to a small scalar value (derived from the target text norm _T_ ) to ensure immediate alignment, while _**β**_ is initialized to zero.
+
+**Backward Gradient Compensation.** Since **g** is initialized to a minute value, standard backpropagation would attenuate the gradients flowing back to the input **x** ˆ (and consequently to the vision normalized tensorencoder) by a factor **x** ˆ to dynamically rescale the gradients.proportional to _∥_ **g** _∥_ . To prevent this, we register a backward hook on the
+
+The compensation process proceeds as follows during training:
+
+1. **Global Gain Aggregation:** We compute the mean absolute value of the gain parameter vector **g** to obtain a global scaling scalar:
+
+**==> picture [215 x 30] intentionally omitted <==**
+
+2. **Safety Clamping:** To ensure numerical stability and prevent division by zero (in the rare event of parameter collapse), we clamp the scalar with a minimal threshold _δ_ = 10 _[−]_[3] :
+
+**==> picture [221 x 12] intentionally omitted <==**
+
+3. **Compensation Factor Application:** The gradient _∇_ **x** ˆ _L_ flowing backwards through the normalization operation is scaled by the inverse of this scalar:
+
+**==> picture [234 x 23] intentionally omitted <==**
+
+This mechanism effectively decouples the forward scale (controlled by **g** ) from the backward gradient scale (restored to _≈_ 1 _._ 0). By preserving the gradient magnitude, we ensure that the vision encoder receives effective supervision signals from the very first training iteration, despite the severe norm compression applied at the interface.
+
+19
+
+## E TRAINING DETAILS
+
+## E.1 EXPERIMENTAL SETUP
+
+Our experiments are conducted within the LLaVA-1.5 architectural framework. To ensure a comprehensive evaluation, we employ two distinct base language models: Llama-3.2-3B-Instruct and Qwen2.5-7B-Instruct. Both models are coupled with SigLIP-SO400M-Patch14-384 as the vision encoder. We follow a unified two-stage training protocol for both backbones: the first stage consists of one epoch of feature alignment pre-training on the LLaVA-558K dataset, using a learning rate of 1e-3, a per-device batch size of 2, and 2 gradient accumulation steps, resulting in a global batch size of 256. This is followed by one epoch of full-model instruction tuning on the LLaVA-NeXT dataset, for which the learning rate is decreased to 1e-5 for the language model and 2e-6 for the vision encoder, with a per-device batch size of 1 and 4 gradient accumulation steps, corresponding to a global batch size of 128. Across both stages, we utilize a cosine learning rate scheduler with a warmup ratio of 0.03 and set weight decay to 0. Notably, we do not employ dynamic high-resolution strategies; all images are uniformly resized to 384 _×_ 384. To ensure reproducibility, we set the random seed to 42 for all experiments.
+
+To comprehensively evaluate the model’s performance, we assessed its capabilities on both multimodal and text-only tasks. The model’s multimodal abilities were benchmarked against a comprehensive suite of benchmarks, including MMBench-EN (Liu et al., 2024a), MM-Star (Chen et al., 2024b), OCRBench (Liu et al., 2024b), SEED-Bench-2-Plus (Li et al., 2024b), ScienceQA (Lu et al., 2022), AI2D (Kembhavi et al., 2016), and POPE (Li et al., 2023b). Furthermore, to gauge its core language understanding and commonsense reasoning skills, we evaluated its performance on the HellaSwag (Zellers et al., 2019) and MMLU (Hendrycks et al., 2020) benchmarks.
+
+## F TRAINING DYNAMICS
+
+To further probe the temporal evolution of these dynamics, we tracked the layer-wise cosine similarity of image and text tokens across varying checkpoints during the multimodal pre-training phase (Figure 5a) and 5b). As shown in Figure 5a, without the additional normalization layer, visual tokens exhibit persistently high inter-layer similarity. This pattern remains virtually static throughout the training process, confirming that the ”representational inertia” induced by norm discrepancy is a persistent barrier, effectively locking visual features against semantic transformation from the very beginning. In contrast, our method (Figure 5b) initiates with a significantly lower visual similarity, indicating active feature updates. Interestingly, as training progresses, we observe a gradual upward trend in similarity, which correlates with the optimization of the added LayerNorm’s gain parameter ( **g** ). Crucially, as observed in the figure, this upward trend has converged. This phenomenon implies that perfectly consistent update rates between image and text tokens might not be optimal, suggesting that a certain degree of divergence between the two could be appropriate. However, this is fundamentally distinct from the significant update inconsistency driven by the massive initial norm discrepancy observed in the baseline.
+
+## G APPENDIX: ATTENTION VISUALIZATION
+
+In each pair of heatmaps, the bottom image shows the model with norm applied, while the top image shows the baseline model. The caption for each pair corresponds to the text query used.
+
+20
+
+**==> picture [378 x 145] intentionally omitted <==**
+
+**----- Start of picture text -----**
+Layer-wise Similarity Analysis Across Checkpoints (w/o Norm)
Image Token Similarity Evolution Text Token Similarity Evolution
1.0 1.0
0.8 0.8
0.6 0.6
0.4 0.4
0.2 Checkpoints 0.2
Step 400
Step 800
Step 1200
Step 1600
Step 2000
0.0 0 3 6 9 12 15 18 21 24 27 0.0 0 3 6 9 12 15 18 21 24 27
Decoder Layer Index Decoder Layer Index
Cosine Similarity Cosine Similarity
**----- End of picture text -----**
+
+(a) Evolution of layer-wise cosine similarity across different checkpoints during the multimodal pre-training phase (w/o Norm).
+
+**==> picture [378 x 160] intentionally omitted <==**
+
+**----- Start of picture text -----**
+Layer-wise Similarity Analysis Across Checkpoints (w/ Norm)
Image Token Similarity Evolution Text Token Similarity Evolution
1.0 1.0
0.8 0.8
0.6 0.6
0.4 0.4
0.2 Checkpoints 0.2
Step 400
Step 800
Step 1200
Step 1600
Step 2000
0.0 0 3 6 9 12 15 18 21 24 27 0.0 0 3 6 9 12 15 18 21 24 27
Decoder Layer Index Decoder Layer Index
(b)
Cosine Similarity Cosine Similarity
**----- End of picture text -----**
+
+Figure 5: Evolution of layer-wise cosine similarity across different checkpoints during the multimodal pre-training phase (w Norm).
+
+21
+
+**==> picture [318 x 65] intentionally omitted <==**
+
+**==> picture [318 x 65] intentionally omitted <==**
+
+(a) Which mood does this image convey?
+
+**==> picture [318 x 66] intentionally omitted <==**
+
+**==> picture [318 x 66] intentionally omitted <==**
+
+(b) What is the main subject of the flyer seen in the image?
+
+**==> picture [318 x 62] intentionally omitted <==**
+
+**==> picture [318 x 62] intentionally omitted <==**
+
+**==> picture [318 x 160] intentionally omitted <==**
+
+**----- Start of picture text -----**
+(c) How many different ¨pointedkinds are there? [¨]
(d) What type of family is shown in the image
**----- End of picture text -----**
+
+22
+
+**==> picture [318 x 65] intentionally omitted <==**
+
+**==> picture [318 x 64] intentionally omitted <==**
+
+(a) What emotion is portrayed in this image?
+
+**==> picture [318 x 62] intentionally omitted <==**
+
+**==> picture [318 x 62] intentionally omitted <==**
+
+(b) How many people are performing on the stage?
+
+**==> picture [318 x 62] intentionally omitted <==**
+
+**==> picture [318 x 61] intentionally omitted <==**
+
+**==> picture [122 x 9] intentionally omitted <==**
+
+**----- Start of picture text -----**
+(c) which image is more colorful?
**----- End of picture text -----**
+
+**==> picture [318 x 62] intentionally omitted <==**
+
+**==> picture [318 x 62] intentionally omitted <==**
+
+(d) What is the main focus of the image?
+
+23
+
diff --git a/open_review/iclr2026_25063.json b/open_review/iclr2026_25063.json
new file mode 100644
index 0000000000000000000000000000000000000000..5081f5923015e1ec4add45a2554305689d138724
--- /dev/null
+++ b/open_review/iclr2026_25063.json
@@ -0,0 +1,100 @@
+{
+ "paper_id": "iclr2026_25063",
+ "source": "iclr2026",
+ "source_year": 2026,
+ "title": "MSearcher: Self-Reflective Search Agent Empowered by Monte Carlo Tree Search Based Data Synthesis",
+ "abstract": "Recent advances in reinforcement learning (RL) have enabled large language models (LLMs) to perform multi-turn chain-of-thought (CoT) reasoning with tool use, where web search serves as the most critical tool for answering complex questions. However, most existing methods apply RL directly to off-the-shelf models without a supervised fine-tuning (SFT) cold start, resulting in unstable training and limited tool invocations. This difficulty is exacerbated by the high cost of curating long reasoning trajectories, which are expensive to annotate and prone to factual drift. We propose MSearcher, a two-stage trained search agent that combines reflective thinking with robust tool use for complex reasoning. A central contribution is an efficient data construction framework based on Monte Carlo Tree Search (MCTS), which produces self-reflective reasoning trajectories for the SFT cold start. This framework leverages both correct and flawed rollouts to generate natural and diverse reasoning data. We adopt a two-stage pipeline, first applying SFT with our constructed data and then further training the model with RL, achieving substantial improvements on multi-hop question answering: 67.6\\% on HotpotQA and 52.0\\% on Frames. These results highlight the importance of high-quality SFT in stabilizing RL and equipping LLMs with robust long-horizon reasoning capabilities.",
+ "rebuttal": "### Follow-up Message\nHello, this is a follow-up message in case you haven’t had a chance to look at our earlier response. If there are any remaining questions or points we can clarify, we’d be happy to address them. Thanks again for your time!\n\n### Follow-up Message\nHello, this is a follow-up message in case you haven’t had a chance to look at our earlier response. If there are any remaining questions or points we can clarify, we’d be happy to address them. Thanks again for your time!\n\n### Official Reply\nYou are correct about Table 3, and we appreciate you pointing this out. We will state more explicitly that the experiment removes the reflection steps within each trajectory while keeping the correct reasoning steps. This issue arises because we break each trajectory into single-turn dialogues during SFT training; thus, in the original paper, “examples” refer to these training instances.\n\nRegarding your follow-up question on retrieval discrepancy, we believe the essential difference lies in the relevance and reliability of the retrieved paragraphs. During SFT data constructi [...]\n\n### Official Reply\nThank you for your valuable suggestions. We reorganize your questions as follows:\n\n### **Q1: regarding the issue of lacking a deeper analysis of underlying reasons for the observed improvements.**\n\nIn addition to reporting overall performance gains, our paper also provides empirical evidence that helps explain why our method leads to these improvements, and we are happy to further clarify this analysis.\n\nOur explanation can be understood from two complementary perspectives:\n\n1. **Training dynamics**.\nWe observe a clear increase in tool-call frequency during training, mainly [...]\n\n### Official Reply\nWe appreciate your valuable suggestions, and we reorganize your questions as follows:\n\n### **Q1: regarding the issue of lacking analysis of convergence and sampling efficiency of MCTS.**\n\nWe thank the reviewer for raising this point that the paper did not discuss it explicitly.\n\nIt is important to note that our use of MCTS differs from standard convergence-focused MCTS. Here, MCTS is used for data sampling, not for optimizing a score to convergence. In fact, we aim for diverse decompositions and rollouts rather than convergence to a single high-scoring path. In practice, we [...]\n\n### Official Reply\nThank you for your valuable suggestions, we reorganize your concerns as follows:\n\n### **Q1: Regarding the question of why we adopt the binary decomposition.**\n\nIn principle, n-ary or dynamic decomposition is feasible, but it greatly increases system complexity and the probability of errors, potentially making it difficult to sample correct responses. In our design, we aim for simple expansion operations that can be reliably executed by general chat models without relying on specialized reasoning models—for instance, we use GLM-4-air for decomposition.\n\nIf we were to use n-ar [...]\n\n### Official Reply\nYour suggestions are greatly appreciated. We reorganize your questions as follows:\n\n### **Q1: Regarding the question of why use QwQ-32b.**\n\nAccording to results reported in the ASearcher paper, direct generation with QwQ-32B performs worse on these datasets than RL-based baselines and MSearcher.\n\nWe are sorry that the statement and references in the paper were inaccurate. By “expert large reasoning models,” we primarily refer to very large and expensive models such as claude-4 or openai o1. In standard rejection sampling, generating high-quality search-augmented trajectories [...]\n\n### Official Reply to Reviewer 7uZ4\nThank you for the follow-up comments. We agree that MCTS and DAPO have been used in some prior works; however, our contribution does not lie in reintroducing these techniques, but in adapting them to the specific failure modes of LLM-based complex QA. Our work identifies a concrete limitation—LLMs’ tendency to generate short, shallow search chains—and proposes a targeted solution: a long reasoning–chain generation strategy for cold-start SFT. Its integration with an MCTS-based search strategy further provides significant gains in sampling efficiency and natu [...]",
+ "initial_scores": [
+ 4,
+ 4,
+ 4,
+ 6
+ ],
+ "score_mean": 4.5,
+ "score_variance": 1,
+ "score_spread": 2,
+ "score_min": 4,
+ "score_max": 6,
+ "decision": "",
+ "rebuttal_validity_ground_truth": null,
+ "meta_review": "",
+ "forum_id": "vJBMYahZY5",
+ "primary_area": "reinforcement learning",
+ "n_reviews": 4,
+ "per_review": [
+ {
+ "reviewer": "Reviewer_RG1c",
+ "review_id": "3zB7qa4SOb",
+ "scores": {
+ "rating": 4,
+ "soundness": 3,
+ "presentation": 3,
+ "contribution": 2,
+ "confidence": 4
+ },
+ "review_text_chars": 2539,
+ "edit_detected": true,
+ "edit_delta_seconds": 945165,
+ "post_rebuttal_text_signal": false,
+ "score_mentions_in_text": []
+ },
+ {
+ "reviewer": "Reviewer_7uZ4",
+ "review_id": "vgew6EIXXr",
+ "scores": {
+ "rating": 4,
+ "soundness": 2,
+ "presentation": 2,
+ "contribution": 2,
+ "confidence": 4
+ },
+ "review_text_chars": 2362,
+ "edit_detected": true,
+ "edit_delta_seconds": 965785,
+ "post_rebuttal_text_signal": false,
+ "score_mentions_in_text": []
+ },
+ {
+ "reviewer": "Reviewer_b45F",
+ "review_id": "B3xOe4Ynfl",
+ "scores": {
+ "rating": 4,
+ "soundness": 3,
+ "presentation": 2,
+ "contribution": 2,
+ "confidence": 4
+ },
+ "review_text_chars": 2855,
+ "edit_detected": true,
+ "edit_delta_seconds": 1109359,
+ "post_rebuttal_text_signal": false,
+ "score_mentions_in_text": []
+ },
+ {
+ "reviewer": "Reviewer_xeVA",
+ "review_id": "jWJBlQwMML",
+ "scores": {
+ "rating": 6,
+ "soundness": 3,
+ "presentation": 3,
+ "contribution": 3,
+ "confidence": 3
+ },
+ "review_text_chars": 3661,
+ "edit_detected": true,
+ "edit_delta_seconds": 1334794,
+ "post_rebuttal_text_signal": false,
+ "score_mentions_in_text": []
+ }
+ ],
+ "any_review_edit_detected": true,
+ "any_post_rebuttal_text_signal": false,
+ "review_score_dimensions": [
+ "rating",
+ "soundness",
+ "presentation",
+ "contribution",
+ "confidence"
+ ]
+}
\ No newline at end of file