Verification Trap: Understanding Test-Time Selection Failures under False Premises in Code Generation
New in LLM reasoning; no direction yet. LLM reasoning
Abstract (arXiv)
Test-time compute has become a central way to improve code generation: systems sample multiple candidate programs and use verifier-visible evidence to select the final output. This paradigm implicitly assumes that the verifier provides a corrective signal independent from the generator. We challenge this assumption under misleading task premises. When the generator and verifier share a false premise, they become coupled through a mistaken belief: the generator produces premise-consistent shortcuts, while the verifier supplies evidence that fails to expose them. Consequently, the selector may choose a hidden-test-wrong candidate even when a hidden-test-correct program exists in the pool. We call this failure mode Verification Trap. Across three code-generation benchmarks and five code models, false premises consistently degrade first-sample correctness, reduce selector-chosen correctness after 64-sample test-time selection, and amplify recoverable mis-selection. Mechanistically, verifier-written tests inherit the premise-level blind spot, reshaping verifier-visible candidate space away from hidden-test correctness. These traces make Verification Trap predictable before hidden execution: a lightweight gold-free predictor using verifier-visible features reaches 0.846 AUROC. Our results identify decoupled evidence as a key mitigation axis: coupled scaling provides limited recovery, whereas premise-agnostic robustness auditors recover substantial oracle headroom.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). First posted on arXiv 4 Oct 2026.
Builds on
No reference list yet.
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025Pareto Optimal Code Generation
- 2025SELF-REDRAFT: Eliciting Intrinsic Exploration-Exploitation Balance in Test-Time Scaling for Code Generation
- 2026Primal Generation, Dual Judgment: Self-Training from Test-Time Scaling
- 2026Correct Tests Are Not Enough: Measuring and Training Oracle Conversion in Specification-Based Test Generation ↗
- 2026Adaptive Generate-Rank-Verify: Inference-Time Search with Costly Verification
- 2026AlgoVeri: An Aligned Benchmark for Verified Code Generation on Classical Algorithms
- 2026Consistency Meets Verification: Enhancing Test Generation Quality in Large Language Models Without Ground-Truth Solutions
- 2025Demystifying Errors in LLM Reasoning Traces: An Empirical Study of Code Execution Simulation