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

从人类行为视角探究大语言模型

Probing Large Language Models from A Human Behavioral Perspective

Universität Hamburg(汉堡大学);Beijing Institute of Technology(北京理工大学);Chinese Academy of Sciences(中国科学院)

Xintong Wang, Xiaoyu Li, Xingshan Li, Chris Biemann

AI总结:

该研究从人类行为视角出发,通过关联大语言模型(LLM)输出与眼动测量值探究其内部机制,发现LLM预测模式与人类相似、与浅层语言模型不同,且从中层起FFN和MHSA的语义相关性随层数加深而提升。

摘要:

大语言模型(LLM)已成为现代自然语言处理(NLP)中占主导地位的基础模型。然而,人们对其预测过程及前馈网络(FFN)、多头自注意力(MHSA)等内部机制的理解仍存在大量空白。本研究从人类行为视角探究LLM,将LLM的输出值与被广泛认可为人类阅读模式有效指标的眼动测量值进行关联分析。研究结果显示,LLM呈现出与人类相似但与浅层语言模型(SLM)不同的预测模式。此外,随着LLM从中层开始层数加深,FFN与MHSA中的相关系数也随之升高,表明FFN内的logits越来越多地封装了适用于从词表中预测token的单词语义。

英文摘要:

Large Language Models (LLMs) have emerged as dominant foundational models in modern NLP. However, the understanding of their prediction processes and internal mechanisms, such as feed-forward networks (FFN) and multi-head self-attention (MHSA), remains largely unexplored. In this work, we probe LLMs from a human behavioral perspective, correlating values from LLMs with eye-tracking measures, which are widely recognized as meaningful indicators of human reading patterns. Our findings reveal that LLMs exhibit a similar prediction pattern with humans but distinct from that of Shallow Language Models (SLMs). Moreover, with the escalation of LLM layers from the middle layers, the correlation coefficients also increase in FFN and MHSA, indicating that the logits within FFN increasingly encapsulate word semantics suitable for predicting tokens from the vocabulary.

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

↑