A Span-based Dynamic Local Attention Model for Sequential Sentence Classification

Xichen Shang, Qianli Ma, Zhenxi Lin, Jiangyue Yan, Zipeng Chen

Introduction

Sequential Sentence Classification (SSC) is a critical task in natural language processing, particularly for analyzing scientific literature. It involves assigning rhetorical roles—such as "Background," "Methods," or "Results"—to each sentence in a document. A key challenge in SSC is that sentences are not independent; they form coherent segments. Standard models often fail to capture this latent segment structure, leading to inconsistent label transitions where predictions flip-flop between adjacent sentences.

Example of sequential sentence classification with segment labels.

Methodology

The proposed model addresses these limitations by explicitly modeling the document's segment structure through two main components: Supervised Dynamic Local Attention (SDLA) and an auxiliary span-based classification task.

Model Architecture

The pipeline begins with a PubMedBERT encoder to generate sentence representations, followed by a BiLSTM to capture sequential context. The core innovation lies in the SDLA layer, which predicts a dynamic attention window for each sentence, focusing the model on its immediate semantic neighbors. This process is supervised during training to align with ground-truth segment boundaries, forcing the model to filter out irrelevant context from distant parts of the document.

The Span-based Dynamic Local Attention Model architecture, featuring SDLA and auxiliary span classification.

Additionally, the model performs Auxiliary Span-based Classification. Instead of only predicting individual sentence labels, it classifies entire spans of sentences. This multi-task approach encourages the model to learn more robust representations of document structure. Finally, a Conditional Random Field (CRF) layer ensures global label consistency across the sequence.

Experimental Results

The model was evaluated on two benchmark datasets in the medical domain: NICTA-PIBOSO and PubMed 20k RCT.

  • NICTA-PIBOSO: The model achieved a Sentence-F1 of 86.8 and a Span-F1 of 62.9, significantly outperforming previous baselines (84.4 and 58.7, respectively). The high Span-F1 score validates the model's superior ability to identify contiguous blocks of text correctly.
  • PubMed 20k RCT: The model reached a competitive 92.8 F1 score, matching state-of-the-art performance on this large-scale dataset.

Discussion and Conclusion

The success of this approach highlights that "local is better than global" for long documents. By constraining attention to a dynamic local window, the model filters out noise. Furthermore, the integration of text segmentation as a supervisory signal acts as a powerful regularizer, bridging the gap between sentence-level classification and document-level structure. Future work will explore joint learning frameworks where segmentation and classification are optimized as equal, interdependent tasks to further improve performance on semantically diverse labels.

Summary updated

BibTeX
@inproceedings{shang2021span,
  author = {Xichen Shang and Qianli Ma and Zhenxi Lin and Jiangyue Yan and Zipeng Chen},
  title = {{A Span-based Dynamic Local Attention Model for Sequential Sentence Classification}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.acl-short.26},
}
Figure