cs.CLApr 13, 2026

Self-Evolving LLM Memory Extraction Across Heterogeneous Tasks

Authors: Yuqing Yang, Tengxiao Liu, Wang Bill Zhu, Taiwei Shi, Linxin Song, Robin Jia

Organizations: University of Southern California · University of California, Santa Barbara

Abstract

As LLM-based assistants become persistent and personalized, they must extract and retain useful information from past conversations as memory. However, the types of information worth remembering vary considerably across tasks. We formalize the heterogeneous memory extraction task and introduce BEHEMOTH, a benchmark that repurposes 18 existing datasets spanning personalization, problem-solving, and agentic tasks, using a downstream utility-driven metric for systematic evaluation. Our empirical analysis confirms that no single static extraction prompt dominates across all task categories, and that existing self-evolving prompt optimization frameworks, originally designed for homogeneous distributions, degrade when training tasks are heterogeneous. To address this, we propose CluE, a cluster-based self-evolving strategy that groups training examples into clusters by extraction scenarios, analyzes each cluster independently, and synthesizes cross-cluster insights to update the extraction prompt. Experiments on BEHEMOTH show that CluE generalizes effectively across heterogeneous tasks (++9.04% relative gain), consistently outperforming prior self-evolving frameworks.

Figures & tables

Appendix figures & tables6 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Beyond Static Summarization: Proactive Memory Extraction for LLM Agents

    Jan 8, 2026Chengyuan Yang, Zequn Sun, Wei Wei +1LLM Agent MemoryPersistent Memory for Language Models

  2. EvolveMem:Self-Evolving Memory Architecture via AutoResearch for LLM Agents

    May 13, 2026Jiaqi Liu, Xinyu Ye, Peng Xia +4LLM Agent MemoryLLM Memory

  3. Generalizable Self-Evolving Memory for Automatic Prompt Optimization

    Mar 23, 2026Guanbao Liang, Yuanchen Bei, Sheng Zhou +5Automatic Prompt OptimizationLanguage Model Self-Improvement