Metraipolis › archive › dc_a7e16cfa5892

Route-Align-Verify for Functional Correctness in Code Generation — arXiv:2608.03341

Source
arXiv (en)
Original
https://arxiv.org/abs/2608.03341
License (as archived)
CC0-1.0
Archived
2026-10-31T12:19:15.014Z
SHA-256 of the archived text
cccfc0d27903d630afa3c4d7c7394c687b594fb7775e0e8b33f9c31cfef4bba0
Stable URL of this page
https://metraipolis.com/documento/dc_a7e16cfa5892

How to cite

Route-Align-Verify for Functional Correctness in Code Generation — arXiv:2608.03341 — arXiv (en), https://arxiv.org/abs/2608.03341 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_a7e16cfa5892 (Metraipolis archive dc_a7e16cfa5892, sha256 cccfc0d27903d630afa3c4d7c7394c687b594fb7775e0e8b33f9c31cfef4bba0)
BibTeX
@misc{dca7e16cfa5892,
  title = {Route-Align-Verify for Functional Correctness in Code Generation — arXiv:2608.03341},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2608.03341},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_a7e16cfa5892; sha256 cccfc0d27903d630afa3c4d7c7394c687b594fb7775e0e8b33f9c31cfef4bba0},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.03341. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Large language models (LLMs) have substantially improved code generation, yet achieving strong functional correctness remains difficult, especially for heterogeneous programming tasks where a single prompting strategy and a single directly generated output are often insufficient. In this paper, we present RAV, a lightweight and modular framework that improves code generation with a fixed backbone model through three coordinated stages: Route, which applies task-aware prompt routing before generation; Align, which reduces the mismatch between fine-tuning prompts and inference-time prompts through aligned LoRA adaptation; and Verify, which selects the final output by executing multiple candidates against visible public tests. We evaluate RAV on the MBPP benchmark under both the sanitized and full settings. The complete RAV pipeline achieves the best performance among all evaluated configurations, reaching 0.8911 on MBPP Sanitized and 0.8520 on MBPP Full. Compared with the base model, these results represent improvements of 6.35 and 9.92 percentage points, respectively. Component-wise ablation experiments further show that task-aware routing and aligned adaptation become substantially more effective when combined with execution-based verification. Additional robustness and contamination analyses support the reliability of the observed improvements. Overall, 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.

Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-08-05 in cs.AI).
Categorie arXiv: Software Engineering (cs.SE) ; Artificial Intelligence (cs.AI).
Pagina del lavoro: https://arxiv.org/abs/2608.03341 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-31T12:05:53.033Z dalla pagina https://arxiv.org/catchup/cs.AI/2026-08-05?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).