MEGA Hub

MagicSelector: Joint Optimization for Agent Tool Selection via Counterfactual Decomposition and Progressive Reranking

Authors

Do you know HONOR Agentic Search Team?You can claim authorship or link another user.Do you know Zhengzong Chen?You can claim authorship or link another user.Do you know Lei Tang?You can claim authorship or link another user.Do you know Lijun Liu?You can claim authorship or link another user.Do you know Chuandi Jiang?You can claim authorship or link another user.Do you know Fan Yang?You can claim authorship or link another user.Do you know Keyun Chu?You can claim authorship or link another user.Do you know Chu Zhao?You can claim authorship or link another user.Do you know Shihao Liu?You can claim authorship or link another user.Do you know Minghang Li?You can claim authorship or link another user.Do you know Bo Liang?You can claim authorship or link another user.Do you know Can Wen?You can claim authorship or link another user.Do you know Hailong Wu?You can claim authorship or link another user.Do you know Jingnan Ju?You can claim authorship or link another user.Do you know Mian Liu?You can claim authorship or link another user.Do you know Nengbin Zhang?You can claim authorship or link another user.Do you know Peiqiang Wang?You can claim authorship or link another user.Do you know Penghe Nie?You can claim authorship or link another user.Do you know Qinhui Gu?You can claim authorship or link another user.Do you know Sijia Lv?You can claim authorship or link another user.Do you know Siqi Chen?You can claim authorship or link another user.Do you know Wei Zhang?You can claim authorship or link another user.Do you know Yang Xu?You can claim authorship or link another user.Do you know Yuhao Qian?You can claim authorship or link another user.Do you know Yuxiang Zhang?You can claim authorship or link another user.Do you know Zeng Cheng?You can claim authorship or link another user.Do you know Zhen Wang?You can claim authorship or link another user.Do you know Zuan Chen?You can claim authorship or link another user.Do you know Yuanyuan Zhao?You can claim authorship or link another user.Do you know Fei Huang?You can claim authorship or link another user.

Abstract

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 preferenceguided 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.

Community

00