Bug In the Code Stack: Can LLMs Find Bugs in Large Python Code Stacks
Not on the map. Why?
Abstract (arXiv)
Recent research in Needle-in-a-Haystack (NIAH) benchmarks has explored the capabilities of Large Language Models (LLMs) in retrieving contextual information from large text documents. However, as LLMs become increasingly integrated into software development processes, it is crucial to evaluate their performance in code-based environments. As LLMs are further developed for program synthesis, we need to ensure that LLMs can understand syntax and write syntactically correct code. As a step in ensuring LLMs understand syntax, LLMs can be evaluated in their ability to find and detect syntax bugs. Our benchmark, Bug In The Code Stack (BICS), is designed to assess the ability of LLMs to identify simple syntax bugs within large source code. Our findings reveal three key insights: (1) code-based environments pose significantly more challenge compared to text-based environments for retrieval tasks, (2) there is a substantial performance disparity among different models, and (3) there is a notable correlation between longer context lengths and performance degradation, though the extent of this degradation varies between models.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 9 of its 22 references that are in the map. First posted on arXiv 21 Jun 2024.
Builds on
9 of 22 references.
References · 9
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
- 2023Using an LLM to Help With Code Understandingcited by 222
- 2024LV-Eval: A Balanced Long-Context Benchmark with 5 Length Levels Up to 256Kcited by 80
- 2024In Search of Needles in a 11M Haystack: Recurrent Memory Finds What LLMs Misscited by 36
- 2023CoderEval: A Benchmark of Pragmatic Code Generation with Generative Pre-trained Modelscited by 28
- 2024LLM vs. Lawyers: Identifying a Subset of Summary Judgments in a Large UK Case Law Datasetcited by 8
Built on by
Citing papers per year: 2024: 1; 2025: 2; 2026: 3.
6 papers.
- 2024On Leakage of Code Generation Evaluation Datasetscited by 29
- 2025Assessing the Impact of Code Changes on the Fault Localizability of Large Language Modelscited by 4
- 2025Clotho: Measuring Task-Specific Pre-Generation Test Adequacy for LLM Inputscited by 1
- 2026Enhancing Large Language Models with Retrieval Augmented Generation for Software Testing and Inspection Automationcited by 0
- 2026An Empirical Evaluation of Locally Deployed LLMs for Bug Detection in Python Codecited by 0
- 2026Code Understanding is a Bottleneck for Coding Agentscited by 0
- 2026Code Understanding is a Bottleneck for Coding Agents7 Oct 2026
- 2026An Empirical Evaluation of Locally Deployed LLMs for Bug Detection in Python Code25 Apr 2026
- 2026Enhancing Large Language Models with Retrieval Augmented Generation for Software Testing and Inspection Automation16 Apr 2026
- 2025Clotho: Measuring Task-Specific Pre-Generation Test Adequacy for LLM Inputs22 Sep 2025
- 2025Assessing the Impact of Code Changes on the Fault Localizability of Large Language Models6 Apr 2025
- 2024On Leakage of Code Generation Evaluation Datasets10 Jul 2024