mlsanityData to 14 Oct 2026

Exploring the Robustness of Large Language Models for Solving Programming Problems

arXiv 2306.14583 ↗First posted 26 Jun 2023cs.CL cs.AI cs.SEcited by 16

Not on the map. Why?

Abstract (arXiv)

Using large language models (LLMs) for source code has recently gained attention. LLMs, such as Transformer-based models like Codex and ChatGPT, have been shown to be highly capable of solving a wide range of programming problems. However, the extent to which LLMs understand problem descriptions and generate programs accordingly or just retrieve source code from the most relevant problem in training data based on superficial cues has not been discovered yet. To explore this research question, we conduct experiments to understand the robustness of several popular LLMs, CodeGen and GPT-3.5 series models, capable of tackling code generation tasks in introductory programming problems. Our experimental results show that CodeGen and Codex are sensitive to the superficial modifications of problem descriptions and significantly impact code generation performance. Furthermore, we observe that Codex relies on variable names, as randomized variables decrease the solved rate significantly. However, the state-of-the-art (SOTA) models, such as InstructGPT and ChatGPT, show higher robustness to superficial modifications and have an outstanding capability for solving programming problems. This highlights the fact that slight modifications to the prompts given to the LLMs can greatly affect code generation performance, and careful formatting of prompts is essential for high-quality code generation, while the SOTA models are becoming more robust to perturbations.

Key facts. Cited by 16 papers in the map (data through 14 Oct 2026). Builds on 64 of its 84 references that are in the map. First posted on arXiv 26 Jun 2023.

Builds on

64 of 84 references.

References · 64

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2020Language Models are Few-Shot Learnerscited by 32,419
  4. 2023GPT-4 Technical Reportcited by 18,396
  5. 2022Training language models to follow instructions with human feedbackcited by 15,971
  6. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  7. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  8. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  9. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,893
  10. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
  11. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
  12. 2020Extracting Training Data from Large Language Modelscited by 2,189
38 more
  1. 2022Competition-Level Code Generation with AlphaCodecited by 1,462
  2. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
  3. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 906
  4. 2021Measuring Coding Challenge Competence With APPScited by 902
  5. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 885
  6. 2023Large Language Models Can Be Easily Distracted by Irrelevant Contextcited by 841
  7. 2015Improving Neural Machine Translation Models with Monolingual Datacited by 788
  8. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
  9. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
  10. 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 498
  11. 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 479
  12. 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 452
  13. 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 431
  14. 2022CodeT: Code Generation with Generated Testscited by 384
  15. 2021Unified Pre-training for Program Understanding and Generationcited by 366
  16. 2022A Systematic Evaluation of Large Language Models of Codecited by 363
  17. 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 361
  18. 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 358
  19. 2020Unsupervised Translation of Programming Languagescited by 263
  20. 2020IntelliCode Compose: Code Generation Using Transformercited by 227
  21. 2021CodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Taskscited by 200
  22. 2022Are Large Pre-Trained Language Models Leaking Your Personal Information?cited by 200
  23. 2019SPoC: Search-based Pseudocode to Codecited by 176
  24. 2022DocPrompting: Generating Code by Retrieving the Docscited by 153
  25. 2016DeepCoder: Learning to Write Programscited by 149
  26. 2021Retrieval Augmented Code Generation and Summarizationcited by 149
  27. 2022Automatic Generation of Programming Exercises and Code Explanations using Large Language Modelscited by 126
  28. 2021How much do language models copy from their training data? Evaluating linguistic novelty in text generation using RAVENcited by 124
  29. 2022Natural Language to Code Translation with Executioncited by 124
  30. 2021Examining Zero-Shot Vulnerability Repair with Large Language Modelscited by 105
  31. 2022ReCode: Robustness Evaluation of Code Generation Modelscited by 103
  32. 2021A Neural Network Solves, Explains, and Generates University Math Problems by Program Synthesis and Few-Shot Learning at Human Levelcited by 96
  33. 2021Leveraging Automated Unit Tests for Unsupervised Code Translationcited by 82
  34. 2021Memorization vs. Generalization: Quantifying Data Leakage in NLP Performance Evaluationcited by 70
  35. 2021Studying the Usage of Text-To-Text Transfer Transformer to Support Code-Related Taskscited by 70
  36. 2022Repair Is Nearly Generation: Multilingual Program Repair with LLMscited by 68
  37. 2023On the Robustness of Code Generation Techniques: An Empirical Study on GitHub Copilotcited by 64
  38. 2021SynCoBERT: Syntax-Guided Multi-Modal Contrastive Pre-Training for Code Representationcited by 63

50 most cited of 64 All 64 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 3; 2024: 4; 2025: 8; 2026: 1.

16 papers.

Sort:

By area:

  1. 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 399
  2. 2023Evaluating Large Language Models: A Comprehensive Surveycited by 202
  3. 2024NLPerturbator: Studying the Robustness of Code LLMs to Natural Language Variationscited by 20
  4. 2024Do Large Code Models Understand Programming Concepts? Counterfactual Analysis for Code Predicatescited by 14
  5. 2024Assessing LLMs for Zero-shot Abstractive Summarization Through the Lens of Relevance Paraphrasingcited by 11
  6. 2023Turbulence: Systematically and Automatically Testing Instruction-Tuned Large Language Models for Codecited by 9
  7. 2025StatLLM: A Dataset for Evaluating the Performance of Large Language Models in Statistical Analysiscited by 8
  8. 2025Shallow Robustness, Deep Vulnerabilities: Multi-Turn Evaluation of Medical LLMscited by 8
  9. 2025RobuNFR: Evaluating the Robustness of Large Language Models on Non-Functional Requirements Aware Code Generationcited by 5
  10. 2025Evaluating and Improving Robustness in Large Language Models: A Survey and Future Directionscited by 5
  11. 2025Fully Autonomous Programming using Iterative Multi-Agent Debugging with Large Language Modelscited by 3
  12. 2025Smaller = Weaker? Benchmarking Robustness of Quantized LLMs in Code Generationcited by 3
4 more
  1. 2025Evaluating the Effectiveness of Black-Box Prompt Optimization as the Scale of LLMs Continues to Growcited by 2
  2. 2026Minimal Prompt Perturbations Lead to Code Vulnerabilities: Prompt Fragility and Hidden-State Signals in Coding LLMscited by 2
  3. 2025Enhancing LLM Character-Level Manipulation via Divide and Conquercited by 1
  4. 2024Better Python Programming for all: With the focus on Maintainabilitycited by 0