诊断 Transformers:照亮用于临床决策的特征空间
Diagnosing Transformers: Illuminating Feature Spaces for Clinical Decision-Making
AI总结:
本文提出 SUFO 框架,通过监督探测、相似性、特征动态与离群值分析诊断微调 transformer 的特征空间,并基于五个 110M 模型揭示预训练领域对过拟合、特征消歧和稀疏化的影响。
摘要:
预训练 transformers 通常会被微调,以利用有限的临床笔记辅助临床决策。模型可解释性至关重要,尤其是在医学等高风险领域,因为建立信任和确保安全性都需要人的参与。我们提出 SUFO,这是一个系统性框架,可增强微调后 transformer 特征空间的可解释性。SUFO 采用一系列分析与可视化技术,包括监督式探测、无监督相似性分析、特征动态分析和离群值分析,以解决关于模型信任与可解释性的关键问题。我们开展了一项案例研究,考察预训练数据的影响,其中聚焦于真实世界的病理学分类任务,并在 MedNLI 上验证我们的发现。我们评估了五个规模为 110M 的预训练 transformer 模型,并将其分为通用领域组(BERT、TNLR)、混合领域组(BioBERT、Clinical BioBERT)和领域专用组(PubMedBERT)。我们的 SUFO 分析揭示:(1)尽管领域专用模型 PubMedBERT 包含可用于微调的有价值信息,但当存在类别不平衡时,它可能对少数类过拟合;相比之下,混合领域模型表现出更强的抗过拟合能力,这表明领域专用模型的鲁棒性存在潜在改进空间;(2)领域内预训练会加速微调过程中的特征消歧;(3)特征空间在此过程中会发生显著稀疏化,使临床医生能够识别微调模型之间常见的离群模式,正如本文所展示的那样。这些发现证明了 SUFO 在医学中使用 transformers 时增强信任与安全性的效用,并且我们相信 SUFO 可以帮助从业者评估用于医学其他应用以及更关键领域的微调语言模型。
英文摘要:
Pre-trained transformers are often fine-tuned to aid clinical decision-making using limited clinical notes. Model interpretability is crucial, especially in high-stakes domains like medicine, to establish trust and ensure safety, which requires human engagement. We introduce SUFO, a systematic framework that enhances interpretability of fine-tuned transformer feature spaces. SUFO utilizes a range of analytic and visualization techniques, including Supervised probing, Unsupervised similarity analysis, Feature dynamics, and Outlier analysis to address key questions about model trust and interpretability. We conduct a case study investigating the impact of pre-training data where we focus on real-world pathology classification tasks, and validate our findings on MedNLI. We evaluate five 110M-sized pre-trained transformer models, categorized into general-domain (BERT, TNLR), mixed-domain (BioBERT, Clinical BioBERT), and domain-specific (PubMedBERT) groups. Our SUFO analyses reveal that: (1) while PubMedBERT, the domain-specific model, contains valuable information for fine-tuning, it can overfit to minority classes when class imbalances exist. In contrast, mixed-domain models exhibit greater resistance to overfitting, suggesting potential improvements in domain-specific model robustness; (2) in-domain pre-training accelerates feature disambiguation during fine-tuning; and (3) feature spaces undergo significant sparsification during this process, enabling clinicians to identify common outlier modes among fine-tuned models as demonstrated in this paper. These findings showcase the utility of SUFO in enhancing trust and safety when using transformers in medicine, and we believe SUFO can aid practitioners in evaluating fine-tuned language models for other applications in medicine and in more critical domains.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。