arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.07068cs.CLcs.AI
收藏

WiCER:维基内存编译、评估、细化迭代知识编译用于LLM维基系统

WiCER: Wiki-memory Compile, Evaluate, Refine Iterative Knowledge Compilation for LLM Wiki Systems

Zinnia Tech Solutions(Zinnia科技解决方案)

Juan M. Huerta

AI总结:

本文提出WiCER算法,通过迭代编译、评估和细化维基内存,解决LLM维基系统中知识编译的差距问题,显著提升知识检索质量并减少灾难性失败。

摘要:

LLM维基模式通过将领域知识编译为持久化 artifact 并通过KV缓存推理提供给LLM,承诺在亚秒延迟下实现上下文访问,且无检索失败。实现这一目标需要解决编译差距:LLM编译将原始文档编译为维基,而不致灾难性地丢弃关键事实。我们跨17个RepLiQA领域(6,800个问题)分析这一差距:我们发现全上下文KV缓存推理在 curated knowledge 上优于RAG(4.38 vs. 4.08,7.3次更快TTFT),但随规模扩大因注意力稀释而劣于RAG,而盲目编译完全失效(2.14到2.32 vs. 3.46,53到60%灾难性失败率)。为解决编译差距,我们提出WiCER(维基内存编译、评估、细化),一种受反例引导抽象细化(CEGAR)启发的迭代算法。WiCER通过评估编译的维基 against 诊断探针,识别丢失的事实,并在后续编译中强制保留。一次到两次迭代恢复80%的丢失质量(15个主题上raw full-context的平均3.24 vs. 3.47),将灾难性失败率降低55%。跨所有17个主题的消融研究证实,针对性诊断(+0.95)而非通用固定(+0.16)推动了增益。所有代码和基准测试已发布以供可重复研究。

英文摘要:

The LLM Wiki pattern, to compile and provide domain knowledge into a persistent artifact and serve it to LLMs via KV cache inference, promises context access at sub-second latency with zero retrieval failure. Realizing this requires solving the compilation gap: LLM compilation distilling raw documents into a wiki without catastrophically discarding critical facts. We characterize this gap across 17 RepLiQA domains (6,800 questions): we observe that full context KV cache inference outperforms RAG on curated knowledge (4.38 vs. 4.08 out of 5, 7.3 faster TTFT) but degrades below RAG at scale due to attention dilution, and blind compilation fails entirely (2.14 to 2.32 vs. 3.46, 53 to 60% catastrophic failure rate). To address the compilation gap, we propose WiCER (Wiki-memory Compile, Evaluate, Refine), an iterative algorithm inspired by counterexample-guided abstraction refinement (CEGAR) that closes this gap. WiCER evaluates compiled wikis against diagnostic probes, identifies dropped facts, and forces their preservation in subsequent compilations. One to two iterations recover 80% of lost quality (mean 3.24 vs. 3.47 for raw full-context across the 15 topics with baselines), reducing catastrophic failures by 55% relative. An ablation across all 17 topics confirms that targeted diagnosis (+0.95), not generic pinning (+0.16), drives the gains. All code and benchmarks are released for reproducible research.

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

↑