{"id":"154e5a74-7320-4c36-8d12-cbe6b35b7a2d","arxiv_id":"2609.13890","paper_version":1,"verdict":"CONDITIONAL","confidence":"MODERATE","novelty_score":7.0,"correctness_risk":"medium","formal_verification":"none","parameter_count":2,"one_line_summary":"A per-problem topology router for multi-agent code generation beats always-hierarchical collaboration by 4.1 points of pass@1 at 40% of its cost.","lead":"Multi-agent coding systems usually use one fixed team structure for every problem, but this paper shows the expensive structures only pay off on hard problems. It introduces a router that chooses the team per problem and beats always-hierarchical accuracy by about 4 points while spending 40% of its cost.","discovery_kind":"new_method","skeptic_critique":{"model":"deepseek/deepseek-v4-flash","headline":"The undisclosed 'lightweight difficulty scorer' (Section 4.1) is the single most valuable feature (4.24 point drop when ablated) yet its algorithm is unspecified and unvalidated, leaving the difficulty-scaling narrative and a core part of the routing signal unsupported.","rationale":"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.","tokens_in":27201,"tokens_out":3622,"duration_ms":33175,"concrete_test":"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.","verdict_should_be":"UNCHANGED","load_bearing_attack":"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.","agreement_with_reader":"agree"},"referee_report":{"model":"deepseek/deepseek-v4-flash","summary":"This paper argues that multi-agent code generation systems should choose a communication topology per problem rather than fixing one globally. It evaluates five topologies on 614 problems, showing that the benefit of hierarchical collaboration rises from 2.4 points on easy problems to 21.1 points on hard problems while cost remains roughly constant. The authors propose the Difficulty-Aware Topology Selector (DATS), which predicts per-topology success probabilities from 39 interpretable features using a graph network over the topology graph, then selects via a cost-adjusted rule with a budget-calibrated coefficient. At 40% of the always-hierarchical budget, DATS achieves 77.69% pass@1, outperforming the always-hierarchical system by 4.07 points and the strongest learned competitor by 3.42 points, with all eleven pairwise McNemar comparisons surviving Holm-Bonferroni correction. The gain holds across four backbones and transfers to mathematical reasoning. The paper also proposes a budget-matched evaluation protocol for cost-aware routers.","tokens_in":27500,"tokens_out":2359,"duration_ms":21570,"significance":"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.","major_comments":[{"comment":"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. 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.","section":"Section 4.1"},{"comment":"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.","section":"Section 4.1, Table 10"}],"minor_comments":[{"comment":"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.","section":"Section 4.1"},{"comment":"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.","section":"Section 5.2, Table 2"},{"comment":"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.","section":"Section 6.2, Fig. 4"},{"comment":"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.","section":"Section 6.3, Table 4"},{"comment":"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.","section":"Section 6.7"},{"comment":"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.","section":"Section 7.3, Table 11"},{"comment":"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.","section":"Section 8.2"},{"comment":"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.","section":"Throughout"}],"recommendation":"major_revision"},"author_rebuttal":null,"desk_editor":{"model":"deepseek/deepseek-v4-flash","letter":"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.\n\nThe 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.\n\nA 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.\n\nThe 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.\n\nThis 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.","headline":"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.","tokens_in":28103,"tokens_out":998,"duration_ms":10632},"pith_extraction":{"msc":[],"pacs":[],"model":"deepseek/deepseek-v4-flash","headline":"A small statement-only router can decide, per problem, how much collaboration a multi-agent code generator should buy, reaching 77.69% pass@1 at 40% of the always-hierarchical cost.","keywords":["multi-agent systems","large language models","code generation","topology selection","difficulty-aware routing","cost-aware routing","adaptive computation","budget-matched evaluation"],"falsifier":"Replace the paper's internal five-point difficulty rating with externally validated labels — the native APPS introductory/interview/competition strata, MATH's difficulty levels, or independent human judgments of the 614 statements — and re-run the tertile analysis of Fig. 4 and the difficulty-group ablation of Table 10. If the hierarchy-minus-single gap no longer widens from 2.4 to 21.1 points across tertiles, or if dropping the difficulty feature no longer costs 4.24 points of pass@1, the central mechanism is an artifact of the undocumented scorer rather than a property of the problems. A cheaper check: retrain DATS with the difficulty feature replaced by a one-hot of the benchmark suite; because Table 1 shows mean difficulty rising with suite, a router that barely changes under this substitution would reveal that the 'difficulty' signal is largely suite membership.","tokens_in":28865,"feed_emoji":"🧩","tokens_out":14493,"duration_ms":74729,"temperature":0.7,"pith_summary":"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.","feed_headline":"77.7% pass@1 at 40% of the cost beats fixed pipelines by 4 points","feed_subtitle":"Choosing how much to collaborate per code problem recovers hierarchy's edge while spending 60% less.","key_machinery":"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_discovery":"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.","pith_inferences":["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"],"forward_implications":["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."],"supporting_citations":[{"why":"Defines the fixed waterfall-style multi-agent paradigm whose single-topology commitment the paper argues against.","marker":"[1]"},{"why":"The role-delegating framework that exemplifies the fixed-topology systems whose uniform benefit the paper measures and refutes.","marker":"[2]"},{"why":"Provides the conversational substrate that makes arbitrary fixed topologies easy to build, framing the deployment cost that motivates routing.","marker":"[3]"},{"why":"Supplies the predict-then-optimize construction that separates per-topology outcome prediction from the cost trade-off.","marker":"[6]"},{"why":"The cascade formulation whose cost-aware comparison motivates the budget-matched protocol and the routing-then-escalation extension.","marker":"[25]"},{"why":"Source of the MasRouter-lite baseline, a learned routing baseline that DATS must beat at equal spend.","marker":"[32]"},{"why":"Source of the RouterR1-lite baseline, the reward-regression router that ranks above DATS under a shared coefficient but below it once budget-matched.","marker":"[33]"},{"why":"APPS benchmark: supplies the difficulty-stratified code problems (introductory, interview, competition) that carry the difficulty-scaling analysis.","marker":"[38]"},{"why":"EvalPlus's HumanEval+: the strengthened easy-regime benchmark where single calls nearly suffice and routing decisions are cheap.","marker":"[39]"},{"why":"LiveCodeBench: the contamination-free contest benchmark where surface features separate problems poorly and the router leaves its largest oracle gap.","marker":"[41]"}],"fun_headline_variants":["77.7% pass@1 at 40% cost by choosing collaboration per problem","Difficulty-aware topology selection saves 60% cost, gains 4 points","Per-problem collaboration beats fixed topology by 4.1 points","DATS: 77.7% pass@1 at 40% of hierarchy cost","Cost-aware topology selection yields 77.7% pass@1 at 40% spend"],"cache_read_input_tokens":0,"weakest_assumption_plain":"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.","fun_headline_variants_meta":{"raw":{"variants":["77.7% pass@1 at 40% cost by choosing collaboration per problem","Difficulty-aware topology selection saves 60% cost, gains 4 points","Per-problem collaboration beats fixed topology by 4.1 points","DATS: 77.7% pass@1 at 40% of hierarchy cost","Cost-aware topology selection yields 77.7% pass@1 at 40% spend"]},"model":"deepseek/deepseek-v4-flash","effort":"low","cost_usd":0.000311,"raw_usage":{"cost":0.000310968,"is_byok":false,"cost_details":{"upstream_inference_cost":0.000310968,"upstream_inference_prompt_cost":0.000137648,"upstream_inference_completions_cost":0.00017332},"total_tokens":1807,"prompt_tokens":1188,"completion_tokens":619,"prompt_tokens_details":{"audio_tokens":0,"video_tokens":0,"cached_tokens":256,"cache_write_tokens":0},"completion_tokens_details":{"audio_tokens":0,"image_tokens":0,"reasoning_tokens":512}},"tokens_in":1188,"tokens_out":619,"cost_source":"openrouter_usage","duration_ms":6684,"image_pages":[],"temperature":1.0,"reasoning_tokens":512,"transport_provider":"openrouter","cache_read_input_tokens":0,"cache_creation_input_tokens":0},"cache_creation_input_tokens":0},"created_at":"2026-09-15T20:40:56.462963+00:00","model_set":{"reader":"deepseek/deepseek-v4-flash"},"pipeline_version":"pith-pipeline@v1.4.1-daily-deepseek-or-medium","input_kind":null,"input_chars":null,"input_total_chars":null,"passes_missing":null,"published_standing":null,"published_confidence":null,"objection_audit":null,"run_record":null,"basis":{"kind":"not_recorded","source":null,"chars_given":null,"chars_total":null},"receipt":null,"falsifier":"Replace the paper's internal five-point difficulty rating with externally validated labels — the native APPS introductory/interview/competition strata, MATH's difficulty levels, or independent human judgments of the 614 statements — and re-run the tertile analysis of Fig. 4 and the difficulty-group ablation of Table 10. If the hierarchy-minus-single gap no longer widens from 2.4 to 21.1 points across tertiles, or if dropping the difficulty feature no longer costs 4.24 points of pass@1, the central mechanism is an artifact of the undocumented scorer rather than a property of the problems. A cheaper check: retrain DATS with the difficulty feature replaced by a one-hot of the benchmark suite; because Table 1 shows mean difficulty rising with suite, a router that barely changes under this substitution would reveal that the 'difficulty' signal is largely suite membership.","supporting_citations":[{"cited_title":null,"cited_arxiv_id":null,"evidence_quote":"Defines the fixed waterfall-style multi-agent paradigm whose single-topology commitment the paper argues against."},{"cited_title":null,"cited_arxiv_id":null,"evidence_quote":"The role-delegating framework that exemplifies the fixed-topology systems whose uniform benefit the paper measures and refutes."},{"cited_title":"AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation","cited_arxiv_id":"2308.08155","evidence_quote":"Provides the conversational substrate that makes arbitrary fixed topologies easy to build, framing the deployment cost that motivates routing."},{"cited_title":"predict, then opti- mize","cited_arxiv_id":null,"evidence_quote":"Supplies the predict-then-optimize construction that separates per-topology outcome prediction from the cost trade-off."},{"cited_title":"FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performance","cited_arxiv_id":"2305.05176","evidence_quote":"The cascade formulation whose cost-aware comparison motivates the budget-matched protocol and the routing-then-escalation extension."},{"cited_title":"Zhang, G","cited_arxiv_id":null,"evidence_quote":"Source of the MasRouter-lite baseline, a learned routing baseline that DATS must beat at equal spend."},{"cited_title":"Router-r1: Teaching llms multi-round routing and aggregation via reinforcement learning","cited_arxiv_id":null,"evidence_quote":"Source of the RouterR1-lite baseline, the reward-regression router that ranks above DATS under a shared coefficient but below it once budget-matched."},{"cited_title":"Hendrycks, S","cited_arxiv_id":null,"evidence_quote":"APPS benchmark: supplies the difficulty-stratified code problems (introductory, interview, competition) that carry the difficulty-scaling analysis."},{"cited_title":null,"cited_arxiv_id":null,"evidence_quote":"EvalPlus's HumanEval+: the strengthened easy-regime benchmark where single calls nearly suffice and routing decisions are cheap."},{"cited_title":null,"cited_arxiv_id":null,"evidence_quote":"LiveCodeBench: the contamination-free contest benchmark where surface features separate problems poorly and the router leaves its largest oracle gap."}],"lane_accuracy":{"status":"not yet measured","lane":{"model":"deepseek/deepseek-v4-flash","input_kind":null},"url":"https://pith.science/accuracy"},"review_version":1}