cs.AIOct 23, 2026

Lifelong Context Adaptation through Bidirectional Memory-Skill Learning

Authors: Tianyi Xu, Huazheng Wang

Organizations: Oregon State University

Abstract

Lifelong LLM agents must learn from an expanding history of interactions while making each decision within a bounded context window. Memory makes past experience available, but the agent may still need to infer how to solve each new task from the retrieved records. Skills provide reusable procedures, yet may omit the task-specific facts needed to apply them. Because retrieved memory and skills shape the agent's behavior, they also influence the experience available for future learning. We introduce MemCryst, a framework for lifelong context adaptation through bidirectional learning of memory and skills with a frozen language model. Recurring episodes stored in memory support skill creation and revision, and the interactions guided by those skills supply new memory for subsequent learning. Facts retrieved from memory and learned skills jointly form the agent's context, while task outcomes adjust the future retrieval influence of the records actually served without rewriting their content. Across ten settings spanning embodied control, long-document reading, conversation, mathematics, and code, MemCryst leads seven reported comparisons. On ALFWorld, joint serving achieves 63.17% success, compared with 59.83% for memory-only and 50.50% for skill-only serving. Code is available at https://github.com/tianyi0216/Memcryst.git

Figures & tables

Appendix figures & tables13 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. LifeMem: Enabling Lifelong Experience Reuse for LLM Agents

    Sep 11, 2026Yuli Qiu, Yutong Li, Wei Su +5Continual Learning for LLM AgentsLLM Agent Skill Learning

  2. Mem-ππ: Adaptive Memory through Learning When and What to Generate

    May 20, 2026Xiaoqiang Wang, Chao Wang, Hadi Nekoei +5LLM Agent MemoryRL for LLM Agents

  3. ERSkill: Evolving for Skill-Guided Adaptive Memory Retrieval

    Aug 13, 2026Haolong Chen, Liang Zhang, Zhuo Li +2LLM Agent MemoryLLM Agent Skill Learning