Skip to main content
QUICK REVIEW

[Paper Review] ERNIE-GEN: An Enhanced Multi-Flow Pre-training and Fine-tuning Framework for Natural Language Generation

Dongling Xiao, Han Zhang|arXiv (Cornell University)|Jan 26, 2020
Topic ModelingComputer Science26 references28 citations
TL;DR

ERNIE-GEN proposes a multi-flow pre-training and fine-tuning framework for natural language generation that mitigates exposure bias through an infilling generation mechanism and noise-aware training. By introducing span-by-span generation and multi-granularity target sampling, it achieves state-of-the-art performance on abstractive summarization, question generation, dialogue response, and generative QA with significantly reduced data and parameter requirements.

ABSTRACT

Current pre-training works in natural language generation pay little attention to the problem of exposure bias on downstream tasks. To address this issue, we propose an enhanced multi-flow sequence to sequence pre-training and fine-tuning framework named ERNIE-GEN, which bridges the discrepancy between training and inference with an infilling generation mechanism and a noise-aware generation method. To make generation closer to human writing patterns, this framework introduces a span-by-span generation flow that trains the model to predict semantically-complete spans consecutively rather than predicting word by word. Unlike existing pre-training methods, ERNIE-GEN incorporates multi-granularity target sampling to construct pre-training data, which enhances the correlation between encoder and decoder. Experimental results demonstrate that ERNIE-GEN achieves state-of-the-art results with a much smaller amount of pre-training data and parameters on a range of language generation tasks, including abstractive summarization (Gigaword and CNN/DailyMail), question generation (SQuAD), dialogue generation (Persona-Chat) and generative question answering (CoQA).

Motivation & Objective

  • To address exposure bias in sequence-to-sequence pre-training for natural language generation, where training uses ground-truth tokens but inference uses model-generated ones.
  • To improve generation quality by aligning model behavior during pre-training with human writing patterns, which produce coherent spans rather than word-by-word predictions.
  • To strengthen encoder-decoder correlation in long-text generation by using multi-granularity target sampling instead of single-segment masking.
  • To reduce the discrepancy between pre-training and fine-tuning by incorporating noise-aware generation and an infilling mechanism that avoids reliance on the last token.

Proposed method

  • Introduces an infilling generation mechanism using a special [ATTN] token to aggregate all prior hidden states, reducing dependence on the last predicted word and mitigating error propagation.
  • Employs a noise-aware generation method that randomly corrupts target sequences during pre-training, enabling the model to learn to detect and ignore incorrect predictions during inference.
  • Incorporates a span-by-span generation flow that trains the model to predict semantically complete spans consecutively, mimicking human writing patterns.
  • Uses multi-granularity target sampling to select non-adjacent or fragmented spans as targets, enhancing encoder-decoder alignment and reducing reliance on previous predictions.
  • Employs a Multi-Flow Attention architecture based on Transformer to jointly optimize word-by-word and span-by-span generation flows during pre-training.
  • Applies the same infilling and noise-aware mechanisms during fine-tuning to maintain consistency between pre-training and inference.

Experimental results

Research questions

  • RQ1Can an infilling generation mechanism that avoids reliance on the last predicted token reduce exposure bias in sequence-to-sequence generation?
  • RQ2Does noise-aware training, where target sequences are corrupted during pre-training, improve robustness to prediction errors during inference?
  • RQ3Can a span-by-span generation task improve generation quality by modeling human-like text production, where coherent phrases are generated as units?
  • RQ4Does multi-granularity target sampling strengthen the correlation between encoder and decoder representations in long-text generation?
  • RQ5Can a multi-flow pre-training framework combining infilling, noise-aware, and span-by-span generation achieve SOTA results with smaller models and less pre-training data?

Key findings

  • ERNIE-GEN achieves state-of-the-art results on abstractive summarization (Gigaword and CNN/DailyMail), with ROUGE-1/ROUGE-2/ROUGE-L scores of 39.49/17.66/36.96 on CNN/DailyMail and 32.57/14.68/30.60 on Gigaword.
  • On question generation (SQuAD), ERNIE-GEN achieves 23.34 BLEU-4, 25.54 MTR, and 51.30 ROUGE-L, outperforming prior methods.
  • On dialogue response generation (Persona-Chat), the model achieves SOTA performance, demonstrating strong zero-shot and few-shot generalization.
  • The ablation study confirms that both the noise-aware generation method and span-by-span generation task significantly improve performance, with the full model outperforming variants by up to 1.5 ROUGE points.
  • Fine-tuning with noise-aware generation improves results across all tasks, with optimal performance at a noising rate of ρf = 0.15, indicating effective error tolerance.
  • The model’s attention analysis shows increased focus on noised tokens during fine-tuning, with reduced attention weights as noise rate increases, confirming effective error detection and suppression.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.