SERA: Soft-Verified Efficient Repository Agents
Ethan Shen, Danny Tormoen, Saurabh Shah, Ali Farhadi, Tim Dettmers
TL;DR
SERA tackles the cost and complexity barrier of training open-weight coding agents specialized to private codebases. It introduces Soft Verified Generation (SVG), a two-rollout, supervised-finetuning approach that forgoes heavy test infrastructures and reinforcement learning, enabling rapid, scalable data generation from individual repositories. Across SWE-bench Verified and targeted repository specialization, SERA achieves state-of-the-art open-source performance at a fraction of prior costs, and scaling laws show it can reach frontier performance with orders of magnitude less expenditure. The work emphasizes open science, reproducibility, and practical deployment, offering a pathway for small teams to build private-code assistants while detailing limitations and robustness considerations. Overall, SERA demonstrates that open-weight models can rival frontier systems for code tasks while dramatically expanding access and customization capabilities for private repositories.
Abstract
Open-weight coding agents should hold a fundamental advantage over closed-source systems: they can be specialized to private codebases, encoding repository-specific information directly in their weights. Yet the cost and complexity of training has kept this advantage theoretical. We show it is now practical. We present Soft-Verified Efficient Repository Agents (SERA), an efficient method for training coding agents that enables the rapid and cheap creation of agents specialized to private codebases. Using only supervised finetuning (SFT), SERA achieves state-of-the-art results among fully open-source (open data, method, code) models while matching the performance of frontier open-weight models like Devstral-Small-2. Creating SERA models is 26x cheaper than reinforcement learning and 57x cheaper than previous synthetic data methods to reach equivalent performance. Our method, Soft Verified Generation (SVG), generates thousands of trajectories from a single code repository. Combined with cost-efficiency, this enables specialization to private codebases. Beyond repository specialization, we apply SVG to a larger corpus of codebases, generating over 200,000 synthetic trajectories. We use this dataset to provide detailed analysis of scaling laws, ablations, and confounding factors for training coding agents. Overall, we believe our work will greatly accelerate research on open coding agents and showcase the advantage of open-source models that can specialize to private codebases. We release SERA as the first model in Ai2's Open Coding Agents series, along with all our code, data, and Claude Code integration to support the research community.
