# When Parallelism Pays Off: Cohesion-Aware Task Partitioning for Multi-Agent Coding

*Xu Yang, Lunyiu Nie, Ethan Chandra, Stanislav Gannutin, Fangru Lin, Swarat Chaudhuri*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/148594) · [OpenReview](https://openreview.net/forum?id=wYda526jWp) · [Open on the map](../papers.html#p148594)

Category: [LLM Agents, Evals & Benchmarks](../pcat/17.md) › [LLM Agent Orchestration](../pgroup/79.md) · Type: new method · Keywords: multi-agent LLM systems, graph partitioning, dependency-aware scheduling, software engineering, parallel coding, communication-computation trade-off

Areas: [Code & Coding Agents](../areas/codegen.md) › Code Verification › Software engineering agents; [AI Agents](../areas/agents.md) › Agent Systems and Interactions › Multi-Agent Coordination

## Summary
CoCoder is a cohesion-aware task partitioning approach that builds dependency graphs from static analysis, isolates hub files, partitions the graph via community detection, and schedules the partitions with a dependency-aware scheduler, achieving higher pass rates, faster wall-clock speed, and lower API costs on real-world coding tasks.

## Explained to a 5-year-old
Some smart computers work together to write code by splitting the job among them. They need to share information, which can be slow and use a lot of money. The researchers made a plan that looks at how the code files are connected to decide who should do what. This plan helps the computers finish faster and use less money. It makes teamwork for writing code better and cheaper.

## Explained to a 5-year-old, longer
Imagine you have a big puzzle and you ask several friends to help solve it at the same time. Each friend works on a part of the puzzle, but they sometimes need to look at each other's pieces. Looking at each other's pieces takes time and can be expensive if you have to ask for help a lot. The researchers noticed that some puzzle pieces are more connected than others, like when code files depend on each other. They created a new way to decide which friend should work on which piece based on those connections. This way, friends can work in groups that make sense together, reducing the need to constantly ask for help. The plan also makes sure that the most important pieces are worked on early. By organizing the work this way, the friends finish the puzzle faster. They also use less of the shared resource, like money or computer time. The new method was tested on many real coding projects and worked better than the old ways. It helped the friends get a higher success rate, finish quicker, and spend less. This idea can be used for many teamwork problems beyond coding.

## For a technical reader
The paper frames multi-agent coding as a graph partitioning problem to balance computation and communication. It constructs dependency graphs from static analysis, isolates hub files, partitions the graph via community detection, and schedules tasks with a dependency-aware scheduler. Experiments on 28 real-world coding benchmarks show up to 14% higher pass rates, 2.1× wall-clock speedup, and 35% lower API cost compared to sequential, file-based parallel, and Claude Code with Agent Teams baselines.

## Problem
Parallelizing tasks across multiple agents can improve efficiency, but inter-agent communication overhead can offset gains, making it challenging to balance decomposition benefits with dependency costs.

## Method
The approach builds dependency graphs from static analysis, isolates structural hub files, partitions the graph using community detection, and executes the partition with a dependency-aware scheduler to balance computation and communication.

## Results
The approach improves pass rates by up to 14.0% on CodeProjectEval, achieves up to 2.10× wall-clock speedup, and reduces API cost by up to 35% on dependency-dense projects, outperforming sequential, file-based parallel, and Claude Code with Agent Teams baselines.

## Contributions
The paper formalizes multi-agent orchestration as a graph partitioning problem that captures the communication-to-computation trade-off and proposes a dependency-aware partitioning and scheduling framework for parallel coding agents. It also provides an empirical evaluation on 28 real-world coding tasks demonstrating superior performance across multiple metrics.

## Practical relevance
The findings provide a design principle for building efficient multi-agent LLM systems, enabling faster and cheaper parallel coding in real-world software projects.

## Research questions this paper is counted under

- [How can multi-agent collaboration be scaled to improve reasoning efficiency while reducing communication overhead?](../q/321.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/148594)
