---
title: "Towards Coherent and Cohesive Long-form Text Generation"
description: "Cho and colleagues train a review generator with separate rewards for paragraph coherence and sentence cohesion, then test it on…"
canonical: "https://research.elamur.ai/free/en/papers/cho-2019-coherent-cohesive-long-form-text/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/cho-2019-coherent-cohesive-long-form-text/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2019](https://md.research.elamur.ai/free/en/papers/2019/) / Towards Coherent and Cohesive Long-form Text Generation

# Towards Coherent and Cohesive Long-form Text Generation

Paper · 2019 · Woon Sang Cho, Pengchuan Zhang, Yizhe Zhang et al.

**Authors:** [Woon Sang Cho](https://md.research.elamur.ai/free/en/authors/woon-sang-cho/), [Pengchuan Zhang](https://md.research.elamur.ai/free/en/authors/pengchuan-zhang/), [Yizhe Zhang](https://md.research.elamur.ai/free/en/authors/yizhe-zhang/), [Xiujun Li](https://md.research.elamur.ai/free/en/authors/xiujun-li/), [Michel Galley](https://md.research.elamur.ai/free/en/authors/michel-galley/), [Chris Brockett](https://md.research.elamur.ai/free/en/authors/chris-brockett/), [Mengdi Wang](https://md.research.elamur.ai/free/en/authors/mengdi-wang/) and [Jianfeng Gao](https://md.research.elamur.ai/free/en/authors/jianfeng-gao/) · **Year:** 2019 · **Venue:** Proceedings of the First Workshop on Narrative Understanding · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

Proceedings of the First Workshop on Narrative Understanding · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/W19-2401/)
- [PDF](https://aclanthology.org/W19-2401.pdf)
- [DOI 10.18653/v1/w19-2401](https://doi.org/10.18653/v1/w19-2401)

## Summary

A review can contain perfectly readable sentences and still be hard to follow. The sentence after a complaint about a hotel room might sound natural by itself yet feel out of place in the review. A different continuation might make sense one sentence at a time while losing track of the writer’s overall assessment. Cho and colleagues treat these as distinct problems. They use *cohesion* for the fit between neighboring sentences and *coherence* for the way sentences work together across a passage. They ask whether giving a generator feedback at both scales can improve long-form [text generation](https://md.research.elamur.ai/free/en/topics/text-generation/).

Their experiment starts with the opening of an English review and asks a recurrent generator to continue it. The authors train a pair of scorers, called discriminators, on examples taken from reviews. The coherence discriminator learns to favor a review’s actual continuation over alternatives with the wrong sentences or the wrong order. It represents each sentence by its average word vector and examines the sequence of sentences. The cohesion discriminator learns to favor actual neighbors over mismatched or scrambled alternatives. It takes the words in order so it can distinguish sentences that use similar vocabulary but give those words different roles.

The authors first teach the generator to predict the words in real continuations. They then adjust it using the discriminators’ scores. A continuation earns coherence credit according to how well it scores relative to a collection of deliberately corrupted alternatives. Cohesion credit comes from adjacent-sentence scores, including the transition from the supplied opening into the generated text. The authors call the procedure *negative-critical sequence training*. Averaging scores from negative examples gives them a comparison point without training a separate network to estimate that baseline.

On TripAdvisor and Yelp, the adjusted generators scored better than the original generator on negative log-likelihood, perplexity, and the reported variants of [BLEU](https://md.research.elamur.ai/free/en/concepts/bleu/). There was little change in the reported measures of repetition and diversity. Using both rewards did not produce the best automatic scores across the board. In the TripAdvisor human evaluation, the generator trained with both rewards received more preferences than the baseline on each of the two reading criteria, with many judgments falling in the neutral category. Human-written continuations received more preferences than the combined system. The results support rewarding connections across sentences in this review-continuation task, while the gap to human writing leaves the broader problem of meaningful, logically organized long-form generation open.

## Deep dive: Towards Coherent and Cohesive Long-form Text Generation

Cho and colleagues train a review generator with separate rewards for paragraph coherence and sentence cohesion, then test it on TripAdvisor and Yelp. · about 36 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### A sentence can work on its own and fail in context

Imagine that a hotel review first establishes that a room was expensive and disappointing. A continuation can move naturally from the room to the service or breakfast if the reader can tell how that new material bears on the stay. A sentence about a pleasant breakfast could belong in a mixed review. A whole passage that suddenly describes a different hotel as good value would be harder to reconcile with the opening, even if every sentence in the passage were readable. The trouble may emerge at the first transition, grow apparent over the next sentences, or do both. Judging the fluency of isolated sentences would miss these possibilities.

The paper adopts a distinction from writing research and applies it to the generation problem. Cohesion is a local relationship. It concerns whether one sentence sets up the next so that a reader can follow the connection between them. Coherence is a property of a larger stretch of writing. It concerns what the sentences collectively communicate and how their arrangement makes that purpose intelligible. These are ways of examining the organization of a text, familiar concerns in [discourse analysis](https://md.research.elamur.ai/free/en/concepts/discourse-analysis/). In the authors’ setup, the distinction determines which units a scorer sees and what evidence it can use.

A local transition can be smooth without helping the paragraph develop. Several adjacent statements could share a detail and pass it along, yet the paragraph might never bring those details to bear on the assessment introduced at the beginning. Conversely, a passage can retain a clear subject and recognizable overall position while forcing the reader to work out how an individual sentence relates to its predecessor. The design treats each of these as a potential source of feedback. The generator receives a score for the relationship between larger chunks and a separate score built from the transitions readers encounter as they move through the text.

The authors identify two difficulties in making this distinction computational. There is no formal specification they can simply apply to decide whether every passage has the required cross-sentence properties. There is also no widely accepted measuring instrument for either property. The related-work discussion points to existing accounts, including Rhetorical Structure Theory and earlier ways of representing and quantifying discourse relations. Those studies supply precedents for taking organization seriously. The paper’s own approach learns practical scoring rules from comparisons in which the researchers know which continuation or sentence came from the original document.

#### What earlier generation systems optimized

The authors describe a common generation setup in which a recurrent network learns to predict language from human-written examples. A prediction at each step depends on the preceding words and the available input. Collecting these predictions across an output gives an objective for training the whole generator. In principle, earlier context can inform later words. In practice, the fact that a generator predicts words well enough to write a plausible sentence leaves open how reliably it sustains a connection over several sentences. The paper illustrates this concern with responses in [dialogue systems](https://md.research.elamur.ai/free/en/topics/dialogue-systems/). A response can seem reasonable when shown alone and appear detached when read inside the exchange that prompted it.

The related work includes systems that use reinforcement learning to reward a completed output. In this framing the generator chooses words, and an evaluation of the resulting sequence supplies a signal for adjusting those choices. Earlier work could use a metric such as BLEU or ROUGE as the reward. Those metrics give a way to measure resemblance to reference text through shared sequences of words, a useful quantity for some tasks. The authors argue that it provides an incomplete account of generated writing. A reward for overlap leaves open whether the transition between sentences is intelligible or whether their combination conveys a consistent point.

Another line of work scored properties such as consistency and repetition when choosing among possible outputs. This approach can promote a more suitable continuation when one is already among the candidates. The distinction the paper draws is about where the feedback acts. Reranking changes the selection from a candidate set. A training reward changes the parameters that govern which continuations the generator is likely to produce in the first place. The paper also discusses earlier dialogue research that trained with rewards for properties such as information flow and semantic coherence. The authors identify open questions about what each reward contributed and how well rewards designed for dialogue would carry over to longer passages.

The paper singles out work by Bosselut and colleagues as its closest precedent. That approach favored a correct order and discouraged its reversal. Reversing a passage creates a clear comparison, but there are other ways to disturb its organization. A sequence can keep some sentences in place, break others out of order, or combine plausible sentences from unrelated documents. Cho and colleagues turn several kinds of corruption into training comparisons. They also train a separate scorer for neighboring sentences, where the difference between a good and poor transition can depend on the placement of particular words.

The authors discuss adversarial text generation as another source of feedback. In the work they describe, a discriminator usually learns to distinguish writing from the training data from generated writing. Another approach uses a trained predictor to provide feedback at the word level. Either kind of signal can help guide generation while leaving the reason for a low score unspecified. Cho and colleagues define the comparisons themselves so that a score has a more specific purpose. Their paragraph scorer is trained on whole-chunk replacements and sentence permutations. Their transition scorer is trained on replacements and word permutations. Those choices give an operational meaning to each score before it enters the generator’s training.

### The method, step by step

#### Learning to continue a review

Each example begins as one review. The authors take its opening sentences as the source chunk and the immediately following sentences as the target chunk. The baseline generator learns from those source-and-target pairs. Given the source, it predicts the target as a sequence of words. The discriminators learn from the same basic material, but their training asks a different question. Given a source chunk or sentence, which candidate continuation should score highest?

The generator is an attention-based recurrent encoder–decoder. Its encoder reads the source, and its decoder produces the continuation one word at a time. Attention lets the decoder draw on representations of the source as it generates, and the bidirectional encoder represents source tokens using context from both directions. The paper uses gated recurrent units, or GRUs. A GRU updates a hidden state as it processes a sequence, carrying information from earlier positions to later ones. The decoder’s operation is sequential because a word already generated can affect the choice of the next one. The attention-based sequence-to-sequence design comes from earlier work on [neural machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/). [Neural Machine Translation by Jointly Learning to Align and Translate](https://md.research.elamur.ai/free/en/papers/bahdanau-2014-neural-machine-translation-jointly-learning/)

Maximum likelihood estimation, abbreviated MLE, is the starting training procedure. In this setting it increases the probability that the generator assigns to the recorded target words, conditioned on the source and the preceding target context. The resulting generator, `G_MLE`, serves both as the baseline and as the starting point for the reward-tuned variants. The authors retain supervised training during the later adjustment so that choices favored by the rewards are still shaped by the original examples. The discriminators are trained before their scores are used as rewards.

Training the review generator with coherence and cohesion feedback The steps in order.

#### Scoring the opening and continuation together

The coherence discriminator compares a source chunk with a candidate target chunk. It first turns every sentence into an average of its word vectors. These vectors are learned representations in which words have numerical coordinates. The paper uses pretrained [GloVe](https://md.research.elamur.ai/free/en/concepts/glove/) vectors. Averaging produces a sentence representation whose size stays the same regardless of sentence length. It also removes the order of the words within that sentence. Given the same words with the same frequencies, the average stays fixed even if the words are rearranged. The authors use this bag-of-words representation on the assumption that much of the information necessary for their paragraph-level comparison is available in the broad meaning of each sentence.

The source and target are each represented as a sequence of these sentence averages. A source encoder reads the source sequence and a target encoder reads the candidate sequence. The authors use the same architecture on either side but let each side learn its own parameters. This lets the networks specialize. A pattern useful for representing an opening can be treated differently from a pattern useful for representing what follows. The two vectors produced by the encoders are compared by cosine similarity.

```
Dcoherence(S, T) = ⟨f(S), g(T)⟩ / (‖f(S)‖ ‖g(T)‖)
```

`Dcoherence` is the coherence discriminator. `S` represents the source chunk and `T` a candidate target chunk, each consisting of sentences in their given order. `f` is the source encoder and `g` is the target encoder. Angle brackets indicate the dot product of the resulting vectors, and each pair of double bars indicates a vector’s length. Dividing by the product of the lengths gives the cosine similarity, which the paper describes on a scale from −1 to 1. The dot product itself is symmetric in its vector arguments. The full text-pair score can change when the text chunks switch positions, because a different encoder then represents each chunk.

There are two notions of order in this design. Inside a sentence, averaging discards order. Across sentences, the order survives in the input to the chunk encoder. If the target contains the same sentences in a different sequence, each sentence still has the same average vector, but the encoder sees those vectors in a different arrangement. Training can therefore teach it to favor the original arrangement over the shuffled one. The distinction determines exactly what the coherence scorer can learn from the authors’ negative examples.

#### Scoring neighboring sentences

The cohesion discriminator uses the same general comparison scheme at a finer scale. Its source is a single sentence and its candidate is a possible next sentence. The encoders read sequences of word vectors instead of sequences of sentence averages. A convolutional encoder can respond to nearby patterns of words, and a recurrent encoder represents words as parts of a sequence. In either case, changes to word order can affect the resulting sentence vector.

The paper illustrates why that matters with a hotel arrival. A sentence introducing staff who greet the visitor can lead into an explanation the staff offer. It takes a different turn if the visitor is suddenly the person explaining things to the staff. Much of the vocabulary can stay similar while the relationship to the preceding sentence changes. A representation that can respond to the positions of the words has a chance to register the change. The example motivates the architecture, while the ranking experiment assesses whether the resulting scorer can recognize an original next sentence among alternatives.

```
Dcohesion(sₖ, sₖ₊₁) = ⟨u(sₖ), v(sₖ₊₁)⟩ / (‖u(sₖ)‖ ‖v(sₖ₊₁)‖)
```

`Dcohesion` is the cohesion discriminator. `sₖ` is the sentence at position `k`, and `sₖ₊₁` is the sentence immediately after it, or a candidate for that position. `u` encodes the earlier sentence and `v` encodes the proposed successor. Angle brackets give the dot product, and double bars give vector lengths. As in the chunk scorer, the source and target networks are architecturally alike and learn their parameters separately. The score is therefore directional even though the final operation is a cosine comparison.

#### Teaching the scorers with contrasts

For coherence, an original review opening paired with its actual continuation provides a positive example. The authors construct negative examples inside a minibatch, a group of training examples processed together. They keep an opening fixed and pair it with continuations from the other reviews in that group. These targets may be well written in their own right. The reason they are labeled negative is that they came from a different source. The scorer has to use something about the relationship between the opening and the continuation to rank such cases well.

They also shuffle the sentences of the opening’s own continuation, using a derangement. The paper uses this term for moving sentences out of their original positions. This negative preserves the same sentence content and gives the scorer practice recognizing a disruption of order. Finally, the authors shuffle continuations from the other openings in the minibatch as well. These examples combine a change of source with a change of order. Each positive pair has `2B−1` negative pairs, where `B` is the number of positive pairs in the minibatch. The three kinds of comparison make correct ranking depend on more than identifying vocabulary shared within an original review.

For cohesion, the authors first break the reviews into adjacent-sentence pairs, then randomly select `B` such pairs as the positives for a minibatch. To construct the negatives, they keep the first sentence in place and bring in a successor from another pair, shuffle the words of the actual successor, or combine the mismatch with word shuffling. The same count of `2B−1` negatives applies. The shuffled units differ across the tasks for a reason. For coherence, altering the order of intact sentences changes the sequence seen by the chunk encoder. For cohesion, altering words inside a sentence changes the sequence seen by the word-level encoder.

A mismatched continuation can happen to fit an opening. A newly ordered passage can also remain readable. The procedure therefore supplies comparisons based on how examples were constructed. It cannot know in advance how every pairing would strike a reader. This matters for the way the authors combine negative scores. During discriminator training they let high-scoring negatives count more heavily. During generator training they take the plain average because an especially good negative can make a poor reference point for the reward.

#### Ranking originals above the alternatives

Both discriminators use a margin-based ranking loss. The margin describes the separation the authors want between the positive score and a summary of the negative scores. If the positive is already far enough ahead, that comparison incurs no loss. If it falls short, training penalizes the shortfall. The negative summary is a weighted average whose weights are themselves determined by the negative scores.

```
wⱼ = exp(λxⱼ) / Σₖ exp(λxₖ)
```

`wⱼ` is the weight for negative candidate `j`, and `xⱼ` is its discriminator score. `λ` controls how strongly the weight responds to the score. `exp` is the exponential function. `Σₖ` adds the exponentials for all negative candidates, using `k` as the index over that set. The denominator normalizes the weights, so they share the available weight between them. As `λ` increases, higher-scoring negatives receive a larger share.

```
AVGλ({xⱼ}ⱼ₌₁ᴺ) = Σⱼ₌₁ᴺ wⱼxⱼ
```

`AVGλ` is the weighted averaging operation, and `{xⱼ}ⱼ₌₁ᴺ` is the collection of `N` negative scores. `j` indexes the scores, `wⱼ` is the corresponding normalized weight, and the sum adds the weighted scores from the first to the last negative. With `λ = 0`, the weights are equal and the operation becomes an ordinary mean. As `λ` approaches infinity, the average approaches the highest negative score. The authors describe the intermediate setting as a useful compromise in training. It makes close competitors matter more while allowing the other negatives to contribute.

```
Lcoherence(θf, θg) = max(0, δ − Dcoherence(S, T) + AVGλ({Dcoherence(S, T̃ⱼ)}ⱼ₌₁²ᴮ⁻¹))
```

`Lcoherence` is the loss for the coherence discriminator. `θf` and `θg` are the trainable parameters of the source and target encoders. `δ` is the margin. `S` is the source chunk, `T` is its original target, and `T̃ⱼ` is negative target `j` for that source. `Dcoherence` scores each pairing, and `AVGλ` summarizes the negative scores with the weights just defined. The index runs over `2B−1` alternatives, where `B` is the minibatch size. `max` keeps the larger of zero and the shortfall. A loss of zero means the positive clears the weighted negative score by at least the margin. It can do so even if an individual negative remains a close competitor.

```
Lcohesion(θu, θv) = max(0, δ − Dcohesion(sₖ, sₖ₊₁) + AVGλ({Dcohesion(sₖ, s̃ₖ₊₁,ⱼ)}ⱼ₌₁²ᴮ⁻¹))
```

`Lcohesion` is the corresponding loss for adjacent sentences. `θu` and `θv` are the trainable parameters of the earlier-sentence and following-sentence encoders. `δ` is the margin, `sₖ` is the first sentence in the pair, and `sₖ₊₁` is its actual successor. `s̃ₖ₊₁,ⱼ` denotes candidate replacement `j` for that successor. `Dcohesion` scores the positive pairing and each negative pairing. `AVGλ` gives the weighted negative score over the `2B−1` candidates, with `B` again denoting the minibatch size. The maximum with zero has the same role as in the coherence loss. The difference lies in the inputs and in what was scrambled to make the competing examples.

#### Turning ranks into a reward for generation

The generator can now produce a candidate continuation and submit it to the trained scorers. The discriminators learned through comparisons. The authors give the generator’s scores a comparison point by subtracting average scores from corrupted examples. This is the negative-critical baseline. It is computed with the existing discriminators and provides an alternative to training a separate critic to estimate a baseline for reinforcement learning.

```
Rcoherence(S, Tgen) = Dcoherence(S, Tgen) − E[T̃]{Dcoherence(S, T̃)}
```

`Rcoherence` is the coherence reward after subtracting the baseline. `S` is the original opening and `Tgen` is the generator’s continuation. `Dcoherence` scores their fit. `T̃` denotes a negative continuation, and `E[T̃]` denotes an expectation over the negative set, computed by averaging their scores. The first term measures the actual generated candidate, and the second measures how the scorer tends to rate corrupted candidates with the same source. A positive reward means the generated candidate scores above that comparison point.

For cohesion, the discriminator gives a score for each neighboring pair. The authors form a sequence from the last supplied sentence and the generated sentences. They average the pair scores in this sequence, so the transition at the source–target boundary has the same footing as an internal transition. They then subtract an average negative-pair score.

```
Rcohesion([S₋₁, Tgen]) = (1 / |Tgen|) Σ[(sₖ, sₖ₊₁) in [S₋₁, Tgen]] Dcohesion(sₖ, sₖ₊₁) − E[s̃ₖ₊₁, (sₖ, sₖ₊₁) in [S, T]]{Dcohesion(sₖ, s̃ₖ₊₁)}
```

`Rcohesion` is the adjusted reward for the generated transitions. `S₋₁` is the last source sentence, `Tgen` is the generated chunk, and square brackets join the last source sentence to that chunk. `|Tgen|` is the number of generated sentences. The sum visits the adjacent pairs `sₖ, sₖ₊₁` in the joined sequence, with `k` the earlier sentence’s position and `Dcohesion` the pair scorer. The factor `1 / |Tgen|` averages the contributions because the boundary adds a transition for the first generated sentence as well. In the baseline term, `E` denotes averaging the negative scores, `s̃ₖ₊₁` is an artificial alternative successor, and `[S, T]` denotes the source and original target from which the sentence-pair comparisons are drawn.

The use of a plain mean in these rewards is deliberate. The ranking loss asks a discriminator to learn from convincing negatives, so it amplifies their scores during training. The generator’s reward needs a comparison point that can remain informative when a mislabeled or accidentally plausible continuation receives a high score. The authors found the unweighted mean preferable for that role. This makes the two stages related without giving their negative examples identical weights.

#### Updating the word choices

The paper frames generation as an episodic reinforcement-learning problem. An episode is one continuation. The policy is the generator’s distribution over the next word given its current state. Choosing a word changes that state, because the continuation is now one word longer. In the general formulation, rewards can be associated with intermediate timesteps. For this application the authors score the completed continuation.

```
J(π) = E[s₀ ∼ q, π]{Σₜ₌₁∞ γᵗ⁻¹ rₜ}
```

`J` is the expected return of policy `π`. `E` indicates an expectation over the initial state `s₀`, drawn from the input distribution `q`, and over the choices made under `π`. `∼` means drawn from or distributed as. `t` indexes word-generation steps, `rₜ` is the reward for the sequence generated through that step, and `γ` is the discount factor. The sum gives later rewards the weight `γᵗ⁻¹` and the infinity sign expresses the general form of the objective. In the paper’s episodic application, `L` is the episode length. The reward is available at the endpoint as `rᴸ`, with `γ = 1`.

```
∇θπ J = E[s ∼ ρπ, a ∼ π(· | s)]{Qπ(s, a) ∇θπ log πθπ(a | s)}
```

`∇θπ` denotes the gradient with respect to the policy parameters `θπ`. `J` is the return objective, and `E` is the expectation over states `s` and actions `a`. The paper denotes the state distribution under the policy by `ρπ`. The expression `π(· | s)` gives the distribution over actions conditional on state `s`, where the dot stands for the variable action. `πθπ(a | s)` is the probability, under the parameterized policy, of taking the particular action `a` in state `s`. Here an action is a word choice and the state includes the text available so far. `Qπ(s, a)` is the expected return after that action when subsequent choices follow the policy. The gradient of `log`, the logarithm of the action probability, supplies the direction in which the parameters can change its probability. The expected return determines how the action contributes to the update.

In the combined system the two discriminator rewards receive equal weight.

```
R = (1/2) Rcoherence(S, Tgen) + (1/2) Rcohesion([S₋₁, Tgen])
```

`R` is the combined reward, and each `1/2` is a coefficient chosen by the authors. `Rcoherence` scores the opening `S` with the generated continuation `Tgen`, relative to the negative coherence scores. `Rcohesion` scores the adjacent transitions after the last source sentence `S₋₁`, relative to the negative cohesion scores. The authors also train variants using each reward separately. They continue the supervised learning objective alongside the policy updates to keep the generator close to the kinds of sentences supported by the training data.

### Experiments and results

#### Reviews, splits, and settings

The experiments use English hotel reviews from TripAdvisor and English reviews from Yelp. The authors restrict the data to reviews with at least 10 sentences and require every sentence to have from 5 to 30 words. The remaining reviews number about 60,000 from TripAdvisor and 220,000 from Yelp. The proportions for training, development, and test are `[0.8, 0.1, 0.1]`. Each example takes the first five sentences of its review as input and the next five as the reference output. The source and target use the same vocabulary, limited to the 50,000 most common words with special tokens excluded.

The sentence requirements give the generator a substantial opening and a substantial reference continuation. Every example can supply material for the chunk comparison as well as neighboring pairs for the transition comparison. The reference length comes from the task construction. A generated output still has its own length, which the paper measures, and the reward calculation uses the sentences it actually generates. The experiment is consequently a continuation task with a known reference, a specific passage scale, and a constrained selection of source reviews.

The generator uses fixed GloVe vectors of dimension 300. Its encoder and decoder use two-layer GRUs with hidden size 1024. The authors optimize the supervised generator with a learning rate of `2e-4` and clip the gradient’s L2 norm to `1.0`. Clipping limits the size of an update when the norm is large. The initial training lasts 60 epochs for TripAdvisor and 30 epochs for Yelp, where an epoch is a pass through the training data. The optimizer is [Adam](https://md.research.elamur.ai/free/en/papers/kingma-2014-adam-method-stochastic-optimization/).

The convolutional coherence encoders use filters of sizes 2, 3, 4, and 5 over sequences of sentence representations. The corresponding sizes for the cohesion encoders are 3, 4, 5, and 6 over word representations. There are 512 filters of each size. A tanh activation follows the convolution, and max pooling keeps the strongest response over sequence positions for each filter. Next, a fully connected layer outputs a 512-dimensional feature vector, which undergoes batch normalization and then a further tanh activation. In the recurrent alternative, a 1-layer bidirectional GRU with hidden size 1024 supplies the final states from the two directions. Those states are concatenated before the remaining layers. Both discriminator types keep their pretrained word vectors fixed, using size 300 in the reported runs.

The discriminators are trained for 50 epochs with Adam and a learning rate of `1e-5`. They use `λ = 2` in the negative weighting and `δ = 0.2` for the ranking margin. The paper says a coarse search on the development data identified these settings as ones that reached high recall quickly. The best validation R@1 determines which trained discriminators are selected. Generator tuning runs for up to 5 epochs at `1e-5`. All reported generation comparisons use greedy decoding, which chooses the most likely next word at each step. The authors also tried beam search, which keeps multiple partial sequences in consideration, and report no significant difference when they switched.

#### How well the discriminators retrieve real continuations

To evaluate retrieval, the discriminator receives 100 negative candidates drawn from the test data and is assessed on whether it places the correct target among its top-ranked options. The paper reports averages over 20 evaluations. Recall at a cutoff, written R@K, is the fraction of retrieval cases in which the actual target is among the top `K`. R@1 counts only a first-place ranking. R@5 and R@10 allow the original target to appear farther down the list. A larger cutoff can reveal that the scorer frequently identifies a promising group of candidates, even when its first choice is often wrong.

For coherence on TripAdvisor, the convolutional encoder records R@1 of 0.18, R@5 of 0.43, and R@10 of 0.60. The bidirectional GRU records 0.26, 0.50, and 0.65 on the same test. On Yelp, the convolutional version records 0.33, 0.61, and 0.74, while the recurrent version records 0.39, 0.68, and 0.81. The recurrent version is higher at each cutoff in these two comparisons. Given the candidates used here, the order-sensitive passage encoder thus has measurable success retrieving the actual continuation, with substantial room left at the top rank.

For cohesion on TripAdvisor, convolution records R@1 of 0.14, R@5 of 0.33, and R@10 of 0.47. The corresponding recurrent scores are 0.11, 0.26, and 0.39. On Yelp, the convolutional scorer records 0.12, 0.28, and 0.43, and the recurrent scorer records 0.11, 0.21, and 0.33. The architecture preference goes the other way for the local comparison. These retrieval scores describe how well each discriminator ranks an original target in its own candidate task. The cohesion and coherence retrieval problems use different units, so their raw levels do not establish how much each reward can help the generator.

#### Automatic comparisons of generated text

The generator experiment compares the original MLE system with a cohesion-only variant, a coherence-only variant, and the variant that uses both rewards. Negative log-likelihood, or NLL, measures how much probability the generator assigns to the target text on the evaluation data, expressed as a loss. Perplexity, or PPL, is a related measure of prediction uncertainty. Lower values are favorable for both. BLEU gives a different account by measuring how closely a generated continuation resembles the reference through matching sequences of words. The paper reports BLEU-3, BLEU-4, and BLEU-5. An [n-gram](https://md.research.elamur.ai/free/en/concepts/n-gram/) is a sequence of neighboring tokens, and its order is its length. The BLEU variants differ in the orders of word sequences they consider.

On TripAdvisor, baseline NLL is 0.86 and PPL is 2.36. They are 0.77 and 2.18 with cohesion alone, 0.80 and 2.24 with coherence alone, and 0.80 and 2.25 with both. Baseline BLEU-3, BLEU-4, and BLEU-5 are 0.38, 0.19, and 0.08. The cohesion-only variant gives 0.46, 0.27, and 0.14. Coherence alone gives 0.44, 0.25, and 0.12. With both rewards, the scores are 0.44, 0.24, and 0.12. Cohesion alone is the strongest of the tested variants on these TripAdvisor measures of likelihood and overlap.

TripAdvisor test BLEU-4 by generator training setting Cohesion alone produces the highest reference overlap at this order.

**The numbers**

| System or setting | BLEU-4 |
| --- | --- |
| Maximum likelihood baseline | 0.19 |
| Cohesion reward (this paper) | 0.27 |
| Coherence reward | 0.25 |
| Combined rewards | 0.24 |

On Yelp, baseline NLL and PPL are 1.32 and 3.84. The cohesion-only variant reports 1.26 and 3.65, the coherence-only variant 1.24 and 3.56, and the combined variant 1.25 and 3.59. Baseline BLEU-3, BLEU-4, and BLEU-5 are 0.37, 0.17, and 0.07. Cohesion alone and coherence alone each report 0.45, 0.23, and 0.11. The combined variant reports 0.43, 0.22, and 0.11. At the reported precision, the individual rewards tie for each of the Yelp overlap scores while coherence alone has the strongest Yelp likelihood scores.

Yelp test perplexity by generator training setting Each reward setting improves on the baseline, and coherence alone has the lowest perplexity.

**The numbers**

| System or setting | PPL |
| --- | --- |
| Maximum likelihood baseline | 3.84 |
| Cohesion reward | 3.65 |
| Coherence reward (this paper) | 3.56 |
| Combined rewards | 3.59 |

The diversity measures ask how frequently outputs reuse word sequences. Intra-unique measures the proportion of distinct n-grams within an individual output. Inter-unique measures distinct n-grams across outputs. This distinction matters because a system can avoid repeating itself inside each review while returning similar language for many different openings. On TripAdvisor, the baseline and combined variant record inter-unique-2 of 0.40 and 0.40, and inter-unique-3 of 0.72 and 0.72. Their intra-unique-1 values are 0.66 and 0.65, and their intra-unique-2 values are 0.93 and 0.94. On Yelp, the corresponding baseline and combined values are 0.54 and 0.56 for inter-unique-2, 0.86 and 0.88 for inter-unique-3, 0.68 and 0.69 for intra-unique-1, and 0.95 and 0.95 for intra-unique-2. These shifts are modest alongside the improvements in overlap and prediction.

The paper also reports output length relative to the original target, which is assigned a reference value of 1. TripAdvisor’s baseline, cohesion-only, coherence-only, and combined variants report length ratios of 1.08, 0.97, 1.06, and 1.02. On Yelp, they report 1.07, 1.05, 1.00, and 1.05 in the same order. The changes help put the other measurements in context. The TripAdvisor cohesion-only system leads on BLEU with a ratio below the reference, while the Yelp coherence-only system ties on BLEU with a ratio of 1.00. Higher overlap in these comparisons accompanies more than one length pattern.

#### Human judgments of the continuations

Human evaluation tests the properties the rewards were designed to represent. The authors randomly select 200 TripAdvisor samples and collect paired judgments. One comparison places the combined reward system against the MLE baseline. The other places it against the original human continuation. The continuation order is randomized, and judges rate coherence and cohesion on a five-point scale. The paper reports preferences after collapsing the scale into preference for either side or neutrality.

The authors initially assign 7 judges to each pair. They remove judges who prefer the combined generator to the human continuation more than 40% of the time, treating this pattern as evidence of possible spamming. The percentages refer to the remaining judgments. For cohesion, 36.41% prefer the combined system to the MLE baseline, 30.50% prefer the baseline, and the reported neutral entry is 33.57%. For coherence, 37.23% prefer the combined system, 31.80% prefer the baseline, and the reported neutral entry is 31.44%. The lead is a comparison of the two directional preference categories. Neutral judgments account for a substantial portion of each comparison. The printed entries in these two rows have an internal discrepancy when read as a complete distribution, so the individual percentages are best read as the paper reports them.

For cohesion against human writing, 29.91% prefer the combined system, 39.24% prefer the human continuation, and 30.85% are neutral. For coherence, the reported values are 28.96% for the combined system, 39.72% for the human continuation, and 31.32% neutral. This second comparison gives a different point of reference for the improvement over MLE. The combined system wins the directional comparison against its starting system on both criteria, while the original writing wins the directional comparison against the combined system.

A sample continuation shows what these judgments can pick up that word overlap cannot. The opening is favorable about a hotel and describes its staff, cleanliness, and bathroom. The baseline continuation revisits breakfast and describes it in ways that sit uneasily together. It also repeats itself while listing breakfast choices. The combined system continues with breakfast, location, and amenities and keeps a more consistently favorable tone. The point of the example is how the continuation reads alongside the opening. It illustrates an improvement in maintaining an assessment without establishing that the details the generator supplies are true of the property.

### What the ablations show

#### Each reward can help on its own

The main ablation holds the starting generator architecture fixed and varies which discriminator rewards are used during tuning. The comparison with the MLE baseline shows what happens when the likelihood-trained generator is subsequently tuned with each reward setting while supervised training continues. The comparisons among the three tuned variants show what happens when the extra feedback comes from transitions, from chunk compatibility, or equally from both. In both review datasets, either reward alone is enough to improve all the reported likelihood and BLEU measures over the baseline. The automatic evidence therefore supports independent contributions in the sense that each can improve those measures in its own training run.

The strongest individual reward varies with the dataset and metric. On TripAdvisor the cohesion-only system is ahead on NLL, PPL, and each reported order of BLEU. On Yelp the coherence-only system leads on NLL and PPL, and the two individual rewards tie on the reported BLEU scores. These results show that feedback on a specific kind of connection can also affect broader word prediction and reference overlap. They leave the exact linguistic causes unresolved. A cohesion reward can favor sentences whose word choices resemble the original without necessarily accounting for every local transition, and a coherence reward can help keep a passage on topic without guaranteeing that all its details form a consistent account.

Equal weighting gives the discriminator rewards a direct role in the same run, but their combination does not consistently improve upon the better individual reward. The combined TripAdvisor system has BLEU-4 of 0.24, compared with 0.27 for cohesion alone. On Yelp it has PPL of 3.59, compared with 3.56 for coherence alone. The same combined system has the highest reported Yelp inter-unique-2 and inter-unique-3 values, at 0.56 and 0.88. Across these measures, a training choice can improve one characteristic while another setting scores better elsewhere. The experiment gives an assessment of the authors’ equal weighting, with no basis here for selecting a weight that would be best on every measure.

The human study answers a narrower comparative question than the automatic ablation. Judges see the combined system against the MLE baseline and against the original human continuation. This tests whether using both rewards yields a readable difference from the starting system and where the result stands relative to the original text. Judges never compare all the tuned variants in the reported study. The human results therefore cannot tell whether the cohesion-only system, which leads the TripAdvisor automatic measures, would also do as well on judged cohesion or coherence. The automatic and human comparisons support different parts of the paper’s argument.

#### Encoder choice depends on what gets encoded

The retrieval comparisons vary the discriminator encoder. With the reported settings, the recurrent encoder performs better for coherence and the convolutional one for cohesion, on both datasets and at each displayed cutoff. In the coherence scorer, the sequence consists of whole-sentence representations. In the cohesion scorer, it consists of word representations within a sentence. The comparison supports the authors’ decision to evaluate the architectures separately at those scales. It concerns these particular encoders and configurations. Because filter, representation, and recurrent settings are part of the comparison, the results cannot identify a single architectural feature as the cause of the advantage.

For the same reason, the retrieval comparison cannot isolate the value of the bag-of-words representation against a word-order-sensitive sentence representation at paragraph level. The coherence scorer’s recurrent and convolutional variants both start with sentence averages. The cohesion variants each see ordered words. The difference between coherence and cohesion retrieval also involves the number and kind of language units to be recovered. The paper’s strong evidence here is the ranking among encoder settings *within* each retrieval task. The cross-task contrast explains how the method is designed and why the tests pose different challenges.

The authors mention further design checks in describing training. They explored deeper convolutional networks and found little performance difference, so the reported convolutional design uses a single layer. They also tried discriminator embedding sizes of 50, 100, and 300, with marginal differences, and report results using 300. For the ranking loss, they describe weighting the negatives as stabilizing training and speeding convergence. For the generator reward, they describe the unweighted negative mean as empirically preferable. These observations explain the chosen configurations. The paper presents no detailed score series for those comparisons from which to judge their size.

#### Examples show how the two scores can disagree

In a test example, a TripAdvisor opening describes an overpriced hotel with poor facilities and a disappointing shared bathroom. The actual continuation extends that assessment with comments about the beds and service. A negative continuation also concerns a hotel and touches on breakfast and rooms, but goes in a favorable direction and describes a different set of circumstances. The coherence reward is +0.3735 for the actual continuation and -0.2001 for the negative one. The example shows a comparison where some vocabulary and subject matter match while the overall account changes substantially.

Individual transitions within the negative can still be plausible. The local scorer makes a judgment about a pair, even when the enclosing passage concerns a different stay or shifts the original attitude. The paper’s additional neighboring-sentence examples show the reverse diagnostic purpose as well. An abrupt move between unrelated subjects can receive a low cohesion reward while another pair in the passage connects more clearly. Together the examples show why the authors preserve both levels of scoring. The paragraph-level score and the average of local transitions use different evidence, and a good result at either level is compatible with a problem at the other.

### Limitations

#### Limits stated by the authors

The authors regard their results as an initial step toward producing meaningful long-form text. They identify a gap between the properties their discriminators reward and the wider goal of generating writing whose meaning and logic hold together. The coherence scorer is designed to judge compatibility and arrangement, and the cohesion scorer judges local fit. Neither score is a formal specification of how a passage should reason, what it should say next, or how a writer should support a claim. This is the same measurement difficulty that motivates the paper. The examples supply a workable training contrast where a comprehensive definition is unavailable.

The authors also state that standard automatic metrics have difficulty measuring coherence and cohesion. BLEU tells the reader about overlap with the particular reference. NLL and perplexity describe prediction on evaluation text. Distinct n-grams give information about repetition or variety. A generator can improve on these dimensions for reasons that only partly involve cross-sentence organization. The authors add human judgments because the intended qualities depend on reading how the output connects to its context. The human comparison supplies direct evidence for TripAdvisor, and the automatic results extend to both review datasets.

A limitation of the training signal arises when an artificial negative looks good. The authors explicitly note that the strongest negative can be an unusually plausible example, making a maximum or a weighted mean noisy as a generator baseline. Their solution is to average negative scores without the training weights. That reduces the influence of an unusually high-scoring candidate. It leaves in place the premise that the original ordering and original continuation, on average, are better examples of the desired qualities than replacements and shuffles.

#### Limits of the experimental setup

The length and genre of the inputs narrow the scope of the findings. The systems continue selected English reviews, starting from a fixed span of existing prose and training on the following span. In a whole review written from scratch, a generator also has to decide what to introduce and how to organize the opening. In a document with more levels of structure, the interaction between nearby passages and distant sections may be different from the interaction between neighboring sentences and a single review opening. The experiments establish what the rewards do at the scale and in the genre the authors test.

Each prompt has a recorded continuation, although several continuations could make sense after the same opening. This affects both the retrieval and generation evaluations. In retrieval, the statistic treats the original target as the item to find. A plausible alternative remains a negative under that protocol. In generation, a legitimate continuation can pursue a different aspect of the stay and share few phrases with the reference. The retrieval and BLEU results are consequently measurements under the paper’s definitions of correct retrieval and reference overlap. The human evaluation complements them by asking readers to consider fit directly.

The representations also set boundaries on what either discriminator can detect. At paragraph level, a change that preserves the bag of words within each sentence may alter the meaning without changing any input vector available to the scorer. The cohesion scorer can respond to word order, but it compares sentences in pairs. Its mean reward can therefore conceal a weak transition among several strong ones. A particular inconsistency might also depend on a distant sentence that never appears in the same local comparison. The combined reward gives the generator feedback from both sides of this tradeoff, with no guarantee that the passage encoders or the pair average will capture every contradiction.

The construction of negatives can make some cases easy for reasons other than the intended distinction. A word shuffle can make a sentence malformed, letting the cohesion scorer reject it on grounds that already matter within the sentence. A continuation from another review can change topics obviously, making it easy for the coherence scorer without demanding close attention to the order of sentences. Using both mismatch and order disruption gives the scorer several kinds of evidence. Because the paper does not report a separate generator experiment for each corruption type, it leaves open how much of the benefit comes from detecting fine differences in ordering, selecting related content, or recognizing easier artifacts.

The generator comparison has an additional control limit. Reward-tuned variants also continue supervised learning. The baseline comparison establishes what the reported tuning procedure yields from the original MLE system. A matched continuation of supervised training alone would be needed to estimate how much of the difference comes specifically from reward tuning rather than from extra optimization. Among the reward-tuned variants, the experiment does provide contrasts for reward choice. It does not separately compare negative-critical training to every alternative baseline estimator or establish that the same reward subtraction would outperform those alternatives in a different task.

Finally, the preference findings describe the retained TripAdvisor judgments. They include a substantial neutral category, and the study filters judges by how frequently they favor the system over a human continuation. That rule ties inclusion to answers on one of the comparisons of interest. A sensitivity analysis with other rules would be needed to tell how much the reported preferences depend on that decision. The results also leave Yelp without a corresponding human check and do not give separate judged results for the individual rewards. The narrow human finding is that the combined method attracted more directional preferences than the baseline on both criteria in the retained TripAdvisor judgments.

### What came after

The later works that cite Cho and colleagues address several different problems in generation and evaluation. Their titles establish the scope of those problems. The citation relationships alone leave open whether any of them reused the two discriminators, adopted the negative-critical baseline, or took the review experiment as background. Their connections can therefore be described by the questions they pursue about feedback, connected writing, and evaluation.

#### Feedback as a way to shape generation

*Training language models to follow instructions with human feedback* moves the focus to instruction following. Cho and colleagues first specify properties they want the output to have, teach scorers through artificial contrasts, and reserve human preferences for evaluation. The later work’s title places human feedback in training and names following instructions as the goal. This is a different answer to the question of what should guide the generator after its initial training. It also changes the object of judgment from the cohesion and coherence of a review continuation to whether an output follows an instruction. [Training language models to follow instructions with human feedback](https://md.research.elamur.ai/free/en/papers/ouyang-2022-training-language-models-follow-instructions/)

*Recursively Summarizing Books with Human Feedback* combines feedback with a task whose scope is a book. Its title identifies recursion as part of the summarizing procedure. In Cho and colleagues’ experiment, the two scales come from what a scorer reads: individual transitions or a whole source and target chunk. Recursion raises a different organizational question, concerning how a summarizing procedure works on a larger input by reusing the process at different scales. Both works direct attention to the distinction between acceptable local writing and an output that serves a purpose across much more material. The book project makes that question part of [summarization](https://md.research.elamur.ai/free/en/topics/summarization/). [Recursively Summarizing Books with Human Feedback](https://md.research.elamur.ai/free/en/papers/wu-2021-recursively-summarizing-books-human-feedback/)

*Chain of Hindsight Aligns Language Models with Feedback* also treats feedback as a means of alignment. Cho and colleagues express their feedback as a scalar comparison against scores for negative examples. The later title identifies a method called Chain of Hindsight and a broader alignment aim. The common thread is that examples of target writing are only part of the training story. The form in which evaluative information is represented and used is another design choice. The name of the later method establishes its focus on feedback without showing that its training signal was taken from the earlier rankers. [Chain of Hindsight Aligns Language Models with Feedback](https://md.research.elamur.ai/free/en/papers/liu-2023-chain-hindsight-aligns-language-models/)

*Language Model Self-improvement by Reinforcement Learning Contemplation* returns to reinforcement learning as a means of changing a generator’s behavior. The review paper uses the relationship between a continuation and its opening to define which behavior it rewards, with negative examples supplying the reference level. The later work’s title gives self-improvement as the goal and contemplation as part of its approach. The shared use of reinforcement learning locates the connection at the level of training. It leaves the objective, choice of feedback, and estimation of reward as separate questions. [Language Model Self-improvement by Reinforcement Learning Contemplation](https://md.research.elamur.ai/free/en/papers/pang-2023-language-model-self-improvement-reinforcement/)

#### Connections that extend beyond a review

*Moral Stories* studies situated reasoning about norms, intentions, actions, and consequences. That framing brings out how much a reader can expect beyond a smooth transition. An action can follow a description of someone’s intentions in fluent prose while making little sense as a response to those intentions. A consequence can be introduced clearly while having a weak connection to the action that precedes it. Cho and colleagues’ distinction helps locate such questions at different scales, from the fit of neighboring statements to the organization of a larger account. The later work’s stated subject is the particular [reasoning](https://md.research.elamur.ai/free/en/topics/reasoning/) involved in connecting those elements. [Moral Stories: Situated Reasoning about Norms, Intents, Actions, and their Consequences](https://md.research.elamur.ai/free/en/papers/emelin-2021-moral-stories-situated-reasoning-about/)

*A Comprehensive Survey on Long Context Language Modeling* covers the broader subject of handling long contexts. The review experiment concerns what a generator does with a supplied opening and how its output holds together afterwards. A long-context survey has a wider object of study. The contrast in scope helps explain the continuing relevance of the earlier question. Having a larger stretch of text available is one issue. Determining whether a continuation actually uses that context to sustain local connections and a consistent overall account is another issue that requires its own evaluations. [A Comprehensive Survey on Long Context Language Modeling](https://md.research.elamur.ai/free/en/papers/liu-2025-comprehensive-survey-long-context-language/)

#### Producing and evaluating surveys

*AutoSurvey* takes automatic survey writing as the generation task. A survey gives the problem of organization a different shape from a review. Its sentences have to contribute to explanations of a subject, while the larger text has to arrange those explanations so that a reader can follow their relationships. The link to the review paper is the need to look beyond the quality of isolated sentences. The two works operate on different kinds of writing, and AutoSurvey’s stated scope carries the generation problem to surveys. [AutoSurvey](https://md.research.elamur.ai/free/en/papers/wang-2024-autosurvey-large-language-models-automatically/)

*Bloom-Eval* addresses the assessment of automatically generated surveys through a hierarchical benchmark based on Bloom’s Taxonomy. It belongs on the evaluation side of the question that motivated the earlier work. Cho and colleagues give separate ratings to local and global fit because a single overall score would hide some ways a continuation can fail. The later work’s title likewise establishes a structured approach to evaluation, organized around a different framework and aimed at survey generation. Its connection is the move toward assessments that distinguish dimensions of success for extended writing. [Bloom-Eval](https://md.research.elamur.ai/free/en/papers/zhang-2026-bloom-eval-hierarchical-evaluation-benchmark/)

## Cite

Cite as Woon Sang Cho, Pengchuan Zhang, Yizhe Zhang, Xiujun Li, Michel Galley, Chris Brockett, Mengdi Wang and Jianfeng Gao. 2019. Towards Coherent and Cohesive Long-form Text Generation. Proceedings of the First Workshop on Narrative Understanding.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/w19-2401](https://doi.org/10.18653/v1/w19-2401)

```bibtex
@inproceedings{cho2019coherent,
  title = {{Towards Coherent and Cohesive Long-form Text Generation}},
  author = {Woon Sang Cho, Pengchuan Zhang, Yizhe Zhang, Xiujun Li, Michel Galley, Chris Brockett, Mengdi Wang and Jianfeng Gao},
  booktitle = {Proceedings of the First Workshop on Narrative Understanding},
  year = {2019},
  doi = {10.18653/v1/w19-2401},
  url = {https://doi.org/10.18653/v1/w19-2401}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
