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

Juan Diego Rodriguez, Wenxuan Ding, Katrin Erk, Greg Durrett
4/15/2025
cs.CL

No official code found. Best implementation: juand-r/rankalign (6 stars, last commit 2026-04-30).

Abstract

Although large language models (LLMs) have become more capable and accurate across many tasks, some fundamental sources of unreliability remain in their behavior. One key limitation is their inconsistency at reporting the same information when prompts are changed. In this paper, we consider the discrepancy between a model's generated answer and their own verification of that answer, the generator-validator gap. We define this gap in a more stringent way than prior work: we expect correlation of scores from a generator and a validator over the entire set of candidate answers, i.e., candidate completions that could possibly arise during ordinary language use without breaking Gricean norms. We show that according to this measure, a large gap exists in various settings, including question answering, lexical semantics tasks, and next-word prediction. We then propose RankAlign, a ranking-based training method, and show that it significantly closes the gap, surpassing all baseline methods. Moreover, this approach generalizes well to out-of-domain tasks and lexical items.

View on arXivView PDF

Code Implementations(1)

juand-r/rankalignCommunity100%

Code for our paper "RankAlign: A Ranking View of the Generator-Validator Gap in Large Language Models"

60Python, Jupyter NotebookApr 15, 20255 months ago

Similar Papers

Cite this paper

@article{rodriguez2025rankalign,
  title  = {RankAlign: A Ranking View of the Generator-Validator Gap in Large Language Models},
  author = {Juan Diego Rodriguez and Wenxuan Ding and Katrin Erk and Greg Durrett},
  year   = {2025},
  eprint = {2504.11381},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.11381v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.11381.svg)](https://codeofpaper.com/paper/2504.11381)

Discussion