A Decoding Algorithm for Length-Control Summarization Based on Directed Acyclic Transformers

Chenyang Huang, Hao Zhou, Cameron Jen, Kangjie Zheng, Osmar R. Zaïane, Lili Mou · DOI

Introduction

In modern natural language processing, text summarization often requires adhering to strict length constraints to fit specific interfaces, such as mobile notifications, search engine snippets, or social media character limits. While traditional Autoregressive (AR) models like GPT generate text token-by-token, they typically treat length as a "soft constraint." This often results in summaries that exceed limits, requiring post-hoc truncation that can damage coherence and meaning. Conversely, Non-Autoregressive (NAR) models that enforce "hard constraints" often suffer from being overly extractive, failing to generate novel phrasing or flexible word orders.

This paper introduces a novel decoding algorithm for length-constrained summarization using Directed Acyclic Transformers (DAT). By proposing the Sequence Maximum a Posteriori (SeqMAP) objective, the authors bridge the gap between strict length control and high-quality abstractive summarization.

Methodology: Directed Acyclic Transformers and SeqMAP

The Directed Acyclic Transformer (DAT) differs from standard transformers by predicting a set of possible words across multiple "steps" and then predicting "links" to connect them into a path. The authors identify a significant "training-inference gap" in previous DAT decoding methods like PathMAP, which only considers the single most probable path. Since DATs are trained by summing over all possible paths that lead to a correct sequence, the authors propose SeqMAP.

SeqMAP marginalizes (sums) over all possible links to find the most probable sequence of a specific length $T$. To handle the computational complexity of this objective, the authors developed an approximate dynamic programming (DP) algorithm combined with beam search. This algorithm utilizes two primary operations: EXPAND, which grows partial sequences, and MERGE, which combines sequences reaching the same length at different steps by summing their probabilities.

To further refine output quality, a RoBERTa-based neural reranker is employed. This reranker utilizes "rank embeddings" to incorporate the base DAT model's preferences into the final selection process.

Experimental Results and Performance

The model was evaluated on the Gigaword and DUC2004 benchmarks for headline generation, testing length constraints at 20%, 25%, and 30% of the source text length. The results demonstrate that the DAT-based approach successfully achieves a 0.00% truncation rate, a feat that standard AR models fail to match, often reaching truncation rates as high as 60%.

Table 1: Performance comparison on the Gigaword dataset. Note the 0.00% truncation rate for DAT-based models compared to autoregressive baselines.

Beyond perfect length control, SeqMAP significantly outperforms previous hard-constraint models like CTC. For instance, at a 20% length ratio, SeqMAP achieved an R-Sum (the aggregate of ROUGE-1, 2, and L) of 87.44, compared to 79.71 for CTC-based models. Pairwise comparisons using GPT-4 as a judge further confirmed a strong preference (68-72%) for SeqMAP summaries over existing baselines.

Abstractive Quality and Novelty

A key advantage of the DAT architecture is its flexibility. Unlike CTC models, which are often restricted to a monotonic relationship with the source text, DAT allows for a higher degree of reordering. This enables the model to "think" about the best phrasing rather than simply copying and pasting segments.

Table 2: Analysis of abstractive quality. DAT SeqMAP demonstrates higher word novelty and reordering degree than CTC models.

As shown in the analysis of word novelty, SeqMAP produces summaries with a significantly higher percentage of words not found in the source text compared to CTC models. This confirms that the model is capable of true abstractive summarization while maintaining strict adherence to length limits.

Conclusion and Future Work

The proposed SeqMAP decoding algorithm for Directed Acyclic Transformers proves that "hard" length constraints do not require a sacrifice in summary quality or creativity. While the approach introduces some computational overhead compared to simpler NAR models, it remains faster than many standard AR Transformers in various settings. Future research may focus on optimizing the DP implementation for better parallelism and addressing the label bias issues that emerge when using very large beam search widths.

Summary updated

BibTeX
@inproceedings{huang2024decoding,
  author = {Chenyang Huang and Hao Zhou and Cameron Jen and Kangjie Zheng and Osmar R. Zaïane and Lili Mou},
  title = {{A Decoding Algorithm for Length-Control Summarization Based on Directed Acyclic Transformers}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.findings-emnlp.677},
}
Figure