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

超越黑盒:关于LLM推理与推断的统计模型

Beyond the Black Box: A Statistical Model for LLM Reasoning and Inference

Columbia University(哥伦比亚大学)

Siddhartha Dalal, Vishal Misra

AI总结:

本文提出一种基于贝叶斯学习的统计模型,通过多项式转移概率矩阵理论框架解释LLM的下一个token预测行为,并利用Llama模型实证验证,为理解LLM的能力与局限提供了统计基础。

摘要:

本文引入了一种新颖的贝叶斯学习模型来解释大型语言模型(LLM)的行为,重点关注其下一个 token 预测的核心优化指标。我们基于一个由带先验的多项式转移概率矩阵表示的理想生成文本模型开发了理论框架,并研究了LLM如何近似该矩阵。主要贡献包括:(i) 将嵌入与多项式分布关联的连续性定理,(ii) 证明LLM文本生成符合贝叶斯学习原理,(iii) 解释大型模型中上下文学习的涌现,(iv) 使用带有插桩的Llama模型的下一个 token 概率可视化进行实证验证。我们的发现为LLM运作提供了新见解,为理解其能力和局限性提供了统计基础。该框架对LLM的设计、训练和应用具有启示意义,可能指导该领域的未来发展。

英文摘要:

This paper introduces a novel Bayesian learning model to explain the behavior of Large Language Models (LLMs), focusing on their core optimization metric of next token prediction. We develop a theoretical framework based on an ideal generative text model represented by a multinomial transition probability matrix with a prior, and examine how LLMs approximate this matrix. Key contributions include: (i) a continuity theorem relating embeddings to multinomial distributions, (ii) a demonstration that LLM text generation aligns with Bayesian learning principles, (iii) an explanation for the emergence of in-context learning in larger models, (iv) empirical validation using visualizations of next token probabilities from an instrumented Llama model Our findings provide new insights into LLM functioning, offering a statistical foundation for understanding their capabilities and limitations. This framework has implications for LLM design, training, and application, potentially guiding future developments in the field.

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

↑