mlsanityData to 7 Oct 2026

Do Large Code Models Understand Programming Concepts? Counterfactual Analysis for Code Predicates

arXiv 2402.05980 ↗First posted 8 Feb 2024cs.SE cs.AI cs.LGcited by 14

Not on the map. Why?

Abstract (arXiv)

Large Language Models' success on text generation has also made them better at code generation and coding tasks. While a lot of work has demonstrated their remarkable performance on tasks such as code completion and editing, it is still unclear as to why. We help bridge this gap by exploring to what degree auto-regressive models understand the logical constructs of the underlying programs. We propose Counterfactual Analysis for Programming Concept Predicates (CACP) as a counterfactual testing framework to evaluate whether Large Code Models understand programming concepts. With only black-box access to the model, we use CACP to evaluate ten popular Large Code Models for four different programming concepts. Our findings suggest that current models lack understanding of concepts such as data flow and control flow.

Key facts. Cited by 14 papers in the map (data through 7 Oct 2026). Builds on 26 of its 45 references that are in the map. First posted on arXiv 8 Feb 2024.

Builds on

26 of 45 references.

References · 26

  1. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  3. 2021Program Synthesis with Large Language Modelscited by 3,509
  4. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  5. 2022Competition-Level Code Generation with AlphaCodecited by 1,427
  6. 2023PaLM 2 Technical Reportcited by 1,154
  7. 2023Teaching Large Language Models to Self-Debugcited by 963
  8. 2023StarCoder: may the source be with you!cited by 790
  9. 2022Quantifying Memorization Across Neural Language Modelscited by 755
  10. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
  11. 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
  12. 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
14 more
  1. 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 468
  2. 2023OctoPack: Instruction Tuning Code Large Language Modelscited by 178
  3. 2022ReCode: Robustness Evaluation of Code Generation Modelscited by 100
  4. 2021CURE: Code-Aware Neural Machine Translation for Automatic Program Repaircited by 85
  5. 2022Repair Is Nearly Generation: Multilingual Program Repair with LLMscited by 68
  6. 2021Meaningfully Debugging Model Mistakes using Conceptual Counterfactual Explanationscited by 53
  7. 2022CodeAttack: Code-Based Adversarial Attacks for Pre-trained Programming Language Modelscited by 48
  8. 2020Semantic Robustness of Models of Source Codecited by 43
  9. 2020Typilus: Neural Type Hintscited by 29
  10. 2021Counterfactual Explanations for Models of Codecited by 24
  11. 2023Exploring the Robustness of Large Language Models for Solving Programming Problemscited by 16
  12. 2023Toward a Theory of Causation for Interpreting Neural Code Modelscited by 12
  13. 2023Evaluating and Explaining Large Language Models for Code Using Syntactic Structurescited by 9
  14. 2019Recovering Variable Names for Minified Code with Usage Contextscited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 4; 2025: 7; 2026: 3.

14 papers.

Sort:

By area: