[论文解读] Factuality Enhanced Language Models for Open-Ended Text Generation
该论文在开放式文本生成中衡量并提升事实准确性,提出 FactualityPrompts、factual-nucleus sampling,以及事实性增强训练,以减少超大规模语言模型中的非事实输出。
Pretrained language models (LMs) are susceptible to generate text with nonfactual information. In this work, we measure and improve the factual accuracy of large-scale LMs for open-ended text generation. We design the FactualityPrompts test set and metrics to measure the factuality of LM generations. Based on that, we study the factual accuracy of LMs with parameter sizes ranging from 126M to 530B. Interestingly, we find that larger LMs are more factual than smaller ones, although a previous study suggests that larger LMs can be less truthful in terms of misconceptions. In addition, popular sampling algorithms (e.g., top-p) in open-ended text generation can harm the factuality due to the ''uniform randomness'' introduced at every sampling step. We propose the factual-nucleus sampling algorithm that dynamically adapts the randomness to improve the factuality of generation while maintaining quality. Furthermore, we analyze the inefficiencies of the standard training method in learning correct associations between entities from factual text corpus (e.g., Wikipedia). We propose a factuality-enhanced training method that uses TopicPrefix for better awareness of facts and sentence completion as the training objective, which can vastly reduce the factual errors. We release our code and FactualityPrompts benchmark at: https://github.com/nayeon7lee/FactualityPrompt.
研究动机与目标
- 定义一个基准和度量,用于使用纯文本源(维基百科)自动评估开放式 LM 生成中的事实性。
- 系统性分析在不同模型规模(126M 至 530B)和解码策略下的事实性。
- 提出解码和训练技术,在不影响生成质量的前提下提升事实性。
- 证明事实性增强训练结合 factual-nucleus sampling 能显著降低超大规模语言模型的事实错误。
提出的方法
- 创建包含事实性与非事实性提示的 FactualityPrompts 测试集。
- 使用 Wikipedia 在文档级或句子级别进行真实值准备以进行事实验证。
- 采用基于实体名(NE)的事实性度量和文本蕴含度量来量化生成结果的事实性。
- 比较解码算法(贪婪解码与 nucleus/top-p)并识别它们对事实性与多样性的影响。
- 引入在句子推进过程中衰减 nucleus 概率的 factual-nucleus sampling,以降低事实错误。
- 提出结合 TopicPrefix 的事实性增强继续训练和句子完成损失,以在学习过程中提高对事实的认知。
实验结果
研究问题
- RQ1开放式生成中的事实性如何随模型规模从 126M 到 530B 而放大/提升?
- RQ2解码策略(贪婪解码 vs nucleus/top-p)如何影响事实性和生成质量?
- RQ3是否可以通过调整解码和训练来在不牺牲流畅性或多样性的前提下提高事实准确性?
- RQ4使用 TopicPrefix 的事实性增强训练和句子完成损失是否能减少实体错误并改善事实蕴含?
主要发现
- 事实性随模型规模的增大而趋于改善;NE_Er 从 63.69%(126M,p=0.9)降至 33.30%(530B)。
- Top-p nucleus 采样由于累积的随机性而降低事实性;贪婪解码更具事实性但多样性较低。
- factual-nucleus sampling 相对于标准 nucleus 采样在事实性-多样性/重复性折衷方面有所提升,取决于超参数。
- 单独对事实数据进行直接继续训练并不能保证改进事实性;结合 TopicPrefix 与句子完成损失可显著减少事实错误。
- 在选定设置下,采用事实性增强训练结合 factual-nucleus sampling 能将 530B 模型的命名实体事实错误降至低至 14.5%。
- TopicPrefix 加上有针对性的训练策略可缓解来自碎片化训练语料导致的错误关联。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。