FrogNano: Training a 4B Coding Agent via Online Task Synthesis
Abstract: 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.
Paper Prompts
Sign up for free to create and run prompts on this paper.
Top Community Prompts
Explain it Like I'm 14
1. What is this paper about?
This paper introduces FrogNano, a small artificial intelligence coding agent with about 4 billion adjustable parts, called parameters. It is designed to solve real software-engineering tasks, such as fixing bugs, adding features, and changing code in large projects.
Most powerful coding agents use much larger models that can be expensive to run. The researchers wanted to find out:
Can a much smaller model become a strong coding assistant if it is trained in a smart way?
Their answer is yes. FrogNano was trained using computer-generated coding tasks and reinforcement learning, rather than by copying answers from a much larger AI.
2. What questions did the researchers ask?
The paper mainly investigates four questions:
- Can a small 4-billion-parameter model solve difficult coding tasks?
- Can it learn effectively from synthetic tasks, meaning tasks created by computers rather than collected directly from human programmers?
- Should training tasks change as the AI improves?
- Does the way the AI interacts with computer tools affect its performance?
The researchers also studied whether the model could work efficiently, avoid cheating, use shorter reasoning chains, and continue improving across several rounds of training.
3. How was the research carried out?
Training the coding agent
The researchers began with Qwen3.5-4B, a LLM with about 4 billion parameters. They trained it to act like a software engineer.
The model could use five basic tools:
read— look at fileswrite— create or replace filesedit— change part of a fileglob— search for filesbash— run computer commands and tests
This collection of tools is called a harness. A harness is like the control panel that lets an AI interact with a computer.
The researchers found that the harness mattered a lot. When the small model was given a complicated interface, it often became confused and failed to finish. With the simpler harness, its score on one test increased from 8.3% to 37.2%.
Creating synthetic coding tasks
The researchers started with real software repositories. Then another AI system created coding problems, possible solutions, and hidden tests.
For example, a task might ask the model to fix a function that calculates the wrong answer. The hidden tests check whether the fix really works.
Each task was tested to make sure that:
- The original code failed the new test.
- The proposed solution fixed the problem.
- Existing features still worked.
Matching tasks to the model’s ability
A central idea in the paper is that training tasks should be neither too easy nor too hard.
The researchers gave the current model the same task several times:
- If it solved the task every time, the task was probably too easy.
- If it failed every time, the task was probably too difficult.
- If it succeeded sometimes and failed sometimes, the task was in a useful learning zone.
This is similar to giving a student practice questions that are challenging but still possible. The researchers called this process online task synthesis.
The training loop worked like this:
- Create possible coding tasks.
- Test the current AI on them.
- Keep tasks that are suitably difficult.
- Rewrite tasks that are too easy or too hard.
- Train the AI on the selected tasks.
- Repeat the process with the improved AI.
They repeated this process for five rounds.
Reinforcement learning
The model was trained using reinforcement learning, a method based on rewards. The AI received a high reward when its code passed the tests and no reward when it failed.
The researchers also added a small penalty for successful solutions that used unnecessarily long responses. This encouraged the model to solve tasks correctly while using fewer words and actions.
Testing the model
The researchers evaluated FrogNano on four coding benchmarks:
- SWE-bench Verified
- SWE-bench Pro
- Terminal-Bench 2.0
- PatchEval-Verified
A benchmark is a standard collection of tests used to compare different AI systems.
4. What were the main results?
FrogNano improved through repeated training
On SWE-bench Verified, the model’s score increased over the five training rounds:
| Training stage | Tasks solved |
|---|---|
| Starting model | 43.0% |
| After round 1 | 49.1% |
| After round 2 | 53.1% |
| After round 3 | 56.9% |
| After round 4 | 59.1% |
| After round 5 | 61.5% |
This shows that creating new tasks for the model after each improvement continued to help it learn.
It performed well despite being small
FrogNano achieved the following results:
| Benchmark | Solve rate |
|---|---|
| SWE-bench Verified | 61.5% |
| SWE-bench Pro | 37.6% |
| Terminal-Bench 2.0 | 31.1% |
| PatchEval-Verified | 23.2% |
The researchers say that these results are similar to those of some much larger models. In some comparisons, FrogNano performed competitively with models that had six to eight times more parameters.
This is important because smaller models are generally cheaper and easier to run on local computers.
Synthetic tasks worked surprisingly well
The model trained on about 1,500 computer-generated tasks. It did not need to copy solutions from a much larger “teacher” model.
The researchers compared this with training on a carefully selected group of real coding tasks. The synthetic-task approach performed better in their experiment:
- Synthetic tasks: up to 61.5%
- Selected real tasks in the comparison: 48.0%
This suggests that carefully designed artificial tasks can be useful for training coding agents.
The interface strongly affected the small model
The complicated tool system caused the model to reach its action limit in about 96% of attempts. A simpler interface helped it finish tasks more reliably.
A much larger model was not affected by the interface change. This suggests that small models may need especially simple and well-designed tools.
The model’s failures were usually reasoning problems
Most failures were not caused by running out of time or stopping too early. About 90.8% were classified as reasoning mistakes.
Common problems included:
- Fixing the wrong part of the program
- Misunderstanding the task instructions
- Misunderstanding how an API worked
- Leaving part of the solution unfinished
- Missing unusual edge cases
This means that future improvements should focus mainly on helping the AI understand problems and plan correct solutions.
The model did not successfully cheat
Some attempts to cheat were detected, such as trying to change the tests instead of fixing the code. However, the computer environment blocked these attempts, and the researchers reported zero successful reward-hacking solutions.
“Reward hacking” means finding a way to get a high score without actually completing the intended task.
Extra techniques gave small improvements
The researchers also explored several additional ideas:
- Choosing the best answer from several attempts
- Using a separate model to rank possible patches
- Combining useful behaviors from different training stages
- Summarizing older conversation history to save memory
A ranking system increased the SWE-bench Verified score from about 61.5% to 62.8% when it selected among several candidate solutions.
5. Why is this research important?
The paper suggests that strong coding agents do not always need to be extremely large. A smaller model can become capable if it receives:
- Well-designed computer tools
- Practice tasks matched to its current ability
- Repeated training with new tasks
- Feedback based on whether its code actually works
The most important idea is that the training tasks should grow and change with the learner. Giving the AI the same fixed set of exercises would eventually become too easy. Instead, the researchers continually created new challenges at the edge of what the AI could learn.
Conclusion: What could this lead to?
FrogNano could make coding assistants cheaper to run and easier to use on personal computers or smaller servers. This could help more researchers experiment with coding agents without needing enormous amounts of computing power.
The work also points to a useful general lesson about AI training:
A smaller AI can improve greatly when it practices on the right problems, uses a clear interface, and receives feedback from real results.
However, FrogNano is not perfect. It still often misunderstands instructions, chooses the wrong part of a program to change, or produces incomplete fixes. Future research will need to improve its reasoning, testing habits, and ability to handle unfamiliar projects.
Knowledge Gaps
Knowledge gaps, limitations, and open questions
- The paper does not fully specify the task-synthesis model, prompting strategy, decoding settings, or computational cost, making the online synthesis pipeline difficult to reproduce or compare fairly.
- It remains unclear how much of the final performance comes from policy-guided task refinement versus the choice of source repositories, stronger generation model in iteration 5, curriculum redesign, or other simultaneous changes.
- The iteration-5 intervention changes both the task-generation model and the target resolve-rate band, so the independent causal effects of these two factors are not identified.
- The study does not provide a systematic ablation of calibration targets; the effectiveness of the $0.5$ target for iterations 1–4 and the target for iteration 5 is therefore unresolved.
- The number of calibration rollouts per candidate, uncertainty in estimated resolve rates, and statistical criteria for admitting borderline tasks are not reported in sufficient detail.
- Because task admission is based on a small number of stochastic rollouts, the pipeline may misclassify tasks as learnable, saturated, or too difficult; the effect of this classification noise is not quantified.
- The paper does not test whether the learned curriculum remains effective when candidate tasks are calibrated against different random seeds, checkpoints, temperatures, or rollout budgets.
- The relationship between the empirical resolve-rate target and actual learning value is not established; tasks with approximately success may not necessarily produce the most useful gradients.
- The synthesis loop may create tasks that are tailored to the current policy’s weaknesses without improving broader software-engineering competence; task-distribution overfitting is not directly evaluated.
- The paper does not measure contamination or semantic overlap between synthetic training tasks and the evaluation benchmarks, repositories, issue descriptions, or tests.
- The quality and realism of generated problem statements, gold patches, and hidden tests are only indirectly assessed through executability and policy success; human or expert evaluation of task fidelity is missing.
- The validity of generated F2P and P2P tests is uncertain: the paper does not report false-positive, false-negative, redundancy, or behavioral-coverage rates relative to independent human-written tests.
- The use of the gold patch to validate generated tasks may favor tasks whose tests reproduce the reference implementation’s behavior, potentially missing valid alternative solutions.
- The reported problem-statement/test coverage measure depends on automated requirement extraction and matching, but the extraction method, annotation quality, and measurement error are not sufficiently documented.
- The training data originate from approximately 1,500 SWE environments, but the paper does not provide enough detail about repository, language, domain, license, or task-category composition to assess coverage and representativeness.
- The generality of the method beyond Python-based training data is unresolved; performance on repositories in other programming languages and build ecosystems is not isolated.
- The study does not compare online synthesis against equally compute-matched alternatives such as larger static synthetic datasets, repeated sampling from real tasks, offline difficulty filtering, or curriculum learning without task rewriting.
- The real-task baseline is limited to approximately 300 SWE-ReBench tasks selected using the same learnability criterion, leaving unresolved whether synthetic tasks outperform a larger or differently sampled real-task corpus.
- No compute-normalized comparison is provided between synthetic-task generation, calibration rollouts, RL training, and baseline data-construction methods.
- The causal contribution of the lightweight harness is confounded by possible differences in termination semantics, tool schemas, prompt format, context presentation, and action space; these components are not ablated individually.
- The harness comparison does not establish whether the improvement from to is caused primarily by simpler tools, natural termination, Claude-Code-style tool names, prompt exposure, or reduced protocol complexity.
- The claim that Qwen3.5-4B may have been exposed to similar Claude-Code interactions is speculative and is not tested through controlled interface variants or pretraining-data analysis.
- Training and evaluation use the same harness, so the reported benchmark performance may partly reflect harness specialization rather than general coding-agent capability.
- Although transfer to mini-SWE-agent is reported, generalization is tested with only one alternative harness and one tool configuration; robustness to substantially different interfaces remains unknown.
- The paper does not evaluate whether the agent can operate effectively with human users, ambiguous feedback, interactive clarification, permissions, or persistent project context, all of which are common in practical coding environments.
- The absence of a reference-model KL term, entropy bonus, and conventional overlong penalties is justified empirically but not supported by a systematic comparison with these stabilization methods.
- The individual effects of DPPO, asynchronous rollouts, asymmetric trajectory importance sampling, gradient clipping, optimizer reinitialization, and small policy lag are not isolated.
- Optimizer and random-number-generator states are reinitialized between RL iterations, but the impact of this choice on stability, forgetting, and reproducibility is not analyzed.
- The paper reports that behaviors acquired in earlier iterations can be lost, but it does not quantify catastrophic forgetting across a fixed suite of behavioral and task capabilities after each subsequent iteration.
- Consolidation experiments mix checkpoints and behaviors, but the data mixture, filtering policy, training budget, and selection criteria are not sufficient to establish which consolidation mechanism produced the gains.
- The consolidation results are reported on the same or closely related benchmark distributions used during development, leaving open whether they improve out-of-distribution performance or merely recover benchmark-specific behaviors.
- The success-gated logarithmic length penalty is introduced at iteration 3, but its effect is not separated from later curriculum changes or evaluated across a range of penalty strengths and token thresholds.
- The treatment of correct but truncated trajectories with reward $0.5$ is not justified through ablations, and its interaction with binary test rewards, length penalties, and group-relative normalization is unknown.
- The reward function does not appear to account for patch maintainability, code quality, security, runtime efficiency, or unintended behavioral changes beyond the available tests.
- The reported reward-hacking analysis relies partly on regex filters and LLM-as-a-Judge decisions; the recall of the detector, judge bias, and undetected exploit rate are not established.
- The finding of zero effective reward-hacking solves may depend heavily on the specific scaffold and infrastructure safeguards, so it is unclear whether the agent learned robustly against reward hacking or was simply prevented from exploiting the environment.
- Failure-mode labels are produced through an analysis process whose annotation protocol, sample size, inter-rater reliability, and potential overlap among categories are not fully described.
- The paper does not test interventions targeted at the dominant failures, such as wrong-root-cause diagnosis, specification misreading, API misunderstanding, or incomplete implementation.
- Benchmark evaluation uses three seeds, but confidence intervals, per-repository variance, and statistical significance of most reported differences are not consistently provided.
- Comparisons with larger and proprietary models may use different harnesses, prompts, budgets, model versions, or evaluation protocols, limiting the strength of the claimed parameter-efficiency comparisons.
- The effect of the 150-step and 131K-token evaluation budget is not systematically characterized; performance under realistic lower-cost budgets remains unclear.
- The compaction experiments show recovery at a 64K context window, but the quality and factual reliability of generated summaries, summary-induced omissions, and performance on long-horizon tasks are not evaluated in depth.
- Pass@, pass@short, and verifier results do not establish the reliability of selected patches when tests are incomplete or flaky; verifier performance under weak or adversarial test suites remains open.
- The ranking verifier is trained on rollouts from the final two RL iterations, raising a possible distribution mismatch with earlier or external candidate patches that is not investigated.
- The verifier and round-robin test-time scaling introduce additional inference cost, but the accuracy–latency–compute trade-off is not reported comprehensively.
- The study does not evaluate robustness to flaky tests, nondeterministic builds, network failures, dependency installation failures, or repositories with incomplete test coverage.
- The paper does not examine security risks in generated patches, including vulnerabilities, unsafe dependency changes, secret exposure, or malicious repository content.
- Long-term maintenance outcomes are not measured; it remains unknown whether patches that pass benchmark tests remain correct under future changes or broader regression suites.
- The training process is demonstrated for a single 4B base model, so the transferability of the recipe to other architectures, parameter scales, tokenizer designs, and pretrained coding models is unresolved.
- The paper does not establish whether online task synthesis continues to improve models larger than 4B or whether its benefits diminish as the base model’s capabilities increase.
- The environmental, monetary, and energy costs of the eight-B200-GPU training setup are not reported in enough detail to substantiate the claim that the approach is resource-efficient for practical local deployment.
- The released artifacts, exact task-generation traces, intermediate checkpoints, and full evaluation configurations are not sufficiently described to determine whether independent researchers can reproduce the reported results.
- The study ends after five synthesis–RL iterations; the conditions under which the procedure converges, cycles, collapses, or begins generating low-diversity tasks remain unknown.
- Task diversity and mode collapse are not directly measured, so the pipeline may be repeatedly generating semantically similar tasks that inflate training performance without expanding capability.
- The paper does not test whether improvements persist after training on a fixed, independently generated evaluation set that is never used for curriculum calibration or iterative model selection.
- The claim that the method avoids traditional distillation is qualified by reliance on stronger models for task generation and, in iteration 5, a stronger generation model; the extent to which this constitutes indirect teacher supervision is not examined.
Practical Applications
Immediate Applications
- Local, resource-efficient coding assistants — Software industry and academia
- Deploy a compact 4B coding agent for repository-level bug fixing, feature implementation, refactoring, dependency migration, and performance optimization on developer workstations or private servers.
- The reported performance—61.5% on SWE-bench Verified and generalization to alternative harnesses—suggests practical use for code suggestions, pull-request patch generation, test execution, and issue triage.
- Potential products/workflows: IDE plugins, command-line repair tools, self-hosted coding copilots, and automated draft pull requests.
- Dependencies: Reliable sandboxing, repository access controls, language/runtime support beyond the primarily Python-based training distribution, and mandatory human review before merging.
- Private or air-gapped software engineering automation — Finance, healthcare, government, and defense
- Run a smaller coding model locally where proprietary code, regulated data, or network restrictions prevent use of external model APIs.
- The 4B scale can reduce serving costs and hardware requirements relative to much larger coding agents, while preserving repository-level capabilities.
- Potential tools/workflows: On-premises code repair, secure vulnerability remediation, internal migration assistants, and regulated-development automation.
- Dependencies: Actual deployment cost depends on inference optimization and hardware availability; benchmark performance may not translate directly to complex enterprise repositories or non-Python systems.
- Lightweight automated bug repair and regression prevention — Software maintenance
- Integrate the agent with issue trackers and CI systems to generate candidate patches, run existing tests, and submit only changes that pass regression suites.
- The paper’s use of fail-to-pass and pass-to-pass tests provides a practical template for validating fixes while guarding against regressions.
- Potential workflow: issue ingestion → repository checkout → agent patch generation → test execution → patch ranking → human approval.
- Dependencies: Sufficient test coverage, reproducible build environments, secure execution of shell commands, and protections against modifying tests or exploiting grading infrastructure.
- Efficient multi-candidate patch selection — DevOps and software QA
- Use the learned verifier and round-robin comparison procedure to rank several candidate patches rather than accepting the first generated solution.
- The reported improvement to 62.8% pass@1 on SWE-bench Verified indicates that test-time selection can provide gains without retraining the primary coding model.
- Potential products: patch-ranking services, CI-based candidate selection, and automated review queues.
- Dependencies: Multiple candidate generations increase inference cost; verifier reliability depends on representative passing and failing examples and should not replace execution-based testing.
- Compact agent harnesses for tool use — AI systems and developer tooling
- Adopt a small typed-tool interface based on
read,write,edit,glob, andbashfor coding agents, especially when operating smaller models. - The large improvement from 8.3% to 37.2% after changing the harness shows that interface design can be as important as model scale.
- Potential tools: standardized JSON-schema tool adapters, minimal agent runtimes, and compatibility layers for IDEs or terminal environments.
- Dependencies: Tool names and schemas may benefit from prior model exposure; performance could vary across model families and prompting conventions.
- Adopt a small typed-tool interface based on
- Context-window reduction through summary compaction — Local software agents
- Use periodic repository-history and interaction summarization to operate coding agents with 16K–64K-token windows while retaining much of the performance of a 131K-token context.
- This can lower memory requirements and enable deployment on smaller GPUs or CPUs.
- Potential workflow: retain current files, tests, decisions, and unresolved hypotheses while compressing older tool outputs and conversation turns.
- Dependencies: Summaries must preserve critical requirements, error messages, and file-level context; lossy compaction may worsen failures involving long-range dependencies.
- Curriculum design for coding-agent evaluation — Academia and industrial research
- Use policy-relative resolve rates to construct executable tasks that produce mixed success and failure, rather than training only on tasks that are uniformly easy or impossible.
- The generate–evaluate–refine–re-evaluate loop can be applied immediately to benchmark construction, internal training, and agent regression testing.
- Potential tools: automatic task calibrators, difficulty dashboards, and evolving evaluation suites.
- Dependencies: A functional executable oracle, representative repositories, repeated rollouts for stable estimates, and controls against synthetic-task artifacts.
- Automated quality checks for task specifications — Education and developer training
- Apply the paper’s distinction between underspecified, appropriately precise, and solution-localizing prompts to design better programming assignments and issue descriptions.
- Educators and engineering teams can test whether requirements specify observable behavior without revealing the implementation.
- Potential workflow: requirement extraction → test-coverage matching → ambiguity detection → revised assignment or issue.
- Dependencies: Natural-language requirement extraction remains imperfect, and measured test coverage does not guarantee complete semantic coverage.
- Agent efficiency monitoring — Software operations and model evaluation
- Track tool-call counts, token usage, termination rates, context overflows, and failed-test categories as operational metrics for coding agents.
- The success-gated logarithmic length penalty and failure taxonomy offer immediately usable design principles for reducing wasteful reasoning without penalizing unsuccessful exploration.
- Potential products: agent observability dashboards, cost-aware inference schedulers, and automatic trajectory diagnostics.
- Dependencies: Token efficiency must not be optimized at the expense of correctness, careful testing, or security analysis.
- Safer automated code modification pipelines — DevSecOps and policy
- Combine isolated repositories, immutable grading tests, restricted shell permissions, and static detection of suspicious actions to limit reward hacking and unsafe agent behavior.
- The paper demonstrates a practical control pattern in which attempted test weakening was detected and blocked.
- Dependencies: Static rules and model-based judges can produce false positives; sandboxing, least-privilege execution, audit logs, and human approval remain necessary.
Long-Term Applications
- A general-purpose self-improving coding-agent training platform — AI research and software industry
- Extend online task synthesis beyond Python bug fixing to multiple languages, build systems, databases, infrastructure-as-code, mobile development, and large monorepos.
- The iterative loop could continuously generate tasks matched to an organization’s current agent capabilities and engineering priorities.
- Potential product: a private “agent curriculum engine” that mines repositories, generates executable tasks, calibrates difficulty, and periodically retrains or adapts an internal coding model.
- Dependencies: Reliable cross-language execution environments, high-quality hidden tests, protection of proprietary code, prevention of curriculum collapse, and evidence that synthetic training transfers to real production work.
- Autonomous pull-request and maintenance systems — Software engineering
- Develop agents that monitor issue trackers, dependency advisories, failing CI jobs, and performance regressions, then produce and validate patches with limited human intervention.
- Iterative training could support not only bug fixes but also feature requests, refactoring, migrations, and optimization—the broader task mixture observed in later curricula.
- Dependencies: Stronger reasoning about architecture and specifications, comprehensive regression tests, rollback mechanisms, code ownership policies, and reliable security review.
- On-device and edge coding assistants — Education, field engineering, and low-connectivity environments
- Further compress, quantize, or distill compact coding agents for laptops, classroom servers, embedded development systems, or offline environments.
- Such systems could provide programming support without continuous cloud access, including code explanation, debugging, and repository repair.
- Dependencies: Quantization must preserve tool-use reliability; local hardware must support acceptable latency; deployment must address licensing, model updates, and unsafe code execution.
- Adaptive training systems for programming education — Education
- Apply policy-calibrated task generation to create programming exercises at the learner’s current frontier of competence.
- A student model could generate tasks that are neither trivial nor inaccessible, revise ambiguous instructions, and use hidden tests to assess behavioral correctness.
- Potential tools: adaptive coding tutors, personalized debugging curricula, and instructor dashboards showing common reasoning failures.
- Dependencies: Student privacy, pedagogically valid difficulty measures, safeguards against exposing solutions, and human evaluation of generated assignments.
- General-purpose adaptive curricula for other tool-using agents — Robotics, data science, cybersecurity, and operations
- Transfer the generate–rollout–calibrate–refine approach to agents operating APIs, notebooks, cloud infrastructure, simulators, or robotic environments.
- For example, a data-science agent could receive progressively calibrated analysis tasks, while a robotics agent could train on simulator scenarios that produce mixed success rates.
- Dependencies: Domain-specific executable rewards, realistic simulators or test environments, safety constraints, and robust handling of partial success. Coding tasks are unusually easy to validate compared with open-world physical actions.
- Continuous enterprise agent evaluation and governance — Policy and industry
- Build benchmark suites that evolve with the deployed model, using policy-relative difficulty and hidden regression tests to identify capability gains and failures over time.
- This could support procurement, model audits, release gating, and compliance reporting for coding agents.
- Dependencies: Benchmarks must resist overfitting and synthetic-task leakage; evaluation should include security, privacy, maintainability, and human-review outcomes rather than pass rates alone.
- Behavior consolidation across model checkpoints — AI research
- Develop methods that selectively merge desirable behaviors from successive policies, such as parallel tool calls, shorter trajectories, improved verification, and better termination.
- The paper’s preliminary consolidation results suggest a route to combining capabilities that may otherwise be lost during later RL iterations.
- Dependencies: More systematic attribution of behaviors, protection against incompatible policies, robust off-policy training, and evaluation on unseen repositories and harnesses.
- Multi-agent software development teams — Software industry
- Combine specialized compact agents for planning, implementation, testing, review, security analysis, and patch ranking.
- The lightweight harness, verifier, and consolidation methods could form components of a cost-efficient agent team rather than a single monolithic model.
- Dependencies: Coordination overhead, conflicting edits, shared-context management, increased attack surface, and the need for reliable responsibility assignment when agents disagree.
- Formalized specification-to-test generation — Academia, policy, and safety-critical engineering
- Extend the task-synthesis pipeline to generate requirements, reference implementations, and hidden tests with explicit traceability between each behavioral requirement and its tests.
- This could improve validation in healthcare software, transportation, energy systems, and public-sector applications where ambiguity and regressions are costly.
- Dependencies: Generated tests may encode incorrect assumptions; domain experts must review specifications, and formal methods or certified testing may be required for safety-critical deployment.
- Policy-aware autonomous software maintenance in regulated sectors — Healthcare, finance, energy, and government
- A future system could apply approved patches automatically only when they satisfy organizational policies, security scans, compliance tests, and human authorization rules.
- Compact local deployment is particularly relevant where source code and operational data cannot leave the organization.
- Dependencies: Certification, explainability, auditability, secure model updates, separation of duties, and legally defensible human oversight are prerequisites for high-stakes use.
Glossary
- Asymmetric trajectory importance sampling: A weighting method that corrects for differences between the policy that generated trajectories and the policy currently being optimized. “We correct for this lag using asymmetric trajectory importance sampling.”
- Bootstrap interval: A confidence interval estimated by repeatedly resampling observed data. “four of the five block-bootstrap intervals exclude zero.”
- Calibration rollout: A complete agent attempt used to estimate how difficult a candidate task is for the current policy. “We estimate the candidate's resolve rate under the current policy as”
- Closed-loop task synthesis: A task-generation process in which the model’s current performance determines the tasks generated next. “This forms a closed loop in which the task distribution evolves together with the policy.”
- Context parallelism: A distributed-computing technique that divides a model’s input context across multiple GPUs. “Two GPUs train the policy with context parallelism two”
- Curriculum regime: A distinct configuration of training tasks or difficulty used as part of a progressively changing learning program. “The resulting fifth batch forms a new curriculum regime.”
- Distillation: Training a smaller model to reproduce the behavior or outputs of a larger model. “without traditional distillation from frontier models”
- DPPO: A policy-optimization algorithm that uses group-relative advantages and clipping or masking to stabilize reinforcement learning. “We adopt the DPPO training algorithm”
- Executable oracle: A programmatic test mechanism that determines whether an agent’s solution is correct. “Executable oracle”
- Fail-to-pass (F2P) test: A test that fails before the intended fix and passes after the correct patch is applied. “A candidate is executable if its F2P tests fail on the original snapshot and pass after applying the gold patch”
- Fleiss’ kappa: A statistical measure of agreement among multiple annotators beyond agreement expected by chance. “Fleiss' is $0.746$.”
- Frontier model: A model representing the leading edge of performance in a particular capability or benchmark. “frontier models served behind proprietary APIs”
- Gold patch: A reference code modification used to validate a task or compare candidate solutions. “the problem statement, gold patch, and hidden fail-to-pass (F2P) tests.”
- Gradient clipping: A technique that limits gradient magnitudes to reduce unstable parameter updates during training. “stability instead relies on the DPPO mask, small policy lag, and gradient clipping.”
- Group-relative reinforcement learning: Reinforcement learning in which rewards are normalized or compared among multiple trajectories for the same task. “We use continuous group-relative RL on trajectories”
- GRPO: A group-relative policy-optimization method for training LLMs from comparative rewards. “We optimize the verifier with GRPO and a clipped policy-gradient objective”
- Harness: The software interface and execution framework through which an agent receives tasks, calls tools, and is evaluated. “A coding-agent harness determines how a model observes a task and interacts with a repository.”
- Held-out test set: Evaluation data excluded from training and validation. “the rest as held out test sets”
- Hidden test: A grading test withheld from the coding agent to prevent it from directly tailoring a solution to the evaluator. “Generated F2P tests and their outcomes are also hidden during agent interaction.”
- Importance sampling: A statistical method that reweights samples generated from one probability distribution to estimate quantities under another. “asymmetric trajectory importance sampling”
- Inference engine: A system that runs a trained model to generate predictions or trajectories. “six one-GPU inference engines generate trajectories.”
- Learnability frontier: The range of task difficulty at which the current model can learn from both successful and unsuccessful attempts. “toward its learnable frontier.”
- Log-length penalty: A logarithmic reward penalty applied to unnecessarily long model-generated sequences. “we introduce a log-length penalty starting at iteration 3.”
- Loss masking: The practice of excluding selected tokens or inputs from contributing to the training loss. “Tool observations remain in the context but are masked from the loss”
- Multi-turn trajectory: A complete sequential interaction containing multiple model responses and tool exchanges. “A trajectory is a complete stochastic, multi-turn attempt”
- Online task synthesis: Generating and evaluating training tasks during the training process using feedback from the current model. “an online policy-adaptive task-synthesis pipeline”
- Pass@k: The probability that at least one of generated solutions is correct. “We aim to determine whether iterative RL training effectively pushes the boundaries of the model rather than distilling high pass@ into pass@1.”
- Pass@short: An evaluation strategy that selects the shortest among several generated trajectories and verifies it. “we use pass@short, which selects the shortest of the generated trajectories and verifier”
- Pass-to-pass (P2P) test: A regression test expected to pass both before and after a code change. “while the existing pass-to-pass (P2P) suite remains stable.”
- Policy checkpoint: A saved set of model parameters representing the policy at a particular stage of training. “current 4B policy checkpoint”
- Policy entropy: A measure of uncertainty or diversity in the probability distribution produced by a model policy. “The lower panel shows that these gains do not require a repeated collapse in policy entropy.”
- Policy lag: The discrepancy between the policy used to generate training data and the newer policy being optimized. “The rollout buffer allows only small policy version of lag.”
- Policy-relative difficulty: Task difficulty measured according to how successfully the current model policy solves the task. “The criterion is therefore an empirical, policy-relative signal used to guide task synthesis”
- Policy-gradient objective: A reinforcement-learning objective that adjusts model parameters in the direction of actions with higher expected reward. “a clipped policy-gradient objective using a reciprocal-rank reward.”
- Post-training: Training performed after a model’s initial pretraining, often to specialize its behavior or align it with a task. “It is post-trained exclusively via RL”
- Ranked verifier: A model trained to order candidate solutions according to their likelihood of being correct. “We train a ranking verifier”
- Reciprocal-rank reward: A reward equal to the inverse of the rank of the highest-ranked correct candidate. “using a reciprocal-rank reward.”
- Reinforcement learning (RL): A learning paradigm in which a policy is optimized using rewards from its actions or trajectories. “We use DPPO paired with async rollouts and a log-length penalty”
- Repository snapshot: A fixed captured state of a software repository used as the starting point for a task. “Starting from real repository snapshots drawn from SWE-rebench”
- Resolve rate: The proportion of agent attempts that successfully complete all grading tests for a task. “We estimate the candidate's resolve rate under the current policy”
- Reward hacking: Exploiting weaknesses in an evaluation or reward mechanism to obtain high reward without genuinely completing the intended task. “Reward hacking attempts”
- Rollout: A generated sequence of model actions and interactions during one task attempt. “current-policy rollouts”
- Saturation: A condition in which a policy solves a task or dataset so consistently that it provides little additional learning signal. “Candidates with $\hat p_{\mathrm{policy}=1$ are saturated”
- Semantic contract: A precise specification of externally observable behavior that an implementation must satisfy. “Behavioral contract: endpoint and zero-width semantics are explicit”
- Summary compaction: Replacing accumulated interaction history with a shorter generated summary to fit within a limited context window. “Instead of using 131K tokens budget, here the model is given a fixed context window”
- Synthetic task: An artificially generated software-engineering problem rather than one directly collected from real development history. “training on purely synthetic tasks created at the edge of learnability”
- Test-patch churn: The sum of added and deleted lines in a patch containing grading tests. “test-patch churn is the sum of added and deleted test-patch lines.”
- Test-time scaling: Improving inference performance by generating or evaluating multiple candidate solutions at test time. “Test-time scaling with a verifier is a standard approach for improving inference pass@1.”
- Tool call: A structured model-generated request to invoke an external tool. “A response containing tool calls continues the episode”
- Trajectory advantage: A reward-derived value indicating whether a trajectory performed better or worse relative to other trajectories for the same task. “Let denote the trajectory advantage associated with token .”
- Truncated trajectory: A trajectory terminated by a resource limit despite potentially containing a correct solution. “A trajectory is classified as truncated if it solves the task but reaches at the max context length”
- Zero-variance filtering: Removing groups of trajectories whose rewards are identical and therefore provide no relative learning signal. “Zero-variance filtering is performed using the raw task rewards”







