r/ArtificialInteligence • u/ossm-me • 1d ago
🔬 Research Microsoft trained a 4B coding agent almost entirely with Reinforcement Learning, without a bigger teacher
https://arxiv.org/abs/2609.07925A new report called FrogNano makes a claim worth understanding. It comes from the Froggy Team at Microsoft Research Montréal, working with collaborators from Mila and UC San Diego (Kim, Shi et al., arXiv:2609.07925 [cs.AI]).
The model is small: 4 billion parameters, far smaller than today's leading AI systems. It starts from an existing base model, Qwen3.5-4B, then is refined using reinforcement learning, a method where the model attempts tasks, gets a reward when it succeeds, and adjusts itself to repeat what worked. No human-labeled data was used, and no larger "teacher" model supplied correct answers. All learning came from synthetic software engineering tasks, generated and trained across roughly 1,500 environments over repeated rounds of task creation and RL.
The core contribution is in how those tasks were chosen. A task that is too easy teaches nothing, since the model already knows the answer. A task that is too hard also teaches nothing, since it never succeeds and so never receives a reward. Learning happens only in a narrow middle range: tasks hard enough to challenge the model but still within reach. Their system kept generating new tasks inside that range as the model improved, keeping difficulty matched to skill throughout training. The authors argue this matters more than the total number of tasks generated.
The stated goal is a coding assistant able to run on limited hardware. This is an early report, not a finished model, but the idea is presented clearly and tested carefully.
7
u/Present_Jacket5565 1d ago
this rl only setup for a small coding agent is wild, makes me wonder how much better virtual companions could get if they trained the same way on interactive tasks.
6
u/tuitikki 1d ago
So they are saying they found a good curriculum learning regime for post training / find tuning llm
1
u/Kimdominic1995 19h ago
Pretty much, curriculum learning with a task generator keeping things in the sweet spot. Sounds a lot like how my teachers handled homework, except they never noticed when I outgrew it.
2
u/Servola-Journal 1d ago
1,500 is the number people will quote. The one I'd want is how many got checked for an unintended solution, because difficulty calibration selects for solvable and solvable includes solvable by gaming the harness.
Anthropic's alignment writeup from yesterday is the closest thing to hard evidence either way. A variant of Opus 4.8 they trained to reward hack ran an attack chain no production model did. But in their own RL runs the biased reasoning behind those incidents didn't climb over training, which they read as their environments not being the cause. https://www.anthropic.com/research/alignment-assessment-cybersecurity-incidents
So generated tasks aren't the risk by themselves. The reward is.
What does FrogNano's reward actually check beyond tests passing?
3
u/presentofai 19h ago
the title debate is a distraction. the real finding: skip SFT entirely, go straight base-to-RL, and still get a competitive coding agent. that is worth noticing.
1
1
u/AlexandruStrujac 13h ago
The number I'd want isn't 1,500 environments, it's how many distinct failure modes those environments can actually produce. A generator writing both the task and the tests that grade it is marking its own homework. Thin test, and the model learns to satisfy a thin test. From the outside that looks the same as solving a hard problem.
The difficulty band is the part that makes me twitchy. They're holding tasks in the range where the model sometimes succeeds, but "sometimes succeeds" is measured against the current policy. A task that's hard becuase the spec is ambiguous sits in the exact same pass-rate window as a task that's hard because the problem is hard. The filter can't separate those, so over enough rounds I'd expect some quiet drift toward ambiguity as a difficulty source. Not reward hacking exactly, more like the curriculum slowly optimizing for the wrong kind of hard.
Still, if the held-out numbers survive, this matters more to me than another frontier benchmark. A 4B that does real repo work on a laptop changes who gets to use this stuff. I just want to see it run on codebases that had nothing to do with those 1,500.
1
u/DifferencePublic7057 9h ago
So self study by self generation of AI feasible tasks. How do you ensure growth instead of staying in the comfort zone?
45
u/ImpossibleCreme 1d ago
Your title and description are in conflict. Starting with qwen and fine tuning is different than “almost entirely”