MemPatch
收藏资源简介:
MemPatch 是一个用于评估大型语言模型(LLM)代理快速记忆集成(RMI)能力的基准数据集,源自论文《MemPatch: Benchmarking and Improving Rapid Memory Integration in LLM Agents》。每个场景测试 LLM 代理是否能够将新证据整合到记忆状态标签(如 current、outdated、blocked、unresolved 等)中,同时避免陈旧记忆重用、范围泄漏或策略无效的信念。数据集包含两个公开分割:main(3000 行,广泛覆盖不同领域、难度和失败模式)和 hard(500 行,为 L3/L4 对抗性场景,具有最小证据且无最新事件捷径),总共有 3500 行数据。数据以 JSONL 格式提供,每个场景对象包括一个公开输入(public_input)和一个用于官方评分器的隐藏黄金标准块(hidden_gold)。数据集专为评估设计,适用于问答、文本分类和文本生成等任务,重点关注代理记忆、记忆修订和评估。使用该数据集时,必须通过官方公共视图进行模型输入,不得将 hidden_gold 或内部字段馈送给模型。数据集采用 CC BY 4.0 许可证,代码部分为 MIT 许可证,数据是确定生成的(种子 2027),版本为 1.1.0。
MemPatch is a benchmark dataset for evaluating the Rapid Memory Integration (RMI) capability of Large Language Model (LLM) agents, derived from the paper MemPatch: Benchmarking and Improving Rapid Memory Integration in LLM Agents. Each scenario tests whether an LLM agent can integrate new evidence into memory state labels (such as current, outdated, blocked, unresolved, etc.) while avoiding stale memory reuse, scope leakage, or strategically invalid beliefs. The dataset includes two public splits: main (3000 rows, broadly covering different domains, difficulty levels, and failure modes) and hard (500 rows, designed for L3/L4 adversarial scenarios with minimal evidence and no recent event shortcuts), totaling 3500 rows of data. The data is provided in JSONL format, with each scenario object containing a public input (public_input) and a hidden gold standard block (hidden_gold) for official scoring. The dataset is specifically designed for evaluation, suitable for tasks such as question answering, text classification, and text generation, with a focus on agent memory, memory revision, and assessment. When using the dataset, model inputs must be made through the official public view, and hidden_gold or internal fields should not be fed to the model. The dataset is licensed under CC BY 4.0, with code under MIT license, and the data is deterministically generated (seed 2027), version 1.1.0.
MemPatch 数据集概述
MemPatch 是一个用于评估大语言模型(LLM)智能体快速记忆整合(RMI) 能力的基准数据集,源自论文《MemPatch: Benchmarking and Improving Rapid Memory Integration in LLM Agents》。每个测试场景考察智能体是否能将新证据正确整合到 memory_state 标签(如 current、outdated、blocked、unresolved 等)中,避免陈旧复用、范围泄漏或策略无效信念。
许可协议:CC BY 4.0(数据集),代码采用 MIT 协议。
语言:英语。
任务类别:问答、文本分类、文本生成。
标签:agent-memory, llm-agents, rapid-memory-integration, memory-revision, evaluation。
用途:仅用于评估,禁止在此数据上训练 MemPatch 修订模块策略,否则会污染基准结果。
数据集结构与规模
数据集包含两个公开划分(split):
| 公开划分名称 | 行数 | 目的 |
|---|---|---|
main |
3000 | 跨领域、难度和失败模式的广泛覆盖 |
hard |
500 | L3/L4 对抗性样本;低证据量,无最新事件捷径 |
公开总计:3500 行。
realistic和calibration划分未包含在此公开版本中。- 私有隐藏行不属于公开版本。
数据格式
数据以 JSONL 格式存储,文件路径为:
main/scenarios.jsonlhard/scenarios.jsonl
每行是一个 JSON 场景对象,包含公开输入(public_input)和用于官方评分的隐藏金标准(hidden_gold)。模型只能接收经过官方公开视图处理后的输入,不得直接使用 hidden_gold 或内部字段。
基准兼容的预测接口格式如下:
json { "scenario_id": "case-000001", "response": { "decision": "use_current_memory", "memory_state": {"m1": "current", "m2": "outdated"}, "evidence_event_ids": ["e2", "e5"], "failure_diagnosis": "stale_memory_reuse", "answer": "..." } }
评估与评分
使用官方评估器进行评分,命令示例:
bash python scripts/evaluate_retrace_bench_predictions.py --data main/scenarios.jsonl --predictions <your_predictions>.jsonl
核心评估指标:
decision_macro_f1memory_state_accuracyevidence_f1minimal_evidence_exact_matchfailure_diagnosis_accuracyjoint_revision_successstale_reuse_rateformat_failure_rate
溯源与引用
- 生成方式:使用种子
2027确定性生成。 - 发布版本:
1.1.0。 - 代码与基准运行器:https://github.com/yuchenzhu-research/MemPatch
- 引用格式:
bibtex @misc{mempatch2026, title = {MemPatch: Benchmarking and Improving Rapid Memory Integration in LLM Agents}, author = {MemPatch authors}, year = {2026}, note = {Evaluation-only benchmark release. url{https://github.com/yuchenzhu-research/MemPatch}} }





