Long Term Memory: The Foundation of AI Self-Evolution

Xun Jiang, Feng Li, Han Zhao, Jiaying Wang, Jun Shao, Shihao Xu, Shu Zhang, Weiling Chen, Xavier Tang, Yize Chen, Mengyue Wu, Weizhi Ma, Mengdi Wang, Tianqiao ChenarXiv 2024 · DOI

TL;DR

This paper introduces "AI Self-Evolution," a paradigm where AI models continuously learn and adapt during inference, moving beyond static training. The core contribution is the proposal and exploration of Long-Term Memory (LTM) as the foundational mechanism for this self-evolution, enabling personalized and dynamic AI capabilities.

What Problem Does This Paper Address?

Current AI models, particularly Large Language Models (LLMs), excel at tasks based on their massive training datasets. However, they largely remain static after training, struggling to adapt to new information or personalize their responses in real-time. This paper addresses the limitation of static intelligence by proposing "AI Self-Evolution," a process where AI models can continuously learn and improve through interactions, much like humans. The challenge lies in how to equip AI with the ability to retain and utilize past experiences to evolve its capabilities dynamically, especially when dealing with sparse, long-tail, or personalized data.

Methods

The paper proposes AI Self-Evolution as a three-phase process:

  1. Cognitive Accumulation: Humans interact with the world, generating fragmented cognition.
  2. Foundation Model Construction: AI models learn from this data to form generalized "average" models.
  3. Model Self-Evolution: AI models move beyond average intelligence to build self-evolving, personalized models.

The key mechanism enabling Phase 3 is Long-Term Memory (LTM). The paper discusses LTM's role in:

  • Lifelong Learning: Continuously updating models based on accumulated interactions.
  • Personalization: Representing individual data and preferences.
  • Dynamic Adaptation: Adjusting to new tasks and environments.

The authors explore various LTM construction strategies, including:

  • Text Summarization: Compressing long contexts into concise forms.
  • Data Structuring: Organizing data into predefined structures (hierarchical, key-value).
  • Graph Representation: Using nodes and edges to manage associative memory.
  • Vectorization: Converting data into high-dimensional vectors for efficient retrieval.
  • Model Parameterization: Storing memory by adjusting model parameters.

They also propose a multi-agent framework called Omne, designed to leverage LTM for collaborative AI self-evolution.

Datasets

  • SMHC dataset: A real-world LTM dataset collected from psychological consultations, comprising over 1,000 participants and 30,000 minutes of audio recordings, with diagnoses from professional psychiatrists.
  • MDD-5k: A synthesized diagnostic conversation dataset for mental disorders, generated using a neuro-symbolic multi-agent framework based on anonymized patient cases. It's noted as the first labeled dataset of its kind.
  • Book3 dataset: A subset of "The Pile" used for training and evaluating multilingual capabilities, comprising English, French, and Chinese digitized books.
  • LTM-COT-1: A custom dataset constructed using a Retrieval-Thinking-Generation (RTG) strategy, designed to evaluate LTM utilization after training, including question-answer pairs and curated distractors.
  • GAIA benchmark: Used to evaluate the Omne framework's general AI capabilities.

Key Insights and Ideas

  • LTM as the "Foundation" for Self-Evolution: The paper strongly argues that LTM is not just a storage mechanism but a critical enabler of AI's ability to learn, adapt, and evolve over time, mirroring human cognitive development.
  • Beyond Static Training: The core idea of AI self-evolution challenges the current paradigm of training massive models and then deploying them as fixed entities. It emphasizes continuous learning and adaptation during the inference phase.
  • Personalization through LTM: LTM is presented as the key to moving from generalized models to truly personalized AI systems that can cater to individual needs and contexts.
  • Multi-Agent Collaboration for Evolution: The Omne framework highlights how diverse, LTM-equipped agents can collaborate to achieve more sophisticated and adaptive AI systems, driving a "second emergence of intelligence."
  • Inspiration from Human Cognition: The paper frequently draws parallels to human memory formation, learning, and adaptation, suggesting that mimicking these processes is crucial for advanced AI.

Key Results

  • The Omne framework, leveraging LTM, achieved first place on the GAIA benchmark (40.53% on the test set), demonstrating its effectiveness in complex AI tasks.
  • Experiments with the TTT mechanism showed that models could effectively learn new language distributions (French, Chinese) and improve performance, with only minor catastrophic forgetting on the original dataset.
  • The MedAgent-Zero experiment, using LTM-rewritten experiences, achieved 95.83% accuracy on the MedQA respiratory subset, outperforming the original version and demonstrating the effectiveness of refined LTM.
  • The MDD-5k dataset outperformed other diagnostic conversation datasets in human evaluation, showcasing the quality of synthesized data.

Limitations and Future Work

  • Data Sparsity and User Diversity: Handling sparse data and diverse user needs remains a challenge for LTM systems.
  • Real-time Updates and Efficiency: Efficiently updating and utilizing LTM in real-time, especially for large-scale systems, is an ongoing area of research.
  • Catastrophic Forgetting: While TTT showed minimal impact, managing catastrophic forgetting during continuous learning is still a concern.
  • Evaluation of Self-Evolution: Developing robust methods to evaluate AI self-evolution and its emergent capabilities is crucial.
  • Designing New Architectures: The paper suggests future work on designing novel model architectures that better integrate LTM, potentially using hierarchical or sequence-based structures.
  • LTM in Complex Scenarios: Applying LTM for self-evolution in highly complex tasks with limited ground truth remains a significant challenge.
  • Multi-Agent Collaboration: Further research is needed on how to effectively accumulate and share LTM within multi-agent systems for co-evolution.

Summary updated

Abstract

Large language models (LLMs) like GPTs, trained on vast datasets, have demonstrated impressive capabilities in language understanding, reasoning, and planning, achieving human-level performance in various tasks. Most studies focus on enhancing these models by training on ever-larger datasets to build more powerful foundation models. While training stronger models is important, enabling models to evolve during inference is equally crucial, a process we refer to as AI self-evolution. Unlike large-scale training, self-evolution may rely on limited data or interactions. Inspired by the columnar organization of the human cerebral cortex, we hypothesize that AI models could develop cognitive abilities and build internal representations through iterative interactions with their environment. To achieve this, models need long-term memory (LTM) to store and manage processed interaction data. LTM supports self-evolution by representing diverse experiences across environments and agents. In this report, we explore AI self-evolution and its potential to enhance models during inference. We examine LTM's role in lifelong learning, allowing models to evolve based on accumulated interactions. We outline the structure of LTM and the systems needed for effective data retention and representation. We also classify approaches for building personalized models with LTM data and show how these models achieve self-evolution through interaction. Using LTM, our multi-agent framework OMNE achieved first place on the GAIA benchmark, demonstrating LTM's potential for AI self-evolution. Finally, we present a roadmap for future research, emphasizing the importance of LTM for advancing AI technology and its practical applications.
BibTeX
@misc{jiang2024long,
  author = {Xun Jiang and Feng Li and Han Zhao and Jiaying Wang and Jun Shao and Shihao Xu and Shu Zhang and Weiling Chen and Xavier Tang and Yize Chen and Mengyue Wu and Weizhi Ma and Mengdi Wang and Tianqiao Chen},
  title = {{Long Term Memory: The Foundation of AI Self-Evolution}},
  year = {2024},
  eprint = {2410.15665},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.15665},
}
Figure