Source-linked AI summary

Towards Coherent and Cohesive Long-form Text Generation

Woon Sang Cho, Pengchuan Zhang, Yizhe Zhang, Xiujun Li, Michel Galley, Chris Brockett, Mengdi Wang, Jianfeng Gao

arXiv:1811.00511v2cs.CL

TL;DR

Long-form text generation remains challenging because coherence and cohesion lack formal specifications and widely accepted measures. The paper trains an RNN-based language model using coherence and cohesion discriminators and negative-critical sequence training. On two long-form tasks, human evaluation agrees with automatic evaluation that the method generates more locally and globally consistent texts.

  • Problem

    Generating cohesive and coherent multi-sentence text is challenging because these properties lack formal specifications and widely accepted measures, and neural generators may fail to capture local and global consistency.

    Source: §1 · p. 1, §2 · p. 2
  • Method

    The model uses paragraph-level coherence and sentence-pair cohesion discriminators as reward signals, with negative-critical sequence training estimating a reward baseline from negative samples instead of a separate critic.

    Source: §1 · p. 1, §6 · p. 8
  • Results

    On two long-form text generation tasks, human evaluation agrees with automatic evaluation that the method generates more locally and globally consistent texts; discriminator feedback significantly improves BLEU, NLL, and PPL, with marginal diversity difference.

    Source: §6 · p. 8, §5.3 · p. 8
  • Takeaways & Limitations

    The authors conclude that discriminator feedback helps generate more locally and globally consistent texts.

    Source: §6 · p. 8

    The authors describe the results as initial and say the method still needs significant improvement to meet the goal of generating meaningful and logical long-form texts.

    Source: §6 · p. 8

Abstract

from arXiv · show

Generating coherent and cohesive long-form texts is a challenging task. Previous works relied on large amounts of human-generated texts to train neural language models. However, few attempted to explicitly improve neural language models from the perspectives of coherence and cohesion. In this work, we propose a new neural language model that is equipped with two neural discriminators which provide feedback signals at the levels of sentence (cohesion) and paragraph (coherence). Our model is trained using a simple yet efficient variant of policy gradient, called negative-critical sequence training, which is proposed to eliminate the need of training a separate critic for estimating baseline. Results demonstrate the effectiveness of our approach, showing improvements over the strong baseline -- recurrent attention-based bidirectional MLE-trained neural language model.

1 Introduction

The introduction identifies the difficulty of generating long-form text with local sentence connections and global paragraph structure, and presents discriminator feedback as a way to train a language model toward both.

1 Introduction

  • Cohesion concerns local connections between consecutive sentences, whereas coherence concerns how multiple sentences hold together globally.Source: §1 · p. 1
  • Long-form generation lacks formal specifications and widely accepted measures of coherence and cohesion, while neural models can miss cross-sentence dependencies despite producing plausible individual sentences.Such outputs may be detached from their surrounding dialogue or text.Source: §1 · p. 1
  • The proposed coherence discriminator scores compatibility across all sentences in a paragraph, while the cohesion discriminator scores consecutive sentence pairs.Their scores serve as reward signals for an RNN-based language model.Source: §1 · p. 1
  • Negative-critical sequence training uses negative samples to estimate a reward baseline, eliminating the need for a separate critic function.Source: §1 · pp. 1–2
  • The authors develop a model for more coherent and cohesive long-form text and validate it on TripAdvisor and Yelp English reviews.Source: §1 · p. 2

2 Related work

The related-work section frames long-form generation as lacking effective control of local and global consistency, then reviews reinforcement-learning, reward-model, and adversarial approaches that address parts of the problem.

2 Related work

  • In the reinforcement-learning framing, a generator is a policy choosing each word as an action conditioned on the preceding text, with expected reward accumulated over the sequence.The paper formulates generation as an episodic problem with reward available only at the episode's end and γ = 1.Source: §2 · p. 2
  • Prior work directly optimizes metrics such as BLEU or ROUGE, while later consistency and repetition objectives rerank candidates rather than reward or penalize them.Source: §2 · p. 2
  • Dialogue reward models have combined objectives such as information flow and semantic coherence, but their individual contributions were not ablated and their generalization to long-form tasks was unclear.Source: §2 · p. 2
  • Order-based rewards may not capture coherence because a paragraph admits many negative orderings; the authors also model cohesion between consecutive sentence pairs with word-level features.Source: §2 · p. 2
  • Text GAN discriminators typically distinguish real from generated text rather than assess linguistic properties, and a language-model discriminator still does not model cohesion or coherence.Source: §2 · p. 2
  • The authors argue that inadequate long-form generators lack effective mechanisms to measure and control local and global consistency; prior neural work jointly exploring coherence and cohesion in long-form generation had not come to their attention.Source: §2 · p. 2

3 Coherence and Cohesion Models

The model distinguishes paragraph-level coherence from local cohesion between neighboring sentences, using separate discriminators that score these properties. Their architectures and negative-pair training reflect the different information each property requires.

3 Coherence and Cohesion Models

  • Coherence concerns how sentences are organized across a paragraph, while cohesion concerns local connections between neighboring sentences.The model treats the two properties with separate discriminators operating at sentence and word levels, respectively.Source: §3 · p. 3

3.1 Coherence discriminator: Dcoherence

  • Dcoherence encodes sentence bag-of-words vectors with separate source and target encoders, then scores their text-chunk vectors by cosine similarity.The encoders share an architecture but not parameters, so the score is not symmetric; bag-of-words inputs preserve high-level sentence semantics while ignoring word order.Source: §3.1 · p. 3, Figure 1 · p. 3
  • Dcoherence learns to score coherent text-chunk pairs above incoherent pairs using a margin-based pairwise ranking loss.Negative pairs include rotated targets, shuffled sentence order, and combinations of rotation and shuffling; a weighted average emphasizes harder negatives and empirically stabilizes training and speeds convergence.Source: §3.1 · pp. 3–4

3.2 Cohesion discriminator: Dcohesion

  • Dcohesion encodes consecutive sentences from raw word embeddings with separate source and target networks and scores them by cosine similarity.Unlike the coherence discriminator's bag-of-words sentence representations, its CNN or RNN encoders retain word order, which matters for judging neighboring-sentence cohesion.Source: Figure 1 · p. 3, §3.2 · p. 4
  • Dcohesion is trained to rank real consecutive-sentence pairs above incohesive alternatives with a margin-based pairwise ranking loss.Its negative pairs are produced by replacing the next sentence, shuffling its words, and combining those approaches; positive pairs are sampled from consecutive sentences in paragraphs.Source: §3.2 · pp. 4–5

4 Negative-Critical Sequence Training for Long-form Text Generation

The generator begins as an attention-based bidirectional sequence-to-sequence model trained by maximum likelihood, but its outputs often fall short on coherence and cohesion. The paper uses discriminator scores as policy-gradient rewards and estimates a reward baseline from negative samples rather than a separate critic.

4.1 Long-form text generator: G

  • The attention-based bidirectional sequence-to-sequence generator is pre-trained by maximum likelihood, yet its long-form outputs often miss the desired coherence and cohesion standards.The pre-trained model is denoted GMLE.Source: §4.1 · p. 5
  • The pre-trained coherence and cohesion discriminators provide reward or penalty signals that adjust GMLE through negative-critical sequence training, a policy-gradient variant.Source: §4.1 · p. 5

4.2 Negative-critical sequence training

  • For generated text conditioned on a source, the method calls both discriminators and computes overall cohesion as the mean score over consecutive sentence pairs, including the source's last sentence.Source: §4.2 · p. 5
  • Raw discriminator scores are not interpretable; the differences between positive-pair scores and maximal or average negative-pair scores indicate how well each discriminator separates positive from negative pairs.Source: §4.2 · p. 5
  • The score margin functions as reward minus baseline, so negative samples provide a baseline without requiring a separately trained critic.Source: §4.2 · p. 5
  • The negative-pair expectations used in the reward are computed by averaging over an ensemble of negative pairs.Source: §4.2 · p. 5
  • The reward baseline averages negative-pair scores rather than using their maximum or weighted mean, which the authors report can be noisy.They report the mean baseline as an empirically better alternative for reducing reward noise.Source: §4.2 · p. 5

5 Experiments

Experiments evaluate discriminator-guided generation on TripAdvisor and Yelp reviews using discriminator retrieval, automated metrics, sample outputs, and human judgments. The reported results show improved automated scores and generated-text quality, with marginal differences in diversity.

5.3 Results

  • Discriminator retrieval evaluation uses R@K over 100 negative candidates, with reported ratios averaged across 20 evaluations.The experiments also show examples of positive and negative pairs and their rewards in Table 1.Source: Table 2 · p. 6, Table 1 · p. 6, §5.3 · p. 8
  • Sample generations contrast GMLE’s repetition and inconsistent opinions with GMLE+RL’s more interesting, sentiment-consistent continuations.The comparison is presented in Table 3.Source: Table 3 · p. 7

5.1 Dataset

  • The datasets are TripAdvisor and Yelp reviews; retained reviews have at least 10 sentences, each 5–30 words, with five sentences as input and the next five as target.The selected subsets contain roughly 60,000 TripAdvisor reviews and 220,000 Yelp reviews, split 0.8/0.1/0.1 for train, development, and test.Source: §5.1 · pp. 6–7

5.2 Implementation details

  • Discriminators use fixed GloVe embeddings with CNN or bidirectional-GRU encoders, selecting checkpoints by validation R@1.The CNN encoder uses 512 filters at each specified filter size; discriminator training uses Adam with learning rate 1e-5.Source: §5.2 · p. 7

5.3 Results

  • Human judges preferred GMLE+RL to GMLE in evaluation of 200 TripAdvisor samples after poor judges were removed.Judges ranked outputs for coherence and cohesion; Table 5 reports preferences after adjustment for spamming.Source: Table 5 · p. 8, §5.3 · p. 8

5.2 Implementation details

  • GMLE+RL is fine-tuned for up to five epochs with equally weighted coherence and cohesion rewards, while supervised learning continues and decoding remains greedy.The fine-tuning learning rate is 1e-5.Source: §5.2 · pp. 7–8

5.3 Results

  • Discriminator-guided GMLE+RL significantly improves BLEU, NLL, and PPL, with marginal differences in diversity.Table 4 reports the automated evaluation metrics as an ablation study.Source: Table 4 · p. 7, §5.3 · p. 8

6 Conclusion

The paper trains language models with pre-trained coherence and cohesion discriminators and negative-critical sequence training, and reports consistent automatic and human evaluation results on two long-form generation tasks. The authors say the initial results fall short of the goal of generating meaningful and logical long-form texts.

  • Pre-trained discriminators score generated texts, while artificially constructed negative-pair scores provide policy-gradient baselines in negative-critical sequence training.Source: §6 · p. 8
  • Human and automatic evaluations agree that the method generates more locally and globally consistent texts on two long-form generation tasks.Source: §6 · p. 8
  • The authors say the method still needs significant improvement to meet the goal of generating meaningful and logical long-form texts.Source: §6 · p. 8

A Human evaluation un-adjusted scores

The reported human-evaluation scores are unadjusted for judges considered poor based on their preferences between GMLE+RL and Human.

B Sparse end-of-sequence rewards

Sequence-level rewards arrive only after generation, creating sparse end-of-sequence signals; for this task, the authors report that exploration caused most noise and learning generalized without reward shaping.

Loading 1811.00511v2…