PLANET: Dynamic Content Planning in Autoregressive Transformers for Long-form Text Generation

Zhe Hu, Hou Pong Chan, Jiachen Liu, Xinyan Xiao, Hua Wu, Lifu Huang

Abstract

Long-form text generation remains a significant challenge for autoregressive language models, which often struggle with logical coherence and content drift over multiple sentences. We present PLANET (PLanning in Autoregressive NETworks), a framework that integrates sentence-level planning directly into the decoding process. By interleaving latent planning tokens with text generation and employing coherence-based contrastive learning, PLANET produces multi-sentence outputs that are significantly more logical and content-rich than standard sequence-to-sequence models like BART.

Introduction: The Challenge of Long-form Text

While large pre-trained language models (PLMs) like GPT-2 or BART excel at generating fluent individual sentences, they frequently falter when tasked with long-form generation, such as multi-sentence arguments or opinion pieces. These models often suffer from three primary issues:

  1. Incoherence: The logical flow between sentences is weak or non-existent.
  2. Repetition and Drift: Models may repeat points or lose track of the original topic as the text grows.
  3. Poor Content Control: They fail to appropriately incorporate specific "talking points" or keyphrases into a structured plan.
Comparison of standard model outputs vs. human arguments in the ArgGen task. Standard models often fail to maintain the logical flow required for persuasive argumentation.

Existing solutions typically rely on "global plans" created upfront or two-stage "plan-then-generate" pipelines. However, global plans are often too coarse, and two-stage pipelines suffer from cascading errors—if the planner makes a mistake, the generator cannot recover.

The PLANET Framework: Dynamic Content Planning

PLANET addresses these limitations by integrating planning directly into the Transformer's decoding process. Instead of planning the entire document at once, PLANET inserts a special latent token, [SN] (Sentence Node), before every sentence.

The hidden state of the [SN] token acts as a dynamic "plan" for the upcoming sentence. This plan is autoregressive: it attends to all previous sentence plans and all previously generated words. This allows the model to update its strategy based on what it has actually written so far, rather than sticking to a rigid, pre-made plan.

Comparison of planning architectures: (a) Global planning, (b) Two-step planning, and (bottom) the proposed dynamic PLANET model which interleaves planning nodes (SN) with sentence generation.

Lexical Grounding and Content Selection

To ensure the latent [SN] tokens contain meaningful information, PLANET uses two key mechanisms:

  • Sentence-level Bag-of-Words (BOW): The model is trained on an auxiliary task to predict a BOW for each specific sentence. This "grounds" the abstract latent vectors in real-world vocabulary, forcing the plan to capture the lexical "gist" of the upcoming sentence.
  • Dynamic Content Selection: The model maintains a "Keyphrase Memory Bank." A dedicated content selection layer uses multi-head attention to pull relevant keyphrases into the decoder's state, ensuring that specific guidance points are reflected in the final text.

Coherence-based Contrastive Learning

To teach the model what a logical flow looks like, the authors introduce a novel contrastive learning objective. The model is trained to distinguish between a "gold" human-written text and several corrupted versions, such as shuffled sentences, replaced sentences, or texts with masked keyphrases. By learning to assign a higher coherence score to the original text, the model internalizes the subtle transitions and dependencies that unify a paragraph.

Experimental Results

PLANET was evaluated on two challenging tasks: ArgGen (generating counter-arguments from Reddit's r/ChangeMyView) and OpinionGen (generating editorial-style articles from the New York Times).

  • Automated Metrics: On ArgGen, PLANET achieved a 38.55 BLEU-2 score, outperforming standard BART (36.69). Gains were also observed in METEOR and ROUGE metrics.
  • Coherence: In automated coherence evaluations using a BERT-based scorer, PLANET achieved 98.03% on OpinionGen, vastly outperforming two-stage planners which scored only 71.7%.
  • Human Evaluation: Human judges consistently rated PLANET higher for relatedness, coherence, and content richness. In the OpinionGen task, PLANET was ranked as the "Top-1" choice in 37.3% of cases, more than double the baseline models.

Conclusion

PLANET demonstrates that planning is most effective when treated as a dynamic, interleaved process rather than a static precursor to generation. By grounding latent plans in lexical targets and utilizing contrastive learning for coherence, PLANET bridges the gap between fluent sentence generation and structured, logical long-form writing. Future work may explore incorporating discourse markers or entity tracking to further refine the logical flow of generated arguments.

Summary updated

BibTeX
@inproceedings{hu2022planet,
  author = {Zhe Hu and Hou Pong Chan and Jiachen Liu and Xinyan Xiao and Hua Wu and Lifu Huang},
  title = {{PLANET: Dynamic Content Planning in Autoregressive Transformers for Long-form Text Generation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  url = {https://openreview.net/forum?id=ZcatRFP1CVv},
}
Figure