Skip to content

Towards Robust Tool Use in Agents via Experience-Driven Adaptive Guidance

Language: English (default) / 中文

Paper: arXiv:2608.03403 Code: https://github.com/WangCan1178/ExpG

ExpG challenges and overview

Overview

This folder archives ExpG, a tool-use enhancement built on Agentscope ReMe. ExpG mines, distills, and reuses experience from historical tool calls to provide capability boundaries and best-practice guidance, which helps agents:

  • Select and invoke tools more robustly under dynamic or noisy environments;
  • Let smaller models with guidance outperform larger, memoryless baselines;
  • Improve consistently across tool selection, tool calling, and response generation.

How ReMe is used: Start the Tool Memory service; historical tool calls are written and evaluated via add_tool_call_result, distilled into tool-level guidance via summary_tool_memory, then retrieved and injected into later reasoning via retrieve_tool_memory. ReMe provides the vector store and service APIs; the acquisition / distillation / reuse strategy is implemented by ExpG. Full implementation and experiments are in WangCan1178/ExpG.


ExpG Mechanism

ExpG treats tool invocations as learnable experience and runs a three-stage pipeline:

  1. Experience Acquisition

    • Analyze invocation quality from historical trajectories (success/failure, cost, latency, etc.);
    • Build structured experience units per tool, recording context, parameter patterns, and outcomes.
  2. Experience Distillation

    • Filter noisy or unhelpful experiences and keep representative patterns;
    • Aggregate by equivalence classes to cover common and rare failure modes;
    • Summarize with an LLM into generalizable textual guidance.
  3. Experience Reuse

    • Retrieve relevant experience / guidance for future tasks;
    • Inject guidance into tool selection, argument generation, and response synthesis;
    • Improve stability under dynamic environments and imperfect feedback.

Main Results

Performance comparison (%) across MetaTool, API-Bank, and BFCL-V3. Bold indicates the best results within each model.

ModelMethodMetaTool Pass@1MetaTool Avg@3MetaTool Pass@3API-Bank Pass@1API-Bank Avg@3API-Bank Pass@3BFCL-V3 Pass@1BFCL-V3 Avg@3BFCL-V3 Pass@3Total Pass@1Total Avg@3Total Pass@3
GPT-5 nanoNo Method72.6272.7678.4982.9683.4686.9753.8053.0060.9570.8270.6276.63
GPT-5 nanoFew-shot74.1275.1182.3283.7183.9687.2256.1855.2461.3972.3672.6579.28
GPT-5 nanoDRAFT73.9473.0478.9784.2183.4687.2257.2757.2762.2672.5271.5877.23
GPT-5 nanoMem074.9676.1382.9284.9685.2187.2260.9561.6165.0873.9874.6780.35
GPT-5 nanoExpG81.6782.0784.6086.7286.5587.2264.4363.9966.3879.3279.2281.69
DeepSeek-V3No Method83.1082.9484.6684.7184.3885.4658.7959.6565.9478.9278.6681.37
DeepSeek-V3Few-shot82.7483.9086.2885.2184.6386.2260.5260.3067.9079.0879.4582.92
DeepSeek-V3DRAFT80.2380.7982.4484.9685.6386.4762.2661.6168.5577.7077.8080.54
DeepSeek-V3Mem083.8884.5686.4085.4685.5586.4765.0865.1568.3380.7080.9183.12
DeepSeek-V3ExpG85.2685.3886.5287.7287.3987.9769.4169.9272.0282.7682.6184.11
Qwen3-8BNo Method76.5176.9777.7183.9683.8884.2158.7958.2860.3074.4674.4175.56
Qwen3-8BFew-shot79.9379.8382.9283.7182.6284.9660.0959.2961.3976.9176.2779.32
Qwen3-8BDRAFT78.1977.3377.8985.7184.9685.4660.7460.3062.9176.2075.1876.35
Qwen3-8BMem075.0775.4782.3886.2286.0586.4763.3464.9366.1674.6974.9880.07
Qwen3-8BExpG83.5284.8885.0886.4787.8987.9767.4666.9668.3381.0681.8282.48
Qwen3-32BNo Method80.0579.4380.1784.7184.8885.2165.1565.0866.1678.0577.5578.41
Qwen3-32BExpG84.6885.0286.2886.9787.3087.7270.7271.0173.3282.4882.5684.14
Qwen3-235BNo Method78.2579.2380.2985.4685.4685.7171.3771.1573.5478.1378.4979.91
Qwen3-235BExpG86.3486.7086.9487.4786.9788.2279.6178.5280.0485.2984.9885.69

Reference Code

PathRole
tool_memory.pyHTTP client for official ReMe Tool Memory APIs (add_tool_call_result / summary_tool_memory / retrieve_tool_memory)
parse_tool_call_result_prompt.yamlPrompt for multi-aspect evaluation of each tool call
summary_tool_memory_prompt.yamlPrompt for summarizing tool call history into guidance
tool_memory_flows.yamlTool Memory flow / op config excerpt

These are reference snippets. For the full runnable codebase, see WangCan1178/ExpG.


Citation

bibtex
@misc{wang2026expg,
  title         = {Towards Robust Tool Use in Agents via Experience-Driven Adaptive Guidance},
  author        = {Can Wang and Haoran Chen and Li Yu and Ding Hao and Bohai Zhao and Zhaoyang Liu and Zhiying Tu},
  year          = {2026},
  eprint        = {2608.03403},
  archivePrefix = {arXiv},
  primaryClass  = {cs.AI},
  url           = {https://arxiv.org/abs/2608.03403},
  howpublished  = {\url{https://github.com/WangCan1178/ExpG}}
}

Released under the Apache-2.0 License.