Abstract
When applied to question answering and other text generation tasks, language models (LMs) may be queried generatively (by sampling answers from their output distribution) or discriminatively (by using them to score or rank a set of candidate outputs). These procedures sometimes yield very different predictions. How do we reconcile mutually incompatible scoring procedures to obtain coherent LM predictions? We introduce a new, training-free, game-theoretic procedure for language model decoding. Our approach casts language model decoding as a regularized imperfect-information sequential signaling game—the Consensus Game—in which a Generator seeks to communicate an abstract correctness parameter using natural language sentences to a Discriminator. We develop computational procedures for finding approximate equilibria of this game, resulting in a decoding algorithm we call Equilibrium-Ranking. Applied to a large number of tasks (including reading comprehension, commonsense reasoning, mathematical problem-solving, and dialog), Equilibrium-Ranking consistently, and sometimes substantially, improves performance over existing LM decoding procedures. On multiple benchmarks, we observe that applying Equilibrium-Ranking to LLaMA-7B outperforms the much larger LLaMA-65B and PaLM-540B models.
Introduction: The Problem of Internal Inconsistency
Large Language Models (LLMs) are essentially "multilingual" in their internal logic: they can speak both generatively (sampling an answer to a question) and discriminatively (scoring how "correct" a given answer appears).
A significant challenge in current AI is that these two modes frequently disagree. A model might assign high probability to a false but common statement when generating, yet correctly identify it as "incorrect" when asked to judge it. Conversely, discriminative scoring can be poorly calibrated or overly sensitive to phrasing. This lack of internal consistency—or coherence—leads to factual errors and "hallucinations." The Consensus Game aims to distill the model's "best guess" at the truth by forcing these two conflicting signals into agreement.
The Consensus Game Framework
The authors frame the decoding process as a signaling game between two agents derived from the same underlying LM: a Generator and a Discriminator.
The Signaling Game Mechanics
- The Players: Both the Generator and the Discriminator are derived from the same pre-trained language model.
- The Setup: An environment randomly chooses a "correctness" value (either correct or incorrect). The Generator sees this value and must pick a natural language string from a set of candidates to communicate it. The Discriminator sees the string (but not the value) and must guess if it represents a "correct" or "incorrect" answer.
- The Goal: Both players receive a reward if the Discriminator correctly identifies the value. To win, they must reach a "consensus" on which strings map to "correctness."
- Equilibrium Search: To find the best strategy, the authors use a training-free algorithm called Equilibrium-Ranking. This uses no-regret learning (specifically the piKL algorithm) to iteratively refine the model's policies at test-time.
- Regularization: To prevent the game from settling on "nonsense" equilibria (e.g., agreeing that "Nairobi" means "correct" for a question about Obama's birth), a regularization term ensures the final strategy stays close to the model's original, "reasonable" prior knowledge.
Experimental Evaluation
The researchers evaluated their method across six diverse benchmarks, including MMLU (multi-task understanding), ARC (grade-school science), RACE (reading comprehension), and GSM8K (mathematical word problems).
Key Results
- Small Models, Big Results: The most striking insight is that internal consistency is often more important than raw scale. On the ARC-Challenge benchmark, LLaMA-7B using Equilibrium-Ranking (58.3%) outperformed the much larger LLaMA-65B (56.0%) and the massive PaLM-540B (53.0%).
- Zero-Shot Performance: Zero-shot LLaMA-7B with Equilibrium-Ranking outperformed the 5-shot version of the same model, showing that better decoding can be more effective than providing more examples.
- Mitigating Negative Scaling: On TruthfulQA, where larger models often become less truthful because they learn to mimic common human misconceptions, the Consensus Game helps mitigate this performance drop by enforcing coherence.
- Efficiency: While it involves an iterative search, the computational overhead is negligible—approximately 40 microseconds per iteration—compared to the cost of the LM inference itself.
Conclusion and Future Directions
The Consensus Game demonstrates that "truth" can be found by maximizing the mutual agreement between different ways of querying the same model. This training-free, game-theoretic toolkit addresses fundamental challenges of truthfulness and consistency in LMs at the decoding stage.
Future work could apply this framework to long-form text generation, where maintaining consistency over several paragraphs is a major open challenge. Additionally, there is potential in combining this with "deliberation" methods like Chain-of-Thought to further enhance reasoning capabilities.
Summary updated