Training-free LLM Verification via Recycling Few-shot Examples
Dongseok Lee, Jimyung Hong, Dongyoung Kim, Jaehyung Kim
TL;DR
ReFeri addresses the challenge of noisy reasoning in LLMs by introducing a training-free verification framework that recycles provided few-shot examples to both generate and validate multiple candidate outputs. It leverages a Bayes-inspired decomposition of candidate likelihood into forward and backward components, combining them into a final score to select the best response without task-specific training. Across seven benchmarks and three LLMs, ReFeri yields roughly a 4–5 percentage point improvement over strong training-free baselines and demonstrates robust test-time scaling with more candidates and with smaller verification models. The approach offers a practical, domain-agnostic method for reliable LLM output selection, reducing the need for external reward models and supervised tuning while maintaining strong performance.
Abstract
Although LLMs have achieved remarkable performance, the inherent stochasticity of their reasoning process and varying conclusions present significant challenges. Majority voting or Best-of-N with external verification models has been explored to find the most promising solution among multiple LLM outputs. However, these approaches have certain limitations, such as limited applicability or the cost of an additional training step. To address this problem, we propose a novel and effective framework that Recycles Few-shot examples to verify LLM outputs (ReFeri). Our key idea is to additionally utilize the given few-shot examples to evaluate the candidate outputs of the target query, not only using them to generate outputs as the conventional few-shot prompting setup. Specifically, ReFeri evaluates the generated outputs by combining two different scores, designed motivated from Bayes' rule, and subsequently selects the candidate that is both confidently determined and contextually coherent through a few additional LLM inferences. Experiments with three different LLMs and across seven diverse tasks demonstrate that our framework significantly improves the accuracy of LLMs-achieving an average gain of 4.8%-through effective response selection, without additional training.
