arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.11880cs.LGcs.AIcs.CLcs.CV
收藏

量化大型语言模型中的上下文推理效应与记忆效应

Quantifying In-Context Reasoning Effects and Memorization Effects in LLMs

Shanghai Jiao Tong University(上海交通大学);Eastern Institute of Technology(东方理工学院);Sun Yat-Sen University(中山大学)

Siyu Lou, Yuntian Chen, Xiaodan Liang, Liang Lin, Quanshi Zhang

AI总结:

本文提出一套公理系统,将 LLM 生成中的置信度分数分解为记忆效应与上下文推理效应,并通过分类与稀疏性、普遍匹配性实现可解释的推理模式分析。

摘要:

在本研究中,我们提出一个公理系统,用于定义并量化大型语言模型(LLM)在语言生成过程中所使用的确切记忆效应和上下文推理效应。这些效应被表述为 LLM 编码的 token/词之间的非线性交互。具体而言,该公理系统使我们能够将记忆效应分为基础记忆效应和混沌记忆效应,并进一步将上下文推理效应分为增强推理模式、消除推理模式和反转推理模式。此外,分解后的效应满足稀疏性和普遍匹配性,这从数学上保证了 LLM 的置信度分数可以被忠实地分解为记忆效应和上下文推理效应。实验表明,对记忆效应和上下文推理效应的清晰解耦,使得直接检查 LLM 所编码的详细推理模式成为可能。

英文摘要:

In this study, we propose an axiomatic system to define and quantify the precise memorization and in-context reasoning effects used by the large language model (LLM) for language generation. These effects are formulated as non-linear interactions between tokens/words encoded by the LLM. Specifically, the axiomatic system enables us to categorize the memorization effects into foundational memorization effects and chaotic memorization effects, and further classify in-context reasoning effects into enhanced inference patterns, eliminated inference patterns, and reversed inference patterns. Besides, the decomposed effects satisfy the sparsity property and the universal matching property, which mathematically guarantee that the LLM's confidence score can be faithfully decomposed into the memorization effects and in-context reasoning effects. Experiments show that the clear disentanglement of memorization effects and in-context reasoning effects enables a straightforward examination of detailed inference patterns encoded by LLMs.

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

↑