Abstract: Recent advancements in software engineering agents have demonstrated promising capabilities in automating program improvements. However, their reliance on closed-source or resource-intensive models introduces significant deployment challenges in private environments, prompting a critical question: How can personally deployable open-source LLMs achieve comparable code reasoning performance? To this end, we propose a unified Test-Time Compute scaling framework that leverages increased inference-time computation instead of larger models. Our framework incorporates two complementary strategies: internal TTC and external TTC. Internally, we introduce a development-contextualized trajectory synthesis method leveraging real-world software repositories to bootstrap multi-stage reasoning processes, such as fault localization and patch generation. We further enhance trajectory quality through rejection sampling, rigorously evaluating trajectories along accuracy and complexity. Externally, we propose a novel development-process-based search strategy guided by reward models and execution verification. This approach enables targeted computational allocation at critical development decision points, overcoming limitations of existing "end-point only" verification methods. Evaluations on SWE-bench Verified demonstrate our 32B model achieves a 46% issue resolution rate, surpassing significantly larger models such as DeepSeek R1 671B and OpenAI o1. Additionally, we provide the empirical validation of the test-time scaling phenomenon within SWE agents, revealing that models dynamically allocate more tokens to increasingly challenging problems, effectively enhancing reasoning capabilities.
Introduction
The current paradigm in large language model (LLM) development often equates performance with parameter count. However, scaling model size imposes a significant "deployment tax," requiring massive computational resources that are inaccessible to individual developers and many organizations. Furthermore, the use of closed-source models for software engineering tasks raises privacy concerns regarding proprietary codebases.
This research explores an alternative scaling dimension: test-time compute (TTC). By shifting the focus from model size to inference-time computation—essentially giving the model more "time to think"—we demonstrate that a personally deployable 32B model can achieve elite-level code reasoning, rivaling and even surpassing models with hundreds of billions of parameters.
Methodology
Our framework, SWE-Reasoner, utilizes a dual-pronged approach to scale test-time compute through internal and external strategies.
Internal Test-Time Compute
We developed a development-contextualized trajectory synthesis method to bootstrap high-quality reasoning paths. Using a large reasoning model (DeepSeek R1) to generate trajectories for 9,000 real-world GitHub issues, we trained our model to utilize a Long Chain-of-Thought (CoT). This process involves explicit planning, reflection, and backtracking before generating code. To ensure data quality, we applied rejection sampling, filtering trajectories based on both accuracy (successful bug fixes) and complexity (ensuring the model learns from non-trivial problems).
External Test-Time Compute
To complement internal reasoning, we introduced Dev-Search, a process-guided search strategy that intervenes at critical decision points during the development lifecycle:
- Process Reward Models (PRM): Specialized models evaluate agent progress during repository exploration and fault localization, pruning unproductive reasoning paths.
- Execution Verification: The agent generates reproduction scripts to verify patches before submission.
- Outcome Reward Model (ORM): A final model ranks candidate patches to select the optimal solution.
Experimental Setup
Training data was derived from 9,000 issues across 300 high-quality GitHub repositories (each with >1,000 stars). Evaluation was conducted on SWE-bench Verified, a subset of 500 real-world GitHub issues curated to ensure high-quality, non-redundant tasks.
Results
The SWE-Reasoner (32B) achieved a state-of-the-art 46% resolution rate on SWE-bench Verified. This performance is particularly notable as it surpasses significantly larger models, including DeepSeek R1 (671B) and OpenAI o1, while effectively tying with Claude 3.5 Sonnet v2.
Ablation studies confirmed the importance of the internal thinking process; removing the Long CoT component caused the resolution rate to drop from 37.6% to 28.8%. Furthermore, our analysis revealed a "thinking scaling law" where the model dynamically allocates more tokens to increasingly difficult problems, mirroring the behavior of advanced closed-source reasoning models.
Conclusion
SWE-Reasoner demonstrates that architectural efficiency and sophisticated inference strategies can overcome the limitations of raw parameter count in specialized domains like software engineering. By scaling test-time compute, we provide a path toward high-performance, privacy-preserving, and personally deployable AI agents. Future work will focus on adaptive computation to optimize the balance between inference latency and reasoning depth.
Summary updated