Sentence-Permuted Paragraph Generation

Wenhao Yu, Chenguang Zhu, Tong Zhao, Zhichun Guo, Meng Jiang

Abstract

Traditional autoregressive language models generate text in a rigid left-to-right sequence, often resulting in repetitive and generic paragraph openings. We present PermGen, a novel framework that treats paragraph generation as a permutation problem. By training models to generate sentences in arbitrary orders using hierarchical positional embeddings and stochastic optimization, PermGen significantly enhances output diversity. Experimental results across multiple benchmarks demonstrate that PermGen breaks the "homogeneity of context," producing more creative and varied text while maintaining or even improving overall coherence and accuracy.

Introduction

Modern language models like BART and GPT-2 are typically trained to predict the next token based on a fixed preceding context. In multi-sentence generation, this creates a "homogeneity of context" for the initial sentence (S1). Since S1 is always generated first, its context is consistently minimal, leading models to default to "safe," generic beginnings. Diversity typically only emerges later in the paragraph as unique context accumulates. To address this, we propose breaking the rigid temporal order of sentence generation.

Methodology: The PermGen Framework

PermGen reformulates paragraph generation to maximize likelihood across all possible sentence permutations. This approach requires two key technical innovations to handle the non-linear nature of the task.

Hierarchical Positional Embedding

Standard absolute positional embeddings fail when sentence order is shuffled. PermGen introduces a two-level system:

  1. Global Position: Indicates the original index of the sentence within the paragraph.
  2. Local Position: Indicates the token's index within its specific sentence. This ensures the model understands the internal structure of a sentence regardless of when it is generated during the decoding process.
Figure 2: The PermGen architecture utilizing hierarchical positional embeddings and permutation-based training.

Optimization and Decoding

To manage the $T!$ possible permutations for a paragraph of $T$ sentences, we employ $\pi$-SGD optimization, which randomly samples permutations during training. During inference, the model uses special boundary tokens (<B-t> and <E-t>) to plan and generate sentences in a flexible order, which are then reassembled into the final coherent paragraph.

Experimental Evaluation

We evaluated PermGen on three benchmarks: ROCStories (commonsense stories), AGENDA (scientific abstracts), and DailyMail (news paragraphs).

Key Results and the Accuracy Paradox

PermGen consistently outperformed strong baselines like BART and T5. Notably, it addresses the common trade-off where increased diversity usually degrades accuracy. In the AGENDA dataset, PermGen reduced repetitiveness (Self-BLEU) by 43.2% while simultaneously increasing quality (BLEU-4).

Figure 1: Comparison of diversity across sentence indices and overall paragraph accuracy between BART and PermGen.

As shown in Figure 1, PermGen maintains high diversity from the very first sentence (S1), whereas BART's diversity is nearly zero at the start and only climbs toward the end. Despite this increased variety, PermGen's overall accuracy remains superior.

Conclusion

PermGen demonstrates that non-linear, sentence-permuted generation is a viable and effective strategy for producing diverse multi-sentence text. By decoupling generation order from logical order, models can explore a wider semantic space without losing structural integrity. Future work will focus on scaling this approach to longer documents and automating sentence segmentation.

Summary updated

BibTeX
@inproceedings{yu2021sentence,
  author = {Wenhao Yu and Chenguang Zhu and Tong Zhao and Zhichun Guo and Meng Jiang},
  title = {{Sentence-Permuted Paragraph Generation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.emnlp-main.412},
}
Figure