[Paper Review] Named entity recognition in chemical patents using ensemble of contextual language models
This paper proposes an ensemble of contextualized language models—specifically BERT-based architectures—to improve named entity recognition (NER) in chemical patents. By combining predictions from multiple models via majority voting, the approach achieves a state-of-the-art exact F1-score of 92.30% and a relaxed F1-score of 96.24% on the ChEMU NER benchmark, demonstrating that ensemble methods effectively mitigate limitations of individual models in handling complex, long-span chemical entities.
Chemical patent documents describe a broad range of applications holding key reaction and compound information, such as chemical structure, reaction formulas, and molecular properties. These informational entities should be first identified in text passages to be utilized in downstream tasks. Text mining provides means to extract relevant information from chemical patents through information extraction techniques. As part of the Information Extraction task of the Cheminformatics Elsevier Melbourne University challenge, in this work we study the effectiveness of contextualized language models to extract reaction information in chemical patents. We assess transformer architectures trained on a generic and specialised corpora to propose a new ensemble model. Our best model, based on a majority ensemble approach, achieves an exact F1-score of 92.30% and a relaxed F1-score of 96.24%. The results show that ensemble of contextualized language models can provide an effective method to extract information from chemical patents.
Motivation & Objective
- To improve named entity recognition in chemical patents, where text is complex and often obfuscated to protect intellectual property.
- To evaluate the effectiveness of contextualized language models—particularly BERT variants—on chemical patent NER without domain-specific pre-training.
- To investigate whether ensembling multiple transformer-based models can enhance performance over individual models or traditional CRF baselines.
- To analyze error patterns, especially for long-span entities like reagents, catalysts, and reaction products, which are frequently misclassified.
Proposed method
- Fine-tuned five BERT-based models—bert-base-cased, bert-base-uncased, bert-large-cased, bert-large-uncased, and ChemBERTa—on the ChEMU NER dataset for token classification.
- Applied a majority voting ensemble strategy to combine predictions from all five models, improving robustness and reducing individual model errors.
- Used standard BERT tokenization and fine-tuning procedures with cross-entropy loss on the labeled training set for each entity class.
- Evaluated model performance using both exact and relaxed F1-scores, with the latter allowing partial overlap in predicted and gold spans.
- Conducted error analysis on the development set to identify common failure modes, particularly for long or inconsistently annotated entities.
- Compared results against a CRF baseline and a competition baseline to establish performance benchmarks.
Experimental results
Research questions
- RQ1Can an ensemble of pre-trained contextual language models outperform individual models in chemical patent NER?
- RQ2How effective are general-domain BERT models without domain-specific pre-training for recognizing chemical entities in patents?
- RQ3What types of errors are most common in NER for chemical patents, especially for long or multi-word entities?
- RQ4Does majority voting across diverse BERT variants reduce error rates compared to single-model predictions?
- RQ5Why do larger models like BERT-large not consistently outperform smaller ones in this NER task?
Key findings
- The ensemble model achieved an exact F1-score of 92.30% and a relaxed F1-score of 96.24%, significantly outperforming the CRF baseline (80.56%) and the competition baseline (88.93%).
- The model's performance was particularly strong for yield-related entities, with 99.74% F1 for yield_percent, indicating high precision and recall for well-defined terms.
- Error analysis revealed that 78.8% of span errors involved predictions that were too long, such as including modifiers like 'aqueous' or 'concentrated' in reagent names.
- The most frequent confusion occurred between starting_material and reagent_catalyst, and between reaction_product and other_compound, likely due to semantic overlap in chemical text.
- Longer entities—especially reagent_catalyst, reaction_product, and starting_material—were more prone to errors, with some models (e.g., bert-large-uncased) failing to detect any tokens of the span.
- The ensemble model reduced errors on long spans compared to individual BERT models, suggesting that combining diverse predictions mitigates subword tokenization limitations.
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.