Skip to main content
QUICK REVIEW

[Paper Review] Learning to Recommend Multi-Agent Subgraphs from Calling Trees

Xinyuan Song, Liang Zhao|arXiv (Cornell University)|Jan 29, 2026
Recommender Systems and TechniquesComputer Science0 citations
TL;DR

The paper formulates agent and agent-system recommendation in multi-agent systems as a constrained two-stage problem, using retrieval to form feasible candidate sets from historical calling trees and learning-to-rank to optimize within that set, supporting both single-agent and subgraph (system) recommendations.

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 extbf{formulating agent recommendation in MAS as a constrained decision problem} and introducing a generic extbf{constrained recommendation framework} that first uses retrieval to build a compact candidate set conditioned on the current subtask and context, and then performs extbf{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 extbf{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: extbf{agent-level recommendation} (select the next agent/tool) and extbf{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.

Motivation & Objective

  • Motivate the need to move beyond item-level retrieval in large, overlapping agent marketplaces where compatibility and cooperation matter.
  • Propose a constrained two-stage framework: (i) feasibility construction via retrieval, (ii) utility optimization via a learned scorer.
  • Ground the approach in historical calling trees and support both agent-level and system-level recommendations.
  • Provide a unified, normalized calling-tree dataset spanning eight corpora for consistent evaluation.
  • Demonstrate improved stability, coherence, and end-to-end execution quality over baselines.

Proposed method

  • Two-stage constrained recommendation framework: first construct a feasible set of candidates, then optimize within that set using a learned scorer.
  • SARL: Single-Agent Recommendation Learning uses retrieval to form A_feasible(t) and a reranker with a shared scoring function s_theta(q_t, a).
  • ASRL: Agent-System Recommendation Learning extends to subgraphs g, retrieving feasible agent systems G_feasible(t) and ranking them with a system-level scorer s_theta(q, g).
  • Scoring model integrates features: relation to the task query, agent/system capabilities, graph-structure relations, historical reliability, and context of the candidate slate.
  • Special linear instantiations of the scorer using Phi vectors to enable interpretable linear learning-to-rank: s_theta(q, a) = w^T Phi(q, a) and similarly for s_theta(q, g).
  • Token complexity analysis justifies the two-stage design as token-budget-friendly compared to naive ranking.
Figure 1 : Agent marketplace and agent-system growth trends in 2025. (a) Number of marketplace agents per quarter. (b) Number of marketplace categories per quarter. (c) Average number of agents per system per quarter. All panels report quarterly snapshots in 2025 (Q1–Q4).
Figure 1 : Agent marketplace and agent-system growth trends in 2025. (a) Number of marketplace agents per quarter. (b) Number of marketplace categories per quarter. (c) Average number of agents per system per quarter. All panels report quarterly snapshots in 2025 (Q1–Q4).

Experimental results

Research questions

  • RQ1Can constrained, hierarchical recommendation improve the selection of executable agents and agent subgraphs in large, overlapping marketplaces?
  • RQ2How do retrieval-based feasibility construction and learned utility ranking interact to improve stability, coordination, and end-to-end execution quality in MAS?
  • RQ3Does the framework generalize to both agent-level and system-level (subgraph) recommendations using a common scoring backbone?
  • RQ4What unified dataset can support fair evaluation across diverse multi-agent corpora for agent and agent-system recommendation?
  • RQ5What are the practical token-budget considerations when deploying LLM-based retrieval and ranking in large-scale MAS orchestration?

Key findings

  • The constrained two-stage framework consistently yields higher-quality agent selections and more coherent agent systems than strong baselines across multiple datasets.
  • SARL (single-agent) outperforms direct retrieval and cosine-based ranking on several positive datasets, with notable gains when the retrieval stage provides a strong candidate set.
  • ASRL (agent-system) achieves the strongest performance, reaching 100% Top-1 on all six moderate datasets, outperforming single-stage and cosine-based baselines.
  • A unified calling-tree dataset is constructed by normalizing eight heterogeneous corpora, enabling consistent evaluation of both agent-level and system-level settings.
  • Retrieval success rates (Stage 1) remain high for both SARL and ASRL across datasets, and the two-stage approach efficiently scales within token budgets.
Figure 2 : Overview of our two-stage constrained recommendation framework for multi-agent orchestration. (1) Inputs & data foundation: a task query, a unified calling-tree dataset, and a global agent network for assisting calling-tree construction. (2) Core methodology (SARL/ASRL): retrieve feasible
Figure 2 : Overview of our two-stage constrained recommendation framework for multi-agent orchestration. (1) Inputs & data foundation: a task query, a unified calling-tree dataset, and a global agent network for assisting calling-tree construction. (2) Core methodology (SARL/ASRL): retrieve feasible

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.