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

Abstract

Effective length control in automated text summarization remains a significant challenge. While autoregressive (AR) models often require post-hoc truncation that degrades quality, non-autoregressive (NAR) models frequently struggle with abstractive flexibility. This paper introduces Sequence Maximum a Posteriori (SeqMAP), a novel decoding algorithm for Directed Acyclic Transformers (DATs). By marginalizing over all possible paths in a graph-based model, SeqMAP achieves strict length control (hard constraints) while significantly outperforming previous non-autoregressive methods in summary quality and abstractive novelty.

Introduction

In many real-world applications, such as generating search engine titles or social media posts, summarization models must adhere to strict length constraints. Traditional Autoregressive (AR) models treat length as a "soft constraint," often failing to stop at the desired limit and necessitating truncation that ruins grammatical coherence. Conversely, Non-autoregressive (NAR) models using Connectionist Temporal Classification (CTC) can enforce "hard constraints" but tend to be overly extractive, merely copying source text fragments rather than generating novel, cohesive summaries.

This research bridges the gap by leveraging the Directed Acyclic Transformer (DAT) architecture. The proposed SeqMAP decoding strategy allows for the strict length control characteristic of NAR models while maintaining the creative, high-quality generation typically associated with AR models.

Methodology

Directed Acyclic Transformers and SeqMAP

The Directed Acyclic Transformer (DAT) predicts multiple potential text fragments and the transitions (edges) between them, representing the output space as a graph. The core innovation of this work is the Sequence Maximum a Posteriori (SeqMAP) decoding algorithm.

Unlike standard PathMAP decoding, which identifies the single most likely path through the graph, SeqMAP marginalizes (sums) the probabilities of all paths that result in the same word sequence. This aligns the decoding process with the model's training objective, which also utilizes marginalization. To manage the computational complexity of this summation, the authors implemented an approximate algorithm using dynamic programming and beam search to identify the most probable sequence of a specific length $T$.

Neural Reranker with Rank Embeddings

To further refine the output, a RoBERTa-based reranker is employed. A unique feature of this reranker is the inclusion of rank embeddings, which provide the model with information regarding the original DAT's confidence in each candidate summary.

The architecture of the neural reranker, utilizing RoBERTa and ranking embeddings to evaluate candidate summaries.

Experimental Setup

The models were evaluated on two primary benchmarks:

  • Gigaword: A large-scale dataset of news articles and headlines (3M training pairs).
  • DUC2004: A specialized test set used to evaluate cross-domain generalization.

Performance was measured across three specific length constraints: 20%, 25%, and 30% of the original source text length.

Key Results

Performance and Length Control

As shown in the experimental results, the SeqMAP approach achieved 0% truncation across all tested length ratios, a stark contrast to standard Transformers which required truncation for up to 60% of generated sentences. Furthermore, SeqMAP consistently outperformed both CTC-based models and PathMAP decoding in ROUGE metrics.

Performance comparison across different length ratios (20%, 25%, 30%). SeqMAP (Ours) achieves 0% truncation while maintaining superior ROUGE scores.

Human and LLM Evaluation

Beyond automated metrics, the researchers utilized GPT-4 as a surrogate human judge. In head-to-head comparisons, GPT-4 preferred summaries generated by SeqMAP over those from standard Transformers approximately 69% of the time, citing better adherence to length constraints without sacrificing coherence.

Efficiency and Novelty

While the beam search in SeqMAP introduces more complexity than simple NAR models, it remains faster than many traditional AR Transformers. Additionally, the DAT architecture demonstrated higher word novelty and reordering degrees compared to CTC models, indicating a more successful transition from extractive to abstractive summarization.

Discussion and Limitations

While SeqMAP represents a significant advancement, it is an approximate solution. The mathematical complexity of the MAP problem means the algorithm does not guarantee finding the absolute optimal sequence. The authors also noted a "label bias" issue common in graph-based models, where performance can slightly dip if the beam size or vocabulary exploration becomes excessively large. Future work will focus on optimizing the dynamic programming search for GPU parallelism to further enhance inference speed.

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