ResearchTrend.AI
  • Papers
  • Communities
  • Events
  • Blog
  • Pricing
Papers
Communities
Social Events
Terms and Conditions
Pricing
Parameter LabParameter LabTwitterGitHubLinkedInBlueskyYoutube

© 2025 ResearchTrend.AI, All rights reserved.

  1. Home
  2. Papers
  3. 2505.20182
11
0

An Empirical Study on Strong-Weak Model Collaboration for Repo-level Code Generation

26 May 2025
Shubham Gandhi
Atharva Naik
Yiqing Xie
Carolyn Rose
ArXivPDFHTML
Abstract

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 atthis https URL.

View on arXiv
@article{gandhi2025_2505.20182,
  title={ An Empirical Study on Strong-Weak Model Collaboration for Repo-level Code Generation },
  author={ Shubham Gandhi and Atharva Naik and Yiqing Xie and Carolyn Rose },
  journal={arXiv preprint arXiv:2505.20182},
  year={ 2025 }
}
Comments on this paper