Lightweight reranking for language model generations

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Jain, Siddhartha, Ma, Xiaofei, Deoras, Anoop, Xiang, Bing
Natura: Preprint
Pubblicazione: 2023
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866911755524898816
author Jain, Siddhartha
Ma, Xiaofei
Deoras, Anoop
Xiang, Bing
author_facet Jain, Siddhartha
Ma, Xiaofei
Deoras, Anoop
Xiang, Bing
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2307_06857
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Lightweight reranking for language model generations
Jain, Siddhartha
Ma, Xiaofei
Deoras, Anoop
Xiang, Bing
Artificial Intelligence
Computation and Language
Machine Learning
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.
title Lightweight reranking for language model generations
topic Artificial Intelligence
Computation and Language
Machine Learning
url https://arxiv.org/abs/2307.06857