[논문 리뷰] A-MEM: Agentic Memory for LLM Agents
A-Mem은 Zettelkasten에서 영감을 받은 에이전트적이고 동적으로 진화하는 메모리 시스템을 LLM 에이전트에 도입하여 자율적인 노트 작성, 연결, 메모리 진화를 가능하게 하여 장기 과제 수행을 개선합니다. LoCoMo에서 여섯 개의 기초 모델에 대한 평가에서 다중 홉 추론에서 특히 경쟁력 있거나 우수한 결과를 보여주며 토큰 오버헤드는 더 낮습니다.
While large language model (LLM) agents can effectively use external tools for complex real-world tasks, they require memory systems to leverage historical experiences. Current memory systems enable basic storage and retrieval but lack sophisticated memory organization, despite recent attempts to incorporate graph databases. Moreover, these systems' fixed operations and structures limit their adaptability across diverse tasks. To address this limitation, this paper proposes a novel agentic memory system for LLM agents that can dynamically organize memories in an agentic way. Following the basic principles of the Zettelkasten method, we designed our memory system to create interconnected knowledge networks through dynamic indexing and linking. When a new memory is added, we generate a comprehensive note containing multiple structured attributes, including contextual descriptions, keywords, and tags. The system then analyzes historical memories to identify relevant connections, establishing links where meaningful similarities exist. Additionally, this process enables memory evolution - as new memories are integrated, they can trigger updates to the contextual representations and attributes of existing historical memories, allowing the memory network to continuously refine its understanding. Our approach combines the structured organization principles of Zettelkasten with the flexibility of agent-driven decision making, allowing for more adaptive and context-aware memory management. Empirical experiments on six foundation models show superior improvement against existing SOTA baselines. The source code for evaluating performance is available at https://github.com/WujiangXu/A-mem, while the source code of the agentic memory system is available at https://github.com/WujiangXu/A-mem-sys.
연구 동기 및 목표
- LLM 에이전트에 대해 고정된 스키마와 미리 정의된 메모리 작업을 넘어서 유연하고 보편적 메모리를 동기화하기.
- 에이전트적 메모리 시스템을 설계하여 속성 및 임베딩을 갖춘 풍부한 메모리 노트를 자율적으로 구성하게 하기.
- 메모리의 동적 연결 및 진화를 가능하게 하여 자가 조직적 지식 네트워크를 형성하기.
- 여러 기초 모델에 걸친 장기 대화 태스크에서의 우수한 성능을 입증하기.
제안 방법
- 내용, 타임스탬프, 키워드, 태그, 맥락 설명 등 풍부한 속성을 가진 Zettelkasten에서 영감을 받은 원자 노트를 도입하고 밀집 임베딩으로 유사도 매칭.
- 노트 임베딩을 계산하고 top-k 코사인 유사도를 사용해 연결 생성을 위한 근접 메모리를 선택.
- 새 메모리가 추가될 때 맥락 설명, 연결 및 진화하는 속성을 생성하기 위해 LLM을 호출.
- 새로운 경험에 반응하여 주변 메모리의 맥락, 키워드, 태그를 업데이트하여 메모리의 진화를 허용.
- 쿼리에 대해 쿼리를 임베딩하고 메모리 네트워크에서 코사인 유사도 검색을 수행하여 관련 메모리를 retrieved.
실험 결과
연구 질문
- RQ1에이전트적 메모리 시스템이 미리 정의된 작업 없이도 메모리를 자율적으로 구조화하고 진화시킬 수 있는가?
- RQ2다이나믹한 연결과 메모리 진화가 다중 세션 태스크에서의 장기 추론을 향상시키는가?
- RQ3A-Mem이 다양한 기초 모델에서 장기 대화 벤치마크의 메모리 기반 성능에 대해 기존 메모리 기준선과 어떻게 비교되는가?
주요 결과
- A-Mem은 LoCoMo에서 여섯 개의 기초 모델에 대해 경쟁력 있거나 우수한 F1 및 BLEU-1 점수를 달성하며 다중 홉 작업에서 두드러진 향상을 보임.
- 상위-k 설정으로의 메모리 검색은 맥락의 풍부성 및 처리 효율의 균형을 맞추며 k가 커질수록 수익 감소를 보임.
- 절제 연구에서 연결 생성과 메모리 진화 both가 성능에 기여하며 전체 A-Mem이 변형들보다 우수함.
- t-SNE 시각화는 A-Mem에서 더 일관된 메모리 군집화를 나타내어 메모리 조직이 더 강하다는 것을 시사함.
- A-Mem은 일부 기준선과 비교해 토큰 길이가 상당히 짧아 약 1,200–2,500 수준임(대략 16,900).
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.