Exploring the Robustness of Large Language Models for Solving Programming Problems
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
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023GPT-4 Technical Reportcited by 18,396
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,893
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
- 2020Extracting Training Data from Large Language Modelscited by 2,189
38 more
- 2022Competition-Level Code Generation with AlphaCodecited by 1,462
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 906
- 2021Measuring Coding Challenge Competence With APPScited by 902
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 885
- 2023Large Language Models Can Be Easily Distracted by Irrelevant Contextcited by 841
- 2015Improving Neural Machine Translation Models with Monolingual Datacited by 788
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 498
- 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 479
- 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 452
- 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 431
- 2022CodeT: Code Generation with Generated Testscited by 384
- 2021Unified Pre-training for Program Understanding and Generationcited by 366
- 2022A Systematic Evaluation of Large Language Models of Codecited by 363
- 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 361
- 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 358
- 2020Unsupervised Translation of Programming Languagescited by 263
- 2020IntelliCode Compose: Code Generation Using Transformercited by 227
- 2021CodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Taskscited by 200
- 2022Are Large Pre-Trained Language Models Leaking Your Personal Information?cited by 200
- 2019SPoC: Search-based Pseudocode to Codecited by 176
- 2022DocPrompting: Generating Code by Retrieving the Docscited by 153
- 2016DeepCoder: Learning to Write Programscited by 149
- 2021Retrieval Augmented Code Generation and Summarizationcited by 149
- 2022Automatic Generation of Programming Exercises and Code Explanations using Large Language Modelscited by 126
- 2021How much do language models copy from their training data? Evaluating linguistic novelty in text generation using RAVENcited by 124
- 2022Natural Language to Code Translation with Executioncited by 124
- 2021Examining Zero-Shot Vulnerability Repair with Large Language Modelscited by 105
- 2022ReCode: Robustness Evaluation of Code Generation Modelscited by 103
- 2021A Neural Network Solves, Explains, and Generates University Math Problems by Program Synthesis and Few-Shot Learning at Human Levelcited by 96
- 2021Leveraging Automated Unit Tests for Unsupervised Code Translationcited by 82
- 2021Memorization vs. Generalization: Quantifying Data Leakage in NLP Performance Evaluationcited by 70
- 2021Studying the Usage of Text-To-Text Transfer Transformer to Support Code-Related Taskscited by 70
- 2022Repair Is Nearly Generation: Multilingual Program Repair with LLMscited by 68
- 2023On the Robustness of Code Generation Techniques: An Empirical Study on GitHub Copilotcited by 64
- 2021SynCoBERT: Syntax-Guided Multi-Modal Contrastive Pre-Training for Code Representationcited by 63
50 most cited of 64 All 64 (JSON)
Built on by
Citing papers per year: 2023: 3; 2024: 4; 2025: 8; 2026: 1.
16 papers.
Sort:
By area:
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 399
- 2023Evaluating Large Language Models: A Comprehensive Surveycited by 202
- 2024NLPerturbator: Studying the Robustness of Code LLMs to Natural Language Variationscited by 20
- 2024Do Large Code Models Understand Programming Concepts? Counterfactual Analysis for Code Predicatescited by 14
- 2024Assessing LLMs for Zero-shot Abstractive Summarization Through the Lens of Relevance Paraphrasingcited by 11
- 2023Turbulence: Systematically and Automatically Testing Instruction-Tuned Large Language Models for Codecited by 9
- 2025StatLLM: A Dataset for Evaluating the Performance of Large Language Models in Statistical Analysiscited by 8
- 2025Shallow Robustness, Deep Vulnerabilities: Multi-Turn Evaluation of Medical LLMscited by 8
- 2025RobuNFR: Evaluating the Robustness of Large Language Models on Non-Functional Requirements Aware Code Generationcited by 5
- 2025Evaluating and Improving Robustness in Large Language Models: A Survey and Future Directionscited by 5
- 2025Fully Autonomous Programming using Iterative Multi-Agent Debugging with Large Language Modelscited by 3
- 2025Smaller = Weaker? Benchmarking Robustness of Quantized LLMs in Code Generationcited by 3
4 more
- 2025Evaluating the Effectiveness of Black-Box Prompt Optimization as the Scale of LLMs Continues to Growcited by 2
- 2026Minimal Prompt Perturbations Lead to Code Vulnerabilities: Prompt Fragility and Hidden-State Signals in Coding LLMscited by 2
- 2025Enhancing LLM Character-Level Manipulation via Divide and Conquercited by 1
- 2024Better Python Programming for all: With the focus on Maintainabilitycited by 0
- 2026Minimal Prompt Perturbations Lead to Code Vulnerabilities: Prompt Fragility and Hidden-State Signals in Coding LLMs28 May 2026
- 2025Shallow Robustness, Deep Vulnerabilities: Multi-Turn Evaluation of Medical LLMs14 Oct 2025
- 2025Smaller = Weaker? Benchmarking Robustness of Quantized LLMs in Code Generation28 Jun 2025
- 2025Evaluating and Improving Robustness in Large Language Models: A Survey and Future Directions8 Jun 2025
- 2025Evaluating the Effectiveness of Black-Box Prompt Optimization as the Scale of LLMs Continues to Grow13 May 2025
- 2025RobuNFR: Evaluating the Robustness of Large Language Models on Non-Functional Requirements Aware Code Generation28 Mar 2025
- 2025Fully Autonomous Programming using Iterative Multi-Agent Debugging with Large Language Models10 Mar 2025
- 2025StatLLM: A Dataset for Evaluating the Performance of Large Language Models in Statistical Analysis24 Feb 2025
- 2025Enhancing LLM Character-Level Manipulation via Divide and Conquer12 Feb 2025
- 2024Better Python Programming for all: With the focus on Maintainability17 Aug 2024
- 2024NLPerturbator: Studying the Robustness of Code LLMs to Natural Language Variations28 Jun 2024
- 2024Assessing LLMs for Zero-shot Abstractive Summarization Through the Lens of Relevance Paraphrasing6 Jun 2024
4 more
- 2024Do Large Code Models Understand Programming Concepts? Counterfactual Analysis for Code Predicates8 Feb 2024
- 2023Turbulence: Systematically and Automatically Testing Instruction-Tuned Large Language Models for Code22 Dec 2023
- 2023Evaluating Large Language Models: A Comprehensive Survey30 Oct 2023
- 2023Large Language Models for Software Engineering: A Systematic Literature Review21 Aug 2023
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 399
- 2023Evaluating Large Language Models: A Comprehensive Surveycited by 202
- 2024NLPerturbator: Studying the Robustness of Code LLMs to Natural Language Variationscited by 20
- 2024Do Large Code Models Understand Programming Concepts? Counterfactual Analysis for Code Predicatescited by 14
- 2024Assessing LLMs for Zero-shot Abstractive Summarization Through the Lens of Relevance Paraphrasingcited by 11
- 2023Turbulence: Systematically and Automatically Testing Instruction-Tuned Large Language Models for Codecited by 9
- 2025StatLLM: A Dataset for Evaluating the Performance of Large Language Models in Statistical Analysiscited by 8
- 2025Shallow Robustness, Deep Vulnerabilities: Multi-Turn Evaluation of Medical LLMscited by 8
- 2025RobuNFR: Evaluating the Robustness of Large Language Models on Non-Functional Requirements Aware Code Generationcited by 5
- 2025Evaluating and Improving Robustness in Large Language Models: A Survey and Future Directionscited by 5
- 2025Smaller = Weaker? Benchmarking Robustness of Quantized LLMs in Code Generationcited by 3
- 2025Evaluating the Effectiveness of Black-Box Prompt Optimization as the Scale of LLMs Continues to Growcited by 2
12 most cited of 15 All 15 (JSON)
- 2026Minimal Prompt Perturbations Lead to Code Vulnerabilities: Prompt Fragility and Hidden-State Signals in Coding LLMs28 May 2026
- 2025Shallow Robustness, Deep Vulnerabilities: Multi-Turn Evaluation of Medical LLMs14 Oct 2025
- 2025Smaller = Weaker? Benchmarking Robustness of Quantized LLMs in Code Generation28 Jun 2025
- 2025Evaluating and Improving Robustness in Large Language Models: A Survey and Future Directions8 Jun 2025
- 2025Evaluating the Effectiveness of Black-Box Prompt Optimization as the Scale of LLMs Continues to Grow13 May 2025
- 2025RobuNFR: Evaluating the Robustness of Large Language Models on Non-Functional Requirements Aware Code Generation28 Mar 2025
- 2025StatLLM: A Dataset for Evaluating the Performance of Large Language Models in Statistical Analysis24 Feb 2025
- 2025Enhancing LLM Character-Level Manipulation via Divide and Conquer12 Feb 2025
- 2024Better Python Programming for all: With the focus on Maintainability17 Aug 2024
- 2024NLPerturbator: Studying the Robustness of Code LLMs to Natural Language Variations28 Jun 2024
- 2024Assessing LLMs for Zero-shot Abstractive Summarization Through the Lens of Relevance Paraphrasing6 Jun 2024
- 2024Do Large Code Models Understand Programming Concepts? Counterfactual Analysis for Code Predicates8 Feb 2024
12 newest of 15 All 15 (JSON)