Verifiable Memory: Learning Unified Memory Management with Local and Global Verifiers for Large Language Model Agents
MemoryAgentRL中山大学南洋理工大学腾讯可验证记忆:通过局部与全局验证器为大语言模型智能体学习统一记忆管理
Abstract
Large language model (LLM) agents must retain reusable information, control a bounded active context, and recover earlier evidence during long-horizon interaction. Existing methods commonly optimize long-term memory (LTM) and short-term memory (STM) separately, while unified policies are often trained primarily with trajectory-level feedback, which provides weak credit for individual memory decisions. We present Verifiable Memory (VerMem), a framework that represents LTM, active context, and episodic history as distinct states and controls them with one memory operation policy. Seven atomic operations let the policy add, revise, or soft-delete LTM entries; retrieve LTM into the active context; filter or summarize the active context; and restore selected episodic fragments. VerMem is initialized by supervised fine-tuning and trained with a three-stage reinforcement-learning curriculum. The local verifier scores executable memory transitions, and a global verifier assesses evidence coherence and terminal-memory consistency after task completion. These scores are combined with programmatically computed task, evidence-recall, efficiency, and constraint signals through hierarchical credit assignment. The verifiers are used only during training. Across five benchmarks and two LLM backbones, VerMem achieves the best result on the vast majority of reported metrics and consistently outperforms strong memory baselines. Under controlled online-token budgets on three interactive benchmarks, it also achieves the strongest efficiency--performance frontier among the compared methods.
大语言模型(LLM)智能体必须在长程交互中保留可复用信息、控制有界的活动上下文,并恢复早期证据。 现有方法通常分别优化长期记忆(LTM)和短期记忆(STM),而统一策略往往主要使用轨迹级反馈训练,这对单个记忆决策只能提供较弱的信用信号。 我们提出可验证记忆(Verifiable Memory,VerMem),该框架将 LTM、活动上下文和情景历史表示为不同状态,并用一个记忆操作策略控制它们。 七种原子操作使该策略能够添加、修订或软删除 LTM 条目;把 LTM 检索到活动上下文中;过滤或总结活动上下文;以及恢复选定的情景片段。 VerMem 先通过监督微调初始化,再使用三阶段强化学习课程训练。 局部验证器为可执行的记忆转移评分,而全局验证器在任务完成后评估证据连贯性和终端记忆一致性。 这些分数通过层级信用分配,与程序化计算的任务、证据召回、效率和约束信号相结合。 验证器仅在训练期间使用。 在五个基准和两个 LLM backbone 上,VerMem 在绝大多数报告指标上取得最佳结果,并持续优于强记忆基线。 在三个交互式基准的受控在线 token 预算下,它还取得了所有比较方法中最强的效率--性能前沿。
1. Introduction
In long-horizon tasks involving multi-step interaction, tool use, and complex reasoning, the performance of large language model (LLM) agents depends not only on single-step generation, but also on retaining and using task-relevant information across decisions. Prior work uses agent memory to describe the information that an agent can attend to and use at a given time. Such information includes stored past executions and state representations formed from interaction history. Agent memory is commonly divided into long-term memory and short-term memory. Long-term memory (LTM) persistently stores user- or task-specific knowledge for reuse in later turns, stages, or tasks. Short-term memory (STM) contains information in the current input context and supports ongoing reasoning, action selection, and context control. LTM preserves information across time, while STM keeps the current reasoning state usable. Their coordination is therefore central to long-horizon agent reasoning.
在涉及多步交互、工具使用和复杂推理的长程任务中,大语言模型(LLM)智能体的性能不仅取决于单步生成,还取决于跨决策保留和使用与任务相关的信息。 先前工作使用智能体记忆来描述智能体在给定时间能够关注和使用的信息。 这些信息包括存储的过去执行过程,以及由交互历史形成的状态表示。 智能体记忆通常分为长期记忆和短期记忆。 长期记忆(LTM)持久存储用户或任务特定知识,以便在之后的轮次、阶段或任务中复用。 短期记忆(STM)包含当前输入上下文中的信息,并支持正在进行的推理、动作选择和上下文控制。 LTM 跨时间保留信息,而 STM 让当前推理状态保持可用。 因此,二者的协调是长程智能体推理的核心。
Existing systems often optimize only one side of this process. STM-oriented methods organize or compress the current reasoning state, whereas LTM-oriented methods build external stores for persistent recall. Stored information, however, affects a decision only after it enters the active context at the right time, and reusing task-misaligned experience can propagate errors. The AgeMem policy introduced by Yu et al. places LTM and STM operations in one policy, but its STM actions focus on retrieval, filtering, and summarization. Long-horizon tasks may also require an earlier observation, tool output, or intermediate conclusion to return from episodic history after it has left the active context. This operation differs from retrieving persistent knowledge and from compressing recent context.
现有系统往往只优化这一过程的一侧。 面向 STM 的方法组织或压缩当前推理状态,而面向 LTM 的方法构建用于持久召回的外部存储。 然而,存储的信息只有在正确时机进入活动上下文后才会影响决策,而且复用与任务不匹配的经验可能传播错误。 Yu 等人提出的 AgeMem 策略将 LTM 与 STM 操作放在一个策略中,但其 STM 动作聚焦于检索、过滤和总结。 长程任务还可能要求某个早期观察、工具输出或中间结论在离开活动上下文后,从情景历史重新返回。 这一操作不同于检索持久知识,也不同于压缩近期上下文。
Learning such behavior introduces a second difficulty. Yan et al., Zhou et al., and Yu et al. optimize memory decisions with downstream outcomes or trajectory-level feedback. These signals compare complete rollouts, but do not identify which atomic transition was useful or harmful. Process supervision and transition-level credit improve intermediate feedback, while MiroMind Team combines local and global verification during inference. Operation-level and trajectory-level verification have not been jointly used to train a unified memory operation policy.
学习这类行为带来了第二项困难。 Yan 等人、Zhou 等人和 Yu 等人使用下游结果或轨迹级反馈优化记忆决策。 这些信号比较完整 rollout,却无法识别哪个原子转移有用或有害。 过程监督和转移级信用改善了中间反馈,而 MiroMind Team 在推理期间结合局部与全局验证。 此前尚未联合使用操作级与轨迹级验证来训练统一记忆操作策略。
These limitations leave three challenges for a unified and trainable memory operation policy. (A) Heterogeneous memory coordination. LTM determines what should be stored, revised, or removed. STM determines what should enter, remain in, or leave the active context. The two memory types operate over different states and time scales. Coordinating them within a shared decision process while preserving their functional boundaries remains difficult. (B) Historical-context recovery. The current prompt is only a budgeted view of the full task history. Early observations, tool outputs, and intermediate conclusions may become relevant again after the subgoal changes. Recovering the relevant fragments without reintroducing large amounts of irrelevant history is therefore nontrivial. (C) Multi-granularity credit assignment. The utility of a memory operation is often delayed and depends on later operations. The correct write may become useful only after a later retrieval, while an incorrect filter may cause failure several steps later. Training must assign operation-specific credit while preserving alignment with the complete task objective.
这些限制为统一且可训练的记忆操作策略留下了三项挑战。 (A)异构记忆协调。 LTM 决定应存储、修订或移除什么。 STM 决定什么应进入、保留在或离开活动上下文。 两种记忆类型作用于不同状态和时间尺度。 在保持其功能边界的同时,在共享决策过程中协调二者仍然困难。 (B)历史上下文恢复。 当前 prompt 只是完整任务历史的一个受预算限制的视图。 早期观察、工具输出和中间结论可能在子目标改变后再次变得相关。 因此,要恢复相关片段而不重新引入大量无关历史并不容易。 (C)多粒度信用分配。 记忆操作的效用往往会延迟显现,并取决于之后的操作。 正确的写入可能只有在后续检索后才变得有用,而错误的过滤可能在数步之后导致失败。 训练必须在保持与完整任务目标对齐的同时,分配操作特定的信用。
To address these challenges, we propose Verifiable Memory (VerMem), shown in Figure 1. VerMem preserves LTM, active context, and episodic history as distinct states, while one memory operation policy coordinates LTM maintenance, STM control, and historical-context recovery through seven atomic tools. Training uses a supervised fine-tuning (SFT) warmup followed by a three-stage reinforcement learning curriculum for LTM, STM, and their joint use. The local verifier evaluates each realized memory transition, and the global verifier evaluates the completed trajectory. Their separately normalized advantages are combined at every memory decision. Both verifiers are removed during inference. Across five long-horizon benchmarks and two backbones, VerMem consistently improves task performance and achieves a stronger efficiency--performance frontier. The main contributions of this work are summarized as follows:
为应对这些挑战,我们提出图1所示的可验证记忆(VerMem)。 VerMem 将 LTM、活动上下文和情景历史保持为不同状态,同时由一个记忆操作策略通过七种原子工具协调 LTM 维护、STM 控制和历史上下文恢复。 训练先进行监督微调(SFT)预热,再针对 LTM、STM 及其联合使用执行三阶段强化学习课程。 局部验证器评估每次实际发生的记忆转移,全局验证器评估完成的轨迹。 二者分别归一化的优势会在每个记忆决策处结合。 两个验证器在推理期间都会被移除。 在五个长程基准和两个 backbone 上,VerMem 持续提升任务性能,并取得更强的效率--性能前沿。 本工作的主要贡献总结如下:
- We propose VerMem, a unified agent memory management framework. VerMem coordinates LTM maintenance and STM control through a single memory operation policy while preserving distinct states for LTM, active context, and episodic history. Its atomic action space further supports episode-level context selection.
- We introduce local--global verifier-guided hierarchical credit assignment. VerMem constructs operation-level local advantages and trajectory-level global advantages from stateful multi-step rollouts. The two signals are combined at each memory decision, allowing operation quality and final task utility to jointly guide policy updates.
- We conduct systematic evaluations across diverse complex tasks. We compare VerMem with strong memory baselines on five benchmarks and evaluate its efficiency--performance trade-off under controlled online-token budgets. Ablations further examine unified LTM/STM management, local and global credit signals, and the multi-component reward design.
- 我们提出 VerMem,一个统一的智能体记忆管理框架。 VerMem 通过单一记忆操作策略协调 LTM 维护与 STM 控制,同时为 LTM、活动上下文和情景历史保留不同状态。其原子动作空间还支持情景级上下文选择。
- 我们引入由局部--全局验证器引导的层级信用分配。 VerMem 从有状态的多步 rollout 构造操作级局部优势和轨迹级全局优势。两个信号会在每个记忆决策处结合,使操作质量和最终任务效用能够共同指导策略更新。
- 我们在多种复杂任务上进行系统评估。 我们在五个基准上将 VerMem 与强记忆基线进行比较,并在受控在线 token 预算下评估其效率--性能权衡。消融还进一步考察统一 LTM/STM 管理、局部与全局信用信号,以及多组件奖励设计。
2. Related Work
2.1 Long-Term Memory (LTM)
Long-term memory research studies how agents preserve, organize, and reuse historical information beyond the active context. LangChain Team describes LangMem as a set of modular primitives for recording, searching, and consolidating persistent knowledge. Zhong et al. introduce MemoryBank for long-term recall and user profiling through continual memory updates. The Mem0 framework of Chhikara et al. extracts, consolidates, and retrieves salient information from extended conversations, while the A-Mem framework of Xu et al. organizes memory through dynamic indexing, linking, and evolution. These systems improve persistent-state construction, but their primary concern is how information is stored and organized. Stored knowledge affects current decisions only after it enters the active context at the appropriate stage. Incorrect or task-misaligned experiences may also propagate errors when reused. This motivates joint control of persistent-memory maintenance and active-context use rather than isolated optimization of LTM.
长期记忆研究探讨智能体如何保存、组织和复用活动上下文之外的历史信息。 LangChain Team 将 LangMem 描述为一组用于记录、搜索和整合持久知识的模块化原语。 Zhong 等人提出 MemoryBank,通过持续记忆更新支持长期召回和用户画像。 Chhikara 等人的 Mem0 框架从扩展对话中提取、整合和检索显著信息,而 Xu 等人的 A-Mem 框架通过动态索引、链接和演化来组织记忆。 这些系统改进了持久状态构建,但其主要关注点是信息如何存储和组织。 存储的知识只有在适当阶段进入活动上下文后才会影响当前决策。 错误或与任务不匹配的经验在复用时也可能传播错误。 这促使我们联合控制持久记忆维护和活动上下文使用,而不是孤立优化 LTM。
2.2 Short-Term Memory (STM)
Short-term memory research focuses on maintaining the active context required by ongoing reasoning under a bounded context budget. Qian et al. organize reasoning traces and transient tool outputs into a compact executive memory. Li et al. develop structured schemata and activate query-relevant information for long-document understanding. Wu et al. periodically compress growing interaction histories into concise reasoning states and further adapt agents to reason over these summaries with ReSum-GRPO. These methods improve context usability, but they remain centered on the current input, document, or ongoing trajectory. In long-horizon tasks, useful evidence may remain in the episodic history after it leaves the active context. Retrieval, filtering, and summarization alone do not fully specify which earlier episode should return to the current reasoning state. VerMem addresses this gap by selecting task-relevant fragments from episodic history and materializing them into the active context as an explicit STM decision.
短期记忆研究聚焦于在有界上下文预算下,维护正在进行的推理所需的活动上下文。 Qian 等人将推理轨迹和临时工具输出组织成紧凑的执行记忆。 Li 等人构建结构化模式,并激活与查询相关的信息以理解长文档。 Wu 等人定期把不断增长的交互历史压缩为简洁推理状态,并进一步用 ReSum-GRPO 使智能体适应基于这些摘要进行推理。 这些方法改善了上下文可用性,但仍以当前输入、文档或正在进行的轨迹为中心。 在长程任务中,有用证据离开活动上下文后仍可能保留在情景历史中。 仅靠检索、过滤和总结,无法完整指定哪个早期情景应返回当前推理状态。 VerMem 通过从情景历史中选择与任务相关的片段,并将其作为显式 STM 决策放入活动上下文来填补这一空缺。
2.3 Learning Memory Policies with Verification
Reinforcement learning turns memory management into a learnable decision process. Yan et al. learn structured updates, Huo et al. expose atomic memory operations, Zhou et al. jointly learn consolidation and reasoning, and Yu et al. train a unified LTM/STM policy. These methods primarily optimize memory behavior with answer-level or trajectory-level objectives. Process supervision evaluates intermediate reasoning progress, while Luo et al. and Peng et al. assign credit to agent transitions or hierarchical decisions. MiroMind Team applies local and global verification during inference. VerMem instead uses operation-level and trajectory-level verification signals to train the memory operation policy.
强化学习将记忆管理转化为可学习的决策过程。 Yan 等人学习结构化更新,Huo 等人公开原子记忆操作,Zhou 等人联合学习整合与推理,Yu 等人则训练统一的 LTM/STM 策略。 这些方法主要使用答案级或轨迹级目标优化记忆行为。 过程监督评估中间推理进展,而 Luo 等人和 Peng 等人将信用分配给智能体转移或层级决策。 MiroMind Team 在推理期间应用局部与全局验证。 相比之下,VerMem 使用操作级和轨迹级验证信号来训练记忆操作策略。
3. Method
We propose Verifiable Memory (VerMem), a unified framework that maintains persistent LTM, a budgeted active context, and episodic history as distinct states. As shown in Figure 1, one memory operation policy coordinates LTM maintenance, STM control, and historical-context recovery. The policy is initialized with SFT and optimized through a three-stage reinforcement learning curriculum. The local verifier supplies operation-level semantic scores, while the composite global branch supplies trajectory-level credit from programmatic and global-verifier components. Both verifiers are removed during inference.
我们提出可验证记忆(VerMem),这是一个统一框架,将持久 LTM、受预算限制的活动上下文和情景历史维护为不同状态。 如图1所示,一个记忆操作策略负责协调 LTM 维护、STM 控制和历史上下文恢复。 该策略通过 SFT 初始化,并通过三阶段强化学习课程优化。 局部验证器提供操作级语义分数,而复合全局分支从程序化组件和全局验证器组件提供轨迹级信用。 两个验证器在推理期间都会被移除。

3.1 Problem Formulation
Unified memory operation policy formulation. The fixed task specification is denoted by
统一记忆操作策略形式化。 固定任务规范记为
Here,
其中,
Let
令
For a valid non-null command,
对于有效的非空命令,
After the memory transition, the task solver acts on the resulting active context, the environment returns an observation, and a separate interaction transition constructs the next memory-decision state:
记忆转移之后,任务求解器根据所得活动上下文采取动作,环境返回观察,再由单独的交互转移构造下一个记忆决策状态:
The transition
转移
Progressive training and hierarchical credit. The policy follows
渐进式训练与层级信用。 该策略遵循
Phase A trains LTM maintenance, Phase B trains STM control under distractors, and Phase C trains their coordination in complete tasks. Equation (4) shows the parameter curriculum. For decision
阶段 A 训练 LTM 维护,阶段 B 在干扰项下训练 STM 控制,阶段 C 在完整任务中训练二者协调。 公式 (4) 展示了参数课程。 对于轨迹
We set
我们设定
3.2 Atomic Memory Tools
The operation-type sets are
操作类型集合为
VerMem exposes these seven atomic tools, summarized in Table 1 and formalized in Equation (6), together with the null action SelectEpisode. The unified action space lets the policy choose between persistent-memory maintenance and active-context control from the current state. Detailed schemas, preconditions, and transition checks are given in Supplementary Material, Section A.
VerMem 提供这七种原子工具,它们总结于表1并在公式 (6) 中形式化,同时还包括空动作 SelectEpisode 从
| Tool | Target | Function |
|---|---|---|
Add | LTM | Add to Mt |
Update | LTM | Create revised versions in Mt |
Delete | LTM | Soft-delete entries in Mt |
Retrieve | STM | Retrieve Mt → Ct |
Filter | STM | Filter Ct |
SelectEpisode | STM | Restore Ht → Ct |
Summarize | STM | Summarize Ct |
3.3 Training Pipeline
Curriculum and SFT warmup. VerMem uses an SFT warmup followed by three reinforcement learning phases. The supervised set
课程与 SFT 预热。 VerMem 使用 SFT 预热,随后进行三个强化学习阶段。 监督集合
Equation (7) trains both operation selection and structured argument generation. Boundary templates and candidates from a frozen DeepSeek-V3.2 teacher are retained only when they satisfy the tool schema and transition constraints. The warmup teaches tool selection, argument generation, and valid structured outputs, but does not determine the delayed task utility of a memory decision. Data construction, filtering, and coverage are detailed in Supplementary Material, Section D.
公式 (7) 同时训练操作选择和结构化参数生成。 来自冻结 DeepSeek-V3.2 教师模型的边界模板和候选项,只有在满足工具 schema 和转移约束时才会保留。 预热教授工具选择、参数生成和有效的结构化输出,但不决定记忆决策的延迟任务效用。 数据构建、过滤和覆盖范围详见补充材料第 D 节。
Phase-wise reinforcement learning. Phase A optimizes
分阶段强化学习。 阶段 A 针对构建、修订、删除和不改变决策优化
Stateful trajectory collection. At policy update
有状态轨迹收集。 在阶段
Each rollout stores both the post-memory state
每条 rollout 同时存储记忆后状态
3.4 Local and Global Verifier-Guided Hierarchical Credit Assignment
We optimize the memory operation policy with local and global credit signals. For each task
我们使用局部与全局信用信号优化记忆操作策略。 对于每个任务
The composite global score is normalized within the candidate group for the same task. Local scores are normalized by operation type. The decision subset and two advantages are
复合全局分数在同一任务的候选组内归一化。 局部分数按操作类型归一化。 决策子集和两个优势为
The global statistics are computed from the
全局统计量由
At each memory decision, Equation (5) combines the two advantages with the constraint cost. The local advantage is assigned only to the current atomic operation, while the global advantage provides task-level supervision to all operations in the trajectory. Different memory decisions within one trajectory can therefore receive different learning signals. Poorly rated operations in a successful trajectory therefore need not receive the trajectory's full positive credit, while useful operations in an unsuccessful trajectory may retain a positive local contribution. The final sign still depends on the weighted sum of the local, global, and constraint terms. Rejected commands are not evaluated by the local semantic verifier, so
在每个记忆决策处,公式 (5) 将两个优势与约束成本结合。 局部优势只分配给当前原子操作,而全局优势为轨迹中的所有操作提供任务级监督。 因此,同一轨迹内的不同记忆决策可以收到不同的学习信号。 成功轨迹中评分较差的操作无需获得该轨迹的全部正信用,而失败轨迹中的有用操作可以保留正的局部贡献。 最终符号仍取决于局部、全局和约束项的加权和。 被拒绝的命令不会由局部语义验证器评估,因此
Let
令
Here,
其中,
Equation (11) uses the clipped surrogate from PPO and candidate-group normalization from GRPO. The memory operation policy loss is applied only to tokens that serialize the atomic memory command. Task-solver outputs and environment observations are excluded from this loss. Task specifications, state-serialization tokens, and padding tokens are also excluded. Operations at different time steps retain different advantages, and the factor
公式 (11) 使用 PPO 的裁剪代理目标和 GRPO 的候选组归一化。 记忆操作策略损失只应用于序列化原子记忆命令的 token。 任务求解器输出和环境观察不包含在该损失中。 任务规范、状态序列化 token 和 padding token 也被排除。 不同时间步的操作保留不同优势,而因子
3.5 Reward Function Design
The training signal has three explicitly separated channels: semantic quality for executable memory commands, global utility for the completed trajectory, and hard execution constraints. Let
训练信号包含三个显式分离的通道:可执行记忆命令的语义质量、已完成轨迹的全局效用,以及硬性执行约束。 令
Local operation reward. The local component is
局部操作奖励。 局部组件为
Equation (12) normalizes by all memory-decision opportunities while summing only scores produced for executable decisions. It is therefore zero when
公式 (12) 以所有记忆决策机会归一化,同时只求和可执行决策产生的分数。 因此,当
Composite global trajectory reward. The composite global branch is computed after task termination:
复合全局轨迹奖励。 复合全局分支在任务终止后计算:
All four terms lie in
四个项都位于
Equations (13) and (14) make the boundary explicit: the global verifier supplies only
公式 (13) 和 (14) 明确划分了边界:全局验证器只提供
Let
令
We use
我们使用
Auxiliary constraints. The auxiliary cost is
辅助约束。 辅助成本为
Equation (16) averages direct constraint costs over the memory-decision horizon. The step cost records discrete or hard violations, including invalid tools or arguments, failed state transitions, unsupported writes or updates, unjustified deletions, making protected evidence operationally inaccessible within the remaining decision and token budget, context overflow, exceeding the tool or interaction budget, and information leakage in no-reference settings. Routine token, step, and tool costs do not enter this channel; they are evaluated continuously by the global efficiency term. Terminal budget violations are attached to the final memory decision that precedes termination.
公式 (16) 在记忆决策时域上对直接约束成本取平均。 步骤成本记录离散或硬性违规,包括无效工具或参数、失败的状态转移、无依据的写入或更新、不合理删除、在剩余决策与 token 预算内使受保护证据在操作上无法访问、上下文溢出、超出工具或交互预算,以及无参考设置下的信息泄漏。 常规 token、步骤和工具成本不进入该通道;它们由全局效率项持续评估。 终端预算违规会附加到终止前的最后一个记忆决策。
The scalar displayed in the All-Returns training curve is used only for monitoring:
All-Returns 训练曲线中显示的标量仅用于监控:
The Answer-Only curve analogously displays
类似地,Answer-Only 曲线显示
Equations (17) and (18) are strategy-specific monitoring values. They are not policy advantages and are not directly comparable in absolute level. During policy optimization, the local and global signals are normalized separately, while
公式 (17) 和 (18) 是策略特定的监控值。 它们不是策略优势,在绝对水平上也不能直接比较。 策略优化期间,局部信号与全局信号分别归一化,而
4. Experiments
4.1 Experimental Setup
Datasets. We evaluate VerMem on ALFWorld, SciWorld, PDDL, BabyAI, and HotpotQA. VerMem is fine-tuned only on the HotpotQA training split, whose supporting facts and distractors support LTM maintenance, STM control, and historical-context recovery, and is then evaluated directly on all five benchmarks. Memory states are isolated by task instance. Each episode starts with empty
数据集。 我们在 ALFWorld、SciWorld、PDDL、BabyAI 和 HotpotQA 上评估 VerMem。 VerMem 只在 HotpotQA 训练集上微调,其中的支持事实和干扰项支持 LTM 维护、STM 控制和历史上下文恢复,之后直接在全部五个基准上评估。 记忆状态按任务实例隔离。 每个情景从空的
Evaluation Metrics. We report Success Rate (successful episodes divided by evaluated episodes) on ALFWorld, SciWorld, and BabyAI, Progress Rate on PDDL, and the Qwen-Max LLM-as-a-Judge score
评估指标。 我们在 ALFWorld、SciWorld 和 BabyAI 上报告成功率(成功情景数除以评估情景数),在 PDDL 上报告进度率,并在 HotpotQA 上报告 Qwen-Max 的 LLM-as-a-Judge 分数
Baselines and Backbones. Base uses the common task solver without an explicit memory operation policy or external persistent-memory store. We compare it with LangMem, A-Mem, Mem0 and its graph-based variant Mem0
基线与 backbone。 Base 使用通用任务求解器,不含显式记忆操作策略或外部持久记忆存储。 我们在 Qwen2.5-7B-Instruct 和 Qwen3-4B-Instruct 下,将其与 LangMem、A-Mem、Mem0 及其图变体 Mem0
4.2 Main Results
| Method | ALFWorld | SciWorld | PDDL | BabyAI | HotpotQA 100Jjudge | Average |
|---|---|---|---|---|---|---|
| Qwen2.5-7B-Instruct | ||||||
| Base | 27.16 | 13.80 | 10.15 | 50.80 | 38.36 | 28.05 |
| LangMem | 38.27 | 28.29 | 15.85 | 51.34 | 37.43 | 34.24 |
| A-Mem | 34.68 | 28.06 | 18.39 | 58.82 | 43.95 | 36.78 |
| Mem0 | 37.49 | 26.99 | 13.96 | 60.58 | 46.66 | 37.14 |
| Mem0g | 35.34 | 30.50 | 14.86 | 58.78 | 42.06 | 36.31 |
| AgeMem | 41.07 | 35.55 | 17.31 | 61.42 | 54.44 | 41.96 |
| VerMem-noVerify | 40.18 | 33.94 | 22.41 | 59.21 | 53.08 | 41.76 |
| VerMem (Ours) | 46.30 | 43.39 | 22.06 | 65.55 | 62.75 | 48.01 |
| Qwen3-4B-Instruct | ||||||
| Base | 38.51 | 47.89 | 30.14 | 55.83 | 47.48 | 43.97 |
| LangMem | 40.89 | 50.42 | 28.42 | 53.80 | 42.70 | 43.25 |
| A-Mem | 34.31 | 50.14 | 34.41 | 61.35 | 48.48 | 45.74 |
| Mem0 | 41.17 | 51.38 | 31.72 | 60.05 | 39.16 | 44.70 |
| Mem0g | 36.69 | 47.76 | 29.61 | 57.59 | 38.12 | 41.95 |
| AgeMem | 48.97 | 59.48 | 35.07 | 72.56 | 55.49 | 54.31 |
| VerMem-noVerify | 48.63 | 58.92 | 34.76 | 72.11 | 53.79 | 53.64 |
| VerMem (Ours) | 53.73 | 66.37 | 38.75 | 76.77 | 63.61 | 59.85 |
Overall comparison. Table 2 reports the main results under both backbones. With Qwen2.5-7B-Instruct, VerMem obtains an average score of
总体比较。 表2报告了两个 backbone 下的主结果。 使用 Qwen2.5-7B-Instruct 时,VerMem 取得
Performance across task types. The improvements vary with the memory requirements of each task. With Qwen2.5-7B-Instruct, VerMem exceeds the strongest external baseline by
不同任务类型上的性能。 提升幅度随各任务的记忆需求而变化。 使用 Qwen2.5-7B-Instruct 时,VerMem 在 ALFWorld、SciWorld、PDDL、BabyAI 和 HotpotQA 上分别比最强外部基线高
Cross-task transfer. VerMem is fine-tuned only on HotpotQA, yet it consistently improves over the strongest baselines on ALFWorld, SciWorld, PDDL, and BabyAI. The gains range from
跨任务迁移。 VerMem 只在 HotpotQA 上微调,却持续优于 ALFWorld、SciWorld、PDDL 和 BabyAI 上的最强基线。 使用 Qwen2.5-7B-Instruct 时,增益范围为

| Method | TN@S* ↓ | SR@B* ↑ |
|---|---|---|
| A-Mem | 4,250 | 33.80 |
| Mem0 | 3,820 | 35.60 |
| AgeMem | 2,600 | 39.00 |
| VerMem | 2,080 | 44.30 |
Efficiency--performance frontier. Figure 2 and Table 3 show that VerMem maintains the highest macro-average SR across the evaluated budgets. Its mean curve first reaches
效率--性能前沿。 图2和表3表明,VerMem 在各个评估预算下都保持最高的宏平均成功率。 其平均曲线在线性插值估计为
4.3 Ablation Studies

Unified memory components. Figure 3 shows cumulative gains from LTM operations, the complete LTM/STM action space, stateful RL, and verifier-guided credit. LTM provides the largest initial improvement, STM control adds further gains on SciWorld and HotpotQA, and full VerMem improves over +noV by
统一记忆组件。 图3展示了 LTM 操作、完整 LTM/STM 动作空间、有状态 RL 和验证器引导信用带来的累积增益。 LTM 提供最大的初始提升,STM 控制在 SciWorld 和 HotpotQA 上带来进一步增益,而完整 VerMem 相比 +noV 分别提升
| Variant | ALFWorld SR | SciWorld SR | HotpotQA 100Jjudge |
|---|---|---|---|
| VerMem-noVerify | 40.18 | 33.94 | 53.08 |
| +Local | 44.72 | 39.81 | 58.26 |
| +Global | 43.31 | 37.96 | 60.18 |
| +Local+Global | 46.30 | 43.39 | 62.75 |
Local and global credit branches. Table 4 shows complementary effects. Local feedback yields larger standalone gains on ALFWorld and SciWorld, whereas the global branch yields a larger standalone gain on HotpotQA. This pattern is consistent with, but does not by itself prove, the intended distinction between operation-level and trajectory-level credit. Their combination performs best on all three evaluated tasks.
局部与全局信用分支。 表4展示了互补效果。 局部反馈在 ALFWorld 和 SciWorld 上带来更大的独立增益,而全局分支在 HotpotQA 上带来更大的独立增益。 这一模式与操作级和轨迹级信用之间的预期区别一致,但其本身并不能证明这种区别。 二者组合在全部三个评估任务上表现最佳。

| Strategy | Jjudge ↑ | TN ↓ | MQ ↑ | TC |
|---|---|---|---|---|
| Answer-Only | 0.531 | 2,352 | 0.491 | 4.47 |
| All-Returns | 0.628 | 2,184 | 0.673 | 5.63 |
Reward function. The monitoring curves in Figure 4 suggest earlier stabilization and lower late-stage variability for All-Returns. Because the two strategies use different monitoring definitions, their absolute reward levels should not be compared directly. Table 5 shows that All-Returns raises
奖励函数。 图4中的监控曲线表明,All-Returns 更早稳定,后期变化也更小。 由于两种策略使用不同的监控定义,不应直接比较其绝对奖励水平。 表5表明,All-Returns 将
5. Limitations
Our evaluation resets all memory states after each episode, so it measures within-episode persistence and cross-benchmark transfer of the learned policy rather than cross-session or cross-user memory retention. The memory operation policy is trained on constructed HotpotQA states and evaluated with two Qwen backbones; the findings may not transfer to other model families or domains. HotpotQA
我们的评估会在每个情景后重置所有记忆状态,因此它衡量的是学习策略在情景内的持久性和跨基准迁移,而不是跨会话或跨用户的记忆保留。 记忆操作策略在构造的 HotpotQA 状态上训练,并使用两个 Qwen backbone 评估;这些发现可能无法迁移到其他模型家族或领域。 HotpotQA 的
6. Conclusion
We presented Verifiable Memory (VerMem), a unified framework for learning LTM and STM management in long-horizon LLM agents. VerMem maintains persistent memory, active context, and episodic history as distinct states, while one memory operation policy coordinates seven atomic tools for persistent-memory maintenance, active-context control, and historical-context recovery. Training combines an SFT warmup with a three-stage reinforcement learning curriculum. The local verifier evaluates realized atomic memory transitions, while the global verifier evaluates completed trajectories and terminal memory states. Both verifiers are removed during inference.
我们提出可验证记忆(VerMem),这是一个为长程 LLM 智能体学习 LTM 与 STM 管理的统一框架。 VerMem 将持久记忆、活动上下文和情景历史维护为不同状态,同时由一个记忆操作策略协调七种用于持久记忆维护、活动上下文控制和历史上下文恢复的原子工具。 训练将 SFT 预热与三阶段强化学习课程相结合。 局部验证器评估实际发生的原子记忆转移,全局验证器评估已完成轨迹和终端记忆状态。 两个验证器都在推理期间被移除。
Experiments across five benchmarks and two backbones show that VerMem consistently outperforms strong memory baselines and transfers from HotpotQA to interactive, planning, and instruction-following tasks. The budget-controlled evaluation further demonstrates a stronger efficiency--performance trade-off under limited online tokens. The ablation results confirm the contributions of unified LTM/STM control, stateful reinforcement learning, complementary verifier signals, and the complete reward design. These findings show that coordinated memory management and multi-granularity credit assignment provide an effective basis for reliable long-horizon agent behavior.
五个基准和两个 backbone 上的实验表明,VerMem 持续优于强记忆基线,并从 HotpotQA 迁移到交互、规划和指令遵循任务。 预算受控评估进一步表明,在有限在线 token 下,它取得了更强的效率--性能权衡。 消融结果确认了统一 LTM/STM 控制、有状态强化学习、互补验证器信号和完整奖励设计的贡献。 这些发现表明,协调记忆管理和多粒度信用分配为可靠的长程智能体行为提供了有效基础。