mlsanityData to 14 Oct 2026

Learning from Failures: Heterogeneous Graph Memory for Small Language Model Tool-Using Agents

arXiv 2609.28003 ↗First posted 23 Sep 2026cs.LGcited by 0

On the map: LLM agents and tool use → Tool learning and function calling also fits: Agent memory systems

Abstract (arXiv)

Small and medium-sized language models offer cost-effective executors for tool-using agents, making them attractive for local and large-scale deployment. However, in long-horizon and stateful environments, they often make structural errors such as missing required observations, performing premature writes, repeating failed calls, and violating action preconditions. These errors can lead to incorrect state updates, policy violations, and costly or irreversible consequences, making reliable tool execution a critical deployment challenge. Existing fine-tuning approaches require substantial data and computation, while flat memory may retrieve failed actions without preserving their causal context or safety conditions. In this paper, we propose FRESH, a Failure-aware Retrieval framework over Experience-Structured Heterogeneous graphs, which transforms historical successes and failures into structured external experience for tool-using agents. By explicitly modeling the dependencies among tasks, actions, errors, repairs, and execution conditions, FRESH helps frozen language models reuse reliable strategies, avoid recurring failures, and make safer decisions in stateful tool interactions. Experiments on τ-Bench and AppWorld with multiple open-source models show that FRESH consistently improves task success and tool-use reliability over no-memory agents and representative memory-based baselines.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Tool learning and function calling, one of 16 directions in LLM agents and tool use. Builds on 10 of its 15 references that are in the map. First posted on arXiv 23 Sep 2026.

Builds on

10 of 15 references.

Closest ancestors · 3

Same direction, newest first

  1. 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIs31 Jul
  2. 2023Gorilla: Large Language Model Connected with Massive APIs24 May
  3. 2023Toolformer: Language Models Can Teach Themselves to Use Tools9 Feb

Other references · 7

  1. 2025Qwen3 Technical Reportcited by 8,820
  2. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  3. 2024τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domainscited by 1,402
  4. 2023ExpeL: LLM Agents Are Experiential Learnerscited by 876
  5. 2026Gemma 4 Technical Reportcited by 259
  6. 2024MobileLLM: Optimizing Sub-billion Parameter Language Models for On-Device Use Casescited by 223
  7. 2025Experience-Evolving Multi-Turn Tool-Use Agent with Hybrid Episodic-Procedural Memorycited by 6

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026ToolAtlas: Learning Once, Reusing Everywhere with Tool-Side Memory
  2. 2026STRATA: Self-Maintaining Structured Experience Graphs for Self-Evolving Language Agents
  3. 2025PALADIN: Self-Correcting Language Model Agents to Cure Tool-Failure Cases
  4. 2026ToolMisuseBench: An Offline Deterministic Benchmark for Tool Misuse and Recovery in Agentic Systems
  5. 2026Loud Failures, Quiet Failures: Fault Detection and Recovery in Tool-Using Language Model Agents
  6. 2026Graph-Based Personalized Memory for LLM Agents: Representation, Evolution, Retrieval, and Evaluation
  7. 2026EvoMemBench: Benchmarking Agent Memory from a Self-Evolving Perspective
  8. 2026Experience Memory Graph: One-Shot Error Correction for Agents