[Paper Review] Probing Biomedical Embeddings from Language Models
This paper probes biomedical contextual word embeddings from domain-specific language models, comparing BioELMo and BioBERT as fixed feature extractors. Despite fine-tuned BioBERT outperforming BioELMo on downstream tasks, BioELMo excels as a fixed feature extractor in probing tasks due to superior encoding of entity types and biomedical relations, particularly disease-symptom and disease-drug interactions, as shown through visualization and nearest neighbor analysis.
Contextualized word embeddings derived from pre-trained language models (LMs) show significant improvements on downstream NLP tasks. Pre-training on domain-specific corpora, such as biomedical articles, further improves their performance. In this paper, we conduct probing experiments to determine what additional information is carried intrinsically by the in-domain trained contextualized embeddings. For this we use the pre-trained LMs as fixed feature extractors and restrict the downstream task models to not have additional sequence modeling layers. We compare BERT, ELMo, BioBERT and BioELMo, a biomedical version of ELMo trained on 10M PubMed abstracts. Surprisingly, while fine-tuned BioBERT is better than BioELMo in biomedical NER and NLI tasks, as a fixed feature extractor BioELMo outperforms BioBERT in our probing tasks. We use visualization and nearest neighbor analysis to show that better encoding of entity-type and relational information leads to this superiority.
Motivation & Objective
- Understand what intrinsic information is encoded in in-domain contextualized embeddings like BioELMo and BioBERT.
- Compare the performance of BioELMo and BioBERT as fixed feature extractors in probing tasks, independent of fine-tuning.
- Identify whether domain-specific pre-training enhances encoding of biomedical entity types and relational knowledge.
- Investigate why BioELMo, despite being less complex than BERT, outperforms BioBERT in fixed-feature probing settings.
- Characterize the effectiveness of different embeddings in capturing task-relevant linguistic and relational signals in biomedicine.
Proposed method
- Train BioELMo on 10 million PubMed abstracts using the ELMo framework with bidirectional LSTMs and learnable layer weights.
- Use BioBERT, a BERT model pre-trained on biomedical texts, as a comparison point for fixed feature extraction.
- Design two probing tasks: one for biomedical NER (end-to-end span identification and classification) and one for NLI (entailment prediction) using only embeddings as input.
- Apply nearest neighbor analysis to evaluate how closely representations of the same entity type or relation type cluster in embedding space.
- Visualize attention and representation clusters to compare how different models encode entity types and relational information.
- Use subset accuracy on a held-out MedNLI test set to validate probing performance, with correlation analysis between NN clustering and task accuracy.
Experimental results
Research questions
- RQ1How do in-domain contextualized embeddings like BioELMo and BioBERT compare to their general-domain counterparts in encoding biomedical entity types?
- RQ2What specific linguistic or relational information is intrinsically encoded in BioELMo and BioBERT that contributes to their performance as fixed feature extractors?
- RQ3Why does BioELMo outperform BioBERT in probing tasks despite BioBERT's superior performance when fine-tuned on downstream tasks?
- RQ4How effectively do different embeddings cluster representations of the same biomedical relation type (e.g., disease-symptom, disease-drug) in embedding space?
- RQ5To what extent does the architecture (LSTM-based ELMo vs. transformer-based BERT) influence the encoding of contextual and relational information in biomedical text?
Key findings
- BioELMo significantly outperforms BioBERT as a fixed feature extractor in probing tasks, despite BioBERT's superior fine-tuned performance on NER and NLI.
- BioELMo achieves a 57.5% average nearest neighbor (NN) proportion for same relation types, compared to 47.1% for BioBERT, indicating better clustering of relational information.
- BioELMo shows a 73.9% subset accuracy on a MedNLI test subset, outperforming BioBERT (71.4%) and BERT-tog (65.0%), with strong correlation (r=0.52) between NN clustering and task performance.
- Visualization reveals that BioELMo better clusters mentions of the same entity type (e.g., estrogen receptor and endoplasmic reticulum), while BERT representations scatter across types.
- BioELMo encodes contextual cues like parentheses around entity names more effectively than BERT due to the recurrent nature of LSTMs, which influences representation learning.
- BioELMo significantly outperforms both ELMo and BioBERT in encoding disease-symptom (54.2% vs. 44.5%) and disease-drug (32.8% vs. 26.1%) relations, indicating superior relational encoding.
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.