Domain-specific or Uncertainty-aware models: Does it really make a difference for biomedical text classification?

Aman Sinha, Timothee Mickus, Marianne Clausel, Mathieu Constant, Xavier Coubez · DOI

TL;DR

This paper investigates whether building language models specifically for the biomedical domain or equipping them with uncertainty awareness makes a bigger difference in text classification tasks. They found that while both approaches can be beneficial and often combined, the specific task at hand has a much larger impact on performance than either domain-specificity or uncertainty awareness alone.

What Problem Does This Paper Address?

The NLP community has seen a surge in developing "domain-specific" pre-trained language models (PLMs) like BioBERT, aiming to improve performance on specialized tasks. Simultaneously, in high-stakes fields like medicine, it's crucial for models to not only be accurate but also to reliably indicate their confidence (uncertainty awareness). This paper bridges these two trends by asking: how do these two desirable model characteristics – domain-specificity and uncertainty awareness – interact and impact performance in biomedical text classification? They aim to understand if these are orthogonal benefits and which one practitioners should prioritize.

Methods

The researchers compared different model configurations:

  • Domain-Specific (-D) vs. General Domain (+D): They used both general PLMs (like BERT, CamemBERT) and their biomedical counterparts (BioBERT, CamemBERT-bio).
  • Uncertainty-Aware (+U) vs. Uncertainty-Unaware (-U): For uncertainty awareness, they experimented with frequentist deep learning models (DNNs) and Bayesian deep learning models (BNNs). Specifically, they focused on DropConnect, MC-dropout, and variational inference for BNNs.
  • Metrics: They evaluated models on both classification performance (Macro-F1, accuracy) and uncertainty quantification (Brier Score, ECE, SCE, NLL, coverage, entropy).
  • Analysis: They used SHAP (SHapley Additive exPlanations) to understand the relative importance of domain-specificity, uncertainty awareness, and the dataset itself in driving model performance across different metrics.

Datasets

The study utilized six standard biomedical datasets:

  • English: MedABS, MedNLI, SMOKING
  • French: MORFITT, PxSLU, MedMCQA

These datasets cover various biomedical text classification tasks, including predicting patient conditions, inference types, smoking status, drug prescription intent, and answering medical questions.

Key Insights and Ideas

  • Task Dominance: The most striking finding is that the specific classification task at hand significantly outweighs the benefits of either domain-specificity or uncertainty awareness. This means a well-suited general model might outperform a poorly chosen domain-specific or uncertainty-aware model.
  • Synergy Exists, But Not a Silver Bullet: Domain-specific and uncertainty-aware models can be combined effectively, often leading to strong performance. However, there's no single "out-of-the-box" solution that works best across all tasks.
  • Metric Matters: The choice between prioritizing domain-specificity or uncertainty awareness depends heavily on the evaluation metric. Domain-specific models tend to excel at classification metrics (F1, accuracy), while uncertainty-aware models are better calibrated.
  • Uncertainty Awareness is Generally Good: Uncertainty-unaware models rarely ranked among the top performers, especially for calibration metrics.

Key Results

  • Classification Performance: Domain-specific (+D) configurations generally outperformed general domain (-D) models on classification metrics like Macro-F1 and accuracy.
  • Uncertainty Metrics: Uncertainty-aware (+U) models consistently showed better calibration across various metrics (Brier Score, ECE, SCE, NLL, coverage, entropy).
  • SHAP Analysis: Domain specificity and uncertainty awareness had a notable impact, but the dataset itself (i.e., the task specifics) was the most influential factor across most metrics.
  • Bayesian Architectures: While DropConnect was a strong contender, it wasn't universally the best Bayesian architecture across all datasets.

Limitations and Future Work

  • Task Sensitivity: The paper emphasizes that the strong influence of the task itself limits the generalizability of findings. Optimal model design requires careful consideration of the specific application.
  • Quantitative Differences: In some cases, the quantitative differences between the best and worst models were small (e.g., ±2.3% for F1 on MedABS), suggesting that while trends exist, the practical impact can be nuanced.
  • Future Work: The authors suggest that while combining uncertainty awareness and domain-specificity is often beneficial, future work should focus on designing models with careful application-specific considerations rather than relying on generic solutions. They also note that the exact relationship between domain specificity and uncertainty awareness can be complex and sometimes counter-intuitive, with general models occasionally outperforming specialized ones.

Summary updated

BibTeX
@inproceedings{sinha2024domain,
  author = {Aman Sinha and Timothee Mickus and Marianne Clausel and Mathieu Constant and Xavier Coubez},
  title = {{Domain-specific or Uncertainty-aware models: Does it really make a difference for biomedical text classification?}},
  booktitle = {BioNLP @ ACL},
  year = {2024},
  doi = {10.18653/v1/2024.bionlp-1.16},
}
Figure