Lightweight reranking for language model generations

Siddhartha Jain, Xiaofei Ma, Anoop Deoras, Bing Xiang
7/11/2023
cs.AIcs.CLcs.LG

No confident code implementation found for this paper.

Abstract

Large Language Models (LLMs) can exhibit considerable variation in the quality of their sampled outputs. Reranking and selecting the best generation from the sampled set is a popular way of obtaining strong gains in generation quality. In this paper, we present a novel approach for reranking LLM generations. Unlike other techniques that might involve additional inferences or training a specialized reranker, our approach relies on easy to compute pairwise statistics between the generations that have minimal compute overhead. We show that our approach can be formalized as an extension of self-consistency and analyze its performance in that framework, theoretically as well as via simulations. We show strong improvements for selecting the best k generations for code generation tasks as well as robust improvements for the best generation for the tasks of autoformalization, summarization, and translation. While our approach only assumes black-box access to LLMs, we show that additional access to token probabilities can improve performance even further.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{jain2023lightweight,
  title  = {Lightweight reranking for language model generations},
  author = {Siddhartha Jain and Xiaofei Ma and Anoop Deoras and Bing Xiang},
  year   = {2023},
  eprint = {2307.06857},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.06857v3}
}

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/2307.06857.svg)](https://codeofpaper.com/paper/2307.06857)

Discussion