[Paper Review] CLAG: Adaptive Memory Organization via Agent-Driven Clustering for Small Language Model Agents
CLAG introduces agent-driven clustering to organize long-horizon memories for small language model agents, enabling localized memory evolution and a two-stage, cluster-aware retrieval to improve robustness and efficiency over global memory pools.
Large language model agents heavily rely on external memory to support knowledge reuse and complex reasoning tasks. Yet most memory systems store experiences in a single global retrieval pool which can gradually dilute or corrupt stored knowledge. This problem is especially pronounced for small language models (SLMs), which are highly vulnerable to irrelevant context. We introduce CLAG, a CLustering-based AGentic memory framework where an SLM agent actively organizes memory by clustering. CLAG employs an SLM-driven router to assign incoming memories to semantically coherent clusters and autonomously generates cluster-specific profiles, including topic summaries and descriptive tags, to establish each cluster as a self-contained functional unit. By performing localized evolution within these structured neighborhoods, CLAG effectively reduces cross-topic interference and enhances internal memory density. During retrieval, the framework utilizes a two-stage process that first filters relevant clusters via their profiles, thereby excluding distractors and reducing the search space. Experiments on multiple QA datasets with three SLM backbones show that CLAG consistently improves answer quality and robustness over prior memory systems for agents, remaining lightweight and efficient.
Motivation & Objective
- Motivate the need for structured memory in long-horizon LLM agents to reduce cross-topic interference.
- Propose a clustering-based memory framework (CLAG) that self-organizes memories into topic-consistent clusters.
- Enable localized memory evolution within clusters to maintain semantic density and coherence.
- Develop a two-stage, cluster-aware retrieval process to reduce search space and retrieval noise.
- Demonstrate robustness and efficiency gains across multiple backbones and datasets.
Proposed method
- Agentic routing assigns each new memory to a semantically coherent cluster via an SLM-driven router.
- Clusters maintain topic-specific profiles with keywords and tags that summarize content.
- Localized evolution performs memory consolidation within the routed cluster to strengthen semantic density.
- A two-stage retrieval first filters clusters by their profiles and then retrieves memories within selected clusters.
- Adaptive clustering splits oversized clusters to prevent semantic drift and maintain adaptability.

Experimental results
Research questions
- RQ1Can agent-driven clustering improve robustness and answer quality for SLM-backed agents across domains?
- RQ2Does localized evolution within cluster neighborhoods mitigate cross-topic interference more effectively than global memory updates?
- RQ3Does cluster-aware retrieval reduce retrieval noise and improve efficiency compared to global retrieval baselines?
- RQ4How does CLAG perform across multiple backbone models and knowledge-intensive tasks?
Key findings
- CLAG consistently improves answer quality and robustness across three QA benchmarks and three SLM backbones.
- CLAG achieves stronger F1/BLEU-1 scores on knowledge-intensive and domain-shift settings.
- Two-stage cluster-aware retrieval reduces search space and suppresses distractors, contributing to better retrieval quality.
- Localized evolution within clusters increases memory density and coherence, aiding reasoning in complex tasks.
- CLAG maintains favorable latency/throughput, outperforming some baselines in end-to-end efficiency on key datasets.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.