MagicSelector: Joint Optimization for Agent Tool Selection via Counterfactual Decomposition and Progressive Reranking
HONOR Agentic Search TeamZhengzong ChenLei TangLijun LiuChuandi JiangFan YangKeyun ChuCZChu ZhaoShihao LiuMinghang LiBo LiangCan Wen +18
HONOR Agentic Search Team
Zhengzong Chen
Lei Tang
Lijun Liu
Chuandi Jiang
Fan Yang
Keyun Chu
CZChu Zhao
Shihao Liu
Minghang Li
Bo Liang
Can Wen
+30
MagicSelector jointly optimizes tool retrieval in agents by decomposing ambiguous user instructions into atomic subtasks, then reranking and truncating the candidate list. Its counterfactual decomposition quantifies the marginal causal gain of generating subtasks on retrieval ranking, imposing fine-grained structural supervision. A progressive reranking driven by self-distillation hard negative mining optimizes both point-wise and list-wise relevance. A dual semantic boundary-aware dynamic Top-K adaptively monitors reranking score cliffs and inter-tool semantic shifts to truncate the list, maximizing recall while filtering noise. Evaluated on MTDTool, a new task decomposition benchmark, MagicSelector outperforms state-of-the-art methods in retrieval accuracy, OOD generalization, and token efficiency.

arXiv ·
· July 20, 2026