TLDR: RGMem is a novel memory framework for language agents, inspired by the Renormalization Group in physics. It addresses the limitations of current LLM memory systems by organizing dialogue history across multiple scales, from microscopic facts to macroscopic traits. Through a process of iterative coarse-graining and dynamic evolution, RGMem distills latent user preferences, maintains behavioral consistency, and adapts to preference shifts. This multi-scale approach enables significantly improved long-term personalization and conversational continuity, outperforming state-of-the-art baselines in complex reasoning tasks.
Large Language Models (LLMs) are becoming increasingly central to conversational AI, but they often struggle with maintaining personalized and continuous interactions over long periods. This is primarily due to their limited context windows and static memory systems, which make it difficult to track long-term user states and behavioral consistency across multiple conversations. Existing solutions, like retrieval-augmented generation (RAG) and explicit memory systems, tend to focus on storing and retrieving facts, often failing to distill deeper user preferences and traits from complex dialogues. This limitation results in shallow personalization and breaks in conversational continuity.
To address these challenges, researchers Ao Tian, Yunfeng Lu, Xinxin Fan, Changhao Wang, Lanzhi Zhou, Yeyao Zhang, and Yanfang Liu have introduced a novel self-evolving memory framework called RGMem. Inspired by the Renormalization Group (RG) concept from physics, RGMem offers a new way to organize and evolve a language agent’s memory, enabling it to build a dynamic and accurate user profile over time. You can read the full paper here: RGMem: Renormalization Group-based Memory Evolution for Language Agent User Profile.
How RGMem Works: A Multi-Scale Approach
The core idea behind RGMem is to model memory evolution as a multi-scale process of information compression and emergence. Think of it like zooming out from tiny details to see the bigger picture, while still being able to zoom back in when needed. The framework processes dialogue history in three main stages:
1. State Space Construction (L0 Layer): At the lowest level, RGMem takes raw dialogues and transforms them into discrete, microscopic pieces of evidence. This initial step filters out noise and extracts core facts and user conclusions, creating a high signal-to-noise ratio foundation for memory.
2. Renormalization Flow (L1 Layer): This is where the magic of evolution happens. Inspired by RG principles, RGMem uses a set of operators to continuously process and organize the microscopic evidence into a structured knowledge space, often represented as a dynamic graph. This involves:
- Relation Inference: Identifying and summarizing connections between individual facts, forming mesoscopic (mid-level) theories about user interactions.
- Node-Level Block Transformation: Coarse-graining these mesoscopic theories into macroscopic (high-level) insights. This process distills two key parameters: an “Order Parameter” (Σ) that captures universal, stable user patterns, and a “Correction Term” (Δ) that preserves salient, non-universal information, acknowledging inherent tensions or nuances in the user’s profile.
- Hierarchical Flow: Iteratively propagating information upwards through the knowledge graph, performing “Synergy/Tension Analysis” to form a global, macroscopic user profile.
This continuous flow allows the system to evolve its understanding of the user, moving from specific events to general patterns and abstract traits.
3. Multi-Scale Observation (L2 Layer): When a language agent needs to respond to a query, RGMem employs a multi-scale retrieval mechanism. It can simultaneously probe for microscopic facts, mesoscopic relations, and macroscopic user traits, integrating this information to generate a contextually coherent and nuanced response. This ensures that the agent can access both detailed memories and abstract understandings of the user.
Emergent Dynamics: Stability and Change
A key aspect of RGMem is its ability to handle both stability and plasticity in user profiles. It recognizes two dynamic modes:
- Fixed Point Convergence: When new information is consistent with the existing user profile, RGMem’s effective theory converges to a stable state, meaning the macroscopic profile remains largely invariant. This reflects the user’s consistent traits.
- Phase Transition Reshaping: If a significant amount of new evidence is incongruous with the current profile, RGMem can undergo a “phase transition.” This means the system’s order parameter (Σ) drastically changes, leading to a fundamental restructuring of the user profile to reflect a major shift in preferences or behavior. This is controlled by specific thresholds that act as critical points.
Remarkable Performance Gains
Experiments on the Long-term Conversational Memory (LOCOMO) benchmark demonstrate RGMem’s superior performance. It achieved an overall accuracy of 86.17%, significantly outperforming the best baseline method, Zep, by over 7 percentage points, and closely approaching the theoretical upper bound of providing the full conversation context (87.52%).
RGMem showed exceptional gains in:
- Single-Hop Reasoning: Surpassing even the full-context method, indicating that its initial coarse-graining effectively distills crucial facts, making them more accessible than raw, noisy data.
- Multi-Hop Reasoning: Exhibiting the most significant improvement, nearly 9% over baselines. This highlights RGMem’s ability to identify and consolidate latent connections between dispersed facts, forming coherent thematic summaries.
- Temporal Reasoning: Leading with 88.91%, validating its dynamic evolution mechanism in accurately capturing user changes and distinguishing between noise and persistent trends.
While its performance margin in open-domain tasks was smaller, this is consistent with RGMem’s design to filter out high-entropy, non-core information to maintain a stable, high signal-to-noise ratio user profile for critical tasks. The ablation studies further confirmed that the hierarchical organization and dynamic evolutionary capability of the context, rather than just its length, are the primary drivers of its remarkable performance.
Also Read:
- AI Agents Learn and Adapt Through Dialogue to Tackle Complex Problems
- Structure-R1: Enhancing LLM Reasoning with Dynamic Knowledge Structures
Conclusion
RGMem represents a significant step forward in building more intelligent and personalized language agents. By formalizing user profile construction as a dynamic, multi-scale problem inspired by the Renormalization Group, it offers a principled way to manage long-term memory, distill deep user insights, and adapt to evolving preferences. This framework not only enhances machine memory but also opens avenues for understanding the fundamental laws governing the evolution of human self-concept.


