Abstract
Sequence-to-sequence (seq2seq) models, while powerful for generative tasks, often struggle with Information Extraction (IE) due to soft attention mechanisms and token-level copy operations. We present CopyNext, an architectural enhancement that introduces a dedicated "CopyNext" operation to enable explicit, contiguous span copying with hard alignments. Evaluated on Nested Named Entity Recognition (NNER), CopyNext achieves an 86.7 F1 score while operating 16.7x faster than exhaustive search methods, offering a high-efficiency alternative for real-world IE applications.
Introduction
Traditional seq2seq models face two primary hurdles in Information Extraction: the Alignment Gap and Span Inefficiency. IE tasks require "hard alignments" to identify exactly which input tokens correspond to a specific label. Standard "soft attention" smears focus across the input, complicating provenance. Furthermore, most copy mechanisms treat tokens independently; copying a multi-word entity requires multiple "pointing" operations, ignoring the naturally contiguous nature of linguistic spans.
These challenges are particularly acute in Nested Named Entity Recognition (NNER), where entities are embedded within one another (e.g., [The [University of Maryland]]). CopyNext addresses these by extending the pointer network framework with an inductive bias for contiguous sequences.
Methodology
The CopyNext model utilizes a Bi-LSTM encoder and a specialized decoder designed to make one of three discrete decisions at each timestep:
- Point: Select a starting index from the input sequence.
- CopyNext (CN): A dedicated symbol instructing the model to copy the token immediately following the previously copied token, allowing for efficient span "sweeping."
- Label: Assign a category (e.g.,
PERSON) to the current span.
To prevent the generation of invalid sequences (e.g., calling "CopyNext" before a starting point is established), a state machine is employed during inference to mask illegal operations based on the previous step.
Experimental Setup
The model was evaluated on the NNE dataset, comprising approximately 43,000 training sentences. The authors investigated various pre-trained embeddings, including BERT, XLNet, and RoBERTa. Notably, the researchers found that using the 15th layer of RoBERTa-large (out of 24) provided better results for NER than the final layer, suggesting that intermediate transformer layers better capture syntactic and entity-level information.
Results and Discussion
CopyNext demonstrates a significant efficiency advantage over existing methods. While exhaustive "Hypergraph" models achieve higher peak accuracy, they are computationally expensive. CopyNext bridges the gap between standard seq2seq models and these exhaustive methods, providing a substantial speedup.
As shown in the results, CopyNext achieves an 86.7 F1 score, significantly outperforming standard seq2seq (75.4 F1) and basic pointer networks (83.5 F1). Crucially, it operates 16.7x faster than the Hypergraph baseline. While there is a recall gap compared to exhaustive search, the order-of-magnitude increase in decoding speed makes CopyNext a superior choice for high-throughput, real-world applications.
Conclusion
By incorporating an inductive bias for contiguous spans, CopyNext provides a practical solution for efficient and interpretable Information Extraction. Future work will focus on closing the recall gap and applying the CopyNext operation to more complex tasks such as Event Extraction and Semantic Parsing.
Summary updated