通过表示差异性理解语言模型的内部工作原理
Understanding the Inner Workings of Language Models Through Representation Dissimilarity
AI总结:
本研究提出利用表示差异性测度来洞察语言模型的内部机制,发现不同激活函数下的表示不对称性,并揭示了测试集性能无法体现的泛化特性及模型宽深变化的影响。
摘要:
随着语言模型被应用于越来越多的实际应用,理解其内部工作原理已成为模型可信度、可解释性和透明度方面的重要问题。在本研究中,我们展示了表示差异性测度(即衡量两个模型内部表示差异程度的函数)可以成为洞察语言模型机制的有价值工具。我们的发现包括:(i) 使用 SoLU 和 GeLU 激活函数的模型内部表示存在明显的不对称性;(ii) 证据表明差异性测度能够识别和定位通过分布内测试集性能无法观察到的模型泛化特性;(iii) 对语言模型特征如何随宽度和深度增加而变化的新评估。我们的结果表明,差异性测度是一套有望揭示语言模型内部工作原理的有前景的工具。
英文摘要:
As language models are applied to an increasing number of real-world applications, understanding their inner workings has become an important issue in model trust, interpretability, and transparency. In this work we show that representation dissimilarity measures, which are functions that measure the extent to which two model's internal representations differ, can be a valuable tool for gaining insight into the mechanics of language models. Among our insights are: (i) an apparent asymmetry in the internal representations of model using SoLU and GeLU activation functions, (ii) evidence that dissimilarity measures can identify and locate generalization properties of models that are invisible via in-distribution test set performance, and (iii) new evaluations of how language model features vary as width and depth are increased. Our results suggest that dissimilarity measures are a promising set of tools for shedding light on the inner workings of language models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。