arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2611.18248cs.AIcond-mat.dis-nn
收藏

基于LLM生成的词汇网络上的舞动标记

Dancing Tokens on the Vocabulary Network from LLM Generation

Dongguan Institute of Materials Science and Technology(东莞材料科学与技术研究院);Songshan Lake Materials Laboratory(松山湖材料实验室)

Yuan-Chao Hu

AI总结:

本文构建六个开源LLM的输入嵌入相似度网络,发现LLM生成过程并非在该网络上的游走,提出的观测指标可监控模型退化,为LLM微观生成理解提供新视角。

摘要:

大型语言模型(LLM)每次生成一个标记,但其特定生成与预训练中学习到的几何结构的关联仍不明确,LLM的基础可解释性难以捉摸。本文基于六个开源LLM的输入嵌入构建相似度网络,并将生成过程映射到该网络上。该标记嵌入网络为无标度且具有重尾分布,与匹配协方差的随机嵌入类似,但碎片化程度高得多;蒸馏几乎不改变该拓扑结构,因为输入嵌入大多被继承,因此知识空间由预训练确定。连续生成的标记极少是图邻居,且在大多数模型中,其出现频率不高于随机打乱顺序,故生成过程并非在预定义网络上的游走,尽管其访问的标记集中在该网络内。通过逐层的logit lens(对数透镜),多数模型中标记在深度方向上较晚稳定,重复模型则局限于小型特定领域子图。这些可观测指标可作为退化的推理时间监控指标,因此本文从图学习的节点或链接预测角度,为理解LLM的微观生成过程提供了新视角。

英文摘要:

Large language models (LLMs) generate text one token at a time, yet how a particular generation relates to the geometry learned in pre-training remains unclear. The fundamental explainability of LLMs is elusive. Here, we build a similarity network from the input embeddings of six open LLMs and map generation onto it. The token-embedding network is scale-free while heavy-tailed, as are random embeddings with matched covariance, but far more fragmented. Distillation barely changes this topology because input embeddings are largely inherited. The knowledge space is thus deterministic from pre-training. Consecutive generated tokens are rarely graph neighbours and, in most models, no more often than in shuffled order, so generation is not a walk on the predefined network, although the tokens it visits are concentrated within it. Through the logit lens in a layer- wise manner, tokens settle late in depth in most models, and repetitive models remain confined to small domain-specific sub-graphs. These observables could serve as inference-time monitors of degeneration. We thus provide a fresh perspective on understanding LLM generation in the microscopic way from node or link prediction by graph learning.

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

↑