Janus Controller Improves LLM Memory by Selective Updates.

Zihan Chen, Songwei Dong, Chengshuai Shi, Peng Wang, Song Wang, Cong Shen, Jundong Li· July 1, 2026 View original

Summary

Janus is a new plug-in memory controller for LLMs that selectively accepts or rejects memory updates to prevent overwriting useful knowledge, introducing over-specific rules, or biasing memory. It uses a Memory Momentum Trigger and a compact evaluation set to efficiently decide on updates, improving accuracy across various datasets.

Researchers have introduced Janus, a novel plug-in memory controller designed to enhance the performance of Large Language Models (LLMs) with sequentially evolving memory. Existing LLM memory systems often accept every locally generated update without verifying its long-term benefit, which can lead to the loss of valuable knowledge, the introduction of overly specific rules, or a bias towards recent examples. Janus addresses this by acting as a gatekeeper, deciding whether to accept a new memory update or retain the previous state. To make these decisions efficiently, Janus employs a Memory Momentum Trigger to detect suspicious deviations in the memory-update trajectory. It then compares the old and new memories using a compact hybrid evaluation set that assesses coverage, boundary conditions, and fresh tasks, rather than replaying the entire history. This method-agnostic controller can wrap around existing memory updaters without altering their core rules. Across six datasets, two backbone LLMs, and two memory updaters, Janus consistently improved average accuracy by 2.7 to 4.6 points over the base updaters, demonstrating its effectiveness in maintaining high-quality, stable LLM memory.

Why it matters

This innovation allows LLM agents to maintain more stable, accurate, and less biased long-term memory, leading to more reliable and effective performance in applications requiring continuous learning and adaptation.

How to implement this in your domain

  1. 1Investigate integrating a memory controller like Janus into your LLM agent architectures for improved long-term performance.
  2. 2Develop mechanisms to selectively update LLM memory, preventing the overwriting of critical knowledge.
  3. 3Design compact evaluation sets to efficiently assess the impact of memory updates on LLM behavior.
  4. 4Explore how "memory momentum triggers" can be used to identify and manage potentially detrimental memory changes.

Who benefits

AI DevelopmentCustomer ServiceEducationSoftware DevelopmentResearch

Key takeaways

  • Janus is a plug-in controller that selectively manages LLM memory updates.
  • It prevents knowledge loss, over-specific rules, and recency bias in LLM memory.
  • The controller uses efficient evaluation sets and momentum triggers for decision-making.
  • Janus consistently improves LLM accuracy across various tasks and models.

Original post by Zihan Chen, Songwei Dong, Chengshuai Shi, Peng Wang, Song Wang, Cong Shen, Jundong Li

"arXiv:2606.31121v1 Announce Type: new Abstract: Sequentially evolving LLM memory enables agents to reuse past experience, but existing systems usually deploy each locally generated memory update without checking whether it improves future behavior. As a result, updates that help…"

View on X

Originally posted by Zihan Chen, Songwei Dong, Chengshuai Shi, Peng Wang, Song Wang, Cong Shen, Jundong Li on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses

More in AI Engineering & DevTools

AI ResearchAI Engineering & DevTools

Philosophical Foundations for Explainable AI in Healthcare Explored

This paper critically reviews the intersection of philosophy of science and explainable AI (XAI) in health sciences, examining what constitutes an adequate medical explanation. It identifies causality, trust, and epistemic adequacy as central axes for designing robust XAI systems in clinical decision-making.

Martina Mattioli, Marcello PelilloJul 1, 2026
AI ResearchAI Engineering & DevTools

New Metric Improves LLM Reinforcement Learning with Verifiable Rewards.

This research introduces the Relative Surprisal Index (RSI), an information-theoretic metric for adaptive token selection in Reinforcement Learning with Verifiable Rewards (RLVR) for LLMs. RSI-S, an entropy-adaptive filtering method based on RSI, improves reasoning accuracy by 2-3 percentage points by retaining tokens within a stable surprisal interval.

Outongyi Lv, Yanzhao Zheng, Yuanwei Zhang, Zhenghao Huang, Xingjun Wang, Baohua Dong, Hangcheng Zhu, Yingda ChenJul 1, 2026
AI Engineering & DevToolsAI Research

New ACE Module Boosts LLM Agent Context Management

Researchers introduce ACE (Adaptive Context Elasticizer), a plug-and-play module that dynamically manages historical information for LLM-based agents. ACE maintains a lossless message layer and adaptively orchestrates context, significantly improving performance across various agent frameworks without architectural changes.

Ning Liao, Zihao Long, Xiaoxing Wang, Xue Yang, Yaoming Wang, Ziyuan Zhuang, Xunliang Cai, Rongxiang Weng, Junchi YanJul 1, 2026