Negation Scope Refinement via Boundary Shift Loss

Yin Wu, Aixin Sun

Introduction

In Natural Language Processing (NLP), identifying negation—and specifically the exact "scope" of what is being negated—is crucial for downstream tasks such as sentiment analysis and medical information extraction. While identifying the negation cue (e.g., "not", "never") is relatively straightforward, determining the precise boundaries of the affected text span remains a significant challenge.

The Challenge of Boundary Precision

Unlike Named Entity Recognition (NER), where entities are typically short, negation scopes can be long, syntactically complex, and sometimes discontinuous. Standard sequence labeling models often correctly identify the core of a negation scope but struggle with the exact start and end points. This "boundary blurring" leads to lower exact-match performance, even when token-level accuracy is high. Existing methods often lack a dedicated mechanism to "fine-tune" these edges.

Proposed Method: Boundary Shift Loss (BSL)

Inspired by semantic segmentation techniques in computer vision—where distance maps are used to delineate object borders—the authors introduce Boundary Shift Loss (BSL). This method refines the edges of predicted spans by training the model to predict the relative direction of the nearest boundary for every token.

Model Architecture

The proposed R-BSL model utilizes a standard BERT-based encoder. The encoded representations are fed into three parallel classification heads:

  1. Scope Classifier: Predicts whether a token is inside or outside the negation scope.
  2. Boundary Start Classifier: Predicts if the nearest "start" boundary is to the left or right of the current token.
  3. Boundary End Classifier: Predicts if the nearest "end" boundary is to the left or right of the current token.
The R-BSL architecture featuring parallel classification heads for scope and boundary refinement.

Boundary Shift Labeling

The core innovation lies in the labeling strategy. For each token, the model generates "Boundary Shift" labels. Instead of calculating a continuous distance (as seen in 2D computer vision distance maps), the model performs a simpler 1D classification task: determining the direction (Left or Right) to the nearest boundary. This approach effectively "pushes" or "pulls" the predicted boundaries toward their ground-truth positions during the refinement phase.

Detailed labeling scheme for scope and boundary shift, illustrating how tokens are assigned directional labels relative to span boundaries.

Experimental Results

The researchers evaluated R-BSL on three major benchmarks: Sherlock (literary text), BioScope-Abstract (medical abstracts), and SFU Review (product reviews).

The model achieved state-of-the-art results, with the most notable improvements seen in "Exact Match" F1 scores. On the challenging Sherlock dataset, R-BSL reached an exact match F1 of 87.10, a significant increase over the 84.19 baseline. Similar gains were observed in BioScope (96.16) and SFU (89.91). These results demonstrate that the model is successfully "sharpening" the boundaries rather than just improving token-level counts by chance.

Conclusion

By incorporating a boundary-aware loss function, the R-BSL model significantly improves the precision of negation scope detection. The success of this "boundary shift" approach suggests that directional cues are a powerful tool for refining span boundaries in NLP, offering a lean and effective alternative to more complex architectural modifications or specialized pre-training.

Summary updated

BibTeX
@inproceedings{wu2023negation,
  author = {Yin Wu and Aixin Sun},
  title = {{Negation Scope Refinement via Boundary Shift Loss}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.findings-acl.379},
}
Figure