- Rating
- 4
- Clarity
- 4
- Confidence
- 3
- Originality
- 3
- Quality
- 3
- Significance
- 3
Read review
Summary
This paper studies test-time verification for code translation, focusing on how deterministic program verifiers such as compilers, type checkers, linters, and behavioral tests can be used during generation rather than only after a complete program has been produced. The paper proposes Decoding Time Verification (DTV), a framework that wraps a frozen code generation model with a state-machine controller. DTV generates code up to structural boundaries such as statements, blocks, functions, or full programs, renders the current prefix into a verifier-consumable artifact, and then either commits the prefix if verification passes or rolls back and retries with diagnostic feedback if verification fails. Its main mechanisms are structural-boundary verification, structure-aware rollback with escalation, and feedback via prompt augmentation.
The authors evaluate DTV on C-to-Rust and JavaScript-to-TypeScript translation using open-weight 4B-models(Qwen3-4B and Gemma-4-E4B). Empirical results demonstrate that under matched token budgets, DTV improves pass rates (e.g., from 72.3% to 82.0% on C-to-Rust with Qwen) compared to standard self-refinement baselines, preventing error propagation and reducing the average token consumption per problem.
Strengths and weaknesses
Quality: The paper addresses an important and well-motivated problem: how to use deterministic program verifiers during code translation rather than only after a complete program has been generated. The proposed DTV pipeline is technically reasonable, and the experimental section is relatively rich. However, the strongest results are mainly based on 4B open-weight models and two translation settings. Since smaller models tend to make more verifier-detectable errors, they may provide more opportunities for DTV to help. When the base model is already stronger, the benefits appear less stable: on Gemma C-to-Rust, naive/self-refine outperforms DTV/self-refine at the budget cap. More importantly, the paper primarily reports token-based cost rather than end-to-end wall-clock cost, even though DTV invokes compilers, type checkers, and linters repeatedly during decoding. Since verifier latency may dominate practical deployment cost, the claimed efficiency advantage is not fully substantiated.
Clarity: The paper is clearly written and well organized. The motivation, state-machine controller, structural-boundary verification, rollback/escalation mechanism, and diagnostic feedback loop are easy to follow. The figures, algorithm, appendix details, oracle setup, dataset construction, ablations, and limitations make the method relatively easy to understand and evaluate.
Significance: Code translation is an important application area, and using deterministic verifiers during decoding is a promising direction for test-time scaling. If DTV were shown to work reliably for stronger models, broader tasks, and realistic wall-clock accounting, it could be useful for code generation and translation systems. However, the current significance is limited by the narrow model scale and the lack of wall-clock cost evaluation. Thus, I view the work as promising, but its broader practical value is not yet convincingly established.
Originality: The pipeline has moderate originality and provides a useful framing. At the same time, the broader idea of verifier-guided or monitor-guided generation has appeared in prior work, so the contribution is better viewed as a systematic and task-adapted framework rather than a fundamentally new paradigm.
Questions
-
Generalization to stronger models. The main evidence is based on 4B open-weight models, where verifier-detectable errors may be more frequent. Moreover, on Gemma C-to-Rust, DTV underperforms naive/self-refine at the budget cap. Could the authors clarify when DTV is expected to help versus hurt as the base model becomes stronger? A small experiment with a stronger open-weight code model, or an analysis stratified by initial pass rate, would help determine whether the method is broadly useful or mainly beneficial for weaker models.
-
End-to-end cost and wall-clock efficiency. The paper reports token-based cost, but DTV repeatedly invokes compilers, type checkers, and linters during decoding. Could the authors report verifier invocation counts, verifier-side latency, and total wall-clock time? My evaluation would increase if DTV’s efficiency advantage holds under realistic end-to-end cost accounting, rather than only under generation-token accounting.
Limitations
yes
Paper formatting concerns
no
Final justification
The rebuttal resolves my main concerns sufficiently to justify raising my recommendation to Borderline Accept, provided the new experiments are included and the efficiency claims are appropriately qualified.
Thank you for recognizing that DTV addresses an important and well-motivated problem, that the framework is technically reasonable, and that the paper is clearly presented. We focus below on your two main concerns: whether DTV remains useful with stronger models, and whether its efficiency holds after accounting for verifier latency.
Stronger-model experiment. Following your suggestion, we evaluated
Qwen/Qwen3-30B-A3B-Instruct-2507, a mixture-of-experts model with 30.5B total parameters. For each task, we used the first 100 cases from the randomly sampled main-evaluation cohort and the same maximum normalized generation budget ofk=16as in the main experiment. The following cumulative results are reconstructed from eachk=16run.kkOn C-to-Rust, DTV leads at every budget from
k=2throughk=16, ending at 97% versus 92%. On JS-to-TS, DTV leads throughout the budget range and ends at 66% versus 57%. The stronger model's naive pass rates are also higher than Qwen3-4B on the same cohorts, so these gains are not limited to the weaker generator.We agree that DTV has little room to improve when the baseline is already near the performance ceiling. The submitted Gemma C-to-Rust result is the clearest example: naive passes 96 of 100 cases at
k=16, leaving only four failures that DTV could potentially recover, and ultimately outperforms DTV's 86%. At the same time, DTV rises faster at low budgets in all six evaluated model-task cells (See Figure 7 and Appendix K line 923-926). We therefore view DTV as most useful when verifier-detectable failures remain and the generation budget is tight. Near saturation, its limited opportunity for additional successes may not offset changes to already-successful sampled trajectories.DTV improves the stronger model before outer self-refinement. To isolate the effect of in-loop verification, we compare the first complete-program attempt from DTV with the first attempt from naive. We refer to these operating points as DTV/one-shot and naive/one-shot because neither includes an outer self-refinement round.
k, naive vs DTVThus, DTV's advantage with the stronger model is already present before post-hoc self-refinement. Outer self-refinement subsequently raises the final results to 92% vs 97% on C-to-Rust and 57% vs 66% on JS-to-TS. The mean
kvalues use cases with a recorded first outer verification and therefore report their coverage explicitly. This operating-point comparison is distinct from the CDF value atk=1, which applies a normalized cumulative token cutoff.Verifier calls and measured latency. DTV necessarily invokes verifiers more often than naive generation: its core mechanism is to detect an incorrect branch at a structural boundary, remove it before it becomes future context, and avoid spending GPU generation on that branch and its downstream repair. The relevant wall-clock question is therefore whether the avoided generation and outer self-refinement offset the additional verifier calls. The table reports both components.
The two tasks use very different verifier stacks. C-to-Rust launches one native
rustcbinary per check; the measured mean is 0.054 seconds per call. JS-to-TS serially launches a Node.js TypeScript checker and ESLint as separate subprocesses; the measured mean is 1.823 seconds per calls. The officialtscentry point is itself a Node.js script that loads the JavaScript compiler. In our implementation, the TypeScript verifier pair is therefore 33.7 times slower than onerustccall.Verifier cost and model cost are largely orthogonal. Model decoding runs on the GPU, whereas our compiler and linter processes run on the CPU. The 30B experiment used a GPU-centric allocation with one 96 GB H100 GPU and 8 Grace ARM CPU cores. A faster GPU changes generation cost; a faster compiler, persistent verifier service, or stronger CPU changes verifier cost without changing DTV's algorithm. Such system-level optimization can be simple: our independent TypeScript and ESLint verifiers currently run serially, but running them in parallel would reduce pair latency from their sum toward the slower verifier's latency without changing either verifier or DTV (around 1.253 second per call). And in this case, in the Qwen3-30B JS to TS experiment, DTV total wall time surpasses the naive result.
The stronger-model results show the favorable scaling trend. From Qwen3-4B to Qwen3-30B-A3B, the DTV/naive elapsed ratio decreases from 0.79x to 0.57x on C-to-Rust and from 1.85x to 1.26x on JS-to-TS. Thus, the relative verifier overhead becomes smaller for the stronger-model experiment while DTV retains higher pass rates. This is consistent with DTV becoming more attractive as GPU generation becomes expensive relative to a fixed verifier stack.
We will add verifier invocation counts and recorded elapsed time alongside token cost in the final revised version.
We are happy to engage further and hope you will consider increasing your score if these clarifications and additional evidence address your concerns.