Introduction
The SHINRA2020-ML task focuses on the automated structuring of Wikipedia by classifying entities into the Extended Named Entity (ENE) ontology. This ontology consists of a complex, four-level hierarchy with 268 categories. Researchers from Priberam Labs addressed this challenge by developing a system capable of handling multilinguality and multi-label classification across 30 languages, including those with no specific training data (zero-shot).
Methodology
The core of the proposed system is the Multilingual BERT (mBERT) model. The researchers explored various architectures to leverage mBERT's contextual embeddings for document-level classification.
Pooling Strategies
A key contribution of this work is the exploration of different pooling strategies to represent a Wikipedia page from mBERT's token-level outputs:
- mBERT+CLS: Utilizes the standard
[CLS]token embedding. - mBERT+MEAN: Computes the average of all token embeddings.
- mBERT+CONCAT: A novel strategy that concatenates the
[CLS]token embedding, the embeddings of the first 200 tokens, and the average of the remaining 311 tokens. This approach aims to capture more context from long Wikipedia articles.
Classification Models
Beyond simple linear classification, the team investigated hierarchical models:
- Multi-level Hierarchical Classification: Trains the model to predict not only the leaf category but also all its ancestors in the ENE hierarchy.
- Hierarchical Sequential Classification: Employs a Gated Recurrent Unit (GRU) to predict categories level-by-level, using previous predictions to constrain subsequent ones.
Experimental Setup
The models were trained using hand-categorized data from the Japanese Wikipedia, mapped to 30 other languages. Training was conducted on 13 languages, while evaluation included six zero-shot languages (e.g., Vietnamese, Hindi, and Ukrainian) to assess cross-lingual transfer capabilities.
Results and Discussion
The Linear+Concat model emerged as the top performer for most languages, achieving Micro F1 scores between 0.75 and 0.84. This confirms that explicitly including more token context through concatenation provides a significant performance boost over using the [CLS] token alone.
Remarkably, the models demonstrated strong zero-shot performance. The drop in F1 score for languages not seen during training was minimal (3.7% to 4.8%), showcasing the robustness of mBERT's shared multilingual space. While the GRU-based hierarchical model was conceptually sound, it faced optimization challenges when combined with high-dimensional concatenated features.
Conclusion
The Priberam Labs system achieved several top rankings in the SHINRA2020-ML competition, including 1st place for Arabic and 2nd place for Portuguese and Russian. Future work will explore more advanced models like XLM-R and hybrid hierarchical structures to further improve fine-grained classification accuracy.
Summary updated