Boosting Self-Consistency with Ranking

Maria Marina, Daniil Moskovskiy, Sergey Pletenev, Mikhail Salnikov, Alexander Panchenko, Viktor Moskvoretskii

TL;DR

Standard self-consistency boosts large language model (LLM) performance by sampling multiple reasoning paths and using a majority vote to pick the final answer. However, this approach frequently misses correct answers that are present in the sample pool but fail to achieve a plurality. This paper introduces Ranking-Improved Self-Consistency (RISC), a lightweight method that reformulates answer selection as a ranking problem, delivering massive efficiency gains and higher accuracy across multiple benchmarks.

What Problem Does This Paper Address?

Test-time compute scaling—allocating more computational budget during inference by sampling multiple responses—has become a dominant paradigm for maximizing LLM performance. The most popular parallel strategy is Self-Consistency (SC), which samples $N$ independent reasoning paths and selects the most frequent final answer via a majority vote.

Despite its simplicity and success, a massive gap remains between majority voting and an "oracle" selector (which would always pick the correct answer if it appears at least once in the pool). Current methods try to bridge this gap using single, hand-crafted signals like verbalized confidence or internal geometric states. However, these single-metric approaches struggle to generalize across different tasks and fail to scale effectively.

Methods

Instead of relying on a heavy neural reward model or a single hand-crafted heuristic, RISC treats answer selection as a query-dependent ranking problem. It extracts five lightweight, interpretable features from the generated answers and their Chain-of-Thought (CoT) reasoning traces, and feeds them into a lightweight LambdaRank (LightGBM) model trained with listwise supervision:

  1. Answer Length: The character length of the final extracted answer. Canonical, correct answers are often concise, whereas incorrect answers frequently contain malformed text or formatting residue.
  2. Ratio to Best: The frequency of the candidate answer relative to the most frequent answer in the pool.
  3. Distance to Answer Centroid: The squared Euclidean distance from the candidate answer's embedding to a count-weighted "center of mass" of all sampled answers.
  4. Worst-Step Coherence: Measures whether any individual step in a reasoning trace deviates significantly from the overall trajectory by calculating the minimum cosine similarity between a step's embedding and the entire trace's centroid.
  5. Shared Checkpoints Count: Counts how many intermediate reasoning states (prefixes) are semantically shared at similar depths across different traces that led to the same answer.

To keep computational overhead negligible, text embeddings are generated using a tiny, 22.7-million parameter sentence transformer (MiniLM), requiring no additional heavy LLM calls.

Datasets

The authors evaluated RISC using generations from Llama-3.1-8B-Instruct and Olmo-3-7B-Instruct across three distinct benchmarks:

  • PopQA: An open-domain, entity-centric question answering dataset targeting long-tail knowledge.
  • HotpotQA: A multi-hop reasoning dataset evaluated in a challenging closed-book setting (without supporting context documents).
  • MATH500: A 500-problem subset of competition-level mathematics problems spanning algebra, geometry, and number theory.

Key Insights and Ideas

  • The Power of Feature Complementarity: A key takeaway from the paper's feature ablation and SHAP analysis is that no single feature is a silver bullet. For instance, on the MATH500 dataset, "Ratio to Best" and "Shared Checkpoints" are virtually useless when removed individually. However, removing both simultaneously triggers a massive 5.7% drop in accuracy. The ranker thrives because it learns non-additive, synergistic interactions between features.
  • Semantic Centrality Filters Out Outliers: Correct answers tend to cluster semantically even if their exact string expressions differ slightly. Weighting the semantic centroid by answer frequency allows RISC to identify a robust "center of mass," effectively filtering out erratic or anomalous incorrect answers.
  • Structure Over Pure Consensus: Evaluating how a model arrived at an answer (via step coherence and shared checkpoints) provides a vital verification signal that surface-level text voting completely ignores.

Key Results

RISC consistently yields a superior accuracy-efficiency trade-off compared to standard self-consistency and advanced baselines like CISC, Stable Rank, and ReASC.

  • Massive Cost Reductions: On PopQA, RISC achieves an 82% cost reduction, matching the accuracy of a 99-sample standard self-consistency run using only 18 samples.
RISC achieves an 82% cost reduction on PopQA compared to standard self-consistency.
  • Systematic Accuracy Gains: At any fixed budget, RISC consistently delivers higher accuracy than majority voting, showing absolute improvements between +4.28% and +6.51% on PopQA across various sample sizes.
Comparison of RISC against baselines across PopQA, HotpotQA, and MATH500.

Limitations and Future Work

While RISC marks a notable step forward for test-time scaling, the authors highlight a few limitations:

  1. Model Scale: The method was only validated on relatively small instruction-tuned models (7B and 8B parameters). Its generalizability to frontier-class, large-scale models remains unverified.
  2. Domain Constraints: The performance gains are significantly more pronounced on open-domain QA tasks than on rigorous mathematical reasoning (MATH500), where correctness depends on exact, fine-grained logical transitions rather than semantic clustering.
  3. The Remaining Oracle Gap: Although RISC substantially outperforms majority voting, a noticeable performance gap still remains between RISC and an ideal oracle selector, leaving room for future exploration into even richer test-time ranking features.

Summary updated

BibTeX
@inproceedings{marina2026boosting,
  author = {Maria Marina and Daniil Moskovskiy and Sergey Pletenev and Mikhail Salnikov and Alexander Panchenko and Viktor Moskvoretskii},
  title = {{Boosting Self-Consistency with Ranking}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-srw.89},
}
Figure