arXiv:2502.12992cs.CLcs.AI2025-02被引 4

将预训练语言模型改造为可解释性更强的B-cos模型,提升解释可信度。

B-cos LM: Efficiently Transforming Pre-trained Language Models for Improved Explainability

  • 通过B-cos转换与微调结合,直接改造预训练语言模型
  • 解释更忠实且易懂,任务性能与传统微调相当
  • 首次实现解码器模型的B-cos改造,适合可解释性研究者

黑箱模型的后验解释方法常因神经网络架构缺乏可解释性而难以保证忠实性和人类可读性。B-cos网络通过去除偏置项并促进输入-权重对齐,提升了模型可解释性,但此前仅应用于计算机视觉领域。本文提出B-cos LMs,将预训练语言模型直接转化为适用于自然语言处理任务的B-cos语言模型,通过B-cos转换与任务微调相结合,在效率上优于以往方法。自动与人工评估表明,B-cos LMs生成的解释更忠实、更易理解,同时保持与常规微调相当的任务性能。深入分析揭示了其学习过程与解释模式与传统微调模型的差异。最后,我们首次探索了将仅解码器结构模型转换为B-cos LMs用于生成任务。代码已开源。

原文摘要 · Abstract (English)

Post-hoc explanation methods for black-box models often struggle with faithfulness and human interpretability due to the lack of explainability in current neural architectures. Meanwhile, B-cos networks have been introduced to improve model explainability by proposing an architecture that removes bias terms and promotes input-weight alignment. Although B-cos networks have shown success in building explainable systems, their application has so far been limited to computer vision models and their associated training pipelines. In this work, we introduce B-cos LMs, i.e., B-cos Language Models (LMs) empowered for natural language processing (NLP) tasks. Our approach directly transforms pre-trained language models into B-cos LMs by combining B-cos conversion and task fine-tuning, improving efficiency compared to previous methods. Automatic and human evaluation results demonstrate that B-cos LMs produce more faithful and human interpretable explanations than post-hoc methods, while maintaining task performance comparable to conventional fine-tuning. Our in-depth analysis explores how B-cos LMs differ from conventionally fine-tuned models in their learning processes and explanation patterns. Finally, we present a first exploration of transforming decoder-only models to B-cos LMs for generation tasks. Our code is available at https://github.com/Ewanwong/bcos_lm.

可解释性语言模型B-cos微调

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。