MagicSelector: Joint Optimization for Agent Tool Selection via Counterfactual Decomposition and Progressive Reranking
Not on the map. Why?
Abstract (arXiv)
We present MagicSelector, a joint optimization framework integrating Counterfactual task decomposition, Progressive reranking, and Dynamic Top-K, designed to address the fundamental challenges of tool retrieval in agents. MagicSelector is a specialized framework capable of translating ambiguous user instructions into executable atomic subtasks and guiding high-precision tool retrieval, effectively mitigating redundant noise and severe context distraction in out-of-domain (OOD) scenarios. We empower MagicSelector with these capabilities through three key contributions: (1) a preference-guided counterfactual task decomposition mechanism that utilizes a counterfactual reward to quantify the marginal causal gain of decomposition on retrieval ranking, effectively imposing fine-grained structural supervision on logical coherence; (2) a progressive tool reranking method driven by self-distillation hard negative mining, which optimizes both point-wise and list-wise relevance to enhance fine-grained discrimination among highly similar tools; and (3) a dual semantic boundary-aware dynamic Top-K strategy that adaptively monitors reranking score cliffs and inter-tool semantic shifts to dynamically truncate the candidate list, maximizing relevant tool recall while filtering long-tail noise. Evaluated on MTDTool, the first task decomposition benchmark we constructed tailored for mobile multi-turn interactions with process-level annotations, MagicSelector yields promising performance. Extensive experiments demonstrate that MagicSelector significantly outperforms state-of-the-art methods in terms of tool retrieval accuracy, OOD generalization capability, and overall token efficiency, thereby demonstrating the effectiveness of our proposed framework.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 57 of its 66 references that are in the map. First posted on arXiv 20 Jul 2026.
Builds on
57 of 66 references.
References · 57
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2025Qwen3 Technical Reportcited by 8,195
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2023A Survey of Large Language Modelscited by 2,537
- 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 1,908
- 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIscited by 1,880
- 2023Gorilla: Large Language Model Connected with Massive APIscited by 1,302
- 2024τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domainscited by 1,280
38 more
- 2023AgentBench: Evaluating LLMs as Agentscited by 1,211
- 2025Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Modelscited by 1,175
- 2023GAIA: a benchmark for General AI Assistantscited by 1,084
- 2023Towards General Text Embeddings with Multi-stage Contrastive Learningcited by 705
- 2023A Comprehensive Overview of Large Language Modelscited by 639
- 2019Passage Re-ranking with BERTcited by 629
- 2023API-Bank: A Comprehensive Benchmark for Tool-Augmented LLMscited by 574
- 2025Group-in-Group Policy Optimization for LLM Agent Trainingcited by 442
- 2024Understanding the planning of LLM agents: A surveycited by 414
- 2020Document Ranking with a Pretrained Sequence-to-Sequence Modelcited by 373
- 2023Is ChatGPT Good at Search? Investigating Large Language Models as Re-Ranking Agentscited by 356
- 2024Retrieval-Augmented Generation for AI-Generated Content: A Surveycited by 352
- 2025ToolRL: Reward is All Tool Learning Needscited by 342
- 2023Large Language Models are Effective Text Rankers with Pairwise Ranking Promptingcited by 302
- 2023Improving Text Embeddings with Large Language Modelscited by 295
- 2023Large Language Models as Tool Makerscited by 293
- 2023MINT: Evaluating LLMs in Multi-turn Interaction with Tools and Language Feedbackcited by 293
- 2019Multi-Stage Document Ranking with BERTcited by 200
- 2025Survey on Evaluation of LLM-based Agentscited by 190
- 2022Improving Passage Retrieval with Zero-Shot Question Generationcited by 164
- 2023Query2doc: Query Expansion with Large Language Modelscited by 146
- 2023TaskBench: Benchmarking Large Language Models for Task Automationcited by 138
- 2024AnyTool: Self-Reflective, Hierarchical Agents for Large-Scale API Callscited by 121
- 2022Causal Machine Learning: A Survey and Open Problemscited by 107
- 2023CREATOR: Tool Creation for Disentangling Abstract and Concrete Reasoning of Large Language Modelscited by 90
- 2024Planning, Creation, Usage: Benchmarking LLMs for Comprehensive Tool Utilization in Real-World Complex Scenarioscited by 85
- 2024MMed-RAG: Versatile Multimodal RAG System for Medical Vision Language Modelscited by 84
- 2021The Expando-Mono-Duo Design Pattern for Text Ranking with Pretrained Sequence-to-Sequence Modelscited by 81
- 2023Zero-Shot Listwise Document Reranking with a Large Language Modelcited by 81
- 2024ToolGen: Unified Tool Retrieval and Calling via Generationcited by 72
- 2023RankVicuna: Zero-Shot Listwise Document Reranking with Open-Source Large Language Modelscited by 69
- 2023Query Expansion by Prompting Large Language Modelscited by 56
- 2018FIRST: A Framework for Optimizing Information Quality in Mobile Crowdsensing Systemscited by 50
- 2024Re-Invoke: Tool Invocation Rewriting for Zero-Shot Tool Retrievalcited by 50
- 2025LLM Collaboration With Multi-Agent Reinforcement Learningcited by 47
- 2025Retrieval Models Aren't Tool-Savvy: Benchmarking Tool Retrieval for Large Language Modelscited by 46
- 2024ListT5: Listwise Reranking with Fusion-in-Decoder Improves Zero-shot Retrievalcited by 29
- 2024Planning and Editing What You Retrieve for Enhanced Tool Learningcited by 21
50 most cited of 57 All 57 (JSON)
Built on by
Citing papers per year: 2026: 1.
1 paper.