Micro Operational Robustness of LLMs on Code Generation
Not on the map. Why?
Abstract (arXiv)
It is now common practice in software development for large language models (LLMs) to be used to generate program code. It is desirable to evaluate the robustness of LLMs for this usage. This paper is concerned in particular with how sensitive LLMs are to variations in descriptions of the coding tasks. However, existing techniques for evaluating this robustness are unsuitable for code generation because the input data space of natural language (NL) descriptions is discrete and sparse. To address this problem, we propose a robustness evaluation method called scenario domain analysis, which aims to find the expected minimal change in the NL descriptions of coding tasks that would cause the LLMs to produce incorrect outputs. We have formally proved the theoretical properties of the method and also conducted extensive experiments to evaluate the robustness of four state-of-the-art LLMs: Gemini-pro, Codex, Llamma2 and Falcon 7B, and have found that we are able to rank these with confidence from best to worst. Moreover, we have also studied how robustness varies in different scenarios, including the variations with the topic of the coding task and with the complexity of its sample solution, and found that robustness is lower for more complex tasks and also lower for more advanced topics, such as multi-threading and data structures.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 32 of its 60 references that are in the map. Submitted 21 Nov 2026, announced 24 Nov 2026.
Builds on
32 of 60 references.
References · 32
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,802
- 2014Explaining and Harnessing Adversarial Examplescited by 7,581
- 2013Intriguing properties of neural networkscited by 5,304
- 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,516
- 2015DeepFool: a simple and accurate method to fool deep neural networkscited by 1,334
- 2019PEGASUS: Pre-training with Extracted Gap-sentences for Abstractive Summarizationcited by 1,110
- 2015The Limitations of Deep Learning in Adversarial Settingscited by 800
- 2017Adversarial Examples for Evaluating Reading Comprehension Systemscited by 590
- 2018TextBugger: Generating Adversarial Text Against Real-world Applicationscited by 389
- 2018Black-box Generation of Adversarial Text Sequences to Evade Deep Learning Classifierscited by 351
- 2023On the Robustness of ChatGPT: An Adversarial and Out-of-distribution Perspectivecited by 220
- 2017Deep Text Classification Can be Fooledcited by 108
20 more
- 2023Revisiting Out-of-distribution Robustness in NLP: Benchmark, Analysis, and LLMs Evaluationscited by 102
- 2016Robustness of classifiers: from adversarial to random noisecited by 91
- 2015Analysis of classifiers' robustness to adversarial perturbationscited by 78
- 2019Adversarial Examples for Models of Codecited by 66
- 2023On the Robustness of Code Generation Techniques: An Empirical Study on GitHub Copilotcited by 66
- 2018Robust Machine Comprehension Models via Adversarial Trainingcited by 45
- 2023On Robustness of Prompt-based Semantic Parsing with Large Pre-trained Language Model: An Empirical Study on Codexcited by 44
- 2019Natural Language Adversarial Defense through Synonym Encodingcited by 42
- 2023MTTM: Metamorphic Testing for Textual Content Moderation Softwarecited by 23
- 2023Exploring the Robustness of Large Language Models for Solving Programming Problemscited by 19
- 2023A Scenario-Based Functional Testing Approach to Improving DNN Performancecited by 8
- 2023LEAP: Efficient and Automated Test Method for NLP Softwarecited by 7
- 2019Morphy: A Datamorphic Software Test Automation Toolcited by 5
- 2023Enhancing Robustness of AI Offensive Code Generators via Data Augmentationcited by 4
- 2023Automated Testing and Improvement of Named Entity Recognition Systemscited by 4
- 2025Smaller = Weaker? Benchmarking Robustness of Quantized LLMs in Code Generationcited by 4
- 2022Can NMT Understand Me? Towards Perturbation-based Evaluation of NMT Models for Code Generationcited by 3
- 2024ScenEval: A Benchmark for Scenario-Based Evaluation of Code Generationcited by 3
- 2021Discovering Boundary Values of Feature-based Machine Learning Classifiers through Exploratory Datamorphic Testingcited by 2
- 2025BASFuzz: Towards Robustness Evaluation of LLM-based NLP Software via Automated Fuzz Testingcited by 1
Built on by
Not cited yet.