When Parallelism Pays Off: Cohesion-Aware Task Partitioning for Multi-Agent Coding
Xu Yang ⋅ Lunyiu Nie ⋅ Ethan Chandra ⋅ Stanislav Gannutin ⋅ Fangru Lin ⋅ Swarat Chaudhuri
Abstract
LLM-based multi-agent systems decompose complex tasks such as coding through parallelization and context isolation, yet inter-agent communication overhead can offset the efficiency gains. We formalize multi-agent orchestration as a graph partitioning problem that captures the *communication-to-computation trade-off*: task decomposition shortens critical-path computation, but cross-agent dependencies require costly context transfer. We instantiate this view in repository-level software engineering with Cohesion-aware Coder (Co-Coder), which builds dependency graphs from code architecture design, isolates structural hub files, partitions the graph via community detection, and executes the partition with a dependency-aware scheduler. Across $28$ real-world tasks on DevEval and CodeProjectEval with two base models, Co-Coder advances the Pareto frontier over all baselines, with up to a $3.13\times$ speedup and a 42% cost reduction over the sequential version. Against Claude Code with Agent Teams, it raises pass rate by 9.8% to 17.8% while running up to $1.41\times$ faster at up to 22% lower cost.
Successful Page Load