Paper 1 of 5
RATED: Reliability-Aware AI Agent Tool Retrieval via Execution Dynamics
Problem
Prior tool retrievers only optimize semantic relevance and ignore runtime tool failures; simply retraining the retriever on failure data would require costly model updates and cannot adapt quickly to dynamic outages.
Approach
RATED combines a frozen dual‑encoder (the DRAGON architecture) that is contrastively fine‑tuned for semantic matching with a lightweight contextual bandit module that re‑ranks the retrieved candidates using real‑time execution feedback. The dual‑encoder produces an initial candidate set based on query‑tool similarity. The bandit receives binary success/failure signals after each tool execution and updates a reliability estimate online. A hybrid fusion step merges the static semantic scores with the bandit reliability scores to produce the final ranking. This decouples semantic perception from reliability estimation and enables rapid adaptation without retraining the encoder.
Result
RATED improves mean reciprocal rank by 52.2% relative to the ToolLLM API retriever on real‑world queries, while reducing the fault selection rate from 86.2% to 2.9% under a 30% simulated API outage. The method adds less than 1 ms latency overhead (0.172 ms) compared with encode‑only inference and maintains high post‑failure success rates above 82%.
Why it matters
Researchers and engineers building AI agents that rely on external tools should consider RATED because it provides reliable tool selection with minimal latency overhead in environments where tool availability changes dynamically.
Method details
- DRAGON dual‑encoder is fine‑tuned on EcoAgent‑Syn for one epoch with batch size 8, learning rate unspecified, 1,000 warm‑up steps, mixed precision, max sequence length 256
- The contextual bandit uses diagonal covariance updates, 2,000 warm‑up pairs, and parameters , , as described in the paper
- EcoAgent benchmark comprises 5,172 real‑world tools and over 210,000 query‑tool pairs (synthetic and real)
- Baselines compared include TF‑IDF, BM25, OpenAI Ada‑002, BGE‑M3, GTE‑Large, E5‑Large‑v2, ToolLLM API Retriever, and several rerankers
- RATED (Full) attains MRR 0.845 on EcoAgent‑Syn and 0.618 on EcoAgent‑Real, outperforming all listed baselines
- Latency overhead of RATED (Full) is +0.172 ms over DRAGON encode‑only, yielding 3.395 ms average latency
Numbers
- MRR improvement, 52.2% relative, over ToolLLM API retriever
- Fault selection rate, reduced from 86.2% to 2.9%, under 30% failure injection
- Latency overhead, +0.172 ms, compared with DRAGON encode‑only
- RATED (Full) MRR, 0.845, on EcoAgent‑Syn
- RATED (Full) MRR, 0.618, on EcoAgent‑Real
- Recall@1, 0.804, for RATED (Full) on EcoAgent‑Syn
Limitations
The paper does not evaluate RATED in live agent deployments or on cold‑start tools added after training.
RATED achieves a 52.2% relative MRR improvement over the ToolLLM API retriever on real-world queriesFound in the source text, word for word.
Picked because: Introduces RATED, a concrete retrieval framework that adapts tool selection based on execution dynamics, providing released code for reliable LLM‑agent tool use.