When Parallelism Pays Off: Cohesion-Aware Task Partitioning for Multi-Agent Coding
Multi-agent Large Language Model (LLM) systems offer a way to decompose complex tasks, such as coding, through parallelization and context isolation. However, adding agents in practice introduces inter-agent communication overhead, which incurs extra cost and can sometimes offset the efficiency gains. We formalize multi-agent orchestration as a graph partitioning problem that captures the communication-to-computation trade-off: task decomposition can shorten critical-path computation, but cross-agent dependencies require costly context transfer. We instantiate this view in repository-level software engineering and present Cohesion-aware Coder (Co-Coder), which builds dependency graphs from static analysis, 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, Co-Coder advances the Pareto-frontier over sequential and file-based parallel baselines as well as Claude Code with Agent Teams, lifting pass rate by up to 14.0%, achieving up to a 2.10x wall-clock speedup, and reducing API cost by up to 35%, with the largest gains on the most dependency-dense projects. Co-coder demonstrates how cohesion-aware orchestration can make parallel coding agents both theoretically grounded and practically efficient, suggesting a broader design principle for multi-agent systems.
Code (0)
등록된 구현이 없습니다.
Tasks
Community Detectiongraph partitioningSimilar Papers 제목 키워드 기반
SCPNet: Spatial-Channel Parallelism Network for Joint Holistic and Partial Person Re-Identification
Holistic person re-identification (ReID) has received extensive study in the past few years and achieves impressive progress. However, persons are often occluded by obstacles or other persons in practical scenarios, whic…
Person Re-IdentificationCoDoNMT: Modeling Cohesion Devices for Document-Level Neural Machine Translation
Cohesion devices, e.g., reiteration, coreference, are crucial for building cohesion links across sentences. In this paper, we propose a document-level neural machine translation framework, CoDoNMT, which models cohesion …
Machine TranslationNMTSentenceTranslationPredicting Group Cohesiveness in Images
The cohesiveness of a group is an essential indicator of the emotional state, structure and success of a group of people. We study the factors that influence the perception of group-level cohesion and propose methods for…
AttributeMultimodal Analysis of Cohesion in Multi-party Interactions
Group cohesion is an emergent phenomenon that describes the tendency of the group members{'} shared commitment to group tasks and the interpersonal attraction among them. This paper presents a multimodal analysis of grou…
HSAP: A Hierarchical Sequence-aware Parallelism for Hybrid-Context Generative Models
In this paper, we aim to combine the advantages of existing sequence parallelism paradigms and overcomes their drawbacks, the most serious of which is the incapability to correctly compute causal attention on the hybrid-…