Share from 0:00
0:00
/

"CodeMonkeys: Scaling Test-Time Compute for Software Engineering"

Below podcast is generated with Google's Illuminate.

The paper introduces CodeMonkeys, a system designed to improve Large Language Model (LLM) performance in solving software engineering tasks by efficiently scaling test-time computation.

Amortized context, parallel attempts

CodeMonkeys uses iterative refinement and parallel sampling to address real-world GitHub issues. This approach aims to enhance both solution quality and cost-effectiveness in complex coding challenges.

-----

Paper - https://arxiv.org/abs/2501.14723

Original Problem πŸ› οΈ:

β†’ Current methods for improving LLM coding skills heavily rely on scaling training data and model size.

β†’ This scaling approach is becoming prohibitively expensive.

β†’ An alternative is to scale test-time compute, but effective strategies for this are unclear, especially for complex software engineering tasks.

-----

Solution in this Paper πŸ’‘:

β†’ CodeMonkeys system scales test-time compute for solving GitHub issues from SWE-bench.

β†’ It employs "serial" scaling by allowing models to iteratively refine code edits and testing scripts.

β†’ Models jointly generate code edits and corresponding test scripts.

β†’ Execution feedback from tests guides iterative refinement of both edits and tests.

β†’ "Parallel" scaling is achieved by generating multiple candidate (edit, test) pairs for each issue.

β†’ This parallel approach amortizes the cost of retrieving codebase context across multiple samples.

β†’ Codebase context retrieval is simplified by letting an LLM scan and rank all files to identify relevant ones.

β†’ Selection among candidate edits combines test-based voting and model-based selection.

β†’ Test voting filters candidates based on test passing rates.

β†’ Model-based selection then chooses the final edit from the filtered set, potentially with further test generation for refinement.

-----

Key Insights from this Paper πŸ”‘:

β†’ Scaling test-time compute, both serially and in parallel, significantly boosts LLM performance for complex coding tasks.

β†’ Jointly generating code and tests provides richer feedback, enhancing serial scaling effectiveness.

β†’ Parallel sampling makes amortizing context retrieval costs feasible, simplifying context handling.

β†’ Combining test voting with model selection improves the accuracy of choosing correct code edits from multiple candidates.

-----

Results 🎯:

β†’ Achieves 69.8% coverage on SWE-bench Verified.

β†’ Obtains a final score of 57.4% on SWE-bench Verified.

β†’ Outperforms random selection significantly, demonstrating effective candidate selection.

β†’ "Barrel of Monkeys" ensemble, combining CodeMonkeys with top SWE-bench submissions, reaches 66.2% score.

Discussion about this video

User's avatar

Ready for more?