Verifier-Guided Code Translation via Meta-Step Decoding
Tianyang Zhou, Somesh Jha, Mihai Christodorescu, Kirill Levchenko, Varun Chandrasekaran

TL;DR
This paper introduces Decoding Time Verification (DTV), a verifier-guided decoding framework that improves code translation accuracy by interleaving verifier calls during generation, reducing errors and token wastage.
Contribution
The paper proposes DTV, a novel framework that integrates structural verifier checks into the decoding process for more efficient and accurate code translation.
Findings
DTV improves pass rates from 72.3% to 82.0% on C-to-Rust.
DTV increases JavaScript-to-TypeScript pass rates from 33.3% to 46.0%.
DTV achieves better pass-rate-cost tradeoffs than previous methods.
Abstract
Test-time scaling is an important mechanism for improving large language models, especially on tasks with deterministic verifiers. Code translation is a canonical example: the source program constrains valid outputs, while compilers, type check- ers, and behavioral checks provide exact pass/fail feedback. Existing approaches typically apply these verifiers only after generation, which is inefficient because early errors corrupt the autoregressive context and are rarely corrected later. We introduce Decoding Time Verification (DTV), a framework that treats structural boundaries as meta steps for verifier-guided decoding. DTV interleaves generation with verifier calls under a state-machine controller that enforces valid prefixes, using structural-boundary checks and structure-aware rollback to prevent error propagation while reducing wasted tokens. We evaluate DTV on C-to-Rust and…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
