Abstract
Researchers from Priberam Labs addressed the challenge of Extreme Multi-label Classification (XML) in the medical domain through the MESINESP task. The objective was to automatically assign Spanish medical abstracts to a set of over 34,000 DeCS (Descriptors in Health Sciences) codes. By integrating traditional Support Vector Machines (SVMs), a specialized k-NN search engine, and a novel BERT-based architecture utilizing Gated Recurrent Units (GRU), the team developed a robust ensemble model. This approach secured 2nd place among participating teams, achieving a Micro-F1 score of 0.4093 on the official test set.
Introduction
The MESINESP task requires the automated indexing of Spanish clinical abstracts from the IBECS and LILACS databases. This task is characterized by three primary difficulties:
- Scale: The label space consists of 34,118 possible categories.
- Sparsity: A significant "long tail" of infrequent labels exists, providing minimal training data for many conditions.
- Language Constraints: While English medical NLP is mature, Spanish-specific resources are comparatively scarce, necessitating the adaptation of general Spanish models to technical medical contexts.
The dataset used for this study comprised 318,658 training articles, with expert-annotated development and test sets of 750 and 500 samples, respectively.
Methods
The Priberam team evaluated four distinct modeling strategies to optimize the trade-off between precision and recall.
Modeling Strategies
- One-vs-Rest SVM: A baseline approach where independent classifiers are trained for labels appearing at least 20 times.
- Priberam Search (k-NN): A proprietary engine using the Okapi-BM25 algorithm to identify the $k$ most similar articles and aggregate their labels.
- XML BERT Classifier: Based on the Spanish-pretrained "Beto" model, this architecture was enhanced with three different heads: Linear, Label Attention, and a Gated Recurrent Unit (GRU). The GRU head allows for sequential label prediction.
Ensemble Architecture
To synthesize the strengths of these diverse models, an SVM-rank Ensemble was employed. This ranking algorithm learns to aggregate scores from the individual models into a single optimized list of predictions.
Key Insights and Results
The ensemble model outperformed all individual components, highlighting the value of hybridizing classical and deep learning approaches.
- In-Domain Pretraining: Performing additional masked language modeling on the medical corpus was essential for the BERT model to grasp clinical jargon.
- Sequential Prediction: For the GRU-based model, predicting labels in ascending order of frequency (rare labels first) yielded better results when paired with the Bag of Labels (BOLL) loss.
- Performance: The ensemble achieved a Micro-F1 ($\mu F1$) of 0.4093. Notably, the BERT-GRU variant reached a $\mu F1$ of 0.4759 on internal hold-out data, though it experienced performance degradation on the official test set.
- Annotation Mismatch: A performance gap was observed between silver-standard training data and gold-standard expert annotations, suggesting a challenge in model generalization.
Conclusion
The Priberam approach demonstrates that while modern transformer-based models like BERT offer significant power, classical methods like SVM and k-NN remain highly competitive in XML tasks. The primary hurdle remains overfitting to automated annotations. Future research will focus on leveraging the hierarchical structure of DeCS codes and improving the transition from silver-standard training to expert-level evaluation.
Summary updated