Causal Episodic Memory for Feedback-Driven Agent Repair

📅 2026-08-06
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
This work addresses the tendency of large language model (LLM) agents to discard previously validated successful corrections during task repair, leading to redundant exploration. To mitigate this, the authors propose MERIT, a training-free agent that introduces, for the first time, a causality-aware, type-guided bipolar memory mechanism to explicitly distinguish between successful and failed repair trajectories. Built upon a frozen LLM, MERIT enables lightweight cross-query experience reuse through a deterministic failure classifier and a hybrid lexical-dense retriever. Evaluated on the Spider and BIRD datasets, MERIT improves execution accuracy from 66.34% to 69.79% and from 47.35% to 48.44%, respectively, demonstrating the efficacy of its causal memory architecture.
📝 Abstract
LLM agents that repair failures often discard successful corrections, forcing later episodes to rediscover similar solutions. We study whether finalized repair outcomes can improve subsequent Text-to-SQL episodes without parameter updates. We introduce MERIT, a training-free agent that maintains an online dual-polarity memory of oracle-verified corrections and observed unsuccessful directions. Under oracle-assisted benchmark feedback, only memories from earlier finalized episodes are eligible for retrieval. A deterministic classifier assigns a coarse failure type, which conditions a hybrid lexical-dense retriever before the frozen model generates each revision. Using Qwen2.5-7B-Instruct with identical initial predictions and repair budgets, MERIT improves execution accuracy over stateless iterative repair from \(66.34\%\) to \(69.79\%\) on Spider and from \(47.35\%\) to \(48.44\%\) on BIRD. Paired analyses provide clear evidence for the Spider gain but weaker evidence on BIRD. MERIT is not reliably separated from untyped dynamic retrieval on either benchmark, while Reflexion-style memory reaches \(51.24\%\) on BIRD at substantially higher inference cost. Ablations show that negative memory contributes modestly, the value of type conditioning and lexical--dense ranking is dataset dependent, and schema-local experience provides the most consistent benefit. These results clarify when causal cross-query memory improves repair and when broader memory representations remain preferable.
Problem

Research questions and friction points this paper is trying to address.

causal memory
agent repair
feedback-driven learning
Text-to-SQL
episodic memory
Innovation

Methods, ideas, or system contributions that make the work stand out.

causal episodic memory
feedback-driven repair
training-free agent
hybrid lexical-dense retrieval
Text-to-SQL
🔎 Similar Papers
No similar papers found.
K
Khang Nhat Hoang Vo
Mohamed bin Zayed University of Artificial Intelligence, Abu Dhabi, United Arab Emirates
T
Tam Minh Chu
Faculty of Computer Science and Engineering, Ho Chi Minh City University of Technology (HCMUT), VNU-HCM, Ho Chi Minh City, Vietnam
A
Anh Trac Duc Dinh
Faculty of Computer Science and Engineering, Ho Chi Minh City University of Technology (HCMUT), VNU-HCM, Ho Chi Minh City, Vietnam
T
Thuyen Vinh Ha Bui
Faculty of Computer Science and Engineering, Ho Chi Minh City University of Technology (HCMUT), VNU-HCM, Ho Chi Minh City, Vietnam
Tho Quan
Tho Quan
Unknown affiliation