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

Transformers中的注意-似然关系

Attention-likelihood relationship in transformers

Sapienza University of Rome(罗马第一大学)

Valeria Ruscio, Valentino Maiorca, Fabrizio Silvestri

摘要:

我们分析了大语言模型(LLM)如何表示上下文外的单词,研究它们对给定上下文的依赖,以捕捉它们的语义。我们的似然引导的文本扰动揭示了在基于transformer的语言模型中标记似然和注意值之间的相关性。大量的实验表明,意想不到的令牌导致模型较少关注来自自身的信息来计算它们的表示,特别是在更高层。这些发现对评估LLM在现实世界中的鲁棒性具有重要意义。完全可复制的代码库在https://github.com/Flegyas/AttentionLikelihood。

英文摘要:

We analyze how large language models (LLMs) represent out-of-context words, investigating their reliance on the given context to capture their semantics. Our likelihood-guided text perturbations reveal a correlation between token likelihood and attention values in transformer-based language models. Extensive experiments reveal that unexpected tokens cause the model to attend less to the information coming from themselves to compute their representations, particularly at higher layers. These findings have valuable implications for assessing the robustness of LLMs in real-world scenarios. Fully reproducible codebase at https://github.com/Flegyas/AttentionLikelihood.

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

↑