cs.CLMar 16, 2026

CLAG: Adaptive Memory Organization via Agent-Driven Clustering for Small Language Model Agents

Authors: Taeyun Roh, Wonjune Jang, Junha Jung, Jaewoo Kang

Organizations: Korea University · Myongji University · AIGEN Sciences

Abstract

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.

Figures & tables

Appendix figures & tables10 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Lightweight LLM Agent Memory with Small Language Models

    Apr 9, 2026Jiaquan Zhang, Chaoning Zhang, Shuxu Chen +9Memory Management for LLM AgentsPersistent Memory for Language Models

  2. MemFlow: Intent-Driven Memory Orchestration for Small Language Model Agents

    May 5, 2026Jiayi Chen, Yingcong Li, Guiling WangLLM Agent Workflow OptimizationPersistent Memory for Language Models

  3. H-Mem: A Novel Memory Mechanism for Evolving and Retrieving Agent Memory via a Hybrid Structure

    May 15, 2026Jiawei Yu, Yixiang Fang, Xilin Liu +1Agent MemoryLLM Agent Memory