Verification Trap: Understanding Test-Time Selection Failures under False Premises in Code Generation
Abstract
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.
Create a lesson
Metadata
- Comments
- EMNLP 2026
Related papers
CLIFT: Conformal Self-Verification for Web Agent Training and Test-Time Scaling
Shared title terminologycs.CLYifan Zhang, Yutong Dai, Viraj Prabhu et al.
Self-Generated Feedback Destabilizes Test-Time Training: A Causal Decomposition of Long-Horizon Adaptation
Shared title terminologycs.CLCheng Luo, Bing Li, Bernard Ghanem
Test-Time Adaptation of Reasoning Strategies with Bayesian Nonparametric Memory
Shared title terminologycs.CLKeshav Ramji, Tahira Naseem, Ramón Fernandez Astudillo
Red-TTT: Test-Time Training for Automated Jailbreaking Large Language Models
Shared title terminologycs.CLTongyan Hu, Hao Li, Xiaogeng Liu et al.
PoVi: Agentic Poetry-to-Video Generation with Knowledge Grounding and Figurative Understanding
Shared title terminologycs.CLYuxia Zhu, Shiying Zhang, Lingzhuang Sun et al.
Worth the Wait? How Response Time and Streaming Shape Judgments of Generative AI Answers and Chatbot Engagement
Shared title terminologycs.CLZihan Chen, Di Zhu, Lei Nico Zheng