Enhanced Language Representation with Label Knowledge for Span Extraction

Pan Yang, Xin Cong, Zhenyu Sun, Xingwu Liu

Abstract: Span extraction, aiming to extract text spans (such as words or phrases) from plain text, is a fundamental process in Information Extraction. Recent works introduce the label knowledge to enhance the text representation by formalizing the span extraction task into a question answering problem (QA Formalization), which achieves state-of-the-art performance. However, such a QA Formalization does not fully exploit the label knowledge and causes a dramatic decrease in efficiency of training/inference. To address those problems, we introduce a fresh paradigm to integrate label knowledge and further propose a novel model to explicitly and efficiently integrate label knowledge into text representations. Specifically, it encodes texts and label annotations independently and then integrates label knowledge into text representation with an elaborate-designed semantics fusion module. We conduct extensive experiments on three typical span extraction tasks: flat NER, nested NER, and event detection. The empirical results show that 1) our model achieves a new state-of-the-art performance on four benchmarks, and 2) reduces training time and inference time by 76% and 77% on average, respectively, compared with the QA Formalization paradigm.

What Problem Does This Paper Address?

Span extraction—identifying specific segments of text like names, dates, or event triggers—is the foundation of Information Extraction (IE). Traditionally, models treated labels (e.g., "PERSON", "LOCATION") as meaningless one-hot vectors.

Recently, the QA Formalization paradigm (e.g., BERT-MRC) improved performance by turning extraction into a reading comprehension task. Instead of simple classification, the model asks a descriptive question: "Which person is mentioned in the text, representing a human or individual?" While this boosted accuracy, it introduced two major limitations:

  1. Inefficiency: To extract $N$ types of entities, the model must run $N$ times for every sentence, concatenating the question and text each time. This creates a linear scaling bottleneck.
  2. Underutilization: Because the model encodes the question and text together, the self-attention mechanism often gets "distracted" by the text itself, failing to fully leverage the rich semantic information in the label's description.
Comparison of span extraction paradigms: (1) Traditional, (2) QA Formalization, and (3) the proposed LEAR paradigm.

Methods: The LEAR Framework

The authors propose LEAR (Label knowledge EnhAnced Representation), which moves away from joint concatenation toward a more surgical integration of label knowledge.

  • The Shared Encoder: LEAR uses a single BERT backbone to process both the input text and the label annotations (descriptions) independently. Using shared weights ensures that label features and text features are in the same semantic space from the start, making fusion more effective.
  • Semantic Fusion Module: This module uses a semantics-guided attention mechanism to calculate how each token in the text relates to each token in the label's description. This creates a "label-aware" version of the text representation for every possible category.
  • Flexible Decoding: LEAR handles both Flat NER using a heuristic matching principle and Nested NER (where entities overlap) using a binary classifier to pair start and end indices.
The LEAR architecture featuring shared BERT encoders, a semantic fusion module, and a multi-span classifier.

Experimental Results

The model was evaluated on five diverse benchmarks covering Flat NER (MSRA, OntoNotes 4.0), Nested NER (ACE 2004, ACE 2005), and Event Detection (ACE 2005 ED).

  • State-of-the-Art Performance: LEAR achieved new SOTA results on 4 out of 5 benchmarks. For instance, it hit an F1 score of 81.61 on ACE 2005 Event Detection, significantly outperforming previous specialized models.
  • Dramatic Efficiency Gains: Compared to the leading QA-based paradigm (BERT-MRC), LEAR reduced training time by 76% and inference time by 77% on average. By encoding text and labels once and fusing them in a lightweight module, the model breaks the linear scaling bottleneck.
  • Low-Resource Power: LEAR excels in "data-scarce" scenarios. Because it "understands" the target through label descriptions, it requires significantly fewer examples to reach high accuracy compared to traditional methods.

Key Insights and Conclusion

The core contribution of LEAR is the realization that labels are more than IDs; they are semantic concepts. By de-coupling the encoding of text and label descriptions, LEAR achieves the accuracy benefits of QA-based models without the prohibitive computational cost. Ablation studies confirmed that using full dictionary-style descriptions (e.g., "a person entity is limited to human...") performs better than using simple label names, proving that the extra context in annotations is a vital source of prior knowledge for extraction tasks.

Summary updated

BibTeX
@inproceedings{yang2021enhanced,
  author = {Pan Yang and Xin Cong and Zhenyu Sun and Xingwu Liu},
  title = {{Enhanced Language Representation with Label Knowledge for Span Extraction}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  url = {https://openreview.net/forum?id=a9J7czLosC},
}
Figure