LGYesterday

KAP: Bridging the Knowledge Selection-Runtime Consumption Gap in LLM Systems

arXiv:2607.24260
Originality Highly original
AI Analysis

This work addresses the efficiency bottleneck in long-context LLM serving for practitioners deploying knowledge-augmented systems, offering a paradigm shift that decouples KV consumption from prompt length.

The paper identifies the Knowledge Selection-Runtime Consumption (KSRC) gap in LLM systems, where structured knowledge priors are lost during prompt serialization, leading to inefficient KV cache usage. It proposes Knowledge Access Planning (KAP) and its instantiation GraphSpec, which reduces proposal-time KV access to 5.5% of source KV state at 128K context length while maintaining answer quality comparable to full-context decoding.

Modern LLM systems increasingly rely on knowledge-selection processes that produce high-value structured priors, such as ranked evidence, graph topology, multimodal alignment, and confidence signals. Yet LLM serving remains fundamentally oblivious to this rich structure: once such signals are serialized into a prompt, the backend observes only a flat token sequence, forcing dense and uniform consumption of the full key-value (KV) state during decoding. We term this architectural mismatch the Knowledge Selection-Runtime Consumption (KSRC) gap: richer contexts enlarge the full-prompt KV footprint and decode-time memory traffic, increasing latency and degrading throughput even when reasoning depends on only a small fraction of the context. To bridge the gap, we propose Knowledge Access Planning (KAP), a paradigm-shifting execution abstraction that elevates structured knowledge priors from passive prompt-construction hints into first-class physical execution artifacts. KAP establishes a universal intermediate representation (IR)-the runtime access plan-which compiles structured knowledge signals to govern physical KV access without altering logical prompt semantics, model weights, or training procedures. Through this IR, KAP shifts LLM serving from token-aware context consumption to plan-driven, knowledge-aware runtime consumption. We instantiate KAP with GraphSpec, a compiler-executor realization connecting structured knowledge selection to an LLM serving backend. We derive a phase-boundary model for the positive-speedup regime of plan-guided execution. Across 4K-128K long-context QA workloads, GraphSpec maintains answer quality comparable to full-context decoding while decoupling physical KV consumption from prompt length, reducing proposal-time KV access to 5.5% of source KV state at 128K, and fundamentally shifting the scaling trajectory of long-context generation.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes