Preventing Error Cascades in Long-Horizon Multimodal Agents with Edge-Reliability Graph Memory

Saman Forouzandeh, Wei Peng, Xinghuo Yu, Mahdi JaliliNeurIPS 2026

TL;DR

When AI agents tackle multi-step tasks using external tools, a single early mistake in memory can snowball into a catastrophic failure—not because the agent's overall plan is bad, but because it keeps retrieving and trusting that bad memory. This paper introduces EPOCH, a memory architecture that learns to score the reliability of connections between observations rather than just the observations themselves. By trimming unreliable "reuse pathways" using only final task rewards, EPOCH halts error cascades upstream, boosting accuracy by over 12 percentage points on noisy, long-horizon tasks while cutting latency in half.

What Problem Does This Paper Address?

Picture an AI agent researching who founded Tesla. Early on, a search tool returns: "Elon Musk is the CEO of Tesla." That snippet is 100% factually true, so a standard memory filter will happily store it. Yet in the context of "Who founded Tesla?", it is actively misleading. Worse, because similarity-based retrieval creates a feedback loop, retrieving that snippet once makes it more salient—priming the agent to pull it again and again until early noise completely drowns out the real founders discovered later.

This is an execution failure driven by memory reuse. Three quirks of modern LLM agents pour fuel on this fire:

  1. Context dependence: Facts aren't universally "good" or "bad"; their usefulness depends on what comes next, meaning single-item memory scores fall short.
  2. U-shaped attention ("Lost in the Middle"): Transformers naturally fixate on the start and end of a prompt, letting early errors dominate reliable evidence found mid-journey.
  3. Clustered tool noise: Broken APIs or hallucinating vision modules tend to fail in streaks, easily slipping past item-by-item checks.

Existing fixes like post-hoc LLM verifiers burn massive compute and still struggle when noise is correlated. How do you stop bad or misleading evidence from propagating without hiring an expensive external referee?

Methods

Instead of treating memory as a flat list of scored items, EPOCH (Edge-Pathway Outcome-supervised Cascade-Halting memory) models episodic memory as a sparse, directed graph moving forward in time. Observations (visual, text, and structured data) are nodes, and directed edges $(i \to j)$ represent reuse pathways—capturing how retrieving observation $i$ primes the retrieval of observation $j$ later on.

Overview of the EPOCH architecture showing multimodal encoding, the Temporal Graph Transformer, quality-aware retrieval, and post-trajectory outcome supervision.

Here is how EPOCH blends standard tools with novel mechanics:

  • Multimodal & Temporal Graph Transformer (TGT): Observations are embedded via standard frozen encoders (CLIP, RoBERTa, GCN) and summed. A novel causal TGT processes the sequence to predict both whether an edge should exist and its edge quality score ($q_{ij} \in [0,1]$). Because edges share context in the TGT, clusters of errors from a flaky tool can be suppressed together. It also adds a learned positional bias correction to rescue mid-trajectory memories from U-shaped attention blind spots.
  • Outcome-Supervised Quality Learning: No human labels or external LLM verifiers are needed. After a trajectory finishes, EPOCH uses the final task return (via PPO reinforcement learning) to supervise edge quality. To keep the model from lazily rewarding edges just because they are frequent or semantically similar, the target subtracts rank-normalized frequency and cosine similarity confounders.
  • Decoupled Gradient Flow: A clever stop-gradient prevents the edge-selection policy loss from directly altering the quality scores, ensuring the model doesn't "cheat" its loss function by driving all quality weights to zero.

Datasets

The authors evaluate EPOCH across 11 existing multimodal benchmarks (no newly invented datasets, though five are adapted with a disclosed multi-step wrapper to test long horizons):

  • Native long-horizon search (18–31% tool error): MMSearch and HR-MMSearch.
  • Protocol-wrapped knowledge-seeking tasks (noisy): FVQA, InfoSeek, SimpleVQA, LiveVQA, and Math-Search.
  • Clean visual perception controls (<5% tool error, 0–1 tool calls): V*Bench, HR-Bench (4K/8K), and MME-RealWorld.
  • Warm-up training: Uses synthetic trajectories with controlled noise injection (factual swaps, temporal drift, and visual corruption).

Key Insights and Ideas

  • Reliability lives on edges, not nodes: Scoring transitions $(i \to j)$ solves the "Elon Musk CEO" trap. The authors back this up mathematically—proving node-level scoring is fundamentally bottlenecked by cross-context error variance—and empirically, showing EPOCH beats an otherwise-identical node-scoring ablation by +5.2 points across noisy tasks.
  • Asymptotic separation over long horizons: Under uniform retrieval, cumulative cascade error grows logarithmically ($\Theta(\log T)$) with trajectory length $T$. With quality-weighted edges (assuming a positive suppression constant, which they verify empirically), error stays bounded ($O(1)$)—validated all the way out to 500 steps.
  • Reward correlation captures real reliability: Even though EPOCH only sees end-of-episode rewards, its learned $q_{ij}$ scores align remarkably well with human-annotated edge reliability (0.94 ROC-AUC) and brute-force counterfactual ablation of 21,743 individual edges (Spearman $\rho = 0.71$, compared to $0.54$ for node-level scores).

Key Results

Across controlled comparisons sharing the exact same Qwen2.5-VL-7B backbone and tool budget:

  • Big wins in noisy, long-horizon regimes: On native search tasks, EPOCH reaches 82.6% on MMSearch and 59.6% on HR-MMSearch—beating the post-hoc verification baseline (MARS+LV) by +11.4 and +14.0 points, and the strongest memory baseline (MemoBrain) by +10.6 and +12.5 points. Across all seven noisy tasks, EPOCH averages 77.6% vs. 66.8% for MARS+LV.
  • Faster and leaner: On HR-MMSearch, EPOCH runs at 1.22 seconds/step compared to MARS+LV's 2.38 seconds/step (+14.0% accuracy at 51% lower latency).
  • Surgical retrieval fix: Failure-mode analysis reveals perception and reasoning errors stay roughly flat across methods, while EPOCH slashes retrieval-induced failures from 19% (MARS+LV) and 14% (node-level) down to 8%.
  • Deep-reuse resilience: When evidence is reused 9+ times, baseline accuracies crater by over 30 points; EPOCH drops by only 8.7–11.1 points. On clean visual controls, it hits 80.7%, statistically matching top baselines.
Controlled comparison of EPOCH against external baselines and a matched node-level ablation across 11 noisy search and clean visual benchmarks.

Limitations and Future Work

  • Correlational, not causal: Because supervision comes from trajectory returns, $q_{ij}$ is policy-conditioned and correlational—it does not formally identify true causal reliability.
  • Slightly net-negative on clean, short tasks: When tool error is below ~7% and horizons are under ~30 steps, quality filtering is unnecessary overhead (disabling $q_{ij}$ beats full EPOCH by 0.7 points on V*Bench). The authors explicitly map this boundary and recommend toggling off quality weights in clean, short regimes.
  • Benchmark scope: Only two benchmarks are natively long-horizon multimodal search; scaling up to a third native benchmark under a unified budget is left for future work. Additionally, tasks where errors propagate via deterministic math rather than semantic retrieval (like Math-Search) see smaller gains (+6.6 points).

Summary updated

Abstract

Long-horizon tool-augmented agents suffer sharp degradation as trajectories grow: small tool errors are stored, repeatedly reused, and amplified into cascading failures. Existing approaches rely on post-hoc verification, item-level memory scoring, or executive context management, but do not directly control how unreliable evidence propagates through reuse. We propose \textbf{EPOCH} (Edge-Pathway Outcome-supervised Cascade-Halting memory), which mitigates cascades by learning an outcome-correlated, \emph{policy-conditioned} utility on reuse pathways connecting observations over time, instantiated as a sparse memory graph with quality-weighted edges, a Temporal Graph Transformer over edge utilities, and a learned mid-context correction. \textbf{We show that quality-weighted and uniform retrieval are asymptotically separated in horizon length} whenever a single suppression constant is positive: the ratio of cumulative cascade error then diverges unboundedly as $T \to \infty$. We treat this as a conditional result and motivation, not a complete explanation of the gains, and verify the condition empirically rather than assume it. We validate this prediction at trajectory lengths up to $T=500$ and additionally establish a quantitative edge-vs-node separation in terms of an empirically measurable cross-context error variance. Because outcome supervision is correlational by construction, we do not claim the learned scores recover causal pathway reliability; we validate them on two complementary axes (held-out edge-ablation sensitivity under a fixed trajectory: $\rho=0.71$, $n=21{,}743$; human annotation: ROC-AUC~$=0.94$, ECE~$=0.041$, $n=6{,}000$). Across 11 multi-modal benchmarks spanning native long-horizon search, wrapped knowledge-seeking tasks, and clean perception controls, EPOCH consistently outperforms the strongest reliability-aware and memory-augmented baselines in noisy long-horizon regimes while remaining on par on clean perception controls---quality-aware filtering does not collapse on clean data without claiming it helps there. The implementation of our method is publicly available at \href{https://github.com/S-Forouzandeh/EPOCH_NeurIPS-2026} {\textcolor{blue}{\underline{EPOCH}}}.
BibTeX
@inproceedings{forouzandeh2026preventing,
  author = {Saman Forouzandeh and Wei Peng and Xinghuo Yu and Mahdi Jalili},
  title = {{Preventing Error Cascades in Long-Horizon Multimodal Agents with Edge-Reliability Graph Memory}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=oSvwY9Jnn1},
}
Figure