mlsanityData to 7 Oct 2026

Route-Align-Verify for Functional Correctness in Code Generation

arXiv 2608.03341 ↗First posted 4 Aug 2026cs.SE cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 15 of its 16 references that are in the map. First posted on arXiv 4 Aug 2026.

Builds on

15 of 16 references.

References · 15

  1. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  3. 2021Program Synthesis with Large Language Modelscited by 3,509
  4. 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,355
  5. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
  6. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  7. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
  8. 2022Competition-Level Code Generation with AlphaCodecited by 1,427
  9. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
  10. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
  11. 2023Teaching Large Language Models to Self-Debugcited by 963
  12. 2021Measuring Coding Challenge Competence With APPScited by 879
3 more
  1. 2023StarCoder: may the source be with you!cited by 790
  2. 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 728
  3. 2022CodeT: Code Generation with Generated Testscited by 369

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026ExeCRE: Execution-Consistency Guided Reliability Estimation for Self-Correcting Code Generation
  2. 2026P3: Joint Program-and-Proof Planning for Verified Code Generation
  3. 2024AlphaVerus: Bootstrapping Formally Verified Code Generation through Self-Improving Translation and Treefinement
  4. 2026AlgoVeri: An Aligned Benchmark for Verified Code Generation on Classical Algorithms
  5. 2026Intent-aligned Formal Specification Synthesis via Traceable Refinement
  6. 2026Inferring Code Correctness from Specification
  7. 2026Consistency Meets Verification: Enhancing Test Generation Quality in Large Language Models Without Ground-Truth Solutions
  8. 2026CoRE: A Fine-Grained Code Reasoning Benchmark Beyond Output Prediction