SALM: Adaptive AI Long-Term Memory Learns What to Remember, Retrieve, and Forget

Researchers from Memories.ai and top universities introduce SALM, a cognitive architecture where learnable adapters autonomously decide what information to store in parametric or non-parametric memory, how to retrieve it, and what to forget, demonstrating stable improvement on long-dialogue benchmarks using a Llama-3-8B backbone with LoRA adapters.

SmartApe AI
SmartApe AI
SmartApe AI
SALM: Adaptive AI Long-Term Memory Learns What to Remember, Retrieve, and Forget

Paper Overview

The survey Human-Inspired Perspectives: A Survey on AI Long-Term Memory is published in Proceedings of the IEEE . The collaboration involves Memories.ai, Hong Kong University of Science and Technology (Guangzhou), University of Cambridge, University of Bristol, Columbia University, and Meta researchers. First author Zihong He is a PhD student at HKUST Guangzhou; corresponding author Weizhe Lin (Cambridge PhD) works on multimodal retrieval-augmented QA; co-corresponding author Junxiao Shen (Cambridge PhD, former Meta) co-founded Memories.ai.

Memory Types and Storage Forms

The paper maps human long-term memory categories to AI systems:

Episodic memory : interaction records and historical events.

Semantic memory : knowledge bases and learned concept relationships.

Procedural memory : policies from reinforcement learning, adjustable rules, and code.

Storage is classified by location:

Parametric memory : information encoded in model parameters.

Non-parametric memory : information kept in external stores (databases, file systems). RAG belongs here.

These two dimensions are orthogonal; e.g., semantic knowledge can reside in parameters or an external knowledge base.

SALM Cognitive Architecture

SALM (Self-Adaptive Long-term Memory) extends classic cognitive architectures (ACT-R, Soar, Sigma, CoALA) with four modules:

Perception register

Working memory

Long-term memory (both parametric and non-parametric)

Action execution

Figure 1: SALM cognitive architecture showing perception register, working memory, long-term memory with parametric and non-parametric forms, and adapters for storage, retrieval, and forgetting decisions.
Figure 1: SALM cognitive architecture showing perception register, working memory, long-term memory with parametric and non-parametric forms, and adapters for storage, retrieval, and forgetting decisions.

Key innovation: learnable adapters make storage, retrieval, and forgetting decisions based on task feedback. The adapters choose trigger timing, memory type, and specific content. Adapter optimization itself accumulates procedural memory.

Adapter Mechanisms

Implementation Backbone

Meta-Llama-3-8B-Instruct serves as the base model. Parametric memory uses LoRA adapters; non-parametric memory uses external context.

Storage Adapter — What to Remember

Triggered each session. A discriminator network first decides whether to save, then selects memory type. For parametric storage, the system chooses between reusing an existing LoRA adapter or creating a new one, guided by quality scores, remaining capacity, and semantic branching. Design goals include filtering low-quality data, poisoning inputs, and privacy-sensitive information.

Retrieval Adapter — How to Find

Given current context, the adapter picks memory sources. For non-parametric memory, it scores joint features of memory entries and query, selects top-K candidates, then ranks by relevance and memory quality. For parametric memory, a routing network weighs LoRA storage quality, historical call frequency, and relevance to the query to choose which adapter to invoke.

Forgetting Adapter — When to Forget

Decides which external entries or LoRA adapters to remove. Active forgetting frees capacity and reduces retrieval interference. Implementation: first judge whether to trigger forgetting, then pick memory type, finally score candidates for removal. Both memory types use learnable networks for selection.

Training Memory Strategies with Task Feedback

A multi-branch decision tree explores combinations of storage, retrieval, and forgetting actions. Each dialogue history maintains up to 20 active paths. Each path generates an answer; reward combines answer quality, improvement over a no-memory baseline, and the effectiveness of storage, forgetting, and parametric-memory training. Policy gradient updates the memory-handling strategies.

Long-Dialogue Experiments

Dataset : LongMemEval_S — 500 long dialogue histories, each ~115k tokens, with evaluation questions requiring cross-session information (temporal reasoning, knowledge update).

Protocol : Each round randomly shuffles data, samples 128 histories, runs 4 independent trials, tracks cumulative average reward.

Comparisons :

Dual memory (parametric + non-parametric) vs. non-parametric only vs. parametric only.

Full SALM (with adapters) vs. no-adapter baseline (save all sessions, load all non-parametric memory into context, call largest LoRA adapter).

Figure 2: Cumulative average reward curves. Left: memory type comparison. Right: adapter vs. no-adapter. Four independent runs averaged per point.
Figure 2: Cumulative average reward curves. Left: memory type comparison. Right: adapter vs. no-adapter. Four independent runs averaged per point.

Results : SALM with adapters shows a more stable upward trend in cumulative average reward. Dual-memory configuration gradually stabilizes; non-parametric-only rises; parametric-only shows only slight early improvement. Adapters exhibit a more pronounced learning effect on non-parametric memory handling.

Code is publicly available.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

memory managementLlama-3LoRA adaptersLongMemEvalcognitive architectureAI long-term memoryProceedings of the IEEESALM
SmartApe AI
Written by

SmartApe AI

SmartApe's AI technology content account, focusing on cutting-edge AI developments and open-source frontlines.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.