Beyond Language Barriers: Multi-Agent Coordination for Multi-Language Code Generation

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Moumoula, Micheline Bénédicte, Nikiema, Serge Lionel, Djire, Albérick Euraste, Kabore, Abdoul Kader, Klein, Jacques, Bissyande, Tegawendé F.
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918147188064256
author Moumoula, Micheline Bénédicte
Nikiema, Serge Lionel
Djire, Albérick Euraste
Kabore, Abdoul Kader
Klein, Jacques
Bissyande, Tegawendé F.
author_facet Moumoula, Micheline Bénédicte
Nikiema, Serge Lionel
Djire, Albérick Euraste
Kabore, Abdoul Kader
Klein, Jacques
Bissyande, Tegawendé F.
contents Producing high-quality code across multiple programming languages is increasingly important as today's software systems are built on heterogeneous stacks. Large language models (LLMs) have advanced the state of automated programming, yet their proficiency varies sharply between languages, especially those with limited training data such as Rust, Perl, OCaml, and Erlang. Many current solutions including language-specific fine-tuning, multi-agent orchestration, transfer learning, and intermediate-representation pipelines still approach each target language in isolation, missing opportunities to share knowledge or exploit recurring cross-language patterns. XL-CoGen tackles this challenge with a coordinated multi-agent architecture that integrates intermediate representation, code generation, translation, and automated repair. Its distinguishing feature is a data-driven mechanism for selecting bridging languages: empirically derived transfer matrices identify the best intermediate languages based on demonstrated translation success rather than raw generation accuracy. The system performs early output validation, iteratively corrects errors, and reuses intermediate artifacts as contextual scaffolds for subsequent translations. Extensive experiments show that XL-CoGen yields notable improvements with 13 percentage-point gains over the strongest fine-tuned baseline and as much as 30 percentage points over existing single-language multi-agent methods. Ablation studies further demonstrate that compatibility-guided bridging significantly outperforms LLM-based heuristics, confirming the value of cumulative cross-language knowledge transfer.
format Preprint
id arxiv_https___arxiv_org_abs_2509_19918
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Beyond Language Barriers: Multi-Agent Coordination for Multi-Language Code Generation
Moumoula, Micheline Bénédicte
Nikiema, Serge Lionel
Djire, Albérick Euraste
Kabore, Abdoul Kader
Klein, Jacques
Bissyande, Tegawendé F.
Software Engineering
Producing high-quality code across multiple programming languages is increasingly important as today's software systems are built on heterogeneous stacks. Large language models (LLMs) have advanced the state of automated programming, yet their proficiency varies sharply between languages, especially those with limited training data such as Rust, Perl, OCaml, and Erlang. Many current solutions including language-specific fine-tuning, multi-agent orchestration, transfer learning, and intermediate-representation pipelines still approach each target language in isolation, missing opportunities to share knowledge or exploit recurring cross-language patterns. XL-CoGen tackles this challenge with a coordinated multi-agent architecture that integrates intermediate representation, code generation, translation, and automated repair. Its distinguishing feature is a data-driven mechanism for selecting bridging languages: empirically derived transfer matrices identify the best intermediate languages based on demonstrated translation success rather than raw generation accuracy. The system performs early output validation, iteratively corrects errors, and reuses intermediate artifacts as contextual scaffolds for subsequent translations. Extensive experiments show that XL-CoGen yields notable improvements with 13 percentage-point gains over the strongest fine-tuned baseline and as much as 30 percentage points over existing single-language multi-agent methods. Ablation studies further demonstrate that compatibility-guided bridging significantly outperforms LLM-based heuristics, confirming the value of cumulative cross-language knowledge transfer.
title Beyond Language Barriers: Multi-Agent Coordination for Multi-Language Code Generation
topic Software Engineering
url https://arxiv.org/abs/2509.19918