Abstract
Named Entity Recognition (NER) and Relation Extraction (RE) are fundamental tasks in Information Extraction, often framed as span classification problems. While existing methods using "solid markers" offer high accuracy, they suffer from significant computational overhead. Conversely, "levitated markers" improve efficiency but often fail to capture inter-span dependencies. This paper introduces the Packed Levitated Marker (PL-Marker) framework, which strategically packs virtual markers into the encoder to model interrelations between spans and pairs. By employing neighborhood-oriented and subject-oriented packing strategies, PL-Marker achieves state-of-the-art performance across multiple benchmarks while maintaining superior inference speeds compared to previous high-performance models.
Introduction
Information Extraction (IE) tasks like NER and RE rely heavily on high-quality representations of text spans. Traditional approaches have faced a persistent trade-off between speed and accuracy. "Solid Markers" involve inserting physical tokens into the text to highlight spans, which is accurate but computationally expensive as it requires re-processing the entire sequence for every span. "Levitated Markers" use virtual tokens that share position embeddings with the text, allowing for faster batching. However, these markers typically treat spans in isolation, ignoring the crucial context provided by neighboring entities or the relationship between a subject and multiple potential objects.
Methodology
The PL-Marker framework addresses these limitations by introducing a "packing" mechanism for levitated markers. Instead of processing markers independently, PL-Marker groups them to capture inter-span context.
Two primary packing strategies are utilized to give the model more context:
- Neighborhood-oriented Packing (for NER): This strategy groups spans that share the same starting token into the same training instance. By presenting various potential boundaries simultaneously, the model can better distinguish exact entity limits through internal contrastive analysis.
- Subject-oriented Packing (for RE): This hybrid approach uses solid markers to highlight a subject and packs all potential objects as levitated markers within the same sequence. This allows the model to predict all relations for a single subject in one pass, capturing the full "relation neighborhood."
The model employs a directional attention mask to ensure that levitated markers can attend to the text and their specific partners without interfering with the original text's representation. This maintains a near-linear complexity relative to previous models, effectively breaking the quadratic barrier typically associated with large numbers of markers.
Key Results
PL-Marker was evaluated on six major benchmarks, including CoNLL03, OntoNotes 5.0, ACE04, ACE05, and SciERC. The results demonstrate significant improvements over existing baselines:
- New SOTA in Relation Extraction: PL-Marker achieved a massive 4.1% to 4.3% improvement in strict relation F1 scores on the ACE04 and ACE05 datasets.
- Consistent NER Gains: The model advanced baselines across all six NER benchmarks, showing particular strength in "Few-NERD," which features a high density of entity types.
- Efficiency: Despite the performance jump, PL-Marker is significantly faster than the previous leading "Solid Marker" model (PURE). In some configurations, it achieved a 2.2x to 2.8x speedup during inference while maintaining higher accuracy.
Conclusion and Future Work
PL-Marker represents a significant advancement in span-based information extraction. By moving beyond isolated span representations and embracing a packed, context-aware marker strategy, the framework achieves a superior balance of accuracy and efficiency.
While highly effective, the current model relies on a two-stage pipeline for Relation Extraction, which can lead to error propagation. Future work will focus on addressing these pipeline dependencies and exploring how this marker-based representation can be applied to other NLP tasks such as coreference resolution or event extraction.
Summary updated