流式知识编译:面向时变LLM维基的主动物质性评分固定
Streaming Knowledge Compilation: Proactive Materiality-Scored Pinning for Time-Evolving LLM Wikis
AI总结:
提出流式知识编译框架,通过物质性信号φ_t主动固定重要文档,在金融和维基百科领域验证O(√T log K)遗憾界,并揭示LLM评判偏差。
摘要:
LLM维基系统将知识编译为预填充的KV缓存以实现高效推理,但假设语料库是静态的——当底层信息格局演变时,这一假设失效。我们形式化流式知识编译:给定文档流、固定令牌预算以及在摄取时未知的未来查询,维护一个编译后的维基,使其相对于具有完美预见力的离线oracle的累积遗憾最小化。关键洞察是物质性信号φ_t(k,n)∈[0,1],它对时间t实体k的文档重要性进行评分,作为查询相关性的代理,在查询到达前主动固定;我们证明O(√T log K)遗憾界,其中ε=E[|φ_t-φ̂_t|]是唯一的领域特定量。我们在两个领域实例化:金融领域,其中φ_t是由冻结的Llama 3.1 8B分类头预测的异常股票波动率(在76K篇文章上AUROC=0.728,严格时间分割;预测为物质性的文章实现1.49倍更高的实际远期波动率);以及维基百科领域,其中φ_t是异常编辑比率(AER),一种横截面标准化的编辑速度——表明同一算法可泛化到金融领域之外。在173个匹配对(金融)和119个(维基百科)上的端到端QA评估揭示了训练后知识上普遍的LLM-as-judge混淆,确立了遗憾分析——而非绝对QA分数——是编译知识系统的可靠评估指标。金融累积遗憾收敛至-20.0(-0.12/步);维基百科收敛至+16.0(+0.13/步),正号确认维基百科编辑内容确实是训练后的——更丰富的上下文持续提高分数(无维基3.80 vs. Oracle 4.74)——并消除了这一混淆。O(√T log K)保证适用于任何知识差距可从流信号预测的领域。
英文摘要:
LLM wiki systems compile knowledge into pre-filled KV caches for efficient inference, but assume a static corpus -- an assumption that fails whenever the underlying information landscape evolves. We formalize Streaming Knowledge Compilation: given a document stream, a fixed token budget, and future queries unknown at ingestion time, maintain a compiled wiki that minimizes cumulative regret against an offline oracle with perfect foresight. The enabling insight is a materiality signal $ϕ_t(k,n)\in[0,1]$ that scores document importance for entity $k$ at time $t$, acting as a query-relevance surrogate for proactive pinning before queries arrive; we prove an $O(\sqrt{T\log K})$ regret bound where $\varepsilon=\mathbb{E}[|ϕ_t-\hatϕ_t|]$ is the only domain-specific quantity. We instantiate in two domains: finance, where $ϕ_t$ is abnormal stock volatility predicted by frozen Llama 3.1 8B classification head (AUROC = 0.728 on 76K articles, strict temporal split; $1.49\times$ higher realized forward volatility for predicted-material articles); and Wikipedia, where $ϕ_t$ is the Abnormal Edit Ratio (AER), a cross-sectionally normalized edit velocity -- showing the same algorithm generalizes beyond the finance domain. End-to-end QA evaluation on 173 matched pairs (finance) and 119 (Wikipedia) reveals a pervasive LLM-as-judge confound on post-training knowledge, establishing that regret analysis -- not absolute QA scores -- is the reliable evaluation metric for compiled knowledge systems. Finance cumulative regret converges to -20.0 (-0.12/step); Wikipedia to +16.0 (+0.13/step), with the positive sign confirming that Wikipedia edit content is genuinely post-training -- richer context consistently improves scores (No Wiki 3.80 vs. Oracle 4.74) -- and eliminates this confound. The $O(\sqrt{T\log K})$ guarantee applies to any domain where knowledge gaps can be predicted from streaming signals.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。