Multiagent Systems · arXiv:2609.13890 v2 · submitted 12 Sep 2026
Learning How Much to Collaborate: Difficulty-Aware Topology Selection for Multi-Agent Code Generation
The paper says
“Multi-agent code-generation systems often use one communication topology for every problem.”
more of the abstract
Across five topologies and 614 problems from APPS, HumanEval+ and LiveCodeBench, the advantage of hierarchical collaboration over a single agent grows from 2.4 points of pass@1 on the easiest third to 21.1 points on the hardest third, at about ten times the token cost. We propose the Difficulty-Aware Topology Selector (DATS), which predicts each topology's success probability and maximises predicted success minus cost. Its graph predictor treats topologies as nodes of a connectivity order. The complete graph-head comparison reports a 1.7-point advantage over a flat multi-label head while changing several mechanisms; capacity-matched adjacency controls show smaller descriptive differences. A scalar cost penalty can be recalibrated without retraining for approximately matched-spend comparisons when targets are attained. With a shared penalty, six methods span 21.6 percentage points of spend; two leading baselines fall behind DATS after method-specific calibration near the common target. At 40% of always-hierarchical cost, DATS reaches 77.7% pass@1 versus 73.6% for always-hierarchical and 74.3% for the strongest learned competitor. The main comparison includes Holm–Bonferroni-adjusted McNemar tests; unequal-cost differences do not imply matched-budget superiority. Backbone-specific gains are 4.07–4.23 points across four backbones. Alternatives to the 39 interpretable features, including a hybrid encoder, yield a largest observed gain of 1.3 points, with no significant pairwise improvement; this establishes neither equivalence nor an upper bound. A study on 400 mathematical reasoning problems reproduces difficulty-dependent collaboration gains, widening from 2.5 to 20.9 points.
from the abstract
Pith says
Machine review · deepseek-v4-flash · 15 Sep 2026 · of version 1 of the paper; version 2 is newer · what was read was not recorded · not checked by a person
It can be wrong. Challenge this review or reply to it.
Holds up, with conditions. A well-executed paper on difficulty-aware topology selection for multi-agent code generation, with a clear weakness in the undisclosed difficulty scorer that needs addressing before the main claims are fully supported. This line is wrong
2 major objections · 8 minor
How often objections from reviews like this one are right: not yet measured
Not checked: figures, code, what the references say.
The paper says, at Section 4.1
The review did not quote this passage.
Pith says: Objection 1 of 2 · major
The five-point difficulty rating is claimed to be the single most valuable feature (4.24-point drop when ablated, Fig. 10), yet its algorithm is not specified. The text describes it only as 'a lightweight scorer over the statement.' No details are given about what cues the scorer uses, whether it is rule-based, learned, or a combination, or whether the rating is calibrated on held-out data versus the same data used for routing.
more of objection 1
Without this information, the difficulty-scaling analysis in Section 6.2 (Fig. 4), the tertile stratification in the evaluation protocol (Section 5.4), and a core part of the routing signal rest on an unverifiable black-box quantity. The authors should provide the full algorithm or heuristic, report its agreement with external difficulty labels (e.g., APPS levels, MATH levels), and demonstrate that the main results are not sensitive to arbitrary choices in the scoring procedure.
The paper says, at Section 4.1, Table 10
The review did not quote this passage.
Pith says: Objection 2 of 2 · major
The ablation study (Table 10, Fig. 10) shows that removing the difficulty group costs 4.24 points. However, the paper does not report whether the difficulty rating itself is stable across different random seeds, fold splits, or slight changes in the rating heuristic. If the rating is unstable, the 4.24-point drop could be an overestimate of its true contribution. The authors should either validate the stability of the difficulty rating or replace it with a reproducible, well-defined measure.
8 minor objections
The paper says, at Section 4.1
Pith says: minor objection 1 of 8
The feature description lists ten categories for the algorithmic group and states that a keyword vote recovers manual labels on 85.5% of problems. It would be helpful to include a table listing the ten categories and the specific keywords used, both for reproducibility and for understanding what the ablation in Section 7.1 removes.
The paper says, at Section 5.2, Table 2
Pith says: minor objection 2 of 8
Table 2 reports mean token counts and cost per topology. It would be informative to also report the standard deviation or quartiles across problems, as token counts may vary substantially and affect the reliability of the cost-normalized selector for individual problems.
show 6 more
The paper says, at Section 6.2, Fig. 4
Pith says: minor objection 3 of 8
Fig. 4 plots pass@1 by difficulty tertile, where tertiles are defined by the paper's own difficulty rating. It would strengthen the external validity to also show the same plot using the native APPS difficulty levels (introductory, interview, competition) or the MATH levels in the cross-domain study, to confirm that the pattern is not an artifact of the custom rating.
The paper says, at Section 6.3, Table 4
Pith says: minor objection 4 of 8
The table reports pass@1 with 95% Wilson score intervals, which are appropriate. However, the budget-matched comparison includes five seeds for DATS but only one seed for the baselines (the main table uses the first seed). The seed-to-seed variation is reported for DATS (0.71 s.d.) but not for the baselines. The authors should either run the baselines across all five seeds or provide evidence that the single-seed comparison is representative.
The paper says, at Section 6.7
Pith says: minor objection 5 of 8
The transfer experiment (Claude Opus 4 → Qwen2.5-Coder-32B) shows a non-significant advantage over always-hierarchical. The discussion in Section 8.2 acknowledges this, but the abstract and highlights still use the 4.07-point gain as a headline without qualification. The authors should clarify in the abstract that transfer across backbones requires recalibration.
The paper says, at Section 7.3, Table 11
Pith says: minor objection 6 of 8
The representation ladder uses 'Text-GNN' as an encoder. The construction of the co-occurrence/dependency graph from the problem statement should be described in more detail, as the graph topology likely affects performance. If the graph is built with a fixed window or parse tree, that choice should be justified.
The paper says, at Section 8.2
Pith says: minor objection 7 of 8
The paper notes that 71 of 137 problems DATS misses are solved by some topology in the catalogue. This is an important limitation. The authors might consider adding a brief discussion of whether a simple cascade rule (e.g., check the output of a cheap topology and escalate if it fails) could close part of this gap, and whether such a cascade would be compatible with the budget constraint.
The paper says, at Throughout
Pith says: minor objection 8 of 8
The paper uses 'Always-τ' to denote fixed-topology policies. In Table 4 and elsewhere, it would be clearer to consistently use 'Always-Single', 'Always-HRM', etc., rather than 'always-hierarchical'. The latter appears informally in the abstract and highlights; consistency would improve readability.
What would settle it
Specify the exact algorithm for the five-point difficulty rating (e.g., heuristic rules, keyword patterns, simple classifier). Then compute Spearman rank correlation between this rating and the three APPS difficulty tiers (introductory=0, interview=1, competition=2) on the 300 APPS problems. Report the correlation with 95% CI. Also compute the within-tier variance of the rating for each APPS level. If the correlation is below 0.6 or the within-tier variance exceeds 1.5 rating points, the difficulty-scaling narrative is not supported by external validation. If the rating is itself derived from test set performance or future knowledge, the routing results are invalid.
from the skeptic's reading
How the review went
4 readings by deepseek-v4-flash · 15 Sep 2026
- Reader holds up, with conditions
- Skeptic agrees
- Editor wrote the verdict above
- Referee major revision: 2 major objections, 8 minor
Not run on this paper: the simulated authors' defence.
Pith did not check this review's objections against the paper.
The review in full
The review in brief, machine-written
This paper has more substance than most routing papers I see. The central observation—that collaboration benefit scales steeply with problem difficulty while cost stays flat—is well quantified across 614 problems and four backbones. The budget-matched protocol is a genuine methodological contribution that should become standard for comparing cost-aware routers; Table 5 shows why it matters (two baselines flip rank after calibration). The experimental design is careful: stratified five-fold CV, five seeds, exact McNemar with Holm–Bonferroni, cost calibration on inner folds. The 4.07-point gain at 40% cost is internally consistent and the cross-domain check on math problems strengthens the case.
The biggest soft spot is the undisclosed 'lightweight difficulty scorer' (Section 4.1). The ablation shows it is the single most valuable feature (4.24-point drop when removed), and the entire difficulty-scaling narrative (Fig. 4, Section 6.2) depends on it. The paper says only that it produces a five-point rating 'by a lightweight scorer over the statement.' No algorithm, no validation against external labels (APPS levels or MATH levels are available), and no check for outcome leakage. This is a load-bearing black box. Without it, the routing signal that selects topologies based on predicted success also relies partly on this unverifiable quantity. The paper would be much stronger if this were specified and validated.
A minor issue: Section 6.7 says the four backbones converge to essentially the same routing map and that the released reproduction applies a single shared map, but later says transfer is incomplete and recalibration is needed. These statements are not contradictory, but the presentation is fuzzy. The reader should clarify whether independent retraining or a single map is used.
The representation ladder (Section 7.3) is honest and well executed: it shows that 39 interpretable features are nearly as good as GraphCodeBERT fine-tuned, which actually supports the paper's design choice rather than being an oversight.
This paper is for people building or evaluating multi-agent code systems and for anyone who compares cost-aware LLM routers. It deserves a serious referee. I would recommend accepting after the difficulty scorer is clarified and validated. The core results are likely robust, but the missing detail prevents full reproducibility and weakens the difficulty-based narrative.
The strongest objection
The five-point difficulty group is described only as 'a lightweight scorer over the statement' (Section 4.1). No algorithm, heuristic, or validation against external difficulty labels (e.g., the three-tier APPS levels or the MATH levels used in Section 6.8) is provided. The ablation in Section 7.1 shows that removing this feature costs 4.24 points of pass@1, the largest single-feature drop, and the difficulty tertile analysis in Section 6.2 (Fig. 4) depends entirely on the categorization produced by this scorer. If the scorer is unstable, overfitted to the benchmark, or leaks outcome information (e.g., by using problem IDs or known benchmark metadata), then both the central difficulty-scaling claim and the routing signal that exploits it would be artifacts. The paper does not describe how the five rating levels are defined, what cues the scorer uses, or whether the rating is calibrated on a held-out set versus the same data used for routing. Without this information, the key empirical result—that collaboration benefit increases with difficulty, which motivates the entire routing approach—rests on an unverifiable black-box quantity.
The reader's weakest_assumption correctly identifies the undisclosed difficulty scorer as the most fragile link. My stress-test confirms that this feature carries the largest single-feature importance in the ablation, and its complete lack of specification makes the difficulty-scaling core of the paper unverifiable. The reader's verdict is CONDITIONAL, requiring clarification of this point. My concern does not change the verdict—it reinforces the same condition. I also checked for other potential issues (e.g., the inconsistency about shared routing map in Section 6.7, the budget-matched protocol's reliance on calibrated coefficients) but none are as directly load-bearing as the unvalidated difficulty scorer. Reiterating the reader's condition with a more precise test is the appropriate outcome.
The referee's report
If the results hold, the paper makes a concrete and practically relevant contribution: it demonstrates that a lightweight, interpretable per-problem router can recover most of the benefit of expensive multi-agent collaboration while eliminating 60% of the cost. The budget-matched protocol addresses an important and underappreciated methodological confusion in comparing cost-aware systems. The representation ladder (Section 7.3) is a clean empirical argument that the decision problem itself, not the feature engineering, is the bottleneck. The cross-domain replication on mathematical reasoning (Section 6.8) strengthens the claim that the difficulty-dependent value of collaboration is a general phenomenon rather than a code-specific artifact.
Pith's reading of the paper (a machine's summary, not the authors')
This paper tries to establish that the amount of collaboration a multi-agent code generator uses should be chosen per problem, not fixed once for every problem, and that the choice can be made cheaply from the problem statement alone. On 614 problems from three coding benchmarks, the advantage of hierarchical collaboration over a single call grows from 2.4 points of pass@1 (the share of problems solved on the first attempt) on the easiest third of problems to 21.1 points on the hardest third, while its token cost stays about ten times higher throughout. The authors' router, DATS, predicts for each of five topologies whether it would solve the problem and selects the one maximizing predicted success minus cost; fixed at 40% of the always-hierarchical budget, it reaches 77.69% pass@1 against 73.62% for always-hierarchical and 74.27% for the strongest learned competitor, with all eleven pairwise comparisons surviving Holm–Bonferroni correction. The same widening of the collaboration gap reappears on 400 mathematical reasoning problems, and the gain holds across four model backbones. A separate claim is methodological: cost-aware routers cannot be compared fairly without equalizing their realized spend, and the paper contributes a calibration protocol that does so.
What carries the argument. DATS (Difficulty-Aware Topology Selector) is a predict-then-optimize router whose central object is the topology graph $G_T$: the five candidate topologies — Single, Chain, Star, FullMesh, and the hierarchical role-based mesh (HRM) — are nodes joined along a connectivity order, and a small message-passing network with tied weights reads out one success probability per node. The graph encodes the prior that solvability is almost monotone in coordination, so the router learns the structure of the option space rather than five unrelated labels, which buys 1.7 points over a flat multi-label head at equal spend. The network predicts only observable per-topology outcomes and never sees cost; the cost trade-off lives entirely in a single scalar $\\lambda$ calibrated by bisection on held-out folds, so one trained predictor serves any budget. The third mechanism is the budget-matched protocol, which calibrates every cost-aware method to the same realized spend (40% of the always-hierarchical cost in the main experiment) before accuracies are compared, since a shared coefficient places differently calibrated methods at different operating points.
Core claim. The central discovery is that the value of collaboration is a property of the problem rather than of the system: a fixed topology either wastes money on easy problems or starves hard problems of the collaboration they need. Measured across 614 problems, hierarchy minus a single call moves from 2.4 points of pass@1 on the easy tertile to 10.7 on the middle and 21.1 on the hard tertile at constant relative cost, and this difficulty-dependence is what makes per-problem selection worth building. DATS demonstrates that the selection can be learned: given only the statement, it predicts five per-topology success probabilities, applies a single calibrated cost coefficient, and at 40% of the always-hierarchical spend solves 477 of 614 problems, 25 more than the hierarchical pipeline while spending 60% less. The paper further claims that the predict-then-optimize factorization and the budget-matched protocol are the load-bearing design choices: direct classification of a single 'best topology' label costs 6.0 points, and comparing routers at a shared coefficient silently compares them at different spend levels, reversing two of the six rankings once spend is equalized. The paper is explicit about its own boundaries: the catalogue of five topologies is fixed, the decision is made once before execution, the probability scale does not transfer across backbones without recalibration, and the mathematical-reasoning study is presented as a mechanism check rather than a second study.
The premise it rests on. The load-bearing premise is that the five-point difficulty rating computed by the paper's 'lightweight scorer over the statement' (Section 4.1) is a valid and stable measure of problem difficulty, since the headline difficulty-scaling result (Fig. 4) and the largest single feature ablation (a 4.24-point drop when the group is removed, Table 10) both rest on it, and the paper neither specifies the scorer's algorithm nor validates it against external difficulty labels.
If the paper is right (Pith's inferences, not the authors')
Fixed-topology multi-agent systems misallocate spend: on the easy two-thirds of problems the hierarchical pipeline spends roughly ten times the single-call budget to gain between two and ten points, so a deployment that fixes one topology is either wasting money on easy problems or forfeiting about twenty points on the hard tail.
Cost-aware router comparisons become interpretable only at equal spend: a shared cost coefficient places six methods anywhere between 30% and 52% of the reference budget and reverses two rankings, so realized spend must be printed and equalized alongside accuracy.
The routing gain is stable across models and domains: retraining on four backbones spanning 13.8 points of single-call accuracy keeps the gain at $4.11 \\pm 0.07$ points, and on 400 mathematical reasoning problems the collaboration gap again widens with difficulty from 2.5 to 20.9 points.
Operators gain a budget knob: calibrating the single cost coefficient to any target between 15% and 55% of the hierarchical budget traces a smooth, predictable accuracy–cost curve whose knee sits near 40%.
There is a quantified ceiling over this catalogue: the outcome-knowing oracle reaches 88.93% against DATS's 77.69%, so per-problem selection has recovered 26.6% of the distance from always-hierarchical to perfect routing, and the paper identifies routing-then-escalating as the most promising way to close part of the remaining gap.
A decisive test the paper does not run: replace the unspecified difficulty scorer with externally validated difficulty labels and re-measure the tertile widening and the 4.24-point feature ablation; a stable result under that substitution would greatly strengthen the difficulty-dependence claim, while a collapse would trace the effect to the scorer.
Because mean difficulty rises with suite in Table 1, the router may partly be learning suite membership; a control that swaps the difficulty feature for a suite one-hot would reveal how much of the routing signal is intrinsic difficulty rather than benchmark identity.
The topology-graph inductive bias — scoring options by message passing over an order of coordination rather than as independent labels — should transfer to any structured option space such as number of agents, sampling budget, or model-ladder depth, where the same order-plus-cost structure appears.
The difficulty-scaling signature makes a cross-domain prediction: in any task population with a wide difficulty spread (formal proofs, long-form reasoning, data wrangling) collaboration gains should widen with difficulty at roughly constant relative cost, while a population of uniformly easy tasks should show a flat gap — a pattern a practitioner could check before adopting any multi-agent pipelin
Check this review
Pith stored no record of this review's passes and took no fingerprint of it. Reviews made by code from 13 Nov 2026 on carry both.
How often reviews like this one are right
Reviews like this one: written by deepseek-v4-flash, where what was read was not recorded.
How often objections from reviews like this one are right: not yet measured
Reviews by people
This review was written by a machine. No person has reviewed this paper on Pith yet. A scientist listed on Pith can review it for a fee, and their review is published here whatever it concludes.
The paper
Abstract
Multi-agent code-generation systems often use one communication topology for every problem. Across five topologies and 614 problems from APPS, HumanEval+ and LiveCodeBench, the advantage of hierarchical collaboration over a single agent grows from 2.4 points of pass@1 on the easiest third to 21.1 points on the hardest third, at about ten times the token cost. We propose the Difficulty-Aware Topology Selector (DATS), which predicts each topology's success probability and maximises predicted success minus cost. Its graph predictor treats topologies as nodes of a connectivity order. The complete graph-head comparison reports a 1.7-point advantage over a flat multi-label head while changing several mechanisms; capacity-matched adjacency controls show smaller descriptive differences. A scalar cost penalty can be recalibrated without retraining for approximately matched-spend comparisons when targets are attained. With a shared penalty, six methods span 21.6 percentage points of spend; two leading baselines fall behind DATS after method-specific calibration near the common target. At 40% of always-hierarchical cost, DATS reaches 77.7% pass@1 versus 73.6% for always-hierarchical and 74.3% for the strongest learned competitor. The main comparison includes Holm–Bonferroni-adjusted McNemar tests; unequal-cost differences do not imply matched-budget superiority. Backbone-specific gains are 4.07–4.23 points across four backbones. Alternatives to the 39 interpretable features, including a hybrid encoder, yield a largest observed gain of 1.3 points, with no significant pairwise improvement; this establishes neither equivalence nor an upper bound. A study on 400 mathematical reasoning problems reproduces difficulty-dependent collaboration gains, widening from 2.5 to 20.9 points.
The paper's own sentences, arranged, kept beside the review and separate from it. Each label is drawn from a closed vocabulary; the number beside it is the probability the classifier gave that label. No sentence in this record was written by a model.
abstract compiled · 2026-09-23
The authors' main claim, as the classifier picked it out 0.39
“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.”
How the main claim is stated: asserted 1.00
What the abstract itself states, as probabilities: claims first 0.06 · states limitation 0.32 · human participants 0.05 · controlled comparison 0.96 · randomized assignment 0.03 · states quantitative result 0.99 · compares with prior results 0.98 · mentions code or data availability 0.03
The abstract, sentence by sentence
This table labels the abstract only (arXiv listing abstract v1). The number is the probability the classifier gave the label.
| Sentence | Role | The authors' own work | States the main conclusion | Strength |
|---|---|---|---|---|
| Multi-agent systems for code generation are deployed with a single communication topology, chosen once for every problem. | background 0.99 | 0.08 | 0.02 | asserted 1.00 |
| This is the wrong granularity. | gap 0.51 | 0.09 | 0.09 | asserted 1.00 |
| 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. | result 0.99 | 0.96 | 0.26 | asserted 1.00 |
| 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. | contribution 0.58 | 0.91 | 0.28 | asserted 0.99 |
| 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. | method 0.76 | 0.94 | 0.04 | asserted 1.00 |
| 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. | result 0.93 | 0.91 | 0.15 | asserted 1.00 |
| 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. | result 1.00 | 0.96 | 0.40 | asserted 1.00 |
| 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. | result 1.00 | 0.96 | 0.16 | asserted 1.00 |
| A cross-domain study on 400 mathematical reasoning problems reproduces the effect, the gap widening from 2.5 to 20.9 points. | result 0.98 | 0.91 | 0.11 | asserted 1.00 |
What kind of paper the classifier reports this is: method or tool 1.00 · evidence from observation or experiment 0.97
What was examined, and what was not
Sources read
- arXiv listing abstract v1
Not examined
- full text
- figures and tables
- references and citing sentences
- relations to other papers
Levels run
- P abstract
Not run
- S sections
- T body sentences
- C citations
- R cross-paper relations
How the labels were made
Compiled by classifier-1.13.0 via TypeSafe API, question bank abstract-p1-20260923, 2026-09-23: 1 request, 7,272 input tokens.
Every quoted sentence on this record is the authors'. Every label is from Pith's closed vocabulary, with the probability shown beside it. This record as JSON
Figures (11)
Showing 10 of the paper's 11 figures. Figures are the authors', reproduced from the paper.
Cited by 1 Pith paper
Reviewed papers on Pith that cite this one. The full citation record
- Locating and Closing Information Gaps in Multi-Agent Systems cs.AI · Oct 2026
Challenges and discussion
Disagree with the review, or know something it missed? Leave a comment, or challenge this review formally: a challenge becomes a permanent entry in this paper's record, and its decision is published here.
Come back by email
A short list of the week's newly reviewed papers. Nothing is sent until you confirm from your inbox, and every email has a link that stops it. No account.
No comments yet.
Sign in to comment