INFMEM: Learning System-2 Memory Control for Long-Context Agent
Xinyu WangMingze LiPeng LuXiao-Wen ChangLifeng ShangJinpeng LiFei MiPrasanna ParthasarathiYufei Cui
Xinyu Wang
Mingze Li
Peng Lu
Xiao-Wen Chang
Lifeng Shang
Jinpeng Li
Fei Mi
Prasanna Parthasarathi
Yufei Cui
+9
InfMem, a control-centric streaming agent, enhances long-context multi-hop reasoning by using System-2-style control through a PreThink–Retrieve–Write protocol for active memory updates. It monitors evidence sufficiency, performs targeted retrieval, and jointly compresses evidence into bounded memory. A practical SFT→RL training recipe aligns retrieval, writing, and stopping decisions with correctness, enabling adaptive early stopping. On ultra-long QA benchmarks (32k–1M tokens), InfMem consistently outperforms MemAgent across backbones, achieving +10.17, +11.84, +8.23 average absolute accuracy improvements on Qwen3-1.7B, Qwen3-4B, Qwen2.5-7B respectively, and cutting inference time by 3.9× on average (up to 5.1×).

OpenReview ·
· February 11, 2026