TensorX
返回文献探索

Paper · arXiv 2307.06857

Self-consistency for open-ended generations

Siddhartha Jain, Xiaofei Ma, Anoop Deoras, Bing Xiang

12 upvotesJuly 11, 2023arXiv 预印本
AI 摘要

A generalized self-consistency framework enhances the quality and consistency of large-scale language model outputs across various tasks with minimal computational overhead.

self-consistencylarge-scale pre-trained language modelsLLMstoken log probabilitiescode generationautoformalizationsummarization

Abstract

In this paper, we present a novel approach for improving the quality and consistency of generated outputs from large-scale pre-trained language models (LLMs). Self-consistency has emerged as an effective approach for prompts with fixed answers, selecting the answer with the highest number of votes. In this paper, we introduce a generalized framework for self-consistency that extends its applicability beyond problems that have fixed-answer answers. Through extensive simulations, we demonstrate that our approach consistently recovers the optimal or near-optimal generation from a set of candidates. We also propose lightweight parameter-free similarity functions that show significant and consistent improvements across code generation, autoformalization, and summarization tasks, even without access to token log probabilities. Our method incurs minimal computational overhead, requiring no auxiliary reranker models or modifications to the existing model.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号