Can Syntax Help? Improving an LSTM-based Sentence Compression Model for New Domains

Liangguo Wang, Jing Jiang, Hai Leong Chieu, Chen Hui Ong, Dandan Song, Lejian Liao

Abstract

Neural sentence compression models often struggle with domain adaptability and require massive amounts of training data. This paper proposes a hybrid approach that integrates syntactic information—specifically Part-of-Speech (POS) and dependency features—into a Bi-directional Long Short-Term Memory (Bi-LSTM) network. By further enforcing grammatical constraints through Integer Linear Programming (ILP), the model achieves superior performance in out-of-domain scenarios while requiring significantly less training data than standard neural baselines.

Introduction

Sentence compression is the task of shortening a sentence while preserving its core meaning and grammatical correctness. While recent shifts have favored neural models like LSTMs, these systems face two primary challenges: extreme data hunger and domain brittleness. Models trained on large-scale news corpora often fail to generalize to other text types, such as research papers, because they overfit to specific lexical patterns. This study addresses domain adaptability by injecting "linguistic common sense" into the neural framework, allowing the model to learn structural deletion patterns that remain stable across different subjects.

Methodology

The proposed architecture combines a neural backbone with explicit syntactic features and a global inference layer.

Neural Backbone and Syntactic Features

The core of the model is a three-layered Bi-LSTM that performs sequence labeling to decide whether to "keep" or "delete" each word. Unlike standard models that rely solely on word embeddings, this approach concatenates word embeddings with Part-of-Speech (POS) and Dependency Relation embeddings. This explicit representation allows the model to prioritize keeping essential components like subjects and verbs over modifiers.

Architecture of the proposed Bi-LSTM model incorporating Word, POS, and Dependency features.

Global Inference via ILP

To prevent the generation of ungrammatical fragments, the authors employ Integer Linear Programming (ILP) to enforce hard constraints during the final word selection. Key constraints include:

  • Dependency Consistency: If a child word is retained, its parent in the dependency tree must also be kept.
  • Critical Relations: For relations like nsubj (nominal subject), if the parent is kept, the child must be kept to ensure grammaticality.
  • Length Constraints: Minimum and maximum compression rates are set to control the output length.

Experimental Setup

The model was evaluated across three distinct datasets:

  1. Google News: ~10,000 sentence pairs used for primary training and in-domain testing.
  2. BNC News: ~1,500 sentence pairs from the British National Corpus, serving as an out-of-domain test set.
  3. Research Papers: 100 sentences from ACL 2016 papers for manual evaluation of readability and informativeness.

Results and Discussion

The hybrid model (BiLSTM+SynFeat+ILP) demonstrated significant improvements in cross-domain performance.

F1 performance across varying training sizes for in-domain and out-of-domain datasets.

Key Findings

  • Domain Robustness: In out-of-domain testing (BNC News), the proposed model achieved an F1 score of 0.66, substantially higher than the 0.54 achieved by the standard LSTM+ baseline.
  • Data Efficiency: The model reached competitive performance with only 8,000 training pairs, whereas traditional neural models often require millions. This suggests that syntactic features effectively compensate for smaller dataset sizes.
  • Human Evaluation: Manual ratings on research paper data showed a significant jump in readability (4.29/5.0) compared to the neural baseline (3.69/5.0).

Conclusion

Integrating syntactic information is a powerful strategy for enhancing the generalization of neural sentence compression models. While the ILP constraints occasionally lowered F1 scores on datasets with very aggressive ground-truth compressions, they consistently improved the grammatical quality and readability of the output. Future work will explore integrating these syntactic constraints into abstractive sequence-to-sequence models to combine grammatical stability with paraphrasing capabilities.

Summary updated

BibTeX
@inproceedings{wang2017can,
  author = {Liangguo Wang and Jing Jiang and Hai Leong Chieu and Chen Hui Ong and Dandan Song and Lejian Liao},
  title = {{Can Syntax Help? Improving an LSTM-based Sentence Compression Model for New Domains}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2017},
  doi = {10.18653/v1/p17-1127},
}
Figure