arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.16609cs.LGcs.AIcs.CCcs.DS
收藏

先验知识使其成为可能:从次线性图算法到LLM测试时方法

Prior Knowledge Makes It Possible: From Sublinear Graph Algorithms to LLM Test-Time Methods

Toyota Technological Institute at Chicago(芝加哥丰田技术研究所);Columbia University(哥伦比亚大学);Google Research(谷歌研究)

Avrim Blum, Daniel Hsu, Cyrus Rashtchian, Donya Saless

AI总结:

本文研究了测试时增强方法中先验知识与外部信息交互的理论基础,通过将多步推理建模为知识图中的s-t连通性问题,揭示了在部分先验知识下,测试时增强步骤数量与图结构之间的关系,发现当知识图中存在小组件时,增强步骤数呈平方根增长,而当知识密度超过阈值形成大组件时,增强步骤数趋于常数。

摘要:

测试时增强,如检索增强生成(RAG)或工具使用,关键依赖于模型参数知识与外部检索信息之间的相互作用。然而,这种关系的理论基础仍不明确。具体来说,不清楚在少量增强步骤下需要多少预训练知识来回答查询,这在实践中是理想的属性。为了解决这个问题,我们将多步推理建模为知识图中的s-t连通性问题。我们将模型的预训练参数知识表示为部分、可能嘈杂的子图。我们将增强视为查询一个 oracle 以获得真实的边,从而扩展模型的知识。然后,我们表征了在部分先验知识下,模型生成准确答案所需的必要和充分的增强步骤数。一个关键结果表明:如果包含n个顶点的知识图被分割成小组件,则通过增强找到路径是低效的,需要Ω(√n)次查询。另一方面,一旦正确知识的密度超过阈值,形成大组件,我们可以通过预期常数次查询找到路径。

英文摘要:

Test-time augmentation, such as Retrieval-Augmented Generation (RAG) or tool use, critically depends on an interplay between a model's parametric knowledge and externally retrieved information. However, the theoretical underpinnings of this relationship remain poorly understood. Specifically, it is not clear how much pre-training knowledge is required to answer queries with a small number of augmentation steps, which is a desirable property in practice. To address this question, we formulate multi-step reasoning as an $s$-$t$ connectivity problem on a knowledge graph. We represent a model's pre-training parametric knowledge as a partial, potentially noisy subgraph. We view augmentation as querying an oracle for true edges that augment the model's knowledge. Then, we characterize the necessary and sufficient number of augmentation steps for the model to generate an accurate answer given partial prior knowledge. One key result shows a phase transition: if the prior knowledge graph over $n$ vertices is disconnected into small components, then finding a path via augmentation is inefficient and requires $Ω(\sqrt{n})$ queries. On the other hand, once the density of correct knowledge surpasses a threshold, forming a giant component, we can find paths with an expected constant number of queries.

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

↑