CodeForge-MA: Execution-Verified Multi-Agent Learning with Language-Conditioned LoRA for Multilingual Code Generation
Organizations: Northeastern University Bellevue, USA · Columbia University New York, USA · University of Pennsylvania Philadelphia, USA · University of Southern California San Jose, USA · Independent Researcher Mukilteo, USA
Abstract
Large language models for code generation often fail on execution, multilingual coverage, and contamination control, especially under frozen backbone constraints. We present CodeForge-MA, a unified framework that improves code synthesis through a multi-agent data forge, execution verified reinforced instruction tuning, and a language conditioned mixture of LoRA adapters. Four specialized agents, Composer, Reviewer, Executor, and Curator, iteratively refine instruction code pairs, validate them with tests, and filter duplicates and benchmark leakage. During training, we combine masked supervised fine tuning with a test driven reinforcement objective to align generations with executable correctness. For the larger model, we use sparse expert routing over low rank adapters to improve cross language transfer while keeping the base model unchanged at inference. Experiments show that joint data, objective, and adapter design yields robust gains across programming languages.
Figures & tables
| Symbol | Value | Description |
|---|---|---|
| Forge acceptance threshold | ||
| Max forge revisions per sample | ||
| Reviewer self-consistency samples | ||
| Language sampling temperature | ||
| MinHash deduplication threshold | ||
| KL penalty in PPO surrogate |
| Model / Configuration | pass@1 / Score | CodeBLEU | CR | BMPS |
|---|---|---|---|---|
| 1.8B-class backbones | ||||
| Qwen-1.8B (base) | 13.6 | 22.1 | 48.3 | 10.9 |
| CodeGen-2B-mono | 16.6 | 25.8 | 55.7 | 13.1 |
| StarCoderBase-3B | 21.0 | 29.6 | 62.4 | 17.4 |
| Qwen-1.8B + Evol-Instruct | 21.9 | 30.2 | 63.8 | 17.9 |
| DeepSeek-Coder-1.3B-Instruct | 27.1 | 34.7 | 71.2 | 22.8 |