TL;DR
This paper investigates what kind of information is encoded within biomedical language model embeddings (like BioELMo and BioBERT) by using them as fixed feature extractors for downstream tasks. Surprisingly, BioELMo, a biomedical version of ELMo, outperforms BioBERT (a biomedical BERT) in these "probing" tasks, suggesting it better captures entity types and relational information crucial for biomedical NLP.
What Problem Does This Paper Address?
The field of Natural Language Processing (NLP) has seen remarkable progress thanks to contextualized word embeddings derived from large pre-trained language models (LMs). These models, like ELMo and BERT, learn rich representations of words based on their context. For specialized domains like biomedicine, where labeled data is often scarce, pre-training LMs on domain-specific corpora (e.g., biomedical articles) has shown to further boost performance.
However, simply achieving state-of-the-art results on downstream tasks doesn't tell us what specific linguistic or semantic information these specialized embeddings actually capture. This paper aims to answer this question by "probing" these biomedical embeddings. They want to understand if the in-domain pre-training truly imbues the embeddings with deeper biomedical knowledge, and if so, what kind of knowledge it is.
Methods
The core of this paper is the probing task methodology. Instead of fine-tuning the entire pre-trained model for a specific task, the authors treat the biomedical language models (BioELMo and BioBERT) as fixed feature extractors. This means the embeddings are generated, and then fed into a simple, non-contextual downstream model (like a few feed-forward layers and a CRF for NER, or a linear layer for NLI). This setup prevents the downstream model from learning task-specific contextual patterns, forcing it to rely solely on the information already present in the pre-trained embeddings.
They compare two main biomedical embeddings:
- BioELMo: An ELMo model trained on 10 million PubMed abstracts.
- BioBERT: A BERT model pre-trained on biomedical texts.
They also compare these to their general-domain counterparts (ELMo and BERT) and a non-contextual biomedical word embedding (Biomed w2v).
Datasets
- Training:
- PubMed abstracts (10 million for BioELMo)
- English Wikipedia and BooksCorpus (for general BERT, which BioBERT is initialized from)
- Evaluation (Downstream Tasks):
- NER:
- BC2GM (Biocreative II gene mention dataset) - Biomedical domain.
- NER:
- CoNLL 2003 NER - General domain.
- NLI: * MedNLI (clinical dataset MIMIC-III) - Biomedical domain.
- SNLI (image caption dataset) - General domain.
Key Insights and Ideas
- Domain-Specific Embeddings Shine in Probing: While fine-tuned BioBERT often achieves better overall performance, BioELMo (and to a lesser extent BioBERT) significantly outperforms their general-domain counterparts when used as fixed feature extractors in probing tasks. This suggests that in-domain pre-training genuinely imbues embeddings with useful biomedical knowledge.
- BioELMo's Superiority in Probing: Surprisingly, BioELMo consistently outperforms BioBERT in the probing tasks for both NER and NLI. This is a key finding, as BioBERT is generally considered a more powerful architecture.
- Encoding Entity Types and Relations: The authors hypothesize and provide evidence (through visualization and nearest neighbor analysis) that BioELMo's superiority stems from its better ability to encode entity types and relational information. For instance, it can better distinguish between different meanings of an acronym like "ER" (estrogen receptor vs. endoplasmic reticulum) and better capture relationships between medical concepts.
- The Cost of Domain Specificity: Both BioELMo and BioBERT show a drop in performance on general-domain control tasks compared to their general-domain counterparts. This indicates that while domain-specific pre-training enhances biomedical understanding, it can come at the cost of losing some general linguistic knowledge.
Key Results
- NER: BioBERT and BioELMo achieved state-of-the-art performance on the BC2GM dataset in the "Whole" setting (fine-tuned models). In the "Probe" setting, BioELMo achieved 88.4% F1, outperforming BioBERT (88.2%) and general ELMo (82.9%).
- NLI: BioBERT and BioELMo also set state-of-the-art on MedNLI in the "Whole" setting. In the "Probe" setting, BioELMo achieved 75.5% accuracy, significantly outperforming BioBERT (70.1%) and general BERT-tog (69.9%).
- Relational Information: A manual analysis of MedNLI instances revealed various relation types (disease-symptom, disease-drug, etc.). BioELMo showed a significantly higher proportion of nearest neighbor representations belonging to the same relation type compared to ELMo, and also significantly outperformed BioBERT and BERT-tog in this regard.
Limitations and Future Work
- Corpus Size Discrepancy: The authors note that BioELMo was trained on a smaller corpus (10M PubMed abstracts) than BioBERT (which leverages a larger biomedical corpus for fine-tuning). They couldn't control for this difference due to the timing of their research.
- Architecture Differences: The paper acknowledges that ELMo's LSTM architecture and BERT's Transformer architecture have fundamental differences that might explain some of the observed behaviors (e.g., how they handle parentheses).
- Future Directions: The authors suggest that NLP's long-term goal is to learn universal text representations. Their probing tasks can serve as a valuable tool to test how well learned representations encode specific types of information. Further research could explore comprehensive characterizations of these models as fixed feature extractors.
Summary updated