arXiv(opens in a new tab)cs.AISep 2026Cited by 3 papers on PaperVantage

Manuscript Offprint

arXiv:2609.07925

FrogNano: Training a 4B Coding Agent via Online Task Synthesis

Minseon Kim, Zhengyan Shi, Emiliano Penaloza, Christopher Cui, Roger Creus Castanyer, Maryam Hashemzadeh, Isadora White, Jonathan Light, Jeonghye Kim, Matheus Pereira, Darya Moldavskaya, Chinmay Singh, Fabio Vera, Baolin Peng, Xingdi Yuan, Marc-Alexandre Côté, Alessandro Sordoni

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Minseon Kim*, Zhengyan Shi*, Emiliano Penaloza*◇, Christopher Cui*◇, Roger Creus Castanyer*◇, Maryam Hashemzadeh◇, Isadora White◇, Jonathan Light◇, Jeonghye Kim◇, Matheus Pereira, Darya Moldavskaya, Chinmay Singh, Fabio Vera, Baolin Peng, Xingdi Yuan†, Marc-Alexandre Côté†, Alessandro Sordoni†

Froggy Team – Microsoft Research Montréal

froggy@microsoft.com, emiliano.penaloza@mila.quebec, czcui@ucsd.edu

roger.creus-castanyer@mila.quebec, alessandro.sordoni@gmail.com

https://microsoft.github.io/debug-gym/

We present FROGNANO, a 4B coding agent designed to tackle software engineering (SWE) tasks efficiently and effectively, even under resource-constrained environments. It is post-trained exclusively via RL on around 1,500 SWE environments with synthetic tasks. A key ingredient for improving performance is an online task synthesis pipeline that creates tasks calibrated to the frontier of learnability for the current checkpoint. This report provides evidence that competitive small coding agents can be trained with synthetic tasks alone, without traditional distillation from larger models, and that generating tasks at the learnability frontier of the current agent is important. We report details on the training methodology, evaluations across diverse environments, and in-depth analyses, serving as a foundation for our ongoing exploration of lightweight yet capable coding agents that can run on minimal hardware.

Figure

Figure 1: SWE-bench Verified performance across iterative RL training with TASKPILOT. Each iteration, TASKPILOT adds approximately 300 synthetic tasks calibrated on the policy from the previous iteration. The dashed comparison uses approximately 300 and 1,500 real SWE-rebench tasks filtered by learnability for the 4B policy. Numbers are averaged over three runs.

1 Introduction

Much of the progress in software engineering agents (SWE) has been driven by frontier models served behind proprietary APIs or by open-weight models with tens of billions of parameters. Despite their strong capabilities, such systems can be expensive to serve and difficult to use for local deployment and repeated experimentation. These limitations motivate us to ask whether a substantially smaller model can become a capable repository-level coding agent. We study this question at the 4B scale and develop a training recipe for compact coding agents, spanning data, harness and RL setup.

◇Work done during internship at Froggy.

Figure

(a) SWE-bench Verified resolved rate by parameter size.

Figure

(b) SWE-bench Pro resolved rate by parameter size.

Figure

(c) Terminal-Bench 2.0 resolved rate by parameter size.

Figure

(d) PatchEval-Verified resolved rate by parameter size.

Figure 2: Model parameter size and performance information are gathered from model technical reports and benchmark official leaderboards. Our model outperforms models of a larger size while parameters are an order of magnitude less. Qwen3.5-4B* is calculated using LEAF harness. FROGNANO numbers are averaged over three runs.

Data Training SWE agents requires executable, high-quality software-engineering tasks. Curating these tasks from real development histories is costly, motivating datasets and synthetic task-generation pipelines such as SWE-Gym [34], R2E-Gym [18], SWE-rebench [2], SWE-smith [59], and BugPilot [43]. In this paper, we propose TASKPILOT, an online policy-adaptive task-synthesis pipeline that uses feedback from the current policy to steer task generation toward its learnable frontier. Starting from real repository snapshots, TASKPILOT generates candidate software-engineering tasks and evaluates them using rollouts from the current checkpoint. Policy feedback is used both to identify learnable tasks and to adjust tasks toward the learnable region. In the literature, this is usually obtained by difficulty filtering, where a large dataset of real tasks is filtered based on the learnability of a given model [61]. We avoid this process by tailoring task synthesis on a given checkpoint, such that tasks are continuously adapted to the capabilities of the current policy. We apply TASKPILOT iteratively, whenever a checkpoint saturates on our validation set, we use the best-performing checkpoint to generate and calibrate the next round of tasks. This forms a closed loop in which the task distribution evolves together with the policy.

Harness Making our recipe work effectively with Qwen3.5-4B [41] also revealed an important practical challenge in the agent harness. Under the more elaborate R2E-Gym/SWE-Agent harness, Qwen3.5-4B often failed to terminate successfully, with approximately 96% of trajectories reaching the turn limit. We therefore

Figure

Figure 3: Illustration of FROGNANO's training loop. Starting from a Qwen3.5-4B as base model, a task generation phase and an RL training phase alternate until convergence.

developed LEAF, a lightweight coding-agent harness inspired by Claude-Code-style tool-use conventions, with five typed tools and a simple natural termination rule. Holding other rollout settings fixed, switching from R2E-Gym to LEAF improves Qwen3.5-4B's SWE-bench Verified solve rate from 8.3% to 37.2%, while a substantially larger model shows little sensitivity to the same harness change.

RL Using TASKPILOT and LEAF, we iteratively optimize our model through RL, for a total of five iterations of task synthesis followed by RL. We use DPPO [39] paired with async rollouts and a log-length penalty to encourage concise assistant generations. The checkpoint after five RL iterations is FROGNANO. Our analysis suggests that some behaviors acquired in early iterations may be lost in later ones. To address this, we additionally investigate a consolidation procedure for recovering useful tool-use behavior from past checkpoints.

FROGNANO reaches 61.5% solve rate on SWE-bench Verified, 37.6% on SWE-bench Pro, 31.1% on Terminal-Bench v2, and 23.2% on PatchEval-Verified (Figure 2). Importantly, this performance is achieved without traditional distillation from frontier models, relying instead on RL over policy-grounded synthetic tasks iteratively (Figure 1). These results show that compact models can acquire substantial repository-level coding capabilities when task generation is adapted to the evolving learner and paired with an interaction interface the model can use reliably. Our 4B coding agent also provides a practical platform for coding-agent research, making end-to-end experimentation with agent scaffolds, context management, online data generation, and RL more tractable.

References (67)