arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2208.08176cs.AI
收藏

语言模型顺应的视觉比较

Visual Comparison of Language Model Adaptation

University of Konstanz(康斯坦茨大学);Bar-Ilan University(巴伊兰大学);ETH(苏黎世联邦理工学院)

Rita Sevastjanova, Eren Cakmak, Shauli Ravfogel, Ryan Cotterell, Mennatallah El-Assady

摘要:

神经语言模型被广泛使用;然而,它们的模型参数通常需要适应应用程序的特定域和任务,这是耗时和资源消耗的。因此,最近引入了适配器作为模型适配的轻量级替代方案。它们由一小组特定于任务的参数组成,具有减少的训练时间和简单的参数组成。适配器训练和组合的简单性带来了新的挑战,例如维护适配器属性的概述并有效地比较它们生成的嵌入空间。为了帮助开发人员克服这些挑战,我们提供了双重贡献。首先,在与NLP研究人员的密切合作下,我们对支持适配器评估的方法进行了需求分析,并检测到,除其他外,对内在(即,基于嵌入相似性)和外部(即,基于预测的解释方法。其次,在收集需求的激励下,我们设计了一个灵活的可视化分析工作区,可以比较适配器属性。在本文中,我们讨论了几个设计迭代和交互式,比较视觉解释方法的替代方案。我们的比较可视化显示了不同人类可解释概念(例如,人的名字,人的品质)。我们通过案例研究来评估我们的工作空间,并表明,例如,根据上下文0(去语境化)嵌入在语言去偏见任务上训练的适配器引入了一种新的偏见类型,其中单词(甚至是性别无关的单词,如国家)变得比男性代词更类似于女性。我们证明,这些是文物的上下文0嵌入。

英文摘要:

Neural language models are widely used; however, their model parameters often need to be adapted to the specific domains and tasks of an application, which is time- and resource-consuming. Thus, adapters have recently been introduced as a lightweight alternative for model adaptation. They consist of a small set of task-specific parameters with a reduced training time and simple parameter composition. The simplicity of adapter training and composition comes along with new challenges, such as maintaining an overview of adapter properties and effectively comparing their produced embedding spaces. To help developers overcome these challenges, we provide a twofold contribution. First, in close collaboration with NLP researchers, we conducted a requirement analysis for an approach supporting adapter evaluation and detected, among others, the need for both intrinsic (i.e., embedding similarity-based) and extrinsic (i.e., prediction-based) explanation methods. Second, motivated by the gathered requirements, we designed a flexible visual analytics workspace that enables the comparison of adapter properties. In this paper, we discuss several design iterations and alternatives for interactive, comparative visual explanation methods. Our comparative visualizations show the differences in the adapted embedding vectors and prediction outcomes for diverse human-interpretable concepts (e.g., person names, human qualities). We evaluate our workspace through case studies and show that, for instance, an adapter trained on the language debiasing task according to context-0 (decontextualized) embeddings introduces a new type of bias where words (even gender-independent words such as countries) become more similar to female than male pronouns. We demonstrate that these are artifacts of context-0 embeddings.

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

↑