CoReMem values agent memories by their usefulness for subsequent coding tasks

Paper / preprint arXiv cs.AI · Reported findings, not independently verified by us.

CoReMem is designed to help coding agents select and use information from one task on the next. It accounts for both the effort of writing and reading a memory and its later usefulness. On ChainSWE, the researchers report that a 27B agent’s resolution rate rose from 21.0% to 25.7%.

The challenge is that the next repository task is unknown when a memory is created. CoReMem therefore prospectively evaluates individual segments from earlier trajectories. It compares runs of the subsequent task with and without a segment, starting from the same inherited repository state. The resulting compact memory focuses on anchors such as repository locations and executable checks.

The framework also adapts the agent’s behavior. It estimates memory value from groups of runs conducted with and without memory. Its reward prioritizes task resolution and takes the number of steps into account for successful runs. An additional value credit is assigned only to steps identified as using memory-supplied anchors; all steps still receive outcome credit.

Compared with the untrained agent without memory, the reported version used 17% fewer steps and 11% fewer cache-aware tokens, including calls to the memory module. These results are for ChainSWE; the supplied text gives no other benchmark results or statistical uncertainty estimates. The original paper describes the method and evaluation: https://arxiv.org/abs/2611.17316v1

🇬🇧 https://arxiv.org/abs/2611.17316v1

Leave a Comment

The weekly brief: selected developments, projects and videos