arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.18872cs.LGcs.AIcs.CL
收藏

编码器大语言模型骨干的目标可视化

Targeted Visualization of the Backbone of Encoder LLMs

Bielefeld University(比勒费尔德大学)

Isaac Roberts, Alexander Schulz, Luca Hermes, Barbara Hammer

AI总结:

本文研究将DeepView二维决策函数可视化方法应用于基于BERT的NLP分类器,以弥补NLP领域全局可解释性方法的不足,并验证其在对抗扰动、预训练、微调和多任务模型设置下的可用性。

摘要:

基于注意力的大语言模型(LLMs)是自然语言处理(NLP)中的最先进技术。两种最常见的架构是编码器(如BERT)和解码器(如GPT模型)。尽管编码器模型取得了成功,也是本工作的重点,但它们也带来若干风险,包括偏差问题或易受对抗攻击的脆弱性,这表明有必要借助可解释人工智能来检测此类问题。虽然已有各种关注单一输入预测的局部可解释性方法,但在其他领域中出现的、基于降维进行分类检查的全局方法——这些方法比仅在嵌入空间中使用t-SNE更进一步——在NLP中尚未广泛普及。为缩小这一差距,我们研究了DeepView在NLP领域的应用,DeepView是一种将部分决策函数与数据集一起在二维空间中进行可视化的方法。在先前工作中,DeepView已被用于检查深度图像分类模型,而我们展示了如何将其应用于基于BERT的NLP分类器,并研究了其在该领域的可用性,包括带有对抗扰动输入样本的设置,以及预训练、微调和多任务模型。

英文摘要:

Attention based Large Language Models (LLMs) are the state-of-the-art in natural language processing (NLP). The two most common architectures are encoders such as BERT, and decoders like the GPT models. Despite the success of encoder models, on which we focus in this work, they also bear several risks, including issues with bias or their susceptibility for adversarial attacks, signifying the necessity for explainable AI to detect such issues. While there does exist various local explainability methods focusing on the prediction of single inputs, global methods based on dimensionality reduction for classification inspection, which have emerged in other domains and that go further than just using t-SNE in the embedding space, are not widely spread in NLP. To reduce this gap, we investigate the application of DeepView, a method for visualizing a part of the decision function together with a data set in two dimensions, to the NLP domain. While in previous work, DeepView has been used to inspect deep image classification models, we demonstrate how to apply it to BERT-based NLP classifiers and investigate its usability in this domain, including settings with adversarially perturbed input samples and pre-trained, fine-tuned, and multi-task models.

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

↑