Reproduce “Factuality Enhanced Language Models for Open-Ended Text Generation” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Nayeon Lee, Wei Ping, Peng Xu, Mostofa Patwary, Pascale Fung, Mohammad Shoeybi, Bryan Catanzaro

Researchers from HKUST and NVIDIA developed an evaluation framework and methods to improve the factual accuracy of large language models in open-ended text generation. They introduced Factual-nucleus sampling and a factuality-enhanced training approach that combines topic prefixes with a sentence completion loss, which reduced factual errors by 56% for a 530B parameter model.

Key insights

  • Larger language models are more factual than smaller ones in open-ended text generation, particularly concerning parametric knowledge, rather than being less truthful as suggested by some previous studies.
  • Standard decoding algorithms like nucleus sampling significantly harm factuality due to introduced randomness, leading to issues such as named entity mix-up or fabricated facts, while greedy decoding, though factual, severely lacks diversity.
  • Simply continuing pre-training on factual corpora does not inherently improve factuality; targeted methods like prepending topic prefixes and using a sentence completion loss are necessary to intrinsically enhance factual knowledge.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.