MEM1: Learning to Synergize Memory and Reasoning for Efficient Long-Horizon Agents

Zi-Jian Zhou, Ao Qu, Zhaoxuan Wu, Sunghwan Kim, Sunghwan Kim, Alok Prakash, Daniela Rus, Jin-Hua Zhao, B. Low, P. Liang

arXiv:2506.15841 · 2026-11-15 공개 · arXiv · PDF

reinforcement-learning llm long-horizon retrieval multi-turn memory-consolidation qa-task internal-state

Abstract

Modern language agents must operate over long-horizon, multi-turn interactions, where they retrieve external information, adapt to observations, and answer interdependent queries. Yet, most LLM systems rely on full-context prompting, appending all past turns regardless of their relevance. This leads to unbounded memory growth, increased computational costs, and degraded reasoning performance on out-of-distribution input lengths. We introduce MEM1, an end-to-end reinforcement learning framework that enables agents to operate with constant memory across long multi-turn tasks. At each turn, MEM1 updates a compact shared internal state that jointly supports memory consolidation and reasoning. This state integrates prior memory with new observations from the environment while strategically discarding irrelevant or redundant information. To support training in more realistic and compositional settings, we propose a simple yet effective and scalable approach to constructing multi-turn environments by composing existing datasets into arbitrarily complex task sequences. Experiments across three domains, including internal retrieval QA, open-domain web QA, and multi-turn web shopping, show that MEM1-7B improves performance by 3.5x while reducing memory usage by 3.7x compared to Qwen2.5-14B-Instruct on a 16-objective multi-hop QA task, and generalizes beyond the training horizon. Our results demonstrate the promise of reasoning-driven memory consolidation as a scalable alternative to existing solutions for training long-horizon interactive agents, where both efficiency and performance are optimized.

한국어 요약

한 줄 요약

MEM1은 강화학습을 통해 메모리 사용을 일정하게 유지하면서 장기적 다단계 작업을 처리하는 언어 에이전트를 학습하는 프레임워크로, Qwen2.5-14B-Instruct 대비 3.5배 성능 향상과 3.7배 메모리 절감을 달성했다.

핵심 기여도

핵심 아이디어

MEM1은 기존 언어 모델이 다단계 작업에서 사용하는 full-context prompting 방식의 문제를 해결하기 위해, 강화학습을 통해 메모리와 추론을 통합하는 새로운 메커니즘을 제안한다. 기존 시스템은 모든 과거 대화 턴을 무조건적으로 추가하여 메모리 사용량이 무제한으로 증가하고, 추론 성능이 저하되는 문제가 있었다. MEM1은 각 턴에서 compact shared internal state를 업데이트하며, 불필요한 정보는 전략적으로 제거한다. 이는 O(N²) 계산 복잡도를 가진 Transformer 기반 모델에서 발생하는 메모리 및 계산 비용 증가 문제를 해결한다. 핵심 아이디어는 추론 과정이 단순히 답변 생성뿐만 아니라, "working memory"로서 핵심 정보를 추출하고 기억을 통합하는 역할을 한다는 점이다. 이를 통해 별도의 메모리 모듈 없이도, 메모리 효율적인 추론이 가능하다.

기술적 접근법

주요 결과

의의 및 한계

MEM1은 장기적 다단계 작업에서 메모리 효율과 추론 성능을 동시에 최적화하는 새로운 접근법을 제시한다. 기존 시스템이 별도의 메모리 모듈을 사용하거나, 컨텍스트 길이가 무제한으로 증가하는 문제를 해결하며, 별도의 엔지니어링 없이도 end-to-end 학습이 가능하다는 점에서 학술적·실용적 가치가 크다. 또한, 기존 데이터셋을 활용한 task augmentation 방식은 연구자들이 기존 벤치마크를 재사용해 장기적 추론 능력을 평가할 수 있게 한다. 그러나 MEM1은 강화학습 기반의 학습이 필요하므로, 학습 데이터와 환경 구성에 상당한 노력이 요구된다. 또한, 특정 도메인에서의 성능 향상이 일반화 가능한지에 대한 추가 연구가 필요하다.

실용적 활용

MEM1은 연구 에이전트, 웹 탐색 에이전트, 온라인 쇼핑 보조 시스템 등 장기적 다단계 작업이 필요한 다양한 산업 분야에 적용 가능하다. 특히, 메모리 효율성이 중요한 모바일 또는 임베디드 환경에서 유리하며, 복잡한 정보 검색 및 결정 과정이 필요한 인공지능 시스템 개발에 기여할 수 있다.