cs.CLOct 27, 2026

TrawMem: Reframing Agent Memory as Task-Oriented Role-Adaptive Workspaces

Authors: Mingyu Zhang, Zixu Li, Zhiheng Fu, Zhiwei Chen, Jinhe Bi, Yupeng Hu

Organizations: Shandong University · National University of Singapore

Abstract

Large language model (LLM) agents rely on memory systems to leverage long-term interactions, yet existing systems typically retrieve memories based on their relevance to the current query and use them as contextual evidence. However, relevance alone does not characterize how a memory contributes to task solving: the same memory may serve different roles across tasks, such as directly supporting the answer or linking to complementary memories with weaker semantic relevance but necessary information. We therefore reframe agent memory systems as Task-Oriented Role-Adaptive Workspaces, where memories are selected and organized by their task-oriented roles and relations. Based on this view, we propose TrawMem, which organizes interaction histories into local threads and constructs task-oriented workspaces by assigning roles and jointly selecting complementary memories. Experiments on LoCoMo and MemGallery with four open- and closed-source backbones show consistent improvements over representative memory systems, with macro-F1 gains of 2.23-3.14 points. On LoCoMo, TrawMem improves the LLM-Judge score over SimpleMem by 4.07 and 4.31 percentage points on Qwen3.5-9B and DeepSeek-V4-Flash, respectively, while requiring approximately 12.8% and 5.1% fewer context tokens, respectively.

Figures & tables

Explore similar work

CardsList
  1. FlexA-Mem: Budget-Adaptive Agentic Memory for LLM Agents

    Oct 23, 2026Wujiang Xu, Jiaojiao Han, Xi Zhu +5Memory Management for LLM AgentsLong-Term Conversational Memory

  2. Memory as a Controlled Process: Learned Adaptive Memory Management for LLM Agents

    Jul 15, 2026Eric Hanchen Jiang, Zhi Zhang, Yuchen Wu +11Persistent Memory for Language ModelsMemory Management for LLM Agents

  3. Weighted Memory Tree: Remembering What Matters for Long-Horizon LLM Agents

    Aug 21, 2026Quang Dao, Purvi Kathalkar, Kenneth EatonLLM Agent MemoryMemory Management for LLM Agents