NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Constraint-Based Sentence Compression: An Integer Programming Approach

James Clarke, Mirella LapataACL 2006

Abstract

The ability to compress sentences while preserving their grammaticality and most of their meaning has recently received much attention. Our work views sentence compression as an optimisation problem. We develop an integer programming formulation and infer globally optimal compressions in the face of linguistically motivated constraints. We show that such a formulation allows for relatively simple and knowledge-lean compression models that do not require parallel corpora or large-scale resources. The proposed approach yields results comparable and in some cases superior to state-of-the-art.

Introduction

Sentence compression—the task of shortening a sentence while maintaining its core meaning and grammatical integrity—is a critical component for text summarization and information display on mobile devices. Historically, this field has been divided between knowledge-heavy rule-based systems and supervised learning models that require large parallel corpora. However, parallel data for compression is scarce, and traditional models often rely on "local" decision-making (like dynamic programming) that can fail to enforce global grammatical coherence.

This paper proposes a novel framework that treats sentence compression as a global optimization problem solved via Integer Programming (IP). By combining a statistical language model with linguistically motivated constraints, the authors create an unsupervised model that outperforms traditional supervised methods.

The Integer Programming Framework

The core of the proposed approach is an IP formulation where the objective is to maximize a scoring function subject to linear constraints.

Objective Function

The model uses a trigram language model to score the likelihood of word sequences. To ensure the compression retains important information, the authors introduce a Significance Score. This score assigns higher weights to content words (nouns and verbs) based on their depth in the sentence's parse tree, prioritizing the main clause over subordinate details.

Linguistic Constraints

The "secret sauce" of this model lies in its constraints, which encode basic grammatical rules as linear inequalities:

  • Modifier Constraints: If a modifier (e.g., an adjective) is selected for the compression, its head (the noun it modifies) must also be included.
  • Sentential Constraints: If a verb is kept, its essential arguments (subject and object) should be retained. Furthermore, every compressed sentence must contain at least one verb.
  • Sequential Constraints: These ensure the chosen words form a valid, continuous path from the start to the end of the original sentence.
Figure 1: Examples of sentence compressions generated by different model variants: Language Model (LM), Modifier constraints (Mod), Sentential constraints (Sen), and Significance score (Sig).

As shown in Figure 1, the addition of linguistic constraints and significance scores progressively improves the quality of the output, moving from fragmented phrases to coherent, informative sentences.

Evaluation and Results

The model was evaluated on the Ziff-Davis Corpus (computer product articles) and a newly created Broadcast News (HUB-4) dataset. A large-scale human evaluation involving 56 volunteers rated the compressions on a 5-point scale for both grammaticality and information retention.

Figure 2: Performance comparison of different models showing compression rate (CompR) and human ratings.

Key Findings

  • Superiority over Supervised Models: The IP model with the significance score achieved a human rating of 2.83, significantly outperforming the standard supervised decision-tree baseline (2.22).
  • Quality vs. Compression: While the pure language model was the most aggressive (reducing sentences to 49% of their original length), adding the significance score increased the length to approximately 73% but drastically improved the quality and human preference.
  • Efficiency: Despite IP being NP-hard in general, the relatively short length of sentences allowed the model to find optimal solutions in just a few seconds on standard hardware.

Discussion and Future Work

The biggest advantage of the IP approach is its ability to handle global dependencies naturally. By encoding linguistic knowledge as constraints, the model avoids the common pitfalls of purely statistical models that might delete a head noun while keeping its adjective.

However, the model is currently limited to word deletion and cannot perform paraphrasing or word reordering. Furthermore, it treats each sentence in isolation. Future research will focus on incorporating discourse-level constraints to ensure that a series of compressed sentences maintains logical flow as a complete paragraph.

Summary updated

BibTeX
@inproceedings{clarke2006constraint,
  author = {James Clarke and Mirella Lapata},
  title = {{Constraint-Based Sentence Compression: An Integer Programming Approach}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2006},
  url = {https://openreview.net/forum?id=SJNFLhlObB},
}
Figure