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

Panini:通过结构化记忆在令牌空间中实现持续学习

Panini: Continual Learning in Token Space via Structured Memory

ucla(加州大学洛杉矶分校)

Shreyas Rajesh, Pavan Holur, Mehmet Yigit Turali, Chenda Duan, Vwani Roychowdhury

AI总结:

Panini通过结构化记忆在令牌空间中实现持续学习,提升推理效率和准确性。

摘要:

语言模型越来越多地被用于推理它们未被训练的内容,例如新文档、演变的知识和用户特定的数据。一种常见方法是检索增强生成(RAG),它将原文档外部存储(作为片段),并在推理时只检索相关的子集供LLM推理。然而,这导致测试时计算使用效率低下(LLM反复对同一文档进行推理);此外,片段检索可能会注入不相关的内容,增加不支持的生成。我们提出了一种类人非参数持续学习框架,其中基础模型保持不变,学习通过将每个新经验整合到外部语义记忆状态中进行,该状态不断积累和巩固自身。我们提出了Panini,它通过将文档表示为生成语义工作区(GSW)来实现这一点——一个实体和事件感知的问答对网络,足以让LLM重建经历的情况并通过基于推理的推理链挖掘潜在知识。给定一个查询,Panini只遍历持续更新的GSW(而不是原文档或片段),并检索最可能的推理链。在六个问答基准测试中,Panini实现了最高的平均性能,比其他竞争基线高5%-7%,同时使用2-30倍更少的答案-上下文令牌,支持完全开源的流水线,并减少在经过整理的无答案查询中的不支持答案。结果表明,通过GSW框架在写入时高效准确地组织经验,能够在读取时带来效率和可靠性方面的提升。代码可在https://github.com/roychowdhuryresearch/gsw-memory获取。

英文摘要:

Language models are increasingly used to reason over content they were not trained on, such as new documents, evolving knowledge, and user-specific data. A common approach is retrieval-augmented generation (RAG), which stores verbatim documents externally (as chunks) and retrieves only a relevant subset at inference time for an LLM to reason over. However, this results in inefficient usage of test-time compute (LLM repeatedly reasons over the same documents); moreover, chunk retrieval can inject irrelevant context that increases unsupported generation. We propose a human-like non-parametric continual learning framework, where the base model remains fixed, and learning occurs by integrating each new experience into an external semantic memory state that accumulates and consolidates itself continually. We present Panini, which realizes this by representing documents as Generative Semantic Workspaces (GSW) -- an entity- and event-aware network of question-answer (QA) pairs, sufficient for an LLM to reconstruct the experienced situations and mine latent knowledge via reasoning-grounded inference chains on the network. Given a query, Panini only traverses the continually-updated GSW (not the verbatim documents or chunks), and retrieves the most likely inference chains. Across six QA benchmarks, Panini achieves the highest average performance, 5%-7% higher than other competitive baselines, while using 2-30x fewer answer-context tokens, supports fully open-source pipelines, and reduces unsupported answers on curated unanswerable queries. The results show that efficient and accurate structuring of experiences at write time -- as achieved by the GSW framework -- yields both efficiency and reliability gains at read time. Code is available at https://github.com/roychowdhuryresearch/gsw-memory.

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

↑