AlgoSimBench: Identifying Algorithmically Similar Problems for Competitive Programming
On the map: LLM reasoning → Reasoning for agents, planning and code
Abstract (arXiv)
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.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 35 of its 57 references that are in the map. First posted on arXiv 21 Jul 2025.
Builds on
35 of 57 references.
Closest ancestors · 3
Same direction, newest first
- 2024CodeTree: Agent-guided Tree Search for Code Generation with Large Language Models7 Nov
- 2024MapCoder: Multi-Agent Code Generation for Competitive Problem Solving18 May
- 2022Competition-Level Code Generation with AlphaCode8 Feb
Other references · 32
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2021Unsupervised Dense Information Retrieval with Contrastive Learningcited by 1,203
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
- 2014Distributed Representations of Sentences and Documentscited by 677
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
- 2022Precise Zero-Shot Dense Retrieval without Relevance Labelscited by 508
20 more
- 2023Large Language Models Are Not Robust Multiple Choice Selectorscited by 454
- 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Executioncited by 294
- 2022Natural Language to Code Translation with Executioncited by 122
- 2023Learning Performance-Improving Code Editscited by 103
- 2024Code Generation with AlphaCodium: From Prompt Engineering to Flow Engineeringcited by 100
- 2024CodeRAG-Bench: Can Retrieval Augment Code Generation?cited by 89
- 2020Contrastive Code Representation Learningcited by 76
- 2024Can Language Models Solve Olympiad Programming?cited by 70
- 2023Large Language Models Can be Lazy Learners: Analyze Shortcuts in In-Context Learningcited by 69
- 2024CoRNStack: High-Quality Contrastive Data for Better Code Retrieval and Rerankingcited by 37
- 2024CodeXEmbed: A Generalist Embedding Model Family for Multiligual and Multi-task Code Retrievalcited by 33
- 2024Code Representation Learning At Scalecited by 26
- 2024ECCO: Can We Improve Model-Generated Code Efficiency Without Sacrificing Functional Correctness?cited by 25
- 2024NoFunEval: Funny How Code LMs Falter on Requirements Beyond Functional Correctnesscited by 23
- 2024Disentangling Logic: The Role of Context in Large Language Model Reasoning Capabilitiescited by 22
- 2023A systematic literature review on source code similarity measurement and clone detection: techniques, applications, and challengescited by 14
- 2023Explaining Competitive-Level Programming Solutions using LLMscited by 13
- 2025BigO(Bench): Can LLMs Generate Code with Controlled Time and Space Complexity?cited by 11
- 2022Disentangling Reasoning Capabilities from Language Models with Compositional Reasoning Transformerscited by 3
- 2023Evaluating In-Context Learning of Libraries for Code Generationcited by 3
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2026InteractBench: Benchmarking LLMs on Competitive Programming under Unrevealed Information
- 2026Are you Synthesizing or Recalling? Evaluating LLMs on Algorithmic Code Retrieval
- 2024Navigating the Labyrinth: Evaluating LLMs' Ability to Reason About Search Problems
- 2025Beyond the Surface: A Solution-Aware Retrieval Model for Competition-level Code Generation ↗
- 2025LLM-ProS: Analyzing Large Language Models' Performance in Competitive Problem Solving
- 2024Distilling Algorithmic Reasoning from LLMs via Explaining Solution Programs
- 2025ArenaBencher: Automatic Benchmark Evolution via Multi-Model Competitive Evaluation
- 2025Evaluating and Improving Large Language Models for Competitive Program Generation