AlgoSimBench: Identifying Algorithmically Similar Problems for Competitive Programming
Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence. Main Track. Pages 5793-5801.
https://doi.org/10.24963/ijcai.2026/645
Keywords
- Natural Language Processing: Language models
- Natural Language Processing: Resources and evaluation
Abstract
Recent reasoning-enhanced Large Language Models (LLMs) have achieved promising results in solving complex competitive programming problems. However, it remains unclear whether these reasoning abilities generalize to relevant tasks, like identifying algorithmically similar problems (ASPs). We introduce AlgoSimBench, a benchmark of 402 multiple-choice questions curated in an adversarial setting: each given reference problem is paired with one algorithmically similar problem and three distractors that are semantically close but algorithmically dissimilar. This design forces models to rely on algorithmic reasoning rather than superficial textual cues. Our evaluation shows that LLMs consistently struggle under this setting. To address this gap, we propose Attempted Solution Matching (ASM), which leverages LLM-generated solution attempts to assess similarity, yielding an average accuracy improvement of 9% across models. Beyond LLM evaluation, AlgoSimBench also probes code retrieval methods; when combined with BM25, ASM achieves an additional 11.8% gain over state-of-the-art embedding models. AlgoSimBench offers a challenging testbed that facilitates future studies on LLMs and retrieval methods.
@inproceedings{ijcai2026p645,
title = {AlgoSimBench: Identifying Algorithmically Similar Problems for Competitive Programming},
author = {Li, Jierui and Mooney, Raymond},
booktitle = {Proceedings of the Thirty-Fifth International Joint Conference on
Artificial Intelligence, {IJCAI-26}},
publisher = {International Joint Conferences on Artificial Intelligence Organization},
editor = {Diego Calvanese},
pages = {5793--5801},
year = {2026},
month = {8},
note = {Main Track},
doi = {10.24963/ijcai.2026/645},
url = {https://doi.org/10.24963/ijcai.2026/645},
}
TY - CPAPER TI - AlgoSimBench: Identifying Algorithmically Similar Problems for Competitive Programming AU - Li, Jierui AU - Mooney, Raymond T2 - Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence, IJCAI-26 PB - International Joint Conferences on Artificial Intelligence Organization PY - 2026 SP - 5793 EP - 5801 DO - 10.24963/ijcai.2026/645 UR - https://doi.org/10.24963/ijcai.2026/645 ER -Copied
Machine-readable versions of this paper, for tools and AI agents: