An Empirical Study on Strong-Weak Model Collaboration for Repo-level Code Generation
Not on the map. Why?
Abstract (arXiv)
We study cost-efficient collaboration between strong and weak language models for repository-level code generation, where the weak model handles simpler tasks at lower cost, and the most challenging tasks are delegated to the strong model. While many works propose architectures for this task, few analyze performance relative to cost. We evaluate a broad spectrum of collaboration strategies: context-based, pipeline-based, and dynamic, on GitHub issue resolution. Our most effective collaborative strategy achieves equivalent performance to the strong model while reducing the cost by 40%. Based on our findings, we offer actionable guidelines for choosing collaboration strategies under varying budget and performance constraints. Our results show that strong-weak collaboration substantially boosts the weak model's performance at a fraction of the cost, pipeline and context-based methods being most efficient. We release the code for our work at https://github.com/shubhamrgandhi/codegen-strong-weak-collab.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 18 of its 56 references that are in the map. First posted on arXiv 26 May 2025.
Builds on
18 of 56 references.
References · 18
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,628
- 2023FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performancecited by 791
- 2023Universal Self-Consistency for Large Language Model Generationcited by 198
- 2025The Danger of Overthinking: Examining the Reasoning-Action Dilemma in Agentic Taskscited by 150
- 2023Large Language Model Cascades with Mixture of Thoughts Representations for Cost-efficient Reasoningcited by 140
- 2024CodeRAG-Bench: Can Retrieval Augment Code Generation?cited by 89
- 2024RepoGraph: Enhancing AI Software Engineering with Repository-level Code Graphcited by 88
- 2025Harnessing Multiple Large Language Models: A Survey on LLM Ensemblecited by 86
- 2024Small Language Models Need Strong Verifiers to Self-Correct Reasoningcited by 85
- 2024Planning In Natural Language Improves LLM Search For Code Generationcited by 79
6 more
- 2023EcoAssistant: Using LLM Assistant More Affordably and Accuratelycited by 47
- 2025GraphCodeAgent: Dual Graph-Guided LLM Agent for Retrieval-Augmented Repo-Level Code Generationcited by 17
- 2024Improving Large Models with Small models: Lower Costs and Better Performancecited by 14
- 2025Self-Resource Allocation in Multi-Agent LLM Systemscited by 13
- 2025CodeSteer: Symbolic-Augmented Language Models via Code/Text Guidancecited by 11
- 2024Can We Afford The Perfect Prompt? Balancing Cost and Accuracy with the Economical Prompting Indexcited by 4
Built on by
Citing papers per year: 2026: 1.
1 paper.