arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2601.10524cs.AI
收藏

在微调大语言模型中诊断泛化失败: phishing检测的跨架构研究

Diagnosing Generalization Failures in Fine-Tuned LLMs: A Cross-Architectural Study on Phishing Detection

Naval Surface Warfare Center Panama City Division(海军水面 warfare 中心巴拿马城分部)

Frank Bobe, Gregory D. Vetaw, Chase Pavlick, Darshan Bryner, Matthew Cook, Jose Salas-Vernis

AI总结:

本文通过跨架构研究,揭示了微调大语言模型在钓鱼检测任务中泛化失败的原因,发现架构与数据多样性协同作用、架构依赖性及某些架构固有泛化能力。

摘要:

微调大语言模型 (LLMs) 在专门任务上已取得最先进的性能,但诊断为什么这些模型变得脆弱并无法泛化仍然是一个关键的开放问题。为了解决这个问题,我们引入并应用了一个多层诊断框架进行跨架构研究。我们对Llama 3.1 8B、Gemma 2 9B和Mistral模型在高风险的钓鱼检测任务上进行微调,并使用SHAP分析和机制可解释性来揭示其泛化失败的根本原因。我们的调查揭示了三个关键发现:(1) 泛化是由架构和数据多样性之间强大的协同作用驱动的。Gemma 2 9B模型在状态最先进的性能 (>91% F1) ,但只有在训练上风格多样化的“通用”数据集时才能实现。 (2) 泛化高度依赖于架构。我们诊断了Llama 3.1 8B模型的一种特定失败模式,该模型在狭窄领域表现良好,但无法整合多样化数据,导致性能显著下降。 (3) 一些架构本质上更具泛化能力。Mistral模型在多种训练范式下证明了其一致性和鲁棒性。通过指出导致这些失败的错误启发式方法,我们的工作提供了一种具体的方法来诊断和理解泛化失败,强调可靠的AI需要深入验证架构、数据和训练策略之间的相互作用。

英文摘要:

The practice of fine-tuning Large Language Models (LLMs) has achieved state-of-the-art performance on specialized tasks, yet diagnosing why these models become brittle and fail to generalize remains a critical open problem. To address this, we introduce and apply a multi-layered diagnostic framework to a cross-architectural study. We fine-tune Llama 3.1 8B, Gemma 2 9B, and Mistral models on a high-stakes phishing detection task and use SHAP analysis and mechanistic interpretability to uncover the root causes of their generalization failures. Our investigation reveals three critical findings: (1) Generalization is driven by a powerful synergy between architecture and data diversity. The Gemma 2 9B model achieves state-of-the-art performance (>91\% F1), but only when trained on a stylistically diverse ``generalist'' dataset. (2) Generalization is highly architecture-dependent. We diagnose a specific failure mode in Llama 3.1 8B, which performs well on a narrow domain but cannot integrate diverse data, leading to a significant performance drop. (3) Some architectures are inherently more generalizable. The Mistral model proves to be a consistent and resilient performer across multiple training paradigms. By pinpointing the flawed heuristics responsible for these failures, our work provides a concrete methodology for diagnosing and understanding generalization failures, underscoring that reliable AI requires deep validation of the interplay between architecture, data, and training strategy.

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

↑