arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.06346cs.CLcs.AI
收藏

针对严重程度的加权损失用于阿拉伯语医疗文本生成

Severity-Aware Weighted Loss for Arabic Medical Text Generation

October University for Modern Sciences \& Arts, Egypt

Ahmed Alansary, Molham Mohamed, Ali Hamdi

AI总结:

本文提出一种考虑临床严重程度的加权损失方法,用于优化阿拉伯语医疗文本生成,通过动态调整token级损失以提升关键交互性能,实验表明在不同模型上均取得显著提升。

摘要:

大型语言模型在阿拉伯语医疗文本生成中展现出强大潜力;然而,传统微调目标将所有医疗案例视为同等,忽略了临床严重程度的差异。本工作提出一种针对严重程度的加权损失方法,用于微调阿拉伯语语言模型在医疗投诉-回应数据上。该方法依赖于软严重程度概率,动态调整token级损失贡献,从而优先处理临床关键交互而不修改模型架构。实验使用MAQA数据集,该数据集提供阿拉伯语医疗投诉和受信任的人类回应。严重程度标签和概率分数通过微调的AraBERT分类器自动获得,并仅在损失层面整合。所提出的方法在十种阿拉伯大型语言模型上进行评估,涵盖不同架构和参数规模。尽管标准交叉熵微调仅带来有限提升,严重程度感知优化始终取得更大收益。使用平衡加权配置,AraGPT2-Base性能从54.04%提升至66.14%,AraGPT2-Medium从59.16%提升至67.18%,Qwen2.5-0.5B从57.83%提升至66.86%,峰值性能达到67.18%。总体而言,严重程度感知微调在非微调基线上带来高达12.10%的提升,证明了其稳健性和架构一致性收益。

英文摘要:

Large language models have shown strong potential for Arabic medical text generation; however, traditional fine-tuning objectives treat all medical cases uniformly, ignoring differences in clinical severity. This limitation is particularly critical in healthcare settings, where errors in severe cases contain higher clinical risk. In this work, we propose a severity-aware weighted loss for fine-tuning Arabic language models on medical complaint-response data. The method depends on soft severity probabilities to dynamically scale token-level loss contributions during optimization, thereby prioritizing clinically critical interactions without modifying model architectures. Experiments are conducted using the MAQA dataset, which provides Arabic medical complaints and trusted human responses. Severity labels and probabilistic scores are automatically derived using a fine-tuned AraBERT-based classifier and incorporated exclusively at the loss level. The proposed approach is evaluated across ten Arabic large language models of varying architectures and parameter scales. While standard cross-entropy fine-tuning yields only modest improvements, severity-aware optimization consistently achieves larger gains. Using a balanced weighting configuration, performance improves from 54.04% to 66.14% for AraGPT2-Base, from 59.16% to 67.18% for AraGPT2-Medium, and from 57.83% to 66.86% for Qwen2.5-0.5B, with peak performance reaching 67.18%. Overall, severity-aware fine-tuning delivers improvements of up to 12.10% over non-fine-tuned baselines, demonstrating robust and architecture-consistent gains.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑