mlsanityData to 26 Nov 2026

Learning How Much to Collaborate: Difficulty-Aware Topology Selection for Multi-Agent Code Generation

arXiv 2609.13890 ↗Submitted 12 Sep 2026cs.MA cs.SEcited by 1

Not on the map. Why?

Abstract (arXiv)

Multi-agent systems for code generation are deployed with a single communication topology, chosen once for every problem. This is the wrong granularity. Evaluating five topologies on 614 problems from APPS, HumanEval+ and LiveCodeBench, we find that the advantage of hierarchical collaboration over a single agent grows from 2.4 points of pass@1 on the easiest third of problems to 21.1 points on the hardest third, while its token cost stays about ten times higher. We propose the Difficulty-Aware Topology Selector (DATS), which predicts each topology's probability of solving a problem and selects the one maximising predicted success minus cost. Its predictor is a graph network that treats the five topologies as nodes of a connectivity order rather than independent labels, worth 1.7 points over a flat multi-label head. Because the cost penalty is a single scalar recalibrable without retraining, routers compare at equal spend: under this budget-matched protocol six cost-aware methods span 21.6 percentage points, and two baselines leading DATS fall behind once calibrated to it. Fixed at 40% of the always-hierarchical cost, DATS reaches 77.7% pass@1 against 73.6% (always-hierarchical) and 74.3% (strongest learned competitor), all eleven pairwise McNemar comparisons surviving Holm-Bonferroni correction. The 4.1-point gain holds across four backbones spanning fourteen points of capability, and replacing the 39 interpretable features with a graph network or a pretrained encoder shifts accuracy by at most 1.3 points, never significantly. A cross-domain study on 400 mathematical reasoning problems reproduces the effect, the gap widening from 2.5 to 20.9 points.

Key facts. Cited by 1 paper in the map (data through 26 Nov 2026). Submitted 12 Sep 2026.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 26 Nov)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2026AgentConductor: Topology Evolution for Multi-Agent Competition-Level Code Generation
  2. 2026Retrieval-Conditioned Topology Selection with Provable Budget Conservation for Multi-Agent Code Generation
  3. 2024MapCoder: Multi-Agent Code Generation for Competitive Problem Solving
  4. 2026When Parallelism Pays Off: Cohesion-Aware Task Partitioning for Multi-Agent Coding
  5. 2025Assemble Your Crew: Automatic Multi-agent Communication Topology Design via Autoregressive Graph Generation
  6. 2026When Agents Coordinate: Measuring Coordination in Multi-Agent AI Coding
  7. 2026Codebook Agent: Amortized Topology Design for LLM Multi-Agent Systems
  8. 2024Self-Organized Agents: A LLM Multi-Agent Framework toward Ultra Large-Scale Code Generation and Optimization