Lightweight Latent Verifiers for Efficient Meta-Generation Strategies
Bartosz Piotrowski, Witold Drzewakowski, Konrad Staniszewski, Piotr Miłoś
TL;DR
This work tackles the high cost of verifiers in reasoning-focused LLM tasks by introducing LiLaVe, a lightweight latent verifier that extracts correctness signals from the base model's hidden states. A small XGBoost-based classifier is trained on fixed hidden-state locations to predict final answer correctness, and per-state scores are averaged to yield a LiLaVe score used to drive meta-generation strategies such as conditional majority voting and conditional self-correction. Across GSM8K, GSM-Symbolic, algebra_linear_1d, and MATH benchmarks, LiLaVe achieves strong discriminatory power (AUC) with substantially fewer training examples than LLM-based verifiers, enabling significant inference-time efficiency gains. The study also demonstrates transferability across datasets and base models, and proposes practical strategies to balance accuracy and compute, marking a step toward scalable, resource-efficient reasoning in real-world settings.
Abstract
Verifiers are auxiliary models that assess the correctness of outputs generated by base large language models (LLMs). They play a crucial role in many strategies for solving reasoning-intensive problems with LLMs. Typically, verifiers are LLMs themselves, often as large (or larger) than the base model they support, making them computationally expensive. In this work, we introduce a novel lightweight verification approach, LiLaVe, which reliably extracts correctness signals from the hidden states of the base LLM. A key advantage of LiLaVe is its ability to operate with only a small fraction of the computational budget required by traditional LLM-based verifiers. To demonstrate its practicality, we couple LiLaVe with popular meta-generation strategies, like best-of-n or self-consistency. Moreover, we design novel LiLaVe-based approaches, like conditional self-correction or conditional majority voting, that significantly improve both accuracy and efficiency in generation tasks with smaller LLMs. Our work demonstrates the fruitfulness of extracting latent information from the hidden states of LLMs, and opens the door to scalable and resource-efficient solutions for reasoning-intensive applications.
