CLAICYLGJun 9, 2022

Factuality Enhanced Language Models for Open-Ended Text Generation

arXiv:2206.04624v3299 citationsh-index: 59Has Code
Originality Incremental advance
AI Analysis

This work addresses the issue of factual inaccuracies in open-ended text generation for users relying on language models for reliable information, representing an incremental improvement with specific algorithmic and training enhancements.

The authors tackled the problem of nonfactual text generation in pretrained language models by developing a new benchmark and metrics, and they introduced a sampling algorithm and training method that improved factual accuracy while maintaining generation quality.

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.

Code Implementations5 repos
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes