Introduction
Standard neural architectures for sequence labeling, particularly Named Entity Recognition (NER), typically rely on a Bi-directional LSTM (BiLSTM) encoder followed by a Conditional Random Field (CRF) decoder. While effective, these models often stack layers in a rigid, one-to-one fashion. This paper introduces a "deformable stacked structure" that allows the network to dynamically learn optimal connections between layers, significantly improving context capture for complex entities.
The Problem with Rigid Stacking
In traditional architectures, the hidden state at position $i$ in layer $l+1$ is derived directly from the hidden state at the same position $i$ in layer $l$. This rigid alignment forces the model to compress all relevant contextual information into a single fixed-length vector at each step. In natural language, however, the most informative context for a specific token may be several words away. For example, identifying a company name might depend on a keyword like "shares" appearing earlier in the sentence. A rigid structure requires the LSTM to maintain this information across many time steps, which can be inefficient and prone to forgetting.
Methods: Deformable Connections
The proposed Deformable Stacked Structure breaks this rigidity by allowing layer $l+1$ at position $i$ to receive input from a learned offset position $i + o$, where $o$ is a dynamically calculated value.
Differentiable Offsets and Interpolation
To maintain end-to-end trainability via backpropagation, the model predicts continuous offsets rather than discrete indices. Using bilinear interpolation, the model samples from the hidden states of adjacent discrete positions. For example, an offset of 1.2 would result in a weighted combination of the states at indices 1 and 2. This makes the entire selection process differentiable.
Architectural Extensions
The authors further enhance this mechanism with several extensions:
- Multi-Offset Extension: The model can predict $k$ different offsets per position (with $k=3$ yielding optimal results), allowing it to aggregate information from multiple contextual sources simultaneously.
- Wide-Window Prediction: A small Convolutional Neural Network (CNN) is used to analyze a local window of hidden states, providing better guidance for where the offset should point.
- Flexible Placement: These deformable connections are applied both between stacked BiLSTM layers and between the final BiLSTM layer and the CRF decoder.
Experimental Results
The model was evaluated on two standard benchmarks: CoNLL-2003 and OntoNotes 5.0.
On the complex OntoNotes 5.0 dataset, the deformable model achieved a state-of-the-art F1 score of 88.01, a significant improvement over the rigid BiLSTM-CNN-CRF baseline of 87.00. On CoNLL-2003, it achieved a competitive F1 of 91.12.
Key Insights
- Boosted Recall: The primary quantitative improvement was in recall, as the flexible connections allowed the model to correctly identify entity boundaries that rigid models missed.
- Robustness to OOV Words: By learning to rely on surrounding context rather than just the target word, the model performed significantly better on out-of-vocabulary (OOV) tokens.
- Visualizing Attention: Visualizations of the learned offsets revealed that the network actively shifts its focus to neighboring words to resolve multi-word entity boundaries, effectively acting as a lightweight, dynamic neural architecture search.
Conclusion
By introducing learnable, deformable connections between layers, this research provides a flexible alternative to rigid stacking. The resulting model is more robust and better equipped to handle the long-range dependencies inherent in natural language. Future work may involve applying this deformable logic to other structural NLP tasks such as dependency parsing.
Summary updated