arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2511.23375cs.CLcs.CV
收藏

通过基于注意力的可解释性优化多模态语言模型

Optimizing Multimodal Language Models through Attention-based Interpretability

European University at Saint Petersburg(圣彼得堡欧洲大学)

Alexander Sergeev, Evgeny Kotelnikov

AI总结:

通过基于注意力的可解释性方法优化多模态语言模型,识别关键对象相关的注意力头以提高效率和性能。

摘要:

现代大型语言模型变得多模态,分析各种数据格式,如文本和图像。尽管微调对于将这些多模态语言模型(MLMs)适应到下游任务是有效的,但完全微调计算成本很高。参数高效微调(PEFT)方法通过只训练一小部分模型权重来解决这个问题。然而,MLMs难以解释,使得难以确定哪些组件最有效于训练,以在效率和性能之间取得平衡。我们提出了一种基于注意力的可解释性方法,通过分析注意力分数相对于图像标记。核心思想是识别关注图像关键对象的注意力头。我们利用这一信息来选择最优的模型组件用于多模态模型的PEFT。我们的贡献包括一种识别与图像关键对象相关的注意力头的方法,将其应用于图像描述生成的PEFT,以及创建了一个包含图像、关键对象掩码及其文本描述的新数据集。我们在具有2-3十亿参数的MLMs上进行了实验以验证该方法的有效性。通过计算Head Impact(HI)分数,我们量化了一个注意力头对关键对象的关注程度,表明其在图像理解中的重要性。我们的微调实验表明,适应具有最高HI分数的层会导致与预训练、随机选择或最低HI分数层相比,指标有最大的变化。这表明,对这些关键层中的小部分参数(大约0.01%)进行微调可以显著影响图像理解能力。

英文摘要:

Modern large language models become multimodal, analyzing various data formats like text and images. While fine-tuning is effective for adapting these multimodal language models (MLMs) to downstream tasks, full fine-tuning is computationally expensive. Parameter-Efficient Fine-Tuning (PEFT) methods address this by training only a small portion of model weights. However, MLMs are difficult to interpret, making it challenging to identify which components are most effective for training to balance efficiency and performance. We propose an attention-based interpretability method for MLMs by analyzing attention scores relative to image tokens. The core idea is to identify attention heads that focus on image key objects. We utilize this information to select optimal model components for PEFT in multimodal models. Our contributions include a method for identifying attention heads associated with image key objects, its application to PEFT for image captioning, and the creation of a new dataset containing images, key object masks, and their textual descriptions. We conducted experiments on MLMs with 2-3 billion parameters to validate the method's effectiveness. By calculating Head Impact (HI) scores we quantify an attention head's focus on key objects, indicating its significance in image understanding. Our fine-tuning experiments demonstrate that adapting layers with the highest HI scores leads to the most significant shifts in metrics compared to pre-trained, randomly selected, or lowest-HI-score layers. This indicates that fine-tuning a small percentage (around 0.01%) of parameters in these crucial layers can substantially influence image understanding capabilities.

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

↑