RankAlign: A Ranking View of the Generator-Validator Gap in Large Language Models

Juan Diego Rodriguez, Wenxuan Ding, Katrin Erk, Greg Durrett

Large Language Models (LLMs) are increasingly capable, yet they remain fundamentally unreliable in a specific, puzzling way: their internal "beliefs" often change depending on how a question is phrased. This phenomenon, known as the generator-validator (G-V) gap, occurs when a model generates a specific answer in one context (like a fill-in-the-blank prompt) but rejects that same answer as incorrect when asked directly (in a Yes/No format).

The Generator-Validator Inconsistency

Imagine asking an LLM to complete the sentence "Olives are a kind of ___." The model might correctly reply "fruit." However, if you immediately follow up with "Do you think olives are fruit?", the model might reply "No."

The Generator-Validator (G-V) gap: LLMs often generate an answer but reject it when asked directly.

Prior research has largely treated this as a binary agreement problem—simply checking if the top-1 outputs match. However, this paper argues for a more stringent definition of consistency. The authors suggest that a model's confidence scores (log-odds) for all plausible candidate answers should correlate across both generative and validator prompts. If a model is highly confident that a poodle is a mammal, that confidence should be reflected whether it is generating the word "mammal" or validating the statement "A poodle is a mammal."

RankAlign: Consistency through Ranking

To address this, the authors introduce RankAlign, a fine-tuning approach inspired by the ranking principles of Direct Preference Optimization (DPO). Unlike standard methods that try to force a model toward specific probability values, RankAlign focuses on the relative ordering of candidates.

The RankAlign objective: ensuring the relative ranking of answers is consistent between generator and validator prompts.

The core objective is straightforward: if the generator is more likely to produce answer A than answer B, then the validator should also be more likely to say "Yes" to answer A than to answer B. By using a pairwise logistic loss function, RankAlign enforces this consistency across different prompt formats without requiring the model to hit noisy, absolute probability targets.

Evaluation and Key Results

The researchers evaluated RankAlign across four distinct tasks: Hypernymy (category relations), Lexical Substitution (synonyms), Next-Word Prediction (LAMBADA), and general Question Answering (TriviaQA). To ensure a rigorous test, they introduced balanced negative samples, forcing the model to distinguish between plausible-sounding errors and correct facts.

Key findings include:

  • Closing the Gap: RankAlign reduced the G-V gap by an average of 31.8% across multiple model families, including Gemma-2 and Llama-3.
  • Superior Correlation: On Hypernymy tasks, the Pearson correlation between generator and validator log-odds improved from a baseline of ~0.76 to 0.94.
  • Cross-Task Generalization: Training the model to be consistent on simple word-category tasks surprisingly improved its consistency on complex general knowledge questions, suggesting the method fixes a fundamental structural misalignment.
  • Robustness: The alignment persisted even when validator prompts were changed to entirely new, unseen formats, indicating the model learned a deeper consistency rather than just memorizing templates.

Discussion and Limitations

One of the most interesting insights from the study is the "Obviousness Trap." Models often have low generator scores for true statements because they are "too obvious" to be worth saying in conversation (e.g., "Dolphins are entities"). RankAlign helps bridge this gap between what is true and what is likely to be said according to conversational norms.

However, the method is not without trade-offs. In some tasks like lexical substitution, improving consistency led to a slight decrease in raw generator accuracy; the model became more "honest" about its uncertainty, sometimes at the cost of its top-1 performance. Furthermore, while RankAlign works exceptionally well for short-form answers, aligning beliefs for long-form, multi-sentence reasoning remains a significant challenge for future research.

Summary updated

BibTeX
@inproceedings{rodriguez2025rankalign,
  author = {Juan Diego Rodriguez and Wenxuan Ding and Katrin Erk and Greg Durrett},
  title = {{RankAlign: A Ranking View of the Generator-Validator Gap in Large Language Models}},
  booktitle = {COLM},
  year = {2025},
  url = {https://openreview.net/forum?id=rJOkPauru9},
}
Figure