Learning to Recommend Multi-Agent Subgraphs from Calling Trees
Xinyuan Song, Liang Zhao
TL;DR
This work tackles the challenge of recommending executable multi-agent configurations from large agent marketplaces by recasting agent selection as a constrained decision problem. It introduces a two-stage framework that first constructs a learned-feasibility set from a historical calling-tree graph and then optimizes a unified scoring function within that set, supporting both single-agent (SARL) and agent-system (ASRL) recommendations. The approach is grounded in a unified calling-tree benchmark built from eight heterogeneous corpora, and it demonstrates that graph-level recommendations yield more coherent and reliable agent teams than agent-level methods, with near-perfect performance on large-scale datasets. The proposed method advances MAS orchestration by incorporating structured interaction effects, historical reliability, and coordination patterns into learning-to-rank, enabling scalable, interpretable, and more dependable multi-agent execution plans.
Abstract
Multi-agent systems (MAS) increasingly solve complex tasks by orchestrating agents and tools selected from rapidly growing marketplaces. As these marketplaces expand, many candidates become functionally overlapping, making selection not just a retrieval problem: beyond filtering relevant agents, an orchestrator must choose options that are reliable, compatible with the current execution context, and able to cooperate with other selected agents. Existing recommender systems -- largely built for item-level ranking from flat user-item logs -- do not directly address the structured, sequential, and interaction-dependent nature of agent orchestration. We address this gap by \textbf{formulating agent recommendation in MAS as a constrained decision problem} and introducing a generic \textbf{constrained recommendation framework} that first uses retrieval to build a compact candidate set conditioned on the current subtask and context, and then performs \textbf{utility optimization} within this feasible set using a learned scorer that accounts for relevance, reliability, and interaction effects. We ground both the formulation and learning signals in \textbf{historical calling trees}, which capture the execution structure of MAS (parent-child calls, branching dependencies, and local cooperation patterns) beyond what flat logs provide. The framework supports two complementary settings: \textbf{agent-level recommendation} (select the next agent/tool) and \textbf{system-level recommendation} (select a small, connected agent team/subgraph for coordinated execution). To enable systematic evaluation, we construct a unified calling-tree benchmark by normalizing invocation logs from eight heterogeneous multi-agent corpora into a shared structured representation.
