English

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

Machine Learning 2026-05-19 v3 Artificial Intelligence Computational Complexity Data Structures and Algorithms

Abstract

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 ss-tt 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 nn vertices is disconnected into small components, then finding a path via augmentation is inefficient and requires Ω(n)\Omega(\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.

Keywords

Cite

@article{arxiv.2510.16609,
  title  = {Prior Knowledge Makes It Possible: From Sublinear Graph Algorithms to LLM Test-Time Methods},
  author = {Avrim Blum and Daniel Hsu and Cyrus Rashtchian and Donya Saless},
  journal= {arXiv preprint arXiv:2510.16609},
  year   = {2026}
}
R2 v1 2026-07-01T06:45:14.148Z