[論文レビュー] Factuality Enhanced Language Models for Open-Ended Text Generation
本論文は、オープンエンドのテキスト生成における事実性を測定し向上させ、FactualityPrompts、factual-nucleus sampling、および factuality-enhanced training を導入して、very large LMs における非事実的な出力を低減します。
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.
研究の動機と目的
- 平文ソース(Wikipedia)を用いて、オープンエンドの LM 世代における事実性を自動的に評価するためのベンチマークと指標を定義する。
- モデルのスケール(126M 〜 530B)とデコーディング戦略の下で、事実性を体系的に分析する。
- 生成品質を損なうことなく事実性を向上させるデコーディングと訓練技術を提案する。
- factuality-enhanced training と factual-nucleus sampling の組み合わせが、very large LMs における事実エラーを大幅に低減することを示す。
提案手法
- FactualityPrompts テストセットを、事実性のあるプロンプトと事実性のないプロンプトを含めて作成する。
- 事実検証のため、Wikipedia を文書レベルまたは文レベルで用いてグラウンドトゥルースを準備する。
- 生成物の事実性を定量化するために、NEベースの事実性指標と文本含意指標を用いる。
- デコードアルゴリズム(greedy 対 nucleus/top-p)を比較し、事実性と多様性への影響を特定する。
- 文の進行に従い nucleus 確率を減衰させる factual-nucleus sampling を導入し、事実错误を減らす。
- 学習中の事実認識を高めるため、TopicPrefix と文完了 loss を用いた factuality-enhanced continued training を提案する。
実験結果
リサーチクエスチョン
- RQ1オープンエンド生成における事実性は、モデルサイズが126Mから530Bへと拡大するにつれてどのように変化するか。
- RQ2greedy と nucleus/top-p などのデコーディング戦略は、事実性と生成品質にどのような影響を与えるか。
- RQ3デコーディングと訓練を調整して、流暢性や多様性を犠牲にすることなく事実性を向上させることができるか。
- RQ4TopicPrefix と sentence completion loss を用いた factuality-enhanced training は、Named-entity エラーを減らし、事実含意を改善するか。
主な発見
- 事実性はモデルサイズの増加とともに改善する傾向があり;NE_Er は 63.69% (126M, p=0.9) から 33.30% (530B) に低下する。
- Top-p nucleus sampling は蓄積されたランダム性により事実性を損なう;greedy デコードはより事実的だが多様性が低い。
- factual-nucleus sampling は標準の nucleus sampling よりも、ハイパーパラメータ次第で事実性・多様性・反復のトレードオフを改善する。
- 事実データの直接的な継続訓練だけでは事実性の改善を保証できない;TopicPrefix と sentence completion loss を組み込むことにより、事実エラーを大幅に減少させる。
- factuality-enhanced training と factual-nucleus sampling は、530B モデルで Named-entity 的な事実エラーを 14.5% まで低減できる。
- TopicPrefix とターゲット訓練戦略は、断片化された訓練コーパスから学習された誤関連を緩和する。
この論文を読む
Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。
Nubintでこの論文を読むこのレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。