- Rating
- 4
- Clarity
- 3
- Confidence
- 3
- Originality
- 3
- Quality
- 3
- Significance
- 4
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.
Paper formatting concerns
None
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.
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!