Abstract
This paper introduces a novel approach to controlling the length of abstractive summaries by modifying a convolutional neural network (CNN) sequence-to-sequence model. By injecting a desired length parameter directly into the decoder's initial layers, the model learns to generate complete, coherent summaries of arbitrary lengths. This method significantly outperforms traditional truncation techniques and previous marker-based approaches in both length precision and semantic quality.
Introduction
Abstractive summarization aims to generate concise versions of documents using original phrasing, similar to human-written summaries. However, practical applications often require summaries of specific lengths—for instance, a news snippet for a smartwatch versus a full paragraph for a desktop browser.
Most existing models are "length-blind." To enforce specific constraints, researchers typically rely on two suboptimal methods: truncation, which cuts off summaries mid-sentence once a token limit is reached, and EOS-blocking, which forces continued generation until a minimum length is met, often resulting in repetitive or nonsensical output. While previous attempts used fixed "length markers" (e.g., "Length: 1-30 words"), these offer only coarse-grained control within predefined ranges.
Methodology: The Length Control (LC) Mechanism
The authors build upon the Convolutional Sequence-to-Sequence (CNN seq2seq) architecture. Unlike Recurrent Neural Networks (RNNs), CNNs can be parallelized and utilize a hierarchical structure that effectively captures both local and long-range correlations.
The core innovation is the Length Control (LC) mechanism. Instead of treating length as a post-processing constraint, the desired length parameter ($len$) is fed into the very first layer of the decoder. Specifically, the decoder's initial state calculation is modified such that $len$ acts as a signal propagating through the network's Gated Linear Units (GLUs).
Because GLUs function as gates that filter information, the model learns the appropriate "information attenuation" required at each layer based on the remaining length budget. This allows the model to naturally decide when to generate the <EOS> (end-of-summary) token, ensuring the summary is both the correct length and a complete thought.
Experimental Setup
The model was trained on the CNN/Daily Mail DMQA dataset, containing over 280,000 news article-summary pairs. To evaluate length control, the authors distributed the dataset into "buckets" based on summary length. Beyond standard ROUGE scores, they introduced a Similarity (Sim) metric using GloVe word embeddings to measure semantic preservation under strict length constraints.
Key Results and Discussion
The "LC" model was compared against a standard CNN and a state-of-the-art marker-based model across three generation modes: Free (natural generation), Truncated (hard cutoff), and Exact (forced length).
Precision and Quality
The LC model demonstrated near-zero Variance in target length, meaning it hit the user-defined token count much more accurately than baseline models.
In human evaluations for short (10-token) summaries, the LC model produced "natural and complete" sentences 88% of the time in the "Exact" version, compared to just 48% for the basic CNN. Furthermore, the LC model consistently outperformed baselines in ROUGE-1, ROUGE-2, and ROUGE-L scores, suggesting that length control helps the model prioritize the most critical information.
Natural Termination
A key insight is that the model does not simply stop because a counter reaches zero; rather, it learns the probability of ending a sentence based on the remaining word budget. This results in summaries that feel structurally finished rather than abruptly terminated.
Conclusion
By integrating length as a fundamental parameter in the CNN decoder, this research provides a robust solution for generating length-constrained abstractive summaries. While the model shows excellent control down to 10 tokens, future work may explore its application to other constraints, such as style or sentiment, and address the inherent challenges of maintaining factual consistency in highly compressed summaries.
Summary updated