SWE-Protégé: Small Language Models for Software Engineering Through Learned Expert Collaboration
Patrick Tser Jern Kon, Archana Pradeep, Ang Chen, Alexander P. Ellis, Warren Hunt, Zijian Wang, John Yang, Samuel Thompson
NeurIPS 2026
Abstract. Small language models (SLMs) offer compelling advantages in cost, latency, and adaptability, but have lagged behind larger models on long-horizon software engineering tasks such as SWE-bench, where they suffer from pervasive action looping and low resolution rates. We introduce SWE-Protégé, a post-training framework that reframes software repair as an expert–protégé collaboration problem. In SWE-Protégé, an SLM remains the primary decision-maker while learning to selectively seek guidance from a strong expert model, recognize stalled states, and follow through on expert feedback. Our approach combines supervised fine-tuning on expert-augmented trajectories with agentic reinforcement learning that explicitly discourages degenerative looping and unproductive expert collaboration. We lightly post-train Qwen2.5-Coder-7B-Instruct to achieve 42.4% Pass@1 on SWE-bench Verified with SWE-agent and Claude Opus 4.1 as the expert, a +25.4% improvement over the prior SLM state of the art, while using expert assistance sparsely (≈4 calls per task and 11% of total tokens). With Claude Sonnet 4.5 as the expert, it reaches 41.0% at a median expert API cost of USD 0.15 per task, 8.2× lower than running the expert alone.
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:42 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This paper trains a 7B code model to recognize stalled software-repair states and selectively escalate to a frontier expert, framing the problem as learned collaboration—not static routing or distillation. The headline result is 42.4% Pass@1 on SWE-bench Verified, a 25.4% relative improvement over the prior small-model state of the art, while using expert assistance sparsely at roughly 4 calls per task and 11% of total tokens. The central concern in review was whether the SFT data leaked the gold patch into the policy, since the expert that generated training trajectories saw the reference solution while the inference-time expert does not. A second thread asked whether Phase II RL added accuracy or merely shaped behavior. The authors showed that removing the gold patch during trajectory synthesis changes performance by ~0.3 points, closing that concern. They reframed Phase II as primarily behavior-shaping, cutting token use and collapsing degenerative loops from 31% to under 1%. DpS6 treated the reference-solution concern as resolved and accepted the corrected cost attribution, but DPgc, though reassured by the judge validation, kept 32B returns and untested sensitivity open. Fixed-interval and random expert injection, trajectory splicing, and matched-scale distillation all underperform the learned policy, while runtime aborts fall and expert call volume stays flat. However, no exact expert-disabled number is reported on the primary benchmark, where the authors point to figure curves instead, so the standalone contribution there is not quantified, and that gap is why the claim is poster scope. The camera-ready should report the human validation of the RL judges and the reference-solution ablation, and pair cost with accuracy inside one expert configuration.
Final justification
The controls are real: fixed-interval and random expert injection, trajectory splicing, and matched-scale distillation all trail the learned policy. None of them measures the policy with the expert switched off, though, and the authors never report an exact expert-disabled number on the primary benchmark. I read the result as the best collaboration strategy of those tried, not a policy shown to stand alone. Poster scope.
Read meta-review
Meta-review
This paper trains a 7B code model to recognize stalled software-repair states and selectively escalate to a frontier expert, framing the problem as learned collaboration—not static routing or distillation. The headline result is 42.4% Pass@1 on SWE-bench Verified, a 25.4% relative improvement over the prior small-model state of the art, while using expert assistance sparsely at roughly 4 calls per task and 11% of total tokens. The central concern in review was whether the SFT data leaked the gold patch into the policy, since the expert that generated training trajectories saw the reference solution while the inference-time expert does not. A second thread asked whether Phase II RL added accuracy or merely shaped behavior. The authors showed that removing the gold patch during trajectory synthesis changes performance by ~0.3 points, closing that concern. They reframed Phase II as primarily behavior-shaping, cutting token use and collapsing degenerative loops from 31% to under 1%. DpS6 treated the reference-solution concern as resolved and accepted the corrected cost attribution, but DPgc, though reassured by the judge validation, kept 32B returns and untested sensitivity open. Fixed-interval and random expert injection, trajectory splicing, and matched-scale distillation all underperform the learned policy, while runtime aborts fall and expert call volume stays flat. However, no exact expert-disabled number is reported on the primary benchmark, where the authors point to figure curves instead, so the standalone contribution there is not quantified, and that gap is why the claim is poster scope. The camera-ready should report the human validation of the RL judges and the reference-solution ablation, and pair cost with accuracy inside one expert configuration.
Final justification
The controls are real: fixed-interval and random expert injection, trajectory splicing, and matched-scale distillation all trail the learned policy. None of them measures the policy with the expert switched off, though, and the authors never report an exact expert-disabled number on the primary benchmark. I read the result as the best collaboration strategy of those tried, not a policy shown to stand alone. Poster scope.
- 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
The paper introduces a post-training expert–protégé model collaboration framework, SWE-Protégé, that enables small language models (as Protégés) to solve complex, long-horizon software engineering tasks by selectively collaborating with a frontier "expert" model. The method consists of a two-phase pipeline applied to Qwen2.5-Coder-7B-Instruct:
(1) Supervised Fine-Tuning (SFT) on expert-augmented trajectories to teach the mechanics of querying an expert, and
(2) Reinforcement Learning (GRPO) with a composite reward that penalizes degenerative action looping via a rule-based command-repetition penalty, and rewards the SLM for following expert guidance using the expert as an in-trajectory judge.
The paper reports that, evaluated on SWE-bench Verified, SWE-Protégé-7B achieves a peak 42.4% Pass@1 (using Claude Opus 4.1 as the expert), outperforming the prior 7B baseline by +25.4%. Crucially, the SLM maintains primary control and acts as the primary decision-maker, using the expert sparsely (~11% of total tokens). This sparse usage significantly reduces per-task costs, for instance, achieving 41.0% Pass@1 with Sonnet 4.5 at an 8.2x lower cost compared to deploying the expert alone.
Strengths and weaknesses
The core empirical result, that this training framework substantially reduces degenerative action looping and solves 40%+ of SWE-bench Verified tasks at a lower cost than running a frontier model natively, targets a real and currently underserved problem. The recipe is well-motivated, genuinely lightweight, and practically relevant, and the experimental design and empirical evaluation are rigorous. Also, the methodology is sound, with one caveat noted in (3) below. The ablations are a particular strength, the random-injection control isolates the value of the learned collaboration policy from mere expert access, and the contamination study, capability-retention checks, and teacher-quality control add credibility.
However, that said, four substantive issues and a minor citation error are listed below.
(1) The abstract merges the best-of-different-configurations, specifically, the flagship accuracy (Opus 4.1) and the flagship cost savings (8.2×, Sonnet 4.5) come from different expert backends, and are not paired in the abstract's headline. The 42.4% Pass@1 comes from using the highly expensive Opus 4.1, while the 8.2x cost savings comes from using the cheaper Sonnet 4.5. Presenting the best metrics from different configurations in the same breath can be misleading. A single configuration reporting accuracy and total dollar cost together would be more honest.
(2) The 32B model jumps from 41.5% (no expert) to only 43.0% (with expert) on the held-out set, adding only a +1.5% absolute gain. This may suggest the expert-collaboration framework has rapidly diminishing returns at larger base-model scales. This may need further explanation.
(3) Phase 2 RL relies on unvalidated LLM-as-judge scores, J_warrant and J_follow, which are scored by the expert model based on whether the SLM followed the expert's advice. This may introduce a circular dependency. Without human validation, it is unclear if the judge is well-calibrated or if the policy is simply reward-hacking the expert's self-preference biases. Given that Phase 2 is presented as a core contribution, the reliability and calibration of these judges is a genuine soundness gap; reporting agreement against human labels on a sample may address it.
(4) The ""SLM agent"" framing understates a hybrid dependency. The paper brands the system as an ""SLM agent"" that beats the prior open-weight 32B SOTA baseline, 42.4% vs 40.2%. However, SWE-Protégé is fundamentally a hybrid system that relies on a proprietary, frontier model (Claude) via an API to handle difficult reasoning steps, so comparing a Claude-assisted 7B model against an unassisted 32B model is inherently asymmetric. The dependence on a frontier expert should be foregrounded, and the ""SLM"" framing carefully qualified.
Finally, I see a minor citation/attribution issue in Sec. 3.1, GRPO is cited as ""GRPO (Khatri et al., 2025)."" My understanding is that GRPO was introduced in the DeepSeekMath paper by Shao et al. (2024). Khatri et al. may be relevant for RL scaling, but the primary citation for the GRPO algorithm should be corrected.
Questions
(1) Frontier models (experts) may fail and sometimes provide incorrect localization or edits. Does the SWE-Protégé SLM ever learn to push back against the expert guidance? How does the SLM handle a situation in which it follows the expert's advice, fails, and then calls the expert again? Does the strict follow_score reward force the SLM into a doomed trajectory, or is there any evidence (qualitative or quantitative) of course correction?
(2) The stall penalty uses hardcoded command normalization. How sensitive is the RL phase to these specific heuristics? Have you tested this reward design on a different agent scaffold where the action space can be on a GUI or isn't strictly bash commands?
(3) Related to the previous question, since Phase 2 RL uses only a 100-task subset for 160 steps, how sensitive are the final SWE-bench results to the specific selection of these 100 tasks? Did you observe high variance in the final SWE-bench Pass@1 metric if a different random subset of SWE-Gym was used? Furthermore, how sensitive are the results to the sample size itself, e.g., scaling the RL phase to more tasks?
(4) Given the significant complexity of the pipeline, the hidden LLM-as-a-judge integration, and the need for reproducibility, do you commit to open-sourcing the training code, reward functions, and the 4.8K expert-augmented SFT dataset upon publication?
Limitations
largely yes. However, explicitly adding or acknowledging the concerns raised in the Strengths and Weaknesses section, such as the diminishing returns at scale, the unvalidated RL judges, and the asymmetric baselines, would further increase the paper's transparency.
Final justification
The rebuttal addressed several of my main concerns. The authors agreed to correct the abstract so that accuracy and cost savings are reported for the same expert configuration, clarify that SWE-Protégé is a hybrid system rather than a standalone SLM agent, and fix the GRPO attribution. Most importantly, the newly reported human validation of the warrant and follow judges substantially reduces my concern about the reliability of the RL supervision. The commitment to release the training code, reward functions, dataset, and checkpoints also improves reproducibility.
Some issues remain unresolved. The limited improvement for the 32B model suggests diminishing returns at larger scales, and the sensitivity of Phase II to the selected 100-task subset, reward heuristics, and alternative agent scaffolds has not been empirically tested. The authors appropriately acknowledge these as limitations, but they restrict the generality of the conclusions.
I give greater weight to the strong empirical results, careful ablations, cost-efficiency analysis, and the rebuttal’s validation of the judge mechanism than to the remaining scope and generalization concerns. Overall, I recommend a borderline accept, as the work is technically solid and practically significant, while still leaving important questions for future evaluation.
Formatting concerns
None
2 comments
Thank you for the detailed rebuttal. The additional human validation of the LLM judges substantially addresses my main soundness concern. I also appreciate the planned corrections to the abstract, hybrid-system framing, and GRPO citation, as well as the commitment to release the training artifacts. Questions around scaling, reward generalization, and sensitivity to the 100-task subset remain open, but are now appropriately acknowledged as limitations. Overall, the rebuttal strengthens my assessment to accept the paper.
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 4/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
Small Language Models (SLMs) suffer from several common failure modes in software engineering tasks, with one prevalent mode being degenerative stalling. SWE-Protege addresses this issue by 1) designing a supervised fine-tuning (SFT) pipeline using expert-model-crafted synthetic trajectories and 2) performing reinforcement learning, specifically, GRPO to steer the SLM towards escalation when stalling and following through after expert guidance. Experimental results show that SWE-Protege improves resolution rate in SWE-bench Verified (42.4% Pass@1 on SWE-bench Verified with SWE-agent, a +25.4% improvement), as well as decreasing the rate of degenerative stalling, while using expert assistance sparsely.
Strengths and weaknesses
Strengths:
- The approach has a substantial improvement over the SLM state of the art (+25.4%), while using expert assistance sparingly, yielding a substantially lower (8.2x) cost compared to expert-only agents.
- The writing is relatively clear and easy to follow.
- The authors have provided ample information in the appendix regarding the prompts used and the training / RL setup.
- The authors' method successfully achieves the goal of improving resolution rate, token efficiency, and behavioral steering.
Weaknesses:
- There exists prior works on expert-student frameworks. A survey by Yang et al. (10.1145/3699518) and Fang et al. (10.1007/s10462-025-11423-3) lays out the techniques for knowledge distillation for LLMs. Recent software engineering works also discuss the use of LLMs to improve SLMs in similar manner as the authors suggest, like ActiveLog (Ma et al., 10.1145/3749840) which routes logs marked as uncertain by the SLM to the LLM, and ZeroNL2SQL (Fan et al., 10.14778/3681954.3681960), which fine-tunes an SLM for generating SQL sketches and using an LLM to fill in the gap. While it is true that the study successfully resolves failure modes common in SLMs, it seems difficult to claim originality.
- The training dataset is generated by having the expert call for help. But it's likely the case that the expert and the SLM needs different kinds of help at different times on different cues. There is a latent assumption that the SLM would match the behavior of the expert.
- It's not immediately obvious what is considered degenerative stalling and low-quality collaboration.
Questions
- How does SWE-Protege's design compare with existing expert-student frameworks?
- Is there a reason why you chose GRPO over other optimization techniques?
Limitations
Yes, limitations are adequately addressed in the paper.
Final justification
The authors provided good responses to my questions and my concerns. My main rating remains the same (Accept), but the paper now scores higher on Originality (Good) since the authors provided good answers to "How does SWE-Protege's design compare with existing expert-student frameworks?"
Formatting concerns
No concerns.
2 comments
Rebuttal
Thank you sincerely for your careful reading and review of our paper! We address each point below.
There exists prior works on expert-student frameworks... While it is true that the study successfully resolves failure modes common in SLMs, it seems difficult to claim originality.
How does SWE-Protege's design compare with existing expert-student frameworks?
Thank you for these references; we agree they belong in our related work and will add all four. Our §A currently draws the distinction we would emphasize: prior routing operates at per-task granularity (and generally) on single-turn tasks, with the decision made outside the small model; AdaptiveLog (Ma et al.) by an external uncertainty estimate, ZeroNL2SQL (Fan et al.) by a fixed pipeline stage assigned a priori, and distillation not at all (the teacher is absent at inference). SWE-Protégé instead places the decision inside the policy, at any step of a trajectory. We avoid an external gate deliberately: as noted in §A, a reliable per-step routing signal is ill-posed here, e.g., a syntax error does not warrant escalation. Escalation is also only one of three learned capabilities; the SLM must formulate a useful query and follow through over multiple turns, which routing alone cannot supervise. Crucially, the spirit of non-adaptive routing is already empirically covered by our ablations: fixed-interval and random expert invocation are routing-like strategies that invoke the expert on a schedule rather than adaptively. As shown in §4.1, both substantially underperform our approach, even with comparable or greater expert access. Finally, as shown in App. B, we also compared our approach against plain knowledge distillation at the same ≈5K scale: Pass@1 is 17.0% / 23.6% / 24.2% for Sonnet 3.7 / 4.5 / Opus 4.1 teachers, while SWE-Protégé trained on trajectories from the weakest of those reaches 30.8%, which is still substantially better.
The training dataset is generated by having the expert call for help... There is a latent assumption that the SLM would match the behavior of the expert.
We agree with this statement, and this is also partly why we do not rely solely on Phase I to set escalation behavior. As we note in §2.2, SFT addresses how to interact with the expert at the level of mechanics and local semantics. It does not determine when escalation is appropriate, nor does it enforce correct downstream behavior after advice is given. Phase II supplies exactly that, and it is on-policy: rollouts are the SLM's own, and the warrant and follow-through scores are computed on the SLM's own stalled states and its own subsequent behavior. We will make this framing explicit in §2.3.
It's not immediately obvious what is considered degenerative stalling and low-quality collaboration.
We define degenerative stalling operationally as a contiguous repetition of normalized tool-action patterns. Low-quality collaboration includes unwarranted escalation, back-to-back expert calls, and failure to follow through or report back on expert guidance. These are captured respectively by J_warrant, the back-to-back penalty, and J_follow. We will move these definitions and the concrete thresholds into a compact main-text description.
Is there a reason why you chose GRPO over other optimization techniques?
We made use of an RL training setup that closely mirrors that of recent prior software repair work such as SWE-RL (Wei et al., 2025) and CWM (Copet et al., 2025) that also make use of the GRPO optimizer, which keeps our results more easily interpretable against that line of work. Our goal was not to establish GRPO as uniquely optimal.
Thank you for your time again. We hope this helps address your questions and concerns!
Thank you for the responses to my questions and my concerns. My main rating remains the same, but the Originality score increased. I'm happy with the paper.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 2/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper presents SWE-Protégé, a post-training method that reframes long-horizon software repair as an expert-protégé collaboration problem. The idea is to keep a small model as the sole decision-maker while it learns to selectively ask a strong frontier expert for help when it stalls, recognize stalled states, and follow through on the expert's feedback. The method has two phases: supervised fine-tuning on expert-augmented trajectories, followed by a short round of agentic RL with shaped rewards targeting when to escalate and how to collaborate across turns. Applying this pipeline to a small model, the paper report results that exceed larger models under the same scaffold while calling the expert sparsely and at lower cost.
Strengths and weaknesses
Strengths
- The problem this paper targets is meaningful and deployment-relevant. Small models are attractive for cost and latency but have lagged on long-horizon agentic tasks, where looping and stalled progress are a real and stubborn failure mode. Framing this as a learned, multi-turn, protégé-initiated escalation policy, with the small model staying in charge throughout.
- The experiments are unusually well-controlled, and the behavioral diagnostics are also convincing, and the whole pipeline is light on data and compute and reasonably well documented.
Weaknesses
- My main concern is that the SFT data leaks the answer. The expert that generates the training trajectories can see the gold patch. But at inference the expert has no gold patch. So the way I read it, the SLM is trained to imitate guidance that was shaped by the answer key, then deployed without one. That's an optimistic bias at best, and possibly a hint leak into the SFT targets, and I don't see any control that tests for it.
- My second concern is the benifit of RL. I'm not convinced the Phase II apparatus earns its complexity. Only +1.8 for the main Sonnet 3.7 config in Table2. With SFT at 29.0 and a reported 30.8 plus or minus 0.8 SE, I can't tell that +1.8 apart from noise, and the authors themselves say loop suppression alone improves accuracy only marginally.
Questions
- What's the no-expert number on Verified? The only no-expert result I can find (32.0%)is on the easier held-out set, and the headline "7B beats 32B" is really a hybrid with Opus access beating a standalone model.
- What's the total per-task cost for the 42.4% config? The "8.2×" comes from a different setup (Sonnet 4.5), counts only expert tokens, and leaves out the SLM's ~88% of tokens and its GPU cost.
- Can you give the actual threshold values? App E.5 says all the thresholds are in Sec 3, but I couldn't find numbers for a1, a2, b1, b2 or τ_low, p_low, λ anywhere.
Limitations
Limitations are partially but not adequately discussed. (1) The headline benchmark never isolates the no-expert SLM, so the frontier dependence is understated rather than quantified, (2) the train/inference privileged-information asymmetry and its optimistic-bias/leakage risk is not treated as a limitation or tested.
Final justification
I have carefully read the authors' rebuttal and the discussions with other reviewers and the AC. My final recommendation and justification are as follows:
1. Resolved Issues:
- SFT Gold-Patch Data Leakage Concern: The authors clarified that the gold patch is only used for trajectory generation via rejection sampling and is not present during inference. Their analysis showing comparable performance (+-0.3%) without gold patches during trajectory synthesis adequately addresses my initial concern about optimistic bias.
- Cost & Efficiency Clarification: The authors addressed the misattributed 8.2x cost comparison and clarified that Phase II RL primarily acts as a behavior-shaping and token-efficiency intervention (reducing token usage by ~40% and drastically cutting degenerative loops) rather than purely an accuracy boost.
- Clarifications & Hyperparameters: The authors agreed to tone down the claim regarding "7B beating 32B," provide clear no-expert baselines on SWE-bench Verified, and add the missing hyperparameter thresholds in the final version.
Conclusion: The authors have convincingly addressed my main technical and methodology concerns regarding Phase I data synthesis and Phase II utility. The empirical results and behavioral improvements remain solid. Therefore, I maintain my updated positive evaluation to accept the paper.
Formatting concerns
N/A
2 comments
Rebuttal
Thank you for your time reviewing our paper! We address each of your concerns and questions below. We hope this is helpful!
My main concern is that the SFT data leaks the answer. The expert that generates the training trajectories can see the gold patch. But at inference the expert has no gold patch. So the way I read it, the SLM is trained to imitate guidance that was shaped by the answer key, then deployed without one. That's an optimistic bias at best, and possibly a hint leak into the SFT targets, and I don't see any control that tests for it.
Thank you for raising this. The gold patch is used only during synthetic data generation of the SFT trajectories, only by the expert, which is explicitly instructed not to reveal it verbatim, and it is never available at evaluation (i.e., at inference, both the protégé and expert operate without the gold patch or unit tests). Its role there is to raise the yield of successful trajectories for rejection sampling: it produced 38% more usable trajectories than generation without it (§3.1).
To better illustrate this, we will highlight in the camera-ready version of the paper analysis that we conducted against our previously post-trained (P1) model that made use of an SFT trajectory pool with the expert given no gold patch, sampled to the same trajectory counts as shown in Fig 2: we observed negligible differences (+- 0.3%) in test time performance across all expert backends.
Finally, we want to highlight that our contamination study (§4.1) evaluates on a held-out 400-task SWE-smith subset explicitly excluded from the training mixture and released after both Sonnet 3.7 and SWE-smith. Gains persist there (32.0% without expert → 40.3% with Sonnet 3.7), i.e., the learned collaboration behavior does not depend on having seen the task.
My second concern is the benifit of RL…
Thank you for mentioning this. Phase II is not primarily an accuracy intervention (especially since we only did lightweight post-training on 100 tasks for 160 steps); it is mostly for efficiency, where we were able to reduce total token use by ≈40%. We will revise the text so that Phase II is presented as primarily a behavior- and cost-shaping stage. To be more specific on the numbers:
-
Degenerative looping: the fraction of trajectories with a repeated-action run longer than 10 steps falls from 31.0% (post-SFT) to 0.8%, with none exceeding 20 (§4, Fig. 6). For reference, SWE-agent-LM-7B/32B sit at 33.6% / 24.4%.
-
Follow-through: mean follow score rises from ≈0.2 to ≈0.8, and the fraction of trajectories with non-positive follow reward falls from 30–40% to ≈5% (Fig. 9).
-
Efficiency: the above translates to increased efficiency, where mean steps per task drop from ≈60 to ≈20 (Fig. 8) and total token usage falls ≈40% (Fig. 3), which is what drives the per-task cost reductions in Fig. 4. Runtime-limit aborts collapse (Fig. 5).
-
Crucially, none of this is bought with more expert access: mean expert calls stay flat across Phase II (3.6 → 4.1, Table 3), so the change is in interaction quality, not quantity.
What's the no-expert number on Verified? The only no-expert result I can find (32.0%)is on the easier held-out set, and the headline "7B beats 32B" is really a hybrid with Opus access beating a standalone model.
Thank you for mentioning this. We will clarify this in our camera-ready version. The no-expert numbers on Verified are negligibly close to the results of SWE-agent-LM-7B, as shown in green lines in Figure 2. We will also tone down the "7B outperforms 32B" headline: the claim we intend is that learned selective collaboration is an attractive alternative use of a fixed frontier-token budget, not that a 7B model matches a 32B one in isolation.
What's the total per-task cost for the 42.4% config? The "8.2×" comes from a different setup (Sonnet 4.5), counts only expert tokens, and leaves out the SLM's ~88% of tokens and its GPU cost.
Thank you; we will fix the reporting. The 8.2× is a Sonnet 4.5 number and should not have been paired with the Opus 4.1 accuracy. Moreover, we will replace "cost" with "expert API cost" throughout the paper. We deliberately do not attach a dollar figure to protégé compute, as it depends on hardware ownership, utilization, and batching, which vary by orders of magnitude across individual deployments. In our own case, it ran on hardware already available to us. That said, and as stated in our introduction, we envision SWE-Protégé shining in settings where access to frontier-model tokens is the constraint, e.g., application services such as Cursor and OpenClaw operating under cost, quota, or rate-limit ceilings. These resources are not interchangeable: frontier tokens are an external cost metered per call and capped by quotas and rate limits, whereas protégé compute is fungible and amortizable across owned or rented hardware.
Can you give the actual threshold values? App E.5 says all the thresholds are in Sec 3, but I couldn't find numbers for a1, a2, b1, b2 or τ_low, p_low, λ anywhere.
Thank you for pointing this out; the App. E.5 cross-reference is incorrect and we will fix it and include the remaining values in our camera-ready version. Specifically, (a1, a2) = (-1.0, -2.0), (b1, b2) = (-0.5, -1.0), (τ_low, p_low) = (0.5, -1.0), and λ_b2b = -0.1 (capped at -1); we also use mean aggregation for both Agg terms and w_sim = 1.0.
Thank you for your time again. We hope this helps address your questions and concerns!
Response to Authors
Thank you to the authors for the detailed response and additional revisions. Most of my major concerns have been adequately addressed. Therefore, I am increasing my rating to 4. I encourage the authors to include these promised updates in the final paper.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Rebuttal
Thank you sincerely for this constructive review! We address each of your remaining questions and comments below.
We agree, and we will patch the abstract accordingly. We will pair both figures within the Sonnet 4.5 configuration, which is where the 8.2× already comes from: 41.0% Pass@1 at a median expert cost of USD 0.15 per task versus USD 1.24 for direct expert execution.
Thank you for mentioning this. We agree that further experimentation and analysis for large language models (as opposed to SLMs that have <= 10B parameters) will be great future work. One possible explanation and direction, which we alluded to in our limitations and future work discussion (§5) and will include in more detail in the camera-ready version, is that we currently treat the expert as a fixed black-box solver rather than as a trained advisor. Ideas include co-adaptively post-training the expert and protégé, not just the latter, and alternative collaboration strategies (e.g., expert interrupts). Your observation gives that direction a much sharper motivation than we currently provide. We will also add the scale-dependence of returns as an explicit limitation.
Thank you, agreed, and we will include the human validation you suggest, which we actually performed while iterating over both prompts before submission but neglected to include. Before that, here are three structural points that we think bound the risk:
First, the reported metric is judge-independent. Judge scores shape training only; SWE-bench Verified Pass@1 is used during evaluation only (App. E.1). A policy that games the judges may not necessarily manufacture end-task success, so a hacking failure mode would appear as judge scores rising while Pass@1 stagnates or falls. We observe the opposite: Pass@1 improves across all three expert backends while total token usage falls ≈40%.
Second, the judged quantities are closer to verifiable than to preferential. The follow judge (Fig. 16) asks a largely factual question: “did the agent execute the instructed action and report back”, not a quality judgment, and its rubric explicitly assigns
nullwhen there is no clear instruction to follow, so it does not score the agent when there is nothing to follow. Judge outputs are also hidden from the agent throughout (App. D), so there is no visible signal to optimize against in-context.Third, the training dynamics do not show the signature of warrant-judge gaming: mean expert reward stays within a narrow 0.82–0.88 band across all 160 steps (App. B) rather than climbing, and train and evaluation curves track each other closely throughout, indicating the improvements are not fitted to the judge on the training rollouts.
Finally, we also include the human validation you proposed. We constructed our prompts iteratively by manually inspecting the judge outputs until they reached a quality threshold we were satisfied with. We detail the final results here: we sampled 140 warrant events and 160 follow events uniformly from Phase II rollouts and labelled them manually against the rubrics in Figs. 15–16, blind to the judge's score. Agreement with the judge: warrant 84% (κ = 0.66) and follow 89% (κ = 0.77), with inter-annotator agreement of κ = 0.81. We will report this, the rubrics, and the disagreement analysis in the appendix.
We agree and will strengthen the framing in our paper. Concretely, for instance, where our current text mentions “SLM agents”, we will instead describe the system as one in which an SLM is the primary decision-maker and a frontier expert is consulted sparingly.
Thank you for catching this. We will cite Shao et al. (2024, DeepSeekMath) as the primary source for GRPO and retain Khatri et al. only where relevant to RL scaling considerations in our implementation.
The reward does not require agreement, only execution and reporting back: reporting a negative result ("I applied the suggested edit and the reproduction still fails") counts as following through, and the rubric treats requesting clarification in order to complete an instructed action as following that guidance, assigning
nullwhen no clear instruction exists (Fig. 16). The terminal correctness term (unit-test verification, App. E.1) also creates opposing pressure, so following bad advice into a failing patch is not rewarded.We do see course correction qualitatively: e.g., in the Phase II trajectory for
sympy__sympy-14976(Fig. 19), the expert's initial guidance directs attention tolambdify.py, and the multi-turn exchange converges instead on the true fault location inpycode.py. We have not quantified this, and we agree that explicitly training or measuring disagreement, when the protégé should override an expert rather than comply, is a valuable future direction.Thank you for mentioning this. The normalization is derived from 2 sources: the instantiation provided by SWE-smith (§F.5.2 of their paper), and empirically supplemented by inspecting a large number of post-SFT trajectories until the taxonomy covered the repetition patterns we observed during rollouts (App. E.2). We are thus able to capture most stall behaviours during our RL phase. However, we acknowledge that we have not tested this on a scaffold with a different action space such as a GUI, whose construction would likely require its own canonicalizable action signature. We will state this explicitly as a limitation.
This is a fair question which we had not directly ablated. For convenience, we used the default SWE-Gym 100 task subset that came bundled with the SkyRL base training framework (located in the
preprocess_swegym.pyfile within the NovaSky-AI/SkyRL GitHub repo). With that said, the behavioral effects of Phase II transfer to good performance for two task distributions entirely disjoint from the SWE-Gym subset: SWE-bench Verified and the held-out 400-task SWE-smith subset. We will add this suggestion to our future work section.Yes. We commit to releasing, upon publication: the Phase II training code including our SkyRL generator and the SWE-agent integration, the complete reward implementation, the
ask_experttool bundle, the 4.8K expert-augmented SFT dataset, and the SFT and post-RL model checkpoints.Thank you for your time again. We hope this helps address your questions and concerns!