Skip to content

Cross-Model Collaboration for Enhancing LLM-Based Code Generation

Aug 2026 · ACM Transactions on Software Engineering and Methodology · 0 citations · 56 references

TL;DR

Findings indicate that cross-model collaboration offers a practical and parameter-efficient alternative to scaling up monolithic models for code generation and maintains competitive accuracy when only 20% of test cases are available for diagnostic feedback.

Abstract

Large language models (LLMs) have significantly advanced automatic code generation, yet most existing approaches rely on single-model inference, making their performance susceptible to model-specific limitations and failure patterns. To address this, we introduce Cross-Model Collaborative Scheduling (CMCS), a framework that enables multiple LLMs to collaboratively generate code. At its core, CMCS combines execution-guided self-correction with a peer-to-peer corrective handover mechanism, transferring unresolved problems between models to leverage their complementary strengths and mitigate the limitations of any single model. Experiments on eight code generation benchmarks show that CMCS achieves the strongest performance among the evaluated comparable-scale approaches with strong parameter efficiency. In particular, two 7B-scale models consistently outperform a much larger 30B-scale model on every benchmark where both are evaluated. When applied to proprietary models, CMCS boosts Pass@1 on APPS to 36.00%, more than three times that of the stronger individual model (11.33%). CMCS also maintains competitive accuracy when only 20% of test cases are available for diagnostic feedback. Ablation, scalability, and cost-effectiveness analyses quantify component contributions and practical deployment trade-offs. These findings indicate that cross-model collaboration offers a practical and parameter-efficient alternative to scaling up monolithic models for code generation.

View source

Similar papers

Preprint Aug 2026

Route-Align-Verify for Functional Correctness in Code Generation

The results indicate that functional correctness in code generation can be meaningfully improved without modifying the backbone architecture, by jointly optimizing how tasks are prompted, how the model is adapted, and how final outputs are selected.

Eric Zhou, Jing Meng, Ao-Fan Liu · 0 citations
#small language model Book Open access Sep 2026

Code Transformation Rule Synthesis using LLMs: Potential and Limits

A novel empirical study targeting three domain- specific languages for transformation rules, namely Comby, GritQL, and Ast-Grep, which shows great potential for LLMs to generate sound, correct, generalizable, and reusable rules.

Axel Allain, Aymeric Blot, D. Khelladi et al. · 1 citation
Preprint Aug 2026

What Survives the Next Model? Benchmarking LLM-Based Techniques Against Single-Prompts

Analysis of technique papers from ICSE 2026 finds that a newer model with a single prompt natively outperforms the heavily engineered tooling proposed just a year prior, and identifies that constructive techniques like code generation or repair are more amenable to substitution by a single-prompt.

Nahian Salsabil, Joy Saha, S. Dristi et al. · 0 citations
Conference Jul 2026

A Dynamic Evaluation Approach to Repository-Level Code Generation Via LLM

Research on LLM-based code generation has achieved strong performance on function-level benchmarks, yet repository-level code generation in real-world projects still faces challenges from cross-file dependencies. Existing studies usually emphasize single-round or final-round outcomes, which limits the analysis of where...

Fuze Kuang, Dongmei Liu, Yong-Li Wang et al. · 0 citations
#software testing Preprint Aug 2026

Benchmarking the Titans: A Multi-Dimensional Empirical Evaluation of LLM Code Generation Quality in the .NET Ecosystem

An automated, multi-dimensional evaluation framework for C# code generation, applying it to four state-of-the-art LLMs: GPT, Gemini, Claude, and Grok is presented and a substantial gap between correctness and quality attributes is revealed.

Seyed Mohammad Mahdi Ghalandarian, Majid Bazargani, Masoumeh Taromirad · 0 citations
#artificial intelligence Preprint Aug 2026

A Universal Context-Reuse Layer for Cross-Model KV Sharing

Results provide initial evidence that KV states can serve as transferable computational representations rather than strictly model-local caches, and motivate context mobility as a systems abstraction for reducing redundant prefill across heterogeneous LLM and multi-agent inference workflows.

Yi Li, Dongming Jiang, Yi Zhao et al. · 2 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.