arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.01846cs.CLcs.LG
收藏

语言模型生成器-验证器一致性的基准测试与改进

Benchmarking and Improving Generator-Validator Consistency of Language Models

Stanford University(斯坦福大学);Columbia University(哥伦比亚大学)

Xiang Lisa Li, Vaishnavi Shrivastava, Siyan Li, Tatsunori Hashimoto, Percy Liang

AI总结:

针对语言模型生成与验证答案不一致的问题,本文提出GV一致性衡量框架,发现GPT-4一致性仅76%;进一步提出一致性微调方法,将Alpaca-30B一致性从60%提至93%,且可跨任务领域迁移,同时无标注提升生成质量与验证准确率。

摘要:

截至2023年9月,ChatGPT能正确回答“7+8等于多少”并给出15的答案,但当被问到“7+8=15,对还是错”时,它却回答“错”。这种生成答案与验证答案之间的不一致性在语言模型(LMs)中普遍存在,会削弱用户对模型的信任。本文提出了一个衡量生成与验证之间一致性的框架(我们称之为生成器-验证器一致性,简称GV-consistency),研究发现即使是当前最先进的语言模型GPT-4,其GV一致性也仅为76%。为提升语言模型的一致性,我们提出对筛选出的具备GV一致性的生成器与验证器响应进行微调,将该方法称为一致性微调。研究发现,该方法将Alpaca-30B的GV一致性从60%提升至93%,且这种提升可迁移到未见过的任务和领域(例如,正面风格迁移的GV一致性可迁移到幽默等未见过的风格)。除了提升一致性,一致性微调无需任何标注数据即可同时提升生成器质量和验证器准确率。在包含数学题、知识密集型问答、指令遵循在内的6项任务上的评估显示,我们的方法在所有任务中使生成器质量提升了16%,验证器准确率提升了6.3%。

英文摘要:

As of September 2023, ChatGPT correctly answers "what is 7+8" with 15, but when asked "7+8=15, True or False" it responds with "False". This inconsistency between generating and validating an answer is prevalent in language models (LMs) and erodes trust. In this paper, we propose a framework for measuring the consistency between generation and validation (which we call generator-validator consistency, or GV-consistency), finding that even GPT-4, a state-of-the-art LM, is GV-consistent only 76% of the time. To improve the consistency of LMs, we propose to finetune on the filtered generator and validator responses that are GV-consistent, and call this approach consistency fine-tuning. We find that this approach improves GV-consistency of Alpaca-30B from 60% to 93%, and the improvement extrapolates to unseen tasks and domains (e.g., GV-consistency for positive style transfers extrapolates to unseen styles like humor). In addition to improving consistency, consistency fine-tuning improves both generator quality and validator accuracy without using any labeled data. Evaluated across 6 tasks, including math questions, knowledge-intensive QA, and instruction following, our method improves the generator quality by 16% and the validator accuracy by 6.3% across all tasks.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑