Manuscript Offprint

arXiv:2608.29632

InteractBench: Benchmarking LLMs on Competitive Programming under Unrevealed Information

Jiaze Li, Aocheng Shen, Bing Liu, Boyu Zhang, Xiaoxuan Fan, Qiankun Zhang, Xianjun Deng

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Competitive programming is increasingly being used to evaluate the algorithmic reasoning capabilities of large language models (LLMs). However, existing benchmarks primarily focus on full-information tasks where all problem inputs are provided upfront. This overlooks a critical dimension of algorithmic reasoning: the ability of generated programs to operate when key information is not revealed upfront. Interactive problems, a distinctive component of competitive programming, embody this challenge. These problems require programs to engage in multi-round interaction with an interactor (a judge program) under strict protocol constraints and limited query budgets, with new information revealed only in response to queries. To address this gap, we introduce InteractBench, a benchmark comprising 322 high-quality interactive problems curated from Codeforces, AtCoder, IOI, and ICPC. Each problem is packaged with executable local interactors, enabling fully offline evaluation. Unlike existing benchmarks, InteractBench assesses whether model-generated code can acquire information and track state dynamically. Our evaluation reveals a significant interaction gap: even the most advanced reasoning models achieve limited success on interactive problems. Beyond success rates, we propose a fine-grained failure taxonomy to diagnose the root causes of these deficiencies. Although algorithmic logic errors remain dominant, protocol violations and query-budget overruns are frequent. Code is available at https://github.com/kmsgk0/InteractBench.

1. Introduction

Frontier large language models (LLMs) have made rapid progress in code generation and algorithmic reasoning. On widely used benchmarks such as HumanEval (Chen et al., 2021) and MBPP (Austin et al., 2021), performance has approached saturation, making it difficult to meaningfully differentiate top models using a single overall success rate.

Competitive programming pairs formally specified algorithmic tasks with automated judging, providing reliable correctness verdicts under strict time and memory limits, and has been argued to serve as an effective evaluator for LLMs (Huang et al., 2024). This has motivated multiple competitive-programming benchmarks, including CodeContests (Li et al., 2022), LiveCodeBench (Jain et al., 2024), and USACO (Shi et al., 2024). More recently, benchmarks such as CodeElo (Quan et al., 2025), HLCE (Li et al., 2025), ICPC-Eval (Xu et al., 2025), LiveCodeBench Pro (Zheng et al., 2025), and LiveOIBench (Zou et al., 2025) have emerged. These benchmarks suggest progress on harder competitive-programming problems, particularly with reasoning-focused models. Yet most adopt a full-information evaluation protocol: the solver reads a complete, static input at the start of execution; such tasks are referred to as batch-style problems. As a result, it remains unclear how well model-generated programs can solve interactive problems when key information is not revealed upfront and must be acquired through runtime queries.

Batch-style and interactive problems. The batch-style problem has all the input provided upfront, and the input does not depend on the solver's behavior (Verhoeff, 2009). In an interactive problem, key information is held by an interactor, the program responsible for answering queries (Mirzayanov, 2016; CMS Development Team, 2017). This information is revealed only in response to the solver's queries, subject to a strict protocol and a problem-specific query budget. 1^{1} Success therefore depends on an online querying strategy in addition to producing a correct final answer. Figure 1 illustrates this distinction with an example problem.

1^{1}School of Cyber Science and Engineering, Huazhong University of Science and Technology, Wuhan, China 2^{2}Key Laboratory of Cyberspace Security, Ministry of Education, Zhengzhou, China 3^{3}Hubei Key Laboratory of Distributed System Security, Wuhan, China. Correspondence to: Qiankun Zhang qiankun@hust.edu.cn.

Proceedings of the 43rd43^{rd} International Conference on Machine Learning, Seoul, South Korea. PMLR 306, 2026. Copyright 2026 by the author(s).

1^{1}This differs from HLCE (Li et al., 2025)'s use of “interactive-based” to denote function-signature evaluation.

References (27)