Memory method reduces errors in tool-using ai agents by tracking dependencies

Memories That Outlive Their Reasons: Dependency-Tethered Memory for Tool-Using LLM Agents

Computation and Language

Summary

AI agents that remember past decisions can sometimes repeat mistakes if the reasons for those decisions become outdated or invalid. The authors found that by keeping track of exactly which information each decision depends on, agents can avoid using old memories whose underlying facts have changed. This method, called Tether, drastically reduces the chance of passing along errors without needing to re-check everything all the time. It works well in simulated scenarios where agents must handle complex, changing information over long periods.

What this means in practice

  • For software engineering teams: Implement dependency-aware memory in agent systems to reduce false positives from outdated verifications and improve reliability of tool-based automation.
  • For cloud infrastructure operators: Use dependency-tethered memory to decrease unnecessary checks and improve efficiency in large distributed version-controlled systems with many interconnected components.

Authors

Yiqi Wang, Jinqian Ju, Jiaqi Zhang, Zhangkai Wu, Yiqun Duan, Zequn Sun, Taotao Cai, Mingkai Zheng

Abstract

Agents now act on the Web, publishing packages, models and datasets through registry APIs, and remembering past verifications spares them the work. But a verdict rests on premises. When a signing key is revoked, everything built on it stops passing, yet the advisory names only the key, and the old verdicts of its dependents may never share a retrieval window with it. This non-locality of invalidation turns memory into a liability: in long simulated chats, an agent reading a memory of atomic facts publishes 62% of the objects whose failure lies upstream, each backed by a record that was true when written. Yet derivation is local even when invalidation is not. Tether records, at write time, the exact versions each verdict derives from, and at read time withdraws any verdict whose support has failed anywhere in the store; the agent reads the same fields as before. On Fallout, a generator of versioned worlds with hypothesis-blind simulated histories shared by every memory, Tether publishes 0.3% of upstream-failing objects across three domains when relations are stated with their verdicts, with 37% fewer verification calls than checking everything. A-Mem and Graphiti re-verify most candidates (0.83-0.86 checks per candidate), which limits their savings, yet publish 9% of upstream-failing objects; Mem0 relies on memory more and publishes 42%. Flushing every verdict on any failure is as safe as Tether but costs 32% more checks. The gain over fact memory holds with three open-weight backbones and against a whole-store window. These gains depend on capturing dependencies: when relations arrive in sessions apart from their verdicts, Tether's downstream unsafe publication rate rises to 9.4-22.1%, and a weak writer that misses edges loses safety in the same way.