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

minicons:实现Transformer语言模型的灵活行为和表示分析

minicons: Enabling Flexible Behavioral and Representational Analyses of Transformer Language Models

Purdue University(普渡大学)

Kanishka Misra

摘要:

我们提出了minicons,一个开源的库,提供了一个标准的API的研究人员有兴趣进行行为和代表性的分析基于transformer的语言模型(LM)。具体来说,minicons使研究人员能够在两个层面上应用分析方法:(1)在预测层面上-通过提供有效提取单词/句子级别概率的功能;以及(2)在表征层面上-通过促进从一个或多个层中有效提取单词/短语级别向量。在本文中,我们描述了库,并将其应用到两个激励案例研究:一个侧重于学习动态的BERT架构相对语法判断,和其他基准23个不同的LM上zero-shot溯因推理。minicons可在https://github.com/kanishkamisra/minicons上获得

英文摘要:

We present minicons, an open source library that provides a standard API for researchers interested in conducting behavioral and representational analyses of transformer-based language models (LMs). Specifically, minicons enables researchers to apply analysis methods at two levels: (1) at the prediction level -- by providing functions to efficiently extract word/sentence level probabilities; and (2) at the representational level -- by also facilitating efficient extraction of word/phrase level vectors from one or more layers. In this paper, we describe the library and apply it to two motivating case studies: One focusing on the learning dynamics of the BERT architecture on relative grammatical judgments, and the other on benchmarking 23 different LMs on zero-shot abductive reasoning. minicons is available at https://github.com/kanishkamisra/minicons

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

↑