Rethinking the Role of Tool Graph Memory in Multi-Turn Tool Use
Organizations: Hanyang University · Hunyuan, Tencent
Abstract
Large language model (LLM) agents solve complex tasks by calling external tools over multiple turns. Recent work has proposed tool graph memory, which stores past experience as tool transitions to guide subsequent selection. However, it remains unclear whether this component consistently improves agents' tool use or undermines it. We evaluate tool graph memory on nine models and two benchmarks, finding that it seldom improves significantly over baselines, and that its gains, where present, cost over twice the LLM calls. The memory's guidance is often incorrect, and random or no guidance retains most of the gain, implying that the benefit stems from extra computation rather than the memory itself. Moreover, even with the correct next tool suggested, many failures remain, such as giving up without a tool call. Storing the same experience instead as textual insights outperforms tool graph memory with almost no extra LLM calls. This suggests that memory serves better as a soft prior than as a prescription of the next tool, leading to a more effective and generalizable solution.
Figures & tables
| Model | ToolSandbox | BFCL-v4 | ||||||
|---|---|---|---|---|---|---|---|---|
| Base | ToolNet | H-EPM | Insight | Base | ToolNet | H-EPM | Insight | |
| Qwen3.5-2B | 0.420 | 0.428 | 0.436 | 0.488 + | 0.133 | 0.044 - | 0.138 | 0.165 |
| Qwen3-8B | 0.500 | 0.507 | 0.476 | 0.556 + | 0.171 | 0.129 | 0.179 | 0.242 + |
| Qwen3.6-35B-A3B | 0.626 | 0.608 | 0.670 | 0.674 | 0.181 | 0.108 - | 0.156 | 0.206 |
| gemma-4-E4B-it | 0.588 | 0.547 - | 0.554 | 0.620 | 0.221 | 0.094 - | 0.252 | 0.285 + |
| gemma-4-26B-A4B-it | 0.690 | 0.655 - | 0.705 | 0.705 | 0.566 | 0.369 - | 0.519 | 0.531 |
| Conditions / Models | Mistral-Small-3.2-24B | gpt-oss-20b | gemma-4-E4B-it |
|---|---|---|---|
| Base (only LLMs) | 0.545 | 0.579 | 0.588 |
| Tool graph memory (H-EPM) | 0.603 + (2.0 ) | 0.620 (1.8 ) | 0.554 (2.0 ) |
| Replacing the suggested tools of H-EPM | |||
| with random tools | 0.571 (2.3 ) | 0.663 + (2.7 ) | 0.553 (2.0 ) |
| with the correct tool (oracle) | 0.682 + (1.6 ) | 0.643 + (2.5 ) | 0.666 + (2.0 ) |
| Removing a component of H-EPM | |||
Appendix figures & tables20 assets
Supplementary material from the paper’s appendix.
Appendix
| Qwen3-8B | gemma-4-E4B-it | |||||
|---|---|---|---|---|---|---|
| Method | Score | Score | ||||
| Base | 0.462 | – | – | 0.575 | – | – |
| ToolNet | 0.483 | +0.021 | 0.364 | 0.573 | 0.002 | 0.920 |
| H-EPM | 0.496 | +0.034 | 0.277 | 0.559 | 0.016 | 0.573 |
| Insight | 0.527 | +0.065 | 0.023 | 0.583 | +0.009 | 0.740 |
| Model | |||
|---|---|---|---|
| ToolSandbox | |||
| Qwen3.5-2B | 77 | 25 | 3.1 |
| Qwen3-8B | 360 | 100 | 3.6 |
| Qwen3.6-35B-A3B | 146 | 5 | 29.2 |
| gemma-4-E4B-it | 261 | 15 | 17.4 |
| gemma-4-26B-A4B-it | 181 | 5 | 36.2 |
| Model | Base | ToolNet | H-EPM | Insight |
|---|---|---|---|---|
| GPT-4.1 | 0.724 | 0.709 | 0.725 | 0.729 |
| GPT-5.1 | 0.701 | 0.694 | 0.702 | 0.702 |
| Model | Base | ToolNet | ( -value) | H-EPM | ( -value) | Insight | ( -value) | |||
|---|---|---|---|---|---|---|---|---|---|---|
| ToolSandbox | ||||||||||
| Qwen3.5-2B | 0.420 ±0.003 | 0.428 ±0.008 | 0.008 | (0.399) | 0.436 ±0.015 | 0.016 | (0.469) | 0.488 ±0.009 | 0.068 | (0.015) |
| Qwen3-8B | 0.500 ±0.008 | 0.507 ±0.009 | 0.006 | (0.660) | 0.476 ±0.010 | 0.024 | (0.405) | 0.556 ±0.004 | 0.056 | (0.037) |
| Qwen3.6-35B-A3B | 0.626 ±0.001 | 0.608 ±0.002 | 0.018 | (0.256) | 0.670 ±0.005 | 0.044 | (0.055) | 0.674 ±0.006 | 0.048 | (0.056) |
| gemma-4-E4B-it | 0.588 ±0.012 | 0.547 ±0.008 | 0.041 | (0.004) | 0.554 ±0.012 | 0.034 | (0.209) | 0.620 ±0.003 | 0.032 | (0.267) |
| gemma-4-26B-A4B-it | 0.690 ±0.000 | 0.655 ±0.003 | 0.035 | (0.026) | 0.705 ±0.000 | 0.016 | (0.394) | 0.705 ±0.009 | 0.015 | (0.423) |
| Model | Base | ToolNet | H-EPM | Insight | ||||
|---|---|---|---|---|---|---|---|---|
| pass@3 | pass 3 | pass@3 | pass 3 | pass@3 | pass 3 | pass@3 | pass 3 | |
| ToolSandbox | ||||||||
| Qwen3.5-2B | 0.401 | 0.362 | 0.406 | 0.372 | 0.411 | 0.348 | 0.488 | 0.415 |
| Qwen3-8B | 0.546 | 0.425 | 0.527 | 0.435 | 0.527 | 0.449 | 0.594 | 0.493 |
| Qwen3.6-35B-A3B | 0.667 | 0.589 | 0.618 | 0.556 | 0.715 | 0.618 | 0.729 | 0.628 |
| gemma-4-E4B-it | 0.628 | 0.488 | 0.546 | 0.469 | 0.580 | 0.527 | 0.676 | 0.556 |
| Model | Base | ToolNet | H-EPM | Insight |
|---|---|---|---|---|
| ToolSandbox LLM calls | ||||
| Qwen3.5-2B | 5.42 | 5.04 (0.93) | 13.80 (2.55) | 6.66 (1.23) |
| Qwen3-8B | 4.78 | 4.79 (1.00) | 16.36 (3.42) | 5.56 (1.16) |
| Qwen3.6-35B-A3B | 5.75 | 6.03 (1.05) | 16.92 (2.94) | 5.74 (1.00) |
| gemma-4-E4B-it | 5.27 | 4.97 (0.94) | 13.00 (2.47) | 5.26 (1.00) |
| gemma-4-26B-A4B-it | 5.90 | 5.52 (0.93) | 15.47 (2.62) | 6.04 (1.02) |
| Mistral-Small-3.2-24B | gpt-oss-20b | gemma-4-E4B-it | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Condition | helped | both-fail | [95% CI] | LLM | helped | both-fail | [95% CI] | LLM | helped | both-fail | [95% CI] | LLM | |||
| H-EPM | 17/52 | 2.0 | 1.4 | 1.34 [0.57, 2.20] | 2.8 | 20/54 | 1.8 | 1.0 | 1.41 [0.89, 1.96] | 2.4 | 24/56 | 2.0 | 1.3 | 1.95 [0.82, 3.12] | 2.7 |
| with random tools | 19/50 | 2.3 | 1.4 | 1.84 [0.79, 2.97] | 1.3 | 27/47 | 2.7 | 0.9 | 2.66 [2.00, 3.34] | 1.3 | 26/54 | 2.0 | 1.6 | 1.09 [0.09, 2.08] | 1.3 |
| with the correct tool (oracle) | 43/30 | 1.6 | 1.2 | 1.30 [0.45, 2.20] | 1.2 | 29/41 | 2.5 | 0.7 | 2.69 [1.95, 3.45] | 1.5 | 40/39 | 2.0 | 1.8 | 0.77 [0.01, 1.51] | 1.2 |
| w/o suggestions | 27/45 | 1.7 | 1.1 | 1.63 [0.84, 2.48] | 1.2 | 23/52 | 2.7 | 0.9 | 2.55 [1.68, 3.51] | 1.2 | 25/55 | 1.9 | 1.3 | 1.25 [0.26, 2.27] | 1.2 |
| w/o summarization | 22/50 | 1.8 | 1.3 | 1.92 [0.93, 3.08] | 2.7 | 22/52 | 2.6 | 1.0 | 2.58 [1.82, 3.37] | 2.2 | 9/80 | 1.8 | 1.1 | 1.97 [1.34, 2.67] | 2.1 |
| (a) Components | |
| Summarization | H-EPM’s summarize_the_task tool and a system-prompt line asking the agent to call it |
| Suggestion line | Appended to the last message of the conversation (the latest user turn or tool result), listing successors of the last invoked tool, e.g., next tool suggestion: set_location_service_status, set_wifi_status |
| Instruction | “IMPORTANT: Do not give a final answer or give up until you have tried the available tools. If a tool call fails or returns nothing useful, try another available tool or first resolve what it depends on, then call it again. Keep calling tools until the task is fully resolved.” (system prompt) |
| Failure mode | Mistral-Small-3.2-24B | gpt-oss-20b | gemma-4-E4B-it | All |
|---|---|---|---|---|
| Call necessity | 24 | 38 | 19 | 81 |
| unnecessary call | 14 | 3 | 5 | 22 |
| missing call | 10 | 35 | 14 | 59 |
| Tool selection | 3 | 0 | 3 | 6 |
| Dependency | 3 | 1 | 3 | 7 |
| Argument | 19 | 9 | 16 | 44 |
| Model | Insight | + H-EPM | |
|---|---|---|---|
| block in system | block in last message | ||
| Mistral-Small-3.2-24B | 0.620 | 0.600 | 0.587 |
| gemma-4-E4B-it | 0.620 | 0.617 | 0.596 |
| Model | Insight | Insight + H-EPM |
| Qwen3.5-2B | 0.488 (6.66) | 0.528 (14.60) |
| Qwen3-8B | 0.556 (5.56) | 0.451 (16.29) |
| Qwen3.6-35B-A3B | 0.674 (5.74) | 0.670 (18.11) |
| gemma-4-E4B-it | 0.620 (5.26) | 0.617 (14.70) |
| gemma-4-26B-A4B-it | 0.705 (6.04) | 0.630 (12.95) |
| Ministral-3-8B | 0.539 (5.64) | 0.621 (18.37) |
| Model | H-EPM | Insight (succ.) | Insight |
|---|---|---|---|
| Qwen3.5-2B | 0.436 | 0.466 | 0.488 |
| Qwen3-8B | 0.476 | 0.499 | 0.556 |
| Qwen3.6-35B-A3B | 0.670 | 0.618 | 0.674 |
| gemma-4-E4B-it | 0.554 | 0.557 | 0.620 |
| gemma-4-26B-A4B-it | 0.705 | 0.691 | 0.705 |
| Ministral-3-8B | 0.672 | 0.622 | 0.539 |
| Model | ToolNet | H-EPM | ExpeL | Insight |
|---|---|---|---|---|
| Qwen3-8B | 0.507 | 0.476 | 0.552 | 0.556 |
| gemma-4-E4B-it | 0.547 | 0.554 | 0.599 | 0.620 |
LLM Tool Use
Large language model tool use studies how models select, call, and coordinate external tools to extend their reasoning and take actions.
See all 293 papers