English

DuET: Dual Execution for Test Output Prediction with Generated Code and Pseudocode

Software Engineering 2026-04-14 v1 Computation and Language

Abstract

This work addresses test output prediction, a key challenge in test case generation. To improve the reliability of predicted outputs by LLMs, prior approaches generate code first to ground predictions. One grounding strategy is direct execution of generated code, but even minor errors can cause failures. To address this, we introduce LLM-based pseudocode execution, which grounds prediction on more error-resilient pseudocode and simulates execution via LLM reasoning. We further propose DuET, a dual-execution framework that combines both approaches by functional majority voting. Our analysis shows the two approaches are complementary in overcoming the limitations of direct execution suffering from code errors, and pseudocode reasoning from hallucination. On LiveCodeBench, DuET achieves the state-of-the-art performance, improving Pass@1 by 13.6 pp.

Keywords

Cite

@article{arxiv.2604.11514,
  title  = {DuET: Dual Execution for Test Output Prediction with Generated Code and Pseudocode},
  author = {Hojae Han and Jaejin Kim and Seung-won Hwang and Yu Jin Kim and Moontae Lee},
  journal= {arXiv preprint arXiv:2604.11514},
  year   = {2026}
}

Comments

Findings of ACL 2026

R2 v1 2026-07-01T12:06:30.099Z