[Paper Review] Self-attention-based BiGRU and capsule network for named entity recognition
This paper proposes a B-SABCN model that combines BERT, bidirectional GRU (BiGRU), self-attention, and capsule networks (CapsNet) for Chinese named entity recognition (NER). By leveraging contextualized BERT embeddings, BiGRU for sequence modeling, self-attention to emphasize salient features, and CapsNet for hierarchical entity classification, the model achieves state-of-the-art performance on two Chinese NER datasets without external knowledge, with an F1 score of 94.97% on MSRA and 78.16% on the Diabetes dataset.
Named entity recognition(NER) is one of the tasks of natural language processing(NLP). In view of the problem that the traditional character representation ability is weak and the neural network method is unable to capture the important sequence information. An self-attention-based bidirectional gated recurrent unit(BiGRU) and capsule network(CapsNet) for NER is proposed. This model generates character vectors through bidirectional encoder representation of transformers(BERT) pre-trained model. BiGRU is used to capture sequence context features, and self-attention mechanism is proposed to give different focus on the information captured by hidden layer of BiGRU. Finally, we propose to use CapsNet for entity recognition. We evaluated the recognition performance of the model on two datasets. Experimental results show that the model has better performance without relying on external dictionary information.
Motivation & Objective
- To address the limitations of traditional character-level representations and RNN-based models in capturing long-range dependencies and important contextual features in Chinese NER.
- To improve entity recognition accuracy by integrating self-attention to dynamically weigh relevant hidden features from BiGRU.
- To enhance classification robustness by replacing scalar outputs with vector-based capsule networks that preserve spatial relationships between entity features.
- To evaluate the model’s performance on both general-domain and domain-specific Chinese NER datasets without relying on external dictionaries or linguistic resources.
Proposed method
- Utilizes BERT pre-trained language model to generate contextualized character-level embeddings, improving semantic representation over static word2vec.
- Employs bidirectional gated recurrent units (BiGRU) to capture bidirectional long-range dependencies in the input sequence.
- Introduces a self-attention mechanism over BiGRU hidden states to assign dynamic weights to features, emphasizing informative tokens and reducing noise from non-entity words.
- Applies a capsule network (CapsNet) to model hierarchical relationships between entity features, where capsule outputs represent the probability and instantiation parameters of entity types.
- Combines the output of CapsNet with CRF for sequence labeling, ensuring consistent entity boundary predictions.
- Trains the end-to-end model using cross-entropy loss and fine-tunes on downstream NER tasks with standard optimization techniques.
Experimental results
Research questions
- RQ1Can a self-attention-enhanced BiGRU with BERT embeddings improve the representation of contextual features in Chinese NER?
- RQ2How does the integration of capsule networks compare to traditional scalar-based classification in modeling entity relationships and improving recognition accuracy?
- RQ3To what extent does the self-attention mechanism reduce the impact of redundant non-entity words in sequence labeling?
- RQ4Does the proposed B-SABCN model outperform existing SOTA methods on both general and domain-specific Chinese NER benchmarks without external knowledge?
- RQ5What is the individual contribution of BERT, self-attention, and CapsNet components to the overall performance gain?
Key findings
- The B-SABCN model achieves an F1 score of 94.97% on the MSRA Chinese NER dataset, outperforming the BiLSTM-CRF baseline by 6 percentage points.
- On the domain-specific Diabetes dataset, the model reaches an F1 score of 78.16%, surpassing the BiLSTM-CRF model by 6.12 percentage points and the CNN-BiLSTM-CRF model by 1.84 percentage points.
- The ablation study confirms that BERT embeddings contribute most significantly, improving F1 by 4 percentage points over word2vec-based inputs, due to better handling of polysemy and context.
- The self-attention mechanism contributes to a 0.3% increase in F1 on MSRA and 0.4% on Diabetes, demonstrating its effectiveness in filtering irrelevant features and enhancing attention to key tokens.
- Replacing scalar outputs with capsule-based representations yields a 0.16% improvement in F1 on MSRA and 0.11% on Diabetes, indicating that vector-based classification preserves more discriminative information.
- The full B-SABCN model, combining BERT, self-attention, and CapsNet, achieves the best performance on both datasets, validating the synergy of all components in improving NER accuracy.
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.