In the quest to make Large Language Models (LLMs) better at reasoning, researchers have increasingly turned to "test-time scaling"—giving models more time to "think" by sampling multiple reasoning paths. The standard way to aggregate these paths is Majority Voting (MV): sample $k$ answers and pick the most frequent one.
While effective, MV treats every reasoning path (or Chain-of-Thought, CoT) as equally likely to be correct. A new paper, "Frustratingly Easy Majority Voting Using Length Conditioning," introduces a simple but powerful tweak: Length-Conditioned Majority Voting (LCMV). By simply weighting votes based on how long the model "talked," the authors achieve significant accuracy gains across a wide range of state-of-the-art models.
TL;DR
LCMV improves LLM reasoning accuracy by weighting Majority Voting results based on Chain-of-Thought length, leveraging the empirical observation that longer reasoning paths are more likely to be incorrect. It uses a lightweight test-time training approach to adapt this weighting on-the-fly using only unlabeled data, requiring no model fine-tuning.
What Problem Does This Paper Address?
The core challenge is how to best aggregate multiple independent reasoning attempts from an LLM. Standard Majority Voting is simple and model-agnostic, but it ignores a crucial signal: length.
Recent studies have shown a persistent negative correlation between the length of a reasoning chain and its probability of being correct. When an LLM gets "stuck" or starts hallucinating, it often enters a loop of repetitive or convoluted reasoning, leading to a very long but ultimately wrong response. Existing attempts to fix this usually involve training complex "reward models" to score each path, which is computationally expensive and prone to "reward hacking." Alternatively, some methods simply discard long responses (filtering), which might throw away useful information.
Methods
The authors propose Length-Conditioned Majority Voting (LCMV). Instead of treating every vote as $1$, each vote is weighted by a probability $P(\text{Correct} | \text{Length})$.
- Length Normalization: To make the method robust across different tasks, CoT lengths are standardized (z-scored) relative to the current question's samples.
- Logistic Prior: The probability of correctness is modeled by a simple logistic function: $\sigma(l') = \frac{1}{1 + e^{-w_1l' - w_0}}$. It starts with a "shorter is better" prior ($w_0=0, w_1=-1$).
- Test-Time Training (TTT): This is the clever part. For each new question, the model uses standard MV to generate "pseudo-labels." The most frequent answer is assumed "correct," and others "incorrect." These pseudo-labels are used to update the two scalar parameters ($w_0, w_1$) of the logistic function via Gradient Descent.
- Weighted Voting: The final answer is chosen by summing the learned weights for each unique answer.
Datasets
The authors evaluated LCMV across a diverse set of benchmarks and models:
- Mathematical Reasoning: AIME (2024/2025), AIMO, HMMT February 2025, GSM8K, MATH, and MathQA.
- Scientific Question Answering: GPQA-Diamond.
- Models: A wide array including DeepSeek-R1-Distill (1.5B to 32B), QwQ-32B, Phi-4-Reasoning-Plus, LLaMA-3.1/3.2, and Mistral-7B.
Key Insights and Ideas
- The "Why" of Length Bias: The paper identifies three reasons why longer is often wrong:
- Dead ends: Models without strong self-revision repeat concepts when they can't find a solution.
- Error accumulation: Longer chains have more "surface area" for a single logical slip-up to ruin the whole result.
- RL Artifacts: Models trained with algorithms like GRPO (e.g., DeepSeek-R1) are particularly prone to this. Because GRPO often normalizes rewards by length, it can inadvertently encourage longer responses when the model is "unsure" or facing a negative advantage.
- Weighting > Filtering: Methods that just pick the $m$ shortest answers (like Short-m@k) are suboptimal because the "tail" of the correct distribution still contains valid, albeit long, reasoning. Weighting preserves this signal while dampening the noise.
- Simplicity is a Feature: The entire TTT process for one question takes about 0.6 milliseconds on a CPU—practically zero overhead compared to the hours it might take to sample the CoTs themselves.
Key Results
LCMV consistently outperformed standard Majority Voting and existing length-based filtering methods across almost every tested scenario.
- Consistent Gains: On the AIME/HMMT benchmarks, Online LCMV improved average accuracy by 1.9 to 4.5 percentage points over standard MV and filtering baselines.
- Scaling with $k$: As the number of generated sequences ($k$) increases, the gap between LCMV and standard MV tends to widen, showing that LCMV makes better use of additional computation.
- Model Agnostic: It worked equally well for "reasoning-native" models (like DeepSeek-R1) and standard instruction-tuned models (like LLaMA-3.1).
Limitations and Future Work
- Heuristic Dependency: The method relies on the "shorter is better" empirical observation. While robust for current reasoning tasks, there may be creative writing or open-ended tasks where longer is actually better.
- Test-Time Adaptation: The "Online" version adapts to the distribution of the test set. If a test set is extremely small or highly non-stationary, the adaptation might be less stable (though experiments with random permutations showed high robustness).
- Future Directions: The authors suggest exploring more complex "length-conditioned" priors or integrating this with process-based reward models for even higher accuracy.
Summary based on "Frustratingly Easy Majority Voting Using Length Conditioning" by Parascandolo et al. (2025).
Summary updated