[论文解读] Fine-Tuning Large Neural Language Models for Biomedical Natural Language Processing
本文研究了生物医学 NLP 中微调的稳定性,表明即使经过强大的预训练,像 BERT-LARGE 和 ELECTRA 这类大模型在低资源任务上仍表现出显著的不稳定性。作者识别出最佳的稳定化技术——例如,大模型采用逐层权重衰减,文本相似性任务采用顶层重新初始化——从而在 BLURB 基准上实现了新的 SOTA 结果,结合领域特定的预训练和词汇表进一步提升了鲁棒性。
Motivation: A perennial challenge for biomedical researchers and clinical practitioners is to stay abreast with the rapid growth of publications and medical notes. Natural language processing (NLP) has emerged as a promising direction for taming information overload. In particular, large neural language models facilitate transfer learning by pretraining on unlabeled text, as exemplified by the successes of BERT models in various NLP applications. However, fine-tuning such models for an end task remains challenging, especially with small labeled datasets, which are common in biomedical NLP. Results: We conduct a systematic study on fine-tuning stability in biomedical NLP. We show that finetuning performance may be sensitive to pretraining settings, especially in low-resource domains. Large models have potential to attain better performance, but increasing model size also exacerbates finetuning instability. We thus conduct a comprehensive exploration of techniques for addressing fine-tuning instability. We show that these techniques can substantially improve fine-tuning performance for lowresource biomedical NLP applications. Specifically, freezing lower layers is helpful for standard BERT-BASE models, while layerwise decay is more effective for BERT-LARGE and ELECTRA models. For low-resource text similarity tasks such as BIOSSES, reinitializing the top layer is the optimal strategy. Overall, domainspecific vocabulary and pretraining facilitate more robust models for fine-tuning. Based on these findings, we establish new state of the art on a wide range of biomedical NLP applications. Availability and implementation: To facilitate progress in biomedical NLP, we release our state-of-the-art pretrained and fine-tuned models: https://aka.ms/BLURB.
研究动机与目标
- 解决低资源生物医学 NLP 任务中微调不稳定性的问题,其中标注数据稀缺且标注成本高昂。
- 研究预训练设置(如跳过下一句预测、段落 ID 建模,以及使用 ELECTRA 目标)对下游微调性能的影响。
- 系统性地评估优化策略和层特定适应技术,以识别在多样化生物医学任务中稳定微调的最有效策略。
- 建立在生物医学 NLP 中微调大模型(如 BERT-LARGE、ELECTRA)的最佳实践,包括模型特定的稳定化方法。
- 通过结合最优预训练、领域特定词汇表和任务适应的微调策略,在 BLURB 基准上实现新的 SOTA 性能。
提出的方法
- 在包含 6 项任务和 13 个数据集的 BLURB 基准上开展全面的实证研究,涵盖生物医学 NLP 应用。
- 评估预训练目标的影响——具体而言,比较掩码语言建模(MLM)与 ELECTRA,并评估下一句预测(NSP)和段落 ID 建模的作用。
- 应用层特定适应技术:冻结低层、逐层权重衰减,以及重新初始化顶层分类层。
- 比较长周期训练和 ADAM 去偏等优化策略,并评估其在减少微调不稳定性方面的有效性。
- 使用领域特定词汇表和领域自适应预训练,以提升模型在低资源生物医学任务中的鲁棒性和泛化能力。
- 通过 Microsoft 的 Hugging Face 和 BLURB 仓库发布最先进的预训练和微调模型,以支持可复现性和未来研究。
实验结果
研究问题
- RQ1不同的预训练目标(如 MLM 与 ELECTRA、NSP 与无 NSP)如何影响低资源生物医学 NLP 任务中的微调稳定性和性能?
- RQ2模型规模(如 BERT-Base 与 BERT-Large)在多大程度上加剧了微调不稳定性?这种问题如何缓解?
- RQ3对于不同模型架构和任务类型,冻结低层、逐层衰减或顶层重新初始化这三种层特定适应技术中,哪一种最有效?
- RQ4与通用领域模型相比,领域特定词汇表和预训练在多大程度上影响微调的稳定性和性能?
- RQ5仅通过优化调整是否足以稳定微调?还是在生物医学 NLP 中实现鲁棒性能,必须依赖架构特定的适应策略?
主要发现
- 在预训练期间跳过下一句预测(NSP)对性能影响可忽略不计,且显著节省计算时间,与通用领域发现一致。
- 在预训练期间建模段落 ID 显著提升了文本相似性和问答等语义任务的性能,尤其在训练数据有限时更为明显。
- 大模型(如 BERT-Large)面临更严重的微调不稳定性,若无适当的稳定化技术,其性能通常会下降。
- 对于 BERT-Base 模型,冻结低层是最有效的稳定化策略;而对于 BERT-Large 和 ELECTRA 模型,逐层权重衰减表现更优。
- 在低资源文本相似性任务(如 BIOSSES)中,重新初始化顶层分类层能获得最高性能,优于其他策略。
- 领域特定词汇表和预训练显著增强了微调的鲁棒性,使 BLURB 基准上实现 SOTA 性能,包括在 BIOSSES 上达到 92.69 的 F1 分数,以及在宽松 NER 评分下达到 93.84 的平均 F1。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。