On the Step Length Confounding in LLM Reasoning Data Selection
Authors: Bing Wang, Rui Miao, Chen Shen, Shaotian Yan, Kaiyuan Liu, Ximing Li, Xiaosong Yuan, Sinan Fan, Jun Zhang, Jieping Ye
Organizations: College of Computer Science and Technology, Jilin University · Key Laboratory of Symbolic Computation and Knowledge Engineering, MoE, Jilin University · Alibaba Cloud Computing · School of Artificial Intelligence, Jilin University · College of Computer Science and Technology, Zhejiang University · RIKEN Center for Advanced Intelligence Project · Department of Mathematics, University of Michigan
Large reasoning models have recently demonstrated strong performance on complex tasks that require long chain-of-thought reasoning, through supervised fine-tuning on large-scale and high-quality datasets. To construct such datasets, existing pipelines generate long reasoning data from more capable Large Language Models (LLMs) and apply manually heuristic or naturalness-based selection methods to filter high-quality samples. Despite the proven effectiveness of naturalness-based data selection, which ranks data by the average log probability assigned by LLMs, our analysis shows that, when applied to LLM reasoning datasets, it systematically prefers samples with longer reasoning steps (i.e., more tokens per step) rather than higher-quality ones, a phenomenon we term step length confounding. Through quantitative analysis, we attribute this phenomenon to low-probability first tokens in reasoning steps; longer steps dilute their influence, thereby inflating the average log probabilities. To address this issue, we propose two variant methods: ASLEC-DROP, which drops first-token probabilities when computing average log probability, and ASLEC-CASL, which applies a causal debiasing regression to remove the first tokens' confounding effect. Experiments across four LLMs and five evaluation benchmarks demonstrate the effectiveness of our approach in mitigating the step length confounding problem.
Figures & tables
Figure 1: Step length distribution of data samples selected and unselected by different naturalness-based data selection methods.
Figure 2: Relationship between step - level log probability and step length.
Table 1: Experimental results on LIMO-v2 ( Ye et al., 2025 ) . We generate five responses per source LLM, and select five responses from these ones (select 4k responses from 16k data). The bold results represent the best scores.
Method
Acc.
Pass@4
Acc.
Pass@4
Qwen3-4B-Base
Qwen3-4B-Insruct
GRACE
28.15
60.10
50.37
75.75
Local LP
29.16
61.61
52.14
77.27
Aslec-drop
34.97
65.65
58.83
83.33
Aslec-casl
35.35
66.66
61.23
84.34
Method
Acc.
Pass@4
Acc.
Pass@4
Table 2: Experimental performance on GPQA .
Figure 4: Step length distributions for data selected versus unselected by our two proposed variant methods.
Qwen
Method
AIME24
AIME25
MATH500
OlympicB
Avg.
Accuracy
Pass@4
Accuracy
Pass@4
4B-Base
+ GRACE ( Zhang et al., 2025 )
30.00
60.00
29.16
36.66
77.20
42.50
43.82
+ Local LP ( Just et al., 2025 )
32.50
63.33
30.00
40.00
77.80
43.08
45.22
+ Aslec-drop (ours)
41.66 ↑ 9.16
73.33 ↑ 10.00
30.83 ↑ 0.83
43.33 ↑ 3.33
84.00 ↑ 6.20
47.20 ↑ 4.12
46.48
+ Aslec-casl (ours)
46.66 ↑ 14.16
73.33 ↑ 10.00
30.83 ↑ 0.83
46.66 ↑ 6.66
84.60 ↑ 6.80
48.23 ↑ 5.15
47.50
8B-Base
+ GRACE ( Zhang et al., 2025 )
40.83
66.66
29.16
43.33
75.00
44.11
49.46
Table 3: Experimental results on AceReason-1.1-SFT ( Chen et al., 2025b ) . We generate one response per source LLM, and select one response from these responses (select 10k responses from 40k data).
Method
AIME24
AIME25
MATH
OlymB.
Qwen3-4B-Base
max Casl
31.66
30.83
80.00
42.81
min Casl
29.16
28.33
77.40
39.70
Qwen3-8B-Base
max Casl
45.00
37.50
85.40
49.03
min Casl
41.66
36.66
79.60
42.94
Table 4: Comparison of the experimental results for Aslec-casl that selects the highest and lowest scasl .
Source
β1
β2
γ
ϵ
QwQ-32B
0.077
0.919
-0.284
-0.001
Qwen3-32B
0.068
0.929
-0.529
0.007
DS-Qwen-32B
0.066
0.943
-0.226
0.001
gpt-oss-120b
0.068
0.938
-1.284
0.028
Overall
0.066
0.944
-0.680
-0.054
Table 5: Linear regression parameters of Eq. ( 5 ) fitted on data generated by different source LLMs on LIMO - v2 .
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 5: Relationship between response-level log probability and total response length.
Figure 6: Average log probability of tokens at different positions for four source LLMs.
Source
β1
β2
γ
γ2
ϵ
QwQ-32B
.028
.972
-0.062
1E-8
.004
Qwen3-32B
.018
.979
-0.043
3E-9
.007
DS-Qwen-32B
.014
.983
-0.158
4E-8
-.008
GPT-OSS-120B
.018
.987
-1.166
5E-9
.025
Appendix
Table 6: Linear regression parameters including overall response length γ2∣oi∣ .
Teacher
AIME24
AIME25
MATH
OlymB.
Qwen3-4B-Base
Aslec-casl
31.66
30.83
80.00
42.81
+ γ2∣oi∣
30.83
30.83
78.60
42.20
Qwen3-8B-Base
Aslec-casl
45.00
37.50
85.40
49.03
+ γ2∣oi∣
43.33
35.83
83.80
48.52
Appendix
Table 7: Comparison of experimental results with and without removing overall response length bias γ2∣oi∣ .
Figure 7: Step length distributions for selected and unselected data and relationship between step-level log probability and step length on AceReason - 1.1 - SFT .
Figure 8: Data selection bias and step length distributions under different splitting methods.
Target LLM
β1
β2
γ
ϵ
Qwen3-4B-Instruct
0.075
0.952
-0.778
0.022
Qwen3-8B-Base
0.027
0.993
-0.660
0.025
Appendix
Table 8: Linear regression parameters of all SFT data on AceReason - 1.1 - SFT for the two target models.
Large language models (LLMs) achieve strong reasoning performance by allocating substantial computation at inference time, often generating long and verbose reasoning traces. While recent work on efficient reasoning reduces this overhead through length-based rewards or pruning, many approaches are post-trained under a much shorter context window than base-model training, a factor whose effect has not been systematically isolated. We first show that short-context post-training alone, using standard GRPO without any length-aware objective, already induces substantial reasoning compression-but at the cost of increasingly unstable training dynamics and accuracy degradation. To address this, we propose Step-level Advantage Selection (SAS), which operates at the reasoning-step level and assigns a zero advantage to low-confidence steps in correct rollouts and to high-confidence steps in verifier-failed rollouts, where failures often arise from truncation or verifier issues rather than incorrect reasoning. Across diverse mathematical and general reasoning benchmarks, SAS improves average Pass@1 accuracy by 0.86 points over the strongest length-aware baseline while reducing average reasoning length by 16.3%, yielding a better accuracy-efficiency trade-off.
Chain-of-Thought (CoT) reasoning has significantly enhanced the multi-step problem-solving capabilities of large language models (LLMs) by introducing explicit intermediate reasoning. However, advanced Large Reasoning Models (LRMs) often exhibit overthinking behaviors, including excessively long reasoning steps, redundant steps, and high computational overhead. Existing token-length reward strategies aim to promote concise outputs, but often result in pseudo-conciseness, where token count is reduced, yet redundant reasoning persists, leading to longer and less structurally efficient chains. To address these limitations, we propose ChainPrune, a novel reasoning path semantic structural optimization method to efficiently and controllably synthesize self-generated high-quality training data. We initially consolidate self-generated reasoning paths into a tree-based structure, followed by a multi-criteria dominant path selection process for preference data construction that formulates shallow reasoning trajectories while preserving essential reasoning steps. To further enhance the quality of reasoning, we incorporate a DPO-based preference learning method combined with supervised loss, effectively mitigating false reward suppression. This innovative integration significantly enhances both the efficiency and effectiveness of our reasoning framework. Comprehensive experimental results demonstrate significant reductions in step length and computational overhead, while maintaining or even enhancing accuracy.
Effectively training Large Language Models (LLMs) for complex, long-CoT reasoning is often bottlenecked by the need for massive high-quality reasoning data. Existing methods are either computationally expensive or fail to reliably distinguish high- from low-quality reasoning samples. To address this, we propose High-Entropy Sum (HES), a training-free metric that quantifies reasoning quality by summing only the entropy of the top (e.g., 0.5%) highest-entropy tokens in each reasoning sample. We validate HES across three mainstream training paradigms: Supervised Fine-tuning (SFT), Rejection Fine-tuning (RFT), and Reinforcement Learning (RL), with extensive results demonstrating its consistent effectiveness and significantly reduced computational overhead. In SFT, training on the top 20% HES-ranked data matches full-dataset performance, while using the lowest-HES data degrades it. In RFT, our HES-based training approach significantly outperforms baseline methods. In RL, HES-selected successful trajectories enable the model to learn strong reasoning patterns, significantly surpassing other compared methods. Our findings establish HES as a robust, training-free metric that enables a unified, effective, and efficient method for developing advanced reasoning in LLMs.
Xiaoyuan Li, Yubo Ma, Chengpeng Li +6
University of Science and Technology of China · Alibaba Group · National University of Singapore