MemAgent:基于多轮对话强化学习的记忆智能体重构长上下文大语言模型
MemAgent: Reshaping Long-Context LLM with Multi-Conv RL-based Memory Agent
AI总结:
该研究提出MemAgent智能体工作流,结合扩展的DAPO算法优化长文本任务,实现从8K到3.5M上下文的高效外推,在RULER测试中表现优异。
摘要:
尽管长度外推、高效注意力机制及记忆模块已带来性能提升,但在长文本处理中,以线性复杂度处理无限长文档且外推时性能不下降仍是终极挑战。我们针对长文本任务进行端到端优化,提出新型智能体工作流MemAgent,它分段读取文本并通过覆盖策略更新记忆;扩展DAPO算法以通过独立上下文多轮对话生成实现训练。MemAgent展现出色长上下文能力,从32K文本训练的8K上下文外推至3.5M的问答任务,性能损失小于5%,在512K RULER测试中达到95%以上。
英文摘要:
Despite improvements by length extrapolation, efficient attention and memory modules, handling infinitely long documents with linear complexity without performance degradation during extrapolation remains the ultimate challenge in long-text processing. We directly optimize for long-text tasks in an end-to-end fashion and introduce a novel agent workflow, MemAgent, which reads text in segments and updates the memory using an overwrite strategy. We extend the DAPO algorithm to facilitate training via independent-context multi-conversation generation. MemAgent has demonstrated superb long-context capabilities, being able to extrapolate from an 8K context trained on 32K text to a 3.5M QA task with performance loss < 5% and achieves 95%+ in 512K RULER test.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。