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 2026
TL;DR. We cast multi-agent LLM orchestration as a graph partitioning problem that trades off computation against communication, and show that cohesion-aware task partitioning makes parallel coding agents faster, cheaper, and more accurate.
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 real-world tasks on DevEval and CodeProjectEval with two base models, Co-Coder advances the Pareto frontier over all baselines, with up to a 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 faster at up to 22% lower cost.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:49 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
(a) The paper formalizes multi-agent LLM orchestration as a graph-partitioning problem that trades off critical-path computation W(P) against cross-agent communication C(P), minimizing T(P) = W(P) + alpha*C(P). It instantiates this for repository-level coding as CoCoder: build a file-level dependency graph from an LLM-generated Repository Interface Blueprint, isolate structural hub files, partition the rest via Infomap community detection, lift latent parallelism, and execute with a dependency-aware list scheduler and a partition-local repair loop. Across 28 projects on DevEval and CodeProjectEval, CoCoder Pareto-dominates sequential, file-parallel, and Claude Code with Agent Teams baselines, with the largest gains on the most dependency-dense projects (up to +14% pass rate, 2.10x speedup, and 35% lower cost on CodeProjectEval).
(b) The paper proposes a new formulation of the multi-agent coding problem: casting orchestration as a communication-to-computation partitioning objective, and connecting it to classical distributed-computing scheduling, is a clean and generative way to reason about when parallel agents actually help. The empirical study is solid, spanning two benchmarks with a genuine external baseline, and the key result that CoCoder's advantage grows with a project's dependency density holds consistently across projects and is supported by an actual correlation, not just anecdotes.
(c) Main weaknesses:
- The cost model that underpins the "theoretically grounded" claim is not validated.
- The method has several parts (isolating hub files, splitting off independent files to run in parallel, and a test-and-fix loop), but the paper provides no ablation study for them, so it is unclear which parts actually drive the gains.
- Evaluation is on a single model (gpt-5-mini) and a single language (Python).
- The pipeline depends on an LLM-generated Repository Interface Blueprint whose quality is not assessed.
(d) The paper is close to the bar, and a strong response on a few points would firm up an accept.
- some validation that the cost-model proxies are realistic;
- a component-level ablation study;
- at least one additional model, and ideally a non-Python repository, to support the generality claim;
- an assessment of the Repository Interface Blueprint's quality and how sensitive the downstream partitioning is to errors in it, since the whole graph derives from it.
Updated review
(e) The authors responded to all four points in my initial meta-review with new experiments, and the response was thorough for the time available.
The authors also supplied an anonymized implementation repository confidentially, which answers aZvo's reproducibility concern.
Reviewers increased their scores. xW3L raised to accept, finding the additional experiments addressed their main concerns. aZvo held at borderline accept, and asked that the ablation appear as a full numerical table in the revision rather than as figures quoted in text. P49m raised from below the bar to borderline reject.
(f) The formulation the paper proposes for multi-agent coding is novel and worth publishing. Concerns raised by reviewers were largely addressed in the rebuttal period.
Final justification
See updated meta-review above.
- Final justification
- See updated meta-review above.
Read meta-review
Meta-review
(a) The paper formalizes multi-agent LLM orchestration as a graph-partitioning problem that trades off critical-path computation W(P) against cross-agent communication C(P), minimizing T(P) = W(P) + alpha*C(P). It instantiates this for repository-level coding as CoCoder: build a file-level dependency graph from an LLM-generated Repository Interface Blueprint, isolate structural hub files, partition the rest via Infomap community detection, lift latent parallelism, and execute with a dependency-aware list scheduler and a partition-local repair loop. Across 28 projects on DevEval and CodeProjectEval, CoCoder Pareto-dominates sequential, file-parallel, and Claude Code with Agent Teams baselines, with the largest gains on the most dependency-dense projects (up to +14% pass rate, 2.10x speedup, and 35% lower cost on CodeProjectEval).
(b) The paper proposes a new formulation of the multi-agent coding problem: casting orchestration as a communication-to-computation partitioning objective, and connecting it to classical distributed-computing scheduling, is a clean and generative way to reason about when parallel agents actually help. The empirical study is solid, spanning two benchmarks with a genuine external baseline, and the key result that CoCoder's advantage grows with a project's dependency density holds consistently across projects and is supported by an actual correlation, not just anecdotes.
(c) Main weaknesses:
- The cost model that underpins the "theoretically grounded" claim is not validated.
- The method has several parts (isolating hub files, splitting off independent files to run in parallel, and a test-and-fix loop), but the paper provides no ablation study for them, so it is unclear which parts actually drive the gains.
- Evaluation is on a single model (gpt-5-mini) and a single language (Python).
- The pipeline depends on an LLM-generated Repository Interface Blueprint whose quality is not assessed.
(d) The paper is close to the bar, and a strong response on a few points would firm up an accept.
- some validation that the cost-model proxies are realistic;
- a component-level ablation study;
- at least one additional model, and ideally a non-Python repository, to support the generality claim;
- an assessment of the Repository Interface Blueprint's quality and how sensitive the downstream partitioning is to errors in it, since the whole graph derives from it.
Updated review
(e) The authors responded to all four points in my initial meta-review with new experiments, and the response was thorough for the time available.
The authors also supplied an anonymized implementation repository confidentially, which answers aZvo's reproducibility concern.
Reviewers increased their scores. xW3L raised to accept, finding the additional experiments addressed their main concerns. aZvo held at borderline accept, and asked that the ablation appear as a full numerical table in the revision rather than as figures quoted in text. P49m raised from below the bar to borderline reject.
(f) The formulation the paper proposes for multi-agent coding is novel and worth publishing. Concerns raised by reviewers were largely addressed in the rebuttal period.
2 comments
3 (continued): non-Python repositories
CoCoder also leads on non-Python projects, with the highest pass rate and the lowest latency and cost (Avg row), consistent with the conclusions on Python. CoCoder itself is language-agnostic: partitioning and scheduling operate on the RIB and rely on no Python-specific features; the only language-dependent part of the system is the test execution script. To test this, within the rebuttal time frame we added experiments on one C++ and one Java project from the non-Python subset of DevEval's upstream benchmark (dense cross-file dependencies, ≥8 source files; gpt-5-mini, means over 3 runs). The revision will add the full results table to the paper.
| Repo | Lang | #Files | #Tests | Sequential | File-based Parallel | CC Agent Teams | CoCoder, ours |
|---|---|---|---|---|---|---|---|
| logistic_system | C++ | 8 | 17 | 10.0/1381s/$0.60 | 8.0/498s/$0.88 | 8.0/510s/$0.55 | 11.7/471s/$0.42 |
| redis-cache | Java | 10 | 17 | 7.7/1827s/$0.56 | 14.0/1138s/$1.01 | 7.7/750s/$0.55 | 13.7/668s/$0.51 |
| Avg | 52.1%/1.00x/1.00x | 64.7%/0.49x/1.64x | 46.2%/0.39x/0.95x | 74.7%/0.35x/0.81x |
Each cell: #Pass/Time/Cost; Avg row: pass rate and ratios vs Sequential.
4. "an assessment of the Repository Interface Blueprint's quality and how sensitive the downstream partitioning is to errors in it, since the whole graph derives from it"
Comparing the RIBs against the reference implementations from the benchmarks (28 projects, static analysis, no LLM), the RIBs cover nearly all files to be generated (file coverage 0.994, occasionally omit empty init files), and only a small number of errors remain, falling into file dependency description errors and interface description errors (class/function/constant names, etc.); our method is robust to these errors, as shown below.
| Type | Precision | Recall |
|---|---|---|
| File dependency descriptions | 0.982 | 0.910 |
| Interface descriptions (class/function/constant names, etc.) | 0.869 | 0.843 |
File dependency description errors are dominated by omissions (about 9%); interface description errors include both omissions and redundant descriptions (roughly 13-15%), but this is an upper bound on the true error rate (legitimate design differences such as naming and file placement are also counted as errors).
File dependency description errors mainly affect our partitioning stage, but at the measured error rate the partitions remain strongly consistent. Starting from a ground-truth RIB calibrated against the reference implementations from the benchmarks, we inject the measured dominant error form (omission) by deleting file dependencies at controlled rates, recompute the partition, and compare it against the partition of the ground-truth RIB, reporting ARI (1=identical, ≥0.75 strongly consistent (same skeleton, local adjustments), <0.5 close to two different partitions). The measured omission rate of about 9% corresponds to the 5%-10% deletion levels, where projects' partitions remain strongly consistent; only when errors are amplified to two to four times the measured rate does the partition degrade markedly:
| Deletion rate | 5% | 10% | 20% | 40% |
|---|---|---|---|---|
| Mean ARI | 0.898 | 0.848 | 0.751 | 0.515 |
Under injected interface description errors, CoCoder's pass rate slightly fluctuates but its advantage persists, still outperforming all baselines. We perturb the interface descriptions (deletion, corruption) based on the RIB at different rates (beyond the measured error rate), and rerun CoCoder end-to-end (restricted to CodeProjectEval due to time constraints; 3 runs). Note that the RIB is not the only source of information: the original documents (PRD, UML) remain in the workspace and agents consult them directly; interface errors surface as test failures and are recovered by the repair loop, at the cost of extra repair rounds and tokens rather than a ceiling on correctness.
| Original | +5% errors | +10% errors | +15% errors | Sequential | File-based Parallel | CC Agent Teams | |
|---|---|---|---|---|---|---|---|
| Pass rate | 34.1% | 30.2% | 31.3% | 28.5% | 20.1% | 23.3% | 16.3% |
Baseline numbers from Table 2.
The RIB quality-gating LLM judge is reliable, based on a score-quality correlation experiment and human validation: on RIBs of varying quality (injecting errors at different rates), its scores correlate with the true quality (within-project average , N=100), and independent blind human evaluation shows 92.3% agreement with its binary quality-gate decisions (N=50).
Beyond these four points, our individual responses also include a sensitivity analysis of every hyperparameter in Table 3, raw token-count breakdowns, and further clarifications. We hope this addresses the main weaknesses, and we are happy to provide further details or results during the discussion phase.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 4/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper presents CoCoder, a multi-agent system for coding. CoCoder breaks the coding into several steps. First, it reads the requirement, and draws a DAG for each file and their dependent relations. Later on, it splits the DAG into several cohesion-aware subtasks with a goal to balance the inter-group communication and intra-group complexity. Finally, it runs the agents on the subtasks and let them troubleshoot their own part if necessary. The evaluation reveals that CoCoder is able to achieve low cost, low overhead, and high pass rate.
Strengths and weaknesses
Strengths
- Interesting problem. Vibe coding now requires to be cheap and fast.
- Sound formulation. The method to formulate cohesion-aware groups is mathematically sound.
- Good performance. Evaluation results reveal good performance.
Weaknesses
- The author mostly choose non open-end datasets, where the file structure is given, which might limit the usefulness.
- The author uses InfoMap and many heuristic rules to group the files, giving limited configuration options, which, as the author acknowledges, may degrade to the sequential in some circumstances.
- Lack of sensitivity studies of the hyper-parameter choice. E.g., how the choice of (or, say ) may affect the performance of CoCoder.
- The author does not provide details on how the symbol vector of each file is formed.
- Code is not provided in the review process, which might limit the reproducibility.
Questions
- Does CoCoder involve the check-and-fix process as detailed in L219-244. If yes, do other baselines in the evaluation also undergo such process?
- Can you please provide how many agents CoCoder may spawn per task? Are there any distribution differences between simple and hard tasks? Are there any safety measures to avoid too many agents?
- Can you please provide the sensitivity data to the or choices?
- Can please provide more details on how agents structure their prompt and exchange information? On latent parallel, do you take any measures to reuse the prefix cache (if yes, is the evaluation fair on that)?
- Can you please explain why CoCoder has a better performance than sequential?
Limitations
yes
Final justification
The author presents an interesting algorithm to divide the tasks into multiple agents, and it also gets satisfying results. The author clarifies some important definitions in the rebuttal. One thing that prevents me from a score of 5 is that this system does not work for open-hand projects. I recommend the AC to instruct the author to give the numerical result of the ablation study (not just stating a few numbers) in the revised manuscript.
Formatting concerns
N/A
4 comments
We thank the reviewer for the careful and constructive review; we address each point below.
W1. "The author mostly choose non open-end datasets, where the file structure is given, which might limit the usefulness."
The fixed file structure is a deliberate experimental control, not a capability boundary of the method. All methods receive the same structure, which makes the comparison fair and avoids introducing extraneous variables; if each method planned its own file structure, the variance in plan quality would confound the attribution of partitioning and scheduling effects, and the results would be hard to reproduce.
"Designing the file structure" (planning) and "partitioning and scheduling" (partitioning) are orthogonal. The former is readily available (e.g., Claude Code's plan mode); our contribution is the latter, which composes with any planner: in the open-ended setting, the planner produces the structure and CoCoder partitions and schedules. In fact, the pipeline itself already contains a "structured design from free-form documents" step: the RIB (file list, interfaces, dependencies) is generated from the PRD and UML; under the benchmark setting we only pin its file skeleton to the given structure, so that the output aligns with the tests written against that structure.
End-to-end evaluation in the open-ended setting is valuable future work, but cannot be done cleanly within the rebuttal period: a freely planned structure would not match the benchmark tests written against the given one, so pass rate could not be computed. We will add this discussion to the revision.
W2. "The author uses InfoMap and many heuristic rules to group the files, ... may degrade to the sequential in some circumstances."
Sequential execution is not degradation but correct adaptation: on inputs with no structurally exploitable parallelism, the objective minimizes communication by yielding a single group. Across all 28 repositories, only 4(ArXiv_digest, Hybrid_Images, geotext, lice) resolve to a single agent, all minimal projects with 1-2 source files; for such repositories, any further split would introduce communication overhead exceeding its benefit. On these 4 repositories, the #Pass of CoCoder is comparable to the other methods. The revision will add these statistics and discussion.
W3. "Lack of sensitivity studies of the hyper-parameter choice. E.g., how the choice of α (or, say γ) may affect ..."
All values in Table 3 are a priori choices (library defaults, simplest options, or conservative values), and a single set is shared across all 28 repos. Both benchmarks are pure evaluation sets with no separate development split, and we held out no repos for tuning. We added a systematic sensitivity analysis (offline sweeps over all 28 repos, same random seed as the main experiments). itself is not in Table 3: it weights the communication cost in the objective, and this trade-off is operationalized in the implementation by the Markov time (which controls clustering granularity; see Sec. 3), so the sensitivity to is given by the end-to-end data in the row below; its impact (about 1 pp) is an order of magnitude smaller than CoCoder's gain over Sequential (11.3/14.0 pp on the two benchmarks). serves as unit calibration; the partition depends on its ratio to the floor weight rather than its absolute scale (second row of the table). The revision will add the complete value-by-value sweep table to the appendix.
Per-parameter results:
| Parameter | Value (rationale) | Sweep range | Result (partitions vs default config) |
|---|---|---|---|
| define:ref | 2:1 (one side defines a class/function, the other uses it; weighting definitions at 2x references is the simplest integer ratio expressing this asymmetry) | 1:1–4:1 | Nearly no effect: partitions change slightly on only 3–4 of 28 repos |
| 10 (scaling factor for cosine similarity) | 0.05–1000 | Nearly no effect: only 4–5 repos change; scaling and floor proportionally leaves almost all partitions unchanged, only their ratio matters | |
| floor | 0.1 (small weight for edges with no shared symbols, keeping the graph connected) | 0.01–1.0 | Nearly no effect: only 2–5 repos change |
| hub threshold | 0.4 (higher pulls utility files into communities; lower isolates too many files into single-file groups) | 0.2–0.8 | Has an effect: raising it from 0.2 to 0.8, average group count 6.00→4.07; fully disabling isolation corresponds to the w/o hub isolation variant in ablation study(response to Reviewer P49m, W4), pass rate drops 7.2 pp |
| Markov time | 1.0 (Infomap library default) | 0.5–4.0 | Small effect: doubling changes partitions on 6 repos; rerunning them (3 runs each) drops benchmark-average pass rate only 1.5 pp (DevEval)/1.0 pp (CodeProjectEval) |
| RIB/repair caps | 3/10 (budget caps) | measured from logs | Rarely binding: 97.2% of RIBs pass review on the first round; only 8.4% of runs exhaust the repair budget |
W4. "The author does not provide details on how the symbol vector of each file is formed."
The symbol vectors are built from the RIB. Each dimension of a file's vector corresponds to a symbol name, and its value is that symbol's weight: symbols the file defines receive weight 2, types it references receive weight 1, and built-in types are not counted; definitions and references share the same set of dimensions, so the dot product mainly reflects definition-use coupling. Taking bplustree in Figure 1 as an example: entry.py defines Entry, Record, and Reference (weight 2 each), while methods in node.py take Entry and Reference as parameter types (weight 1 each); the two vectors match on these dimensions, forming the heaviest edge in the graph, entry→node. If two files merely co-reference symbols defined elsewhere (weight 1 on both sides), the dot-product contribution on that dimension is only half of a definition-use match, and the edge weight is correspondingly weaker. The cosine similarity multiplied by the scaling factor gives the edge weight ; edges with no shared symbols receive a fixed floor weight of 0.1 to keep the graph connected. Sensitivity data for these values (the 2:1 weight ratio, the floor, and ) are given in our response to W3 above. The revision will add the complete construction details to the appendix.
W5. "Code is not provided in the review process, which might limit the reproducibility."
The full implementation (partitioning and scheduling code, all prompts, experiment configurations, and run scripts) will be open-sourced upon publication.
Meanwhile, the revised appendix will add the key reproduction details: prompt templates and communication mechanisms of each agent (Q4), symbol-vector construction (W4), and the complete hyperparameter sweep table (W3).
Q1. Does CoCoder involve the check-and-fix process as detailed in L219-244. If yes, do other baselines in the evaluation also undergo such process?
Yes. All methods, CoCoder and every baseline alike, run check-and-fix process with the same check tests provided by the benchmarks; these check tests serve preliminary validation during development and are disjoint from the unit tests used for final evaluation, which remain invisible during generation.
Q2. Can you please provide how many agents CoCoder may spawn per task? Are there any distribution differences between simple and hard tasks? Are there any safety measures to avoid too many agents?
The number of agents per task equals the number of groups produced by the partition; across all runs, each task uses 5.1 group agents on average, ranging from 1 to 11. The group count adapts to the repository's dependency structure: structurally complex repositories are partitioned into more groups, while the smallest ones (1-2 source files) form a single group, i.e., sequential execution by a single agent (see our response to W2). No extra safety measure is therefore needed: the agent count is fixed once by the partition before execution, with the number of files as a hard upper bound, and no new agents are spawned dynamically during execution.
Q3. Can you please provide the sensitivity data to the α or γ choices?
Please see our detailed response to W3 above. In brief: all hyperparameter values are a priori choices, and the main conclusions are robust to and within reasonable ranges: matters only through its ratio to the floor weight, and the trade-off of is operationalized by the Markov time , whose measured impact on pass rate is an order of magnitude smaller than CoCoder's gain over Sequential.
Q4. Can please provide more details on how agents structure their prompt and exchange information? On latent parallel, do you take any measures to reuse the prefix cache (if yes, is the evaluation fair on that)?
Prompt and information exchange: each group agent has a fixed system prompt plus an initial message (its responsibility and the file list of its group); interface specifications are obtained by querying the RIB via a tool. Coordination happens through a shared task list (claim/complete; downstream agents are woken automatically once prerequisite files are completed) and a message bus (leader-agent direct/broadcast, also agent-to-agent). Full prompt templates will be added to the appendix.
Prefix cache: we take no custom caching measures; caching is the provider's automatic behavior, and all four methods run under identical API settings.
Q5. Can you please explain why CoCoder has a better performance than sequential?
A sequential agent's single context keeps growing with file count and runtime and degrades as it does; each CoCoder agent instead works within the bounded, cleaner context of one cohesive group. Structured grouping and dependency-aware scheduling additionally bring the gains in execution efficiency.
I appreciate the author's response. I'll keep my initial score.
Thank you for the prompt feedback and for your positive assessment. We will incorporate the promised additions (the single-group case statistics, symbol-vector construction details, and the full hyperparameter sweep table) in the revision.
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper introduces CoCoder, an approach for modeling LLM software engineering tasks using graph partitioning to reduce the run time (latency) and cost of running LLM agents. The authors evaluated CoCoder on two benchmarks and found significant improvements in quality, latency, and cost. They also demonstrated that as the tasks become more complex with increased dependencies, CoCoder achieves greater benefits.
Strengths and weaknesses
Strengths:
- The paper is well-written.
- The experiments are thorough and include a diverse set of benchmarks and baseline methods.
- The proposed approach, CoCoder, is innovative and intuitive.
Weaknesses:
- The quality of the approach heavily depends on the repository interface blueprint (RIB), which is generated with the help of an LLM judge. However, the paper lacks clarity on the quality of the generated RIB and how it directly affects the next stage if it contains incorrect structure or information. Moreover, there are no experiments comparing the effectiveness of the LLM-judge in handling this task compared to an expert. In addition, paper provides few details about this stage, such as the prompts used, which would help in understanding and reproducing the results.
- Sections 2 and 3 of the paper contain a lot of details. Including a working example that illustrates what each stage produces would help in better understanding each component and their interactions within the proposed approach.
Questions
- Can you provide more details on the runtime of Algorithm 1 for a typical task? Is this runtime being accounted for in the reported latency measurements?
- The experiments in the paper focus on Python programs. Why did you choose Python as the primary language for evaluation?
- How do you verify that the LLM judge works correctly and generates accurate RIBs?
- Can you provide some examples of other task types where this approach might be applicable?
Limitations
yes
Final justification
I will raise my score to 5 (Accept). The additional experiments address my main concerns and, if incorporated clearly, would strengthen the paper.
Formatting concerns
N/A
5 comments
We thank the reviewer for the careful and constructive review; we address each point below.
W1 & Q3. "The quality of the approach heavily depends on the repository interface blueprint (RIB) ... lacks clarity on the quality of the generated RIB and how it directly affects the next stage ... no experiments comparing the effectiveness of the LLM-judge ... compared to an expert ... few details about this stage, such as the prompts used ..." / "How do you verify that the LLM judge works correctly and generates accurate RIBs?"
Comparing the RIBs against the reference implementations from the benchmarks (28 projects, static analysis, no LLM), the RIBs cover nearly all files to be generated (file coverage 0.994, occasionally omit empty init files), and only a small number of errors remain, falling into file dependency description errors and interface description errors (class/function/constant names, etc.); our method is robust to these errors, as shown below.
| Type | Precision | Recall |
|---|---|---|
| File dependency descriptions | 0.982 | 0.910 |
| Interface descriptions (class/function/constant names, etc.) | 0.869 | 0.843 |
File dependency description errors are dominated by omissions (about 9%); interface description errors include both omissions and redundant descriptions (roughly 13-15%), but this is an upper bound on the true error rate (legitimate design differences such as naming and file placement are also counted as errors).
File dependency description errors mainly affect our partitioning stage, but at the measured error rate the partitions remain strongly consistent. Starting from a ground-truth RIB calibrated against the reference implementations from the benchmarks, we inject the measured dominant error form (omission) by deleting file dependencies at controlled rates, recompute the partition, and compare it against the partition of the ground-truth RIB, reporting ARI (1=identical, ≥0.75 strongly consistent (same skeleton, local adjustments), <0.5 close to two different partitions). The measured omission rate of about 9% corresponds to the 5%-10% deletion levels, where projects' partitions remain strongly consistent; only when errors are amplified to two to four times the measured rate does the partition degrade markedly:
| Deletion rate | 5% | 10% | 20% | 40% |
|---|---|---|---|---|
| Mean ARI | 0.898 | 0.848 | 0.751 | 0.515 |
Under injected interface description errors, CoCoder's pass rate slightly fluctuates but its advantage persists, still outperforming all baselines.
We perturb the interface descriptions (deletion, corruption) based on the RIB at different rates (beyond the measured error rate), and rerun CoCoder end-to-end (restricted to CodeProjectEval due to time constraints; 3 runs). Note that the RIB is not the only source of information: the original documents (PRD, UML) remain in the workspace throughout and agents consult them directly; interface errors surface as test failures and are recovered by the repair loop, at the cost of extra repair rounds and tokens rather than a ceiling on correctness.
| Original | +5% errors | +10% errors | +15% errors | Sequential | File-based Parallel | Claude Code w/ Agent Teams | |
|---|---|---|---|---|---|---|---|
| Pass rate | 34.1% | 30.2% | 31.3% | 28.5% | 20.1% | 23.3% | 16.3% |
Baseline numbers from Table 2.
Validating the judge: reliable, based on a score-quality correlation experiment and human validation. Note that the RIB is produced by the generator model; the judge only performs quality gating (below-threshold RIBs are sent back for revision, up to 3 rounds). On RIBs of varying quality (injecting errors at different rates), judge scores correlate with the true quality (within-project average , N=100); in addition, evaluators not involved in this work scored the RIBs independently under the same rubric in a blind setting, and measured by the binary quality-gate decision, human-judge agreement is 92.3% (N=50).
The appendix of the revision will include the full details of the above experiments, together with the complete prompts for RIB generation and judge review.
W2. "Sections 2 and 3 of the paper contain a lot of details. Including a working example that illustrates what each stage produces would help ..."
We agree with this suggestion. Figure 1 already traces the entire pipeline on a real project (bplustree), and the revision will expand it into a stage-by-stage worked-example box for §2/§3.
Graph construction (§3.1): the RIB lists each file's interfaces and dependencies (the left column of Figure 1 excerpts the entry for entry.py). Edge weights are derived from the cosine of symbol vectors; strongly coupled define-use edges (e.g., entry→node) weigh far more than weakly coupled ones.
Partitioning (§3.2, Algorithm 1): const.py is depended on by most files and is identified as an in-hub, isolated on its own; tree.py depends on nearly all files and joins the integration group as an out-hub; Infomap clusters the strongly coupled entry/node/memory into one group, while serializer and utils each form their own.
Execution (§3.3): the dependency-free utils starts immediately, in parallel with const; as soon as const completes, the groups depending on it (entry/node/memory, serializer) unlock and run concurrently, with no global synchronization barrier; the integration group containing tree integrates last. After generation, the leader runs the check tests, and failing tests are traced to their owning group via the partition record for repair.
The revision box will map each stage's artifacts to the corresponding equations and mechanisms.
Q1. Can you provide more details on the runtime of Algorithm 1 for a typical task? Is this runtime being accounted for in the reported latency measurements?
In the execution logs, the median wall-clock time of this stage is about 0.7 seconds (including framework scheduling overhead), negligible relative to the end-to-end latency. Algorithm 1 is pure CPU graph computation with no LLM calls; across all 28 repos (the largest has 24 files), a single run takes milliseconds.
Yes, this runtime is included in the reported latency. The latency reported in the paper is end-to-end wall-clock time from task start to completion, covering all stages.
Q2. The experiments in the paper focus on Python programs. Why did you choose Python as the primary language for evaluation?
We use Python since (1) it enables a fair comparison for measuring the correlation between coupling density and quality gains (the §6 analysis), and CodeProjectEval only contains Python; (2) Python is the most used language on GitHub [1]; and (3) following the established benchmarks keeps our results directly comparable with prior work.
CoCoder also leads on non-Python projects, with the highest pass rate and the lowest latency and cost (Avg row), consistent with the conclusions on Python. CoCoder itself is language-agnostic: partitioning and scheduling operate on the RIB and rely on no Python-specific features; the only language-dependent part is the test execution script. To test this, within the rebuttal time frame we added experiments on one C++ and one Java project from the non-Python subset of DevEval's upstream benchmark (dense cross-file dependencies, ≥8 source files; gpt-5-mini, 3 runs). The revision will add the full results table.
| Repo | Lang | #Files | #Tests | Seq | File-Parallel | CC Agent Teams | Ours |
|---|---|---|---|---|---|---|---|
| logistic_system | C++ | 8 | 17 | 10.0/1381s/$0.60 | 8.0/498s/$0.88 | 8.0/510s/$0.55 | 11.7/471s/$0.42 |
| redis-cache | Java | 10 | 17 | 7.7/1827s/$0.56 | 14.0/1138s/$1.01 | 7.7/750s/$0.55 | 13.7/668s/$0.51 |
| Avg | 52.1%/1.00x/1.00x | 64.7%/0.49x/1.64x | 46.2%/0.39x/0.95x | 74.7%/0.35x/0.81x |
Each cell: #Pass/Time/Cost; Avg row: pass rate and ratios vs Sequential.
[1] GitHub Octoverse 2024: "Python becomes the most used language on GitHub."
Q3. Answered jointly with W1 above.
Q4. Can you provide some examples of other task types where this approach might be applicable?
Beyond the from-scratch generation studied in this paper, the approach applies directly to repository-level maintenance tasks, such as implementing new features on an existing codebase, large-scale refactoring, cross-file bug fixing, and test-suite completion. For such tasks, the dependency graph can be built directly via static analysis, and our partitioning and scheduling mechanisms carry over unchanged.
The methodology is also not specific to code: in principle, any multi-agent task whose subtasks exhibit dependency structure admits the same partition-then-schedule treatment. The graph need not be given explicitly; it can be inferred from the task's constraints, for example in multi-agent drafting of legal contracts, where a shared definitions section acts as a hub on which all clauses depend, cross-references between clauses induce the dependency graph, and cross-agent communication is again context transfer of defined terms.
Dear Reviewer xW3L, we have updated our responses: the RIB quality assessment, the downstream error-sensitivity experiments, the LLM-judge validation against human evaluation, the stage-by-stage working example, and the C++/Java results are now presented more clearly. We hope these resolve your concerns, and we would be grateful if you would consider them in your final assessment.
- Rating
- 3/6
- Confidence
- 2/5
- Quality
- 2/4
- Clarity
- 2/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This work tackles the problem of enabling parallelization for complex tasks such as coding. It does so by allowing multiple agents to work concurrently, and by smartly distributing the work amongst agents to minimize costly communication between them.
This work presents CoCoder, which partitions the task graph by affinity with community detection using dependency information. The authors show that CoCoder is able to accelerate tasks through parallelization using cutting edge coding agents such as Claude Code.
Strengths and weaknesses
Strengths
- Formalizes multi-agent orchestration as a graph partitioning problem that captures the communication-to-computation trade-off, giving a clear objective that combines critical-path computation cost with inter-agent communication cost.
- Proposes CoCoder, which instantiates this objective through cohesion-based graph partitioning and dependency-aware scheduling, and shows empirically that it advances the Pareto frontier over sequential, file-parallel, and Claude Code baselines, with the largest gains on the most dependency-dense projects.
Weaknesses
- The heuristic of assigning files to each agent could use more justification. Files are an easy and natural choice, but it would help to show that this is a good approximation for distributing work between agents.
- The cost model introduced by the paper is largely heuristic, and is not directly validated or optimized against measured costs.
- The communication volume metric may not fully reflect its stated intention. The authors want it to measure communication cost (i.e. C(P)), but it is defined as cosine similarity. If a subtask is similarly dissimilar to two others, but one of them carries significantly more context (hence more communication), both could reflect equally unfavorably.
- The per-node and critical-path latency W(P) relies on a priori knowledge of the program (e.g. subagent) runtime. The authors use interface size as a proxy for program runtime, but it is not clear how well this proxy holds in practice.
- This work is only evaluated on gpt-5-mini. How well would this generalize across models?
- There is no component-level ablation isolating the paper's core contributions (hub isolation, latent-parallelism lifting, and the repair loop). The File-based Parallel baseline removes structural partitioning, but the marginal contribution of each individual mechanism is not measured.
Questions
- How are the parameters in Table 3 picked? Are they chosen for any particular reason, and how sensitive are the results to them?
- What is the upfront cost of documenting the codebase? What happens if the codebase changes, and would the description need to be rebuilt?
- API cost is not a clean measure of work. It depends on cache hit rates, provider pricing, and the input/output token split, not just the total tokens. This makes the efficiency numbers hard to reproduce or compare across setups. Why not report raw token counts instead?
- What is the average parallelism degree?
Limitations
yes
Final justification
I appreciate the clarifications from the authors. I have a clearer view of the motivations behind the design, and the component level ablations. However, I still have some remaining reservations about the heuristic nature of the metrics, and whether if they will generalize. I have increased by score to 3.
Formatting concerns
none
3 comments
We thank the reviewer for the constructive review.
W1. "The heuristic of assigning files to each agent could use more justification. ..."
We would like to clarify that files are the unit of isolation, not the unit of work. File-level decomposition allows coarser-grained assignment with partitioning(1 agent, N files), and more importantly, avoids write conflicts. Agent edit operations are file-scoped, so finer-grained sub-file agent assignment may race at write time and lose updates. Claude Code's agent-teams doc also advises against same-file edits.
In a preliminary test, we had two agents each implement half of every file's functions(12 files with ≥8 functions, one per repo, both benchmarks): 67% of concurrent writes (N=98) failed on conflict, and the forced rewrites inflated output tokens 2.88x and wall-clock latency 2.14x over a single file-level writer. We will add this to the appendix.
W2. "The cost model introduced by the paper is largely heuristic, and is not directly validated or optimized against measured costs."
W2.1 The communication volume metric may not fully reflect its stated intention. The authors want it to measure communication cost(i.e. C(P)), but it is defined as cosine similarity. ...
W2.2 The per-node and critical-path latency W(P) relies on a priori knowledge of the program (e.g. subagent) runtime. The authors use interface size as a proxy for program runtime, ...
We experimentally verify that (1) , using cosine similarity, does not select a wrong partition by discarding "context volume", and (2) the interface-size weighting in reflects actual workload ().
A2.1 captures relative coupling strength between files, not absolute communication volume. The partitioning algorithm (Infomap) normalizes edge weights into transition probabilities, which depend mainly on relative rather than absolute weights. We nonetheless verified this empirically: replacing the normalized cosine with the volume-preserving inner product and rerunning the pipeline on all 28 RIBs leaves the partitions largely unchanged (mean Adjusted Rand Index 0.95; ARI measures how much two partitions of the same files agree, 1.0=identical, 0=chance-level agreement). This difference rarely changes the resulting partitions.
A2.2 . We directly validated the interface-size proxy using logs: the Spearman rank correlation between the total interface size of each agent's group and that group's measured implementation time (claim-to-completion timestamps) is (N=424): the proxy consistently tracks measured cost.
The cost model is heuristic, but both components have been validated against measured costs, and the end-to-end results are the final posterior evidence that this choice works.
W3. "This work is only evaluated on gpt-5-mini. How well would this generalize across models?" Claude Sonnet 4.6 (28 repos, 3 runs; per-task means, ratios vs Sequential): CoCoder again Pareto-dominates all baselines(pass rate, latency, cost), consistent with gpt-5-mini. The revision will add the full per-project table.
| Benchmark | Method | Pass Rate | Time | Cost |
|---|---|---|---|---|
| DevEval | Seq | 67.4% | 831s(1.00x) | $2.14(1.00x) |
| File-Parallel | 60.4% | 625s(0.75x) | $2.71(1.27x) | |
| CC Agent Teams | 60.0% | 640s(0.77x) | $2.25(1.05x) | |
| Ours | 73.3% | 455s(0.55x) | $1.85(0.87x) | |
| CodeProjectEval | Seq | 34.0% | 3030s(1.00x) | $9.32(1.00x) |
| File-Parallel | 30.2% | 1412s(0.47x) | $11.79(1.26x) | |
| CC Agent Teams | 29.6% | 1338s(0.44x) | $6.32(0.68x) | |
| Ours | 39.4% | 969s(0.32x) | $5.36(0.57x) | |
| All | Seq | 45.9% | 2244s(1.00x) | $6.76(1.00x) |
| File-Parallel | 41.0% | 1131s(0.50x) | $8.54(1.26x) | |
| CC Agent Teams | 40.4% | 1089s(0.49x) | $4.87(0.72x) | |
| Ours | 51.5% | 785s(0.35x) | $4.11(0.61x) |
CC = Claude Code
W4. "There is no component-level ablation isolating the paper's core contributions ..."
The File-based Parallel baseline already ablates partitioning itself, with markedly worse pass rate and cost(Tables 1-2). Due to time constraints, we first completed the component-level ablation on 11 projects (≥5 files, ≥4 groups; other setups unchanged).
Removing hub isolation drops the pass rate by 7.2 percentage points, with no improvement in latency or cost. Without it, Infomap pulls hub files and their dependents into one giant community; the average group count falls from 7.3 to 4.5, so a single agent takes on non-cohesive files and its context becomes cluttered.
Removing the repair loop drops the pass rate by 11.4 percentage points, while saving about 417s and $0.16. Generation errors lose their chance to be corrected; the savings are exactly this repair overhead.
| Variant | Pass rate | Latency(s) | Cost($) |
|---|---|---|---|
| CoCoder (full) | 36.4% | 1285 | 0.603 |
| w/o hub isolation | 29.2% | 1353 | 0.608 |
| w/o repair | 25.0% | 868 | 0.440 |
The lifting ablation will be added in the revision.
Q1. How are the parameters in Table 3 picked? Are they chosen for any particular reason, and how sensitive are the results to them?
All values in Table 3 are a priori choices(library defaults, simplest options, or conservative values), and a single set is shared across all 28 repos. Both benchmarks are pure evaluation sets; no repos were held out for tuning. We added a systematic sensitivity analysis (offline sweeps over all 28 repos, same random seed as the main experiments). The change from doubling the most directly influential parameter, Markov time (about 1 pp), is an order of magnitude smaller than CoCoder's advantage over Sequential(11.3/14.0 pp on the two benchmarks); the paper's main conclusions do not depend on the specific values of these parameters within reasonable ranges (the extreme hub-threshold case is equivalent to removing that component, covered by the W4 ablation). The revision will add the complete value-by-value sweep table to the appendix.
Per-parameter results:
| Parameter | Value (rationale) | Sweep range | Result (partitions vs default config) |
|---|---|---|---|
| define:ref | 2:1 (one side defines a class/function, the other uses it; weighting definitions at 2x references is the simplest integer ratio expressing this asymmetry) | 1:1–4:1 | Nearly no effect: partitions change slightly on only 3–4 of 28 repos |
| 10 (scaling factor for cosine similarity) | 0.05–1000 | Nearly no effect: only 4–5 repos change; scaling and floor proportionally leaves almost all partitions unchanged, only their ratio matters | |
| floor | 0.1 (small weight for edges with no shared symbols, keeping the graph connected) | 0.01–1.0 | Nearly no effect: only 2–5 repos change |
| hub threshold | 0.4 (higher pulls utility files into communities; lower isolates too many files into single-file groups) | 0.2–0.8 | Has an effect: raising it from 0.2 to 0.8, average group count 6.00→4.07; fully disabling isolation is the W4 ablation, pass rate drops 7.2 pp |
| Markov time | 1.0 (Infomap library default) | 0.5–4.0 | Small effect: doubling changes partitions on 6 repos; rerunning them (3 runs each) drops benchmark-average pass rate only 1.5 pp (DevEval)/1.0 pp (CodeProjectEval) |
| RIB/repair caps | 3/10 (budget caps) | measured from logs | Rarely binding: 97.2% of RIBs pass review on the first round; only 8.4% of runs exhaust the repair budget |
Q2. What is the upfront cost of documenting the codebase? What happens if the codebase changes, and would the description need to be rebuilt?
To clarify the task setting: the task is to generate an entire codebase from scratch; no pre-existing codebase is involved. The PRD, UML, and other documents are provided by the benchmark; they are the task specification, inputs to the task rather than an overhead of our method; all compared methods receive exactly the same document inputs. Likewise, code is the output, not an input, so "codebase changes making the description outdated" does not arise. Generating the Repository Interface Blueprint (RIB) from these documents inside the pipeline is part of task execution; if the task specification changes, rerunning that stage suffices. The revision will state this setting explicitly at the start of the experimental setup.
Q3. API cost is not a clean measure of work. ... Why not report raw token counts instead?
Raw token counts are below; the cost ranking matches the token ranking on both benchmarks, so the reported cost differences reflect token usage rather than cache-rate or pricing artifacts. We reported monetary costs to align with realistic usage; costs follow OpenAI's public API pricing (gpt-5-mini, USD per million tokens):
DevEval (per-task means, ratios vs Sequential in parentheses):
| Method | Uncached input | Cached input | Total input | Output | Cost |
|---|---|---|---|---|---|
| Sequential | 0.42M | 1.67M | 2.10M(1.00x) | 50.7k(1.00x) | $0.25(1.00x) |
| File-based Parallel | 0.57M | 2.67M | 3.24M(1.55x) | 75.4k(1.49x) | $0.36(1.44x) |
| CC Agent Teams (rerun) | 0.33M | 1.52M | 1.85M(0.88x) | 45.3k(0.89x) | $0.21(0.84x) |
| CoCoder (ours) | 0.23M | 1.53M | 1.75M(0.84x) | 44.4k(0.88x) | $0.18(0.72x) |
CodeProjectEval:
| Method | Uncached input | Cached input | Total input | Output | Cost |
|---|---|---|---|---|---|
| Sequential | 1.77M | 8.79M | 10.56M(1.00x) | 184.0k(1.00x) | $1.03(1.00x) |
| File-based Parallel | 3.08M | 12.21M | 15.29M(1.45x) | 284.1k(1.54x) | $1.65(1.60x) |
| CC Agent Teams (rerun) | 0.83M | 3.77M | 4.60M(0.44x) | 59.1k(0.32x) | $0.42(0.41x) |
| CoCoder (ours) | 0.88M | 6.88M | 7.76M(0.73x) | 138.8k(0.76x) | $0.67(0.65x) |
CC = Claude Code, rerun with detailed token logging (previously off by default).
Q4. What is the average parallelism degree?
The average parallelism degree across all tasks is 5.1 (range 1-11), adapting partition to repository structure: more groups for complex repositories, a single agent for minimal ones.
We sincerely thank the reviewer for the constructive review. We have responded to each weakness and question with the corresponding new result or clarification (the file-assignment justification, cost-model validation, the Claude Sonnet 4.6 results, the component-level ablation, the Table 3 sensitivity analysis, and raw token counts), and we hope these have now addressed the concerns raised in the original review.
As the discussion window closes today, could you please share whether any substantive concerns remain? Since a score of 2 indicates that the reasons to reject clearly outweigh the reasons to accept, we would greatly appreciate understanding what those remaining reasons might be.
If no further concerns remain, we respectfully ask whether a score above the rejection threshold might more fully reflect your updated view of the paper. If there are additional reservations, we would be very grateful for the opportunity to clarify or address them. Thank you again for your time and constructive feedback.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
We thank the Area Chair for the constructive meta review and the clear guidance in (c) and (d). We have carried out new experiments addressing all four points in (d) and present the results below; all new material will be added to the revised paper.
1. "some validation that the cost-model proxies are realistic"
We experimentally verify that (1) C(P), using cosine similarity as the coupling proxy, does not select a wrong partition, and (2) the interface-size weighting in W(P) reflects actual workload (ρ=+0.66).
The cost model is heuristic in construction, but both components have been validated against measured costs, and the end-to-end results are the final posterior evidence that this choice works.
2. "a component-level ablation study"
The File-based Parallel baseline already ablates partitioning itself, with markedly worse pass rate and cost (Tables 1-2). Due to time constraints, we first completed the component-level ablation on 11 projects with substantial parallelism (≥5 files, ≥4 groups; other setups unchanged).
Removing hub isolation drops the pass rate by 7.2 percentage points, with no improvement in latency or cost. Without it, Infomap pulls hub files and their dependents into one giant community; the average group count falls from 7.3 to 4.5, so a single agent takes on non-cohesive files and its context becomes cluttered.
Removing the repair loop drops the pass rate by 11.4 percentage points, while saving about 417s and $0.16. Generation errors lose their chance to be corrected; the savings are exactly this repair overhead.
3. "at least one additional model, and ideally a non-Python repository, to support the generality claim"
Additional model: Claude Sonnet 4.6 (28 repos, 3 runs; per-task means, ratios vs Sequential): CoCoder again Pareto-dominates all baselines (pass rate, latency, cost), consistent with gpt-5-mini. The revision will add the full per-project table.
(Non-Python results continue in the next comment.)