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

Akashic:一种基于内存注意力机制的低开销大语言模型推理服务

Akashic: A Low-Overhead LLM Inference Service with MemAttention

Xiaohongshu Inc.(小红书公司);ShangHai JiaoTong University(上海交通大学);Peking University(北京大学)

Yang Liu, Zhaokai Luo, Huayi Jin, Ruozhou He, Chenchen Hong, Zhiyong Wang, Yifei Liu, Yunfei Gu, Chentao Wu, Junhao Hu

AI总结:

针对大语言模型推理中重放完整历史记录不切实际的问题,提出基于内存注意力机制的低开销内存系统Akashic,通过组织上下文成有界块、建模块间语义关系及应用软硬件协同设计内存放置,提升了任务准确率、吞吐量和可持续请求率。

摘要:

近期基于大语言模型的智能体系统在多轮交互、工具调用和跨会话工作流程中不断积累上下文。为每个请求重放完整历史记录很快变得不切实际:长上下文会增加预填充成本,可能超出上下文限制,且常将任务相关证据埋没在无关内容中,降低服务效率和输出质量。我们提出Akashic,一种围绕内存注意力机制构建的低开销内存系统,它将上下文组织成有界块并对块间语义关系建模,保留跨块证据而无需反复重写完整历史记录。Akashic还应用软硬件协同设计的内存放置来将可能共同检索的块放在一起,减少检索碎片化和I/O开销。在四个代表性工作负载和三种模型规模上,Akashic相较于强大的先前内存基线,将任务准确率提高了多达10.2个百分点,吞吐量提高了多达1.21倍,可持续请求率提高了多达1.88倍。

英文摘要:

Recent LLM-based agent systems continuously accumulate context across multi-turn interactions, tool invocations, and cross-session workflows. Replaying the full history for every request quickly becomes impractical: long contexts increase prefill cost, may exceed context limits, and often bury task-relevant evidence in irrelevant content, degrading both serving efficiency and output quality. We propose Akashic, a low-overhead memory system built around MemAttention, which organizes context into bounded chunks and models semantic relationships across chunks, preserving cross-chunk evidence without repeatedly rewriting the full history. Akashic further applies hardware-software co-designed memory placement to co-locate likely co-retrieved chunks, reducing retrieval fragmentation and I/O overhead. Across four representative workloads and three model sizes, Akashic improves task accuracy by up to 10.2 points, throughput by up to 1.21x, and sustainable request rate by up to 1.88x over strong prior memory baselines.

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

↑