[Paper Review] Porous Lattice-based Transformer Encoder for Chinese NER
This paper proposes Porous Lattice Transformer Encoder (PLTE), a novel transformer-based model for Chinese NER that processes character and lexical word lattices in parallel using lattice-aware self-attention and a porous mechanism to enhance local context modeling. PLTE achieves up to 11.4× faster inference than state-of-the-art methods while improving performance, especially when combined with BERT representations.
Incorporating lattices into character-level Chinese named entity recognition is an effective method to exploit explicit word information. Recent works extend recurrent and convolutional neural networks to model lattice inputs. However, due to the DAG structure or the variable-sized potential word set for lattice inputs, these models prevent the convenient use of batched computation, resulting in serious inefficient. In this paper, we propose a porous lattice-based transformer encoder for Chinese named entity recognition, which is capable to better exploit the GPU parallelism and batch the computation owing to the mask mechanism in transformer. We first investigate the lattice-aware self-attention coupled with relative position representations to explore effective word information in the lattice structure. Besides, to strengthen the local dependencies among neighboring tokens, we propose a novel porous structure during self-attentional computation processing, in which every two non-neighboring tokens are connected through a shared pivot node. Experimental results on four datasets show that our model performs up to 9.47 times faster than state-of-the-art models, while is roughly on a par with its performance. The source code of this paper can be obtained from https://github.com/xxx/xxx.
Motivation & Objective
- To address the inefficiency and limited semantic interaction in lattice-based RNN models for Chinese NER.
- To overcome the sequential bottleneck and lack of bidirectional context in lattice LSTM and similar models.
- To enable batched, parallel processing of lattice-structured inputs in transformer-based architectures.
- To enhance local context modeling in NER by introducing a porous attention mechanism that strengthens dependencies between neighboring tokens.
- To demonstrate that PLTE achieves superior performance and speed, especially when integrated with pre-trained BERT representations.
Proposed method
- PLTE extends the transformer encoder to process both characters and matched lexical words in a concatenated sequence, enabling full-batch inference.
- It introduces lattice-aware self-attention that incorporates relative positional information from the lattice structure using a relative position embedding mechanism inspired by Shaw et al. (2018).
- The porous mechanism replaces standard fully connected attention with a pivot-shared structure, where each pair of non-adjacent tokens connects via a shared pivot, enhancing local dependency modeling.
- The model maintains long-range dependency learning by preserving the global attention mechanism while focusing attention on relevant local contexts.
- It supports end-to-end training and inference with minimal architectural modifications to standard transformers.
- The framework is compatible with pre-trained language models like BERT, allowing for further performance gains through transfer learning.
Experimental results
Research questions
- RQ1Can a transformer-based architecture effectively process lattice-structured inputs for Chinese NER while enabling batched, parallel computation?
- RQ2How does lattice-aware self-attention improve the modeling of interactions between characters and their matched lexical words compared to unidirectional RNNs?
- RQ3To what extent does the porous attention mechanism enhance local context modeling in character-level NER tasks?
- RQ4How does PLTE compare in speed and accuracy to existing lattice-based models like lattice LSTM and LR-CNN?
- RQ5Can integrating PLTE with pre-trained BERT representations further boost performance beyond current state-of-the-art results?
Key findings
- PLTE achieves up to 11.4× faster inference than lattice LSTM and 5.11× faster than LR-CNN when using Word2vec embeddings on the OneNotes dataset.
- On four benchmark datasets, PLTE outperforms multiple strong baselines in F1 score, especially when combined with BERT representations.
- The ablation study confirms that removing lattice-aware self-attention reduces F1 by 0.58% to 3.63%, demonstrating the critical role of lexicon integration.
- The porous mechanism improves local context modeling, as shown by a consistent performance gain over standard attention in ablation studies.
- PLTE maintains high efficiency even with batch size 1, due to the elimination of recurrent computation and rethinking mechanisms found in prior models.
- When fine-tuned with BERT embeddings, PLTE achieves the best reported performance on Chinese NER benchmarks, confirming its compatibility and effectiveness with pre-trained representations.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.