@inproceedings{845303ee12084ed09d986ffe01db2f40,
title = "Prompt Sensitivity of Language Model for Solving Programming Problems",
abstract = "A popular language model that can solve introductory programming problems, OpenAI's Codex, has drawn much attention not only in the natural language processing field but also in the software engineering field. It supports programmers by suggesting the next tokens to write, and it can even generate a whole function definition from a document string. We focus on its capability of automatically solving programming problems through code generation from problem descriptions. We investigate the model's sensitivity to problem descriptions by formatting and modifying them. The experimental results show that the more explicitly formatted problem description enhances the code generation performance from 30.9% (raw) to 39.9% (formatted). Additionally, we observe that code generation relies on information specified in the problem description, such as variable names and constant values, as anonymizing them reduces the performance significantly. Moreover, statistical biases in code generation are identified, such as the generated programs ignoring the problem modification and answering the exact opposite problem. The changes in accuracy across formats suggest that the model does not correctly understand the natural language explaining the problem specification even if the model could solve the programming problems with high accuracy.",
keywords = "code generation, deep learning, language models, natural language processing, prompt sensitivity, solving programming problems",
author = "Atsushi Shirafuji and Takumi Ito and Makoto Morishita and Yuki Nakamura and Yusuke Oda and Jun Suzuki and Yutaka Watanobe",
note = "Publisher Copyright: {\textcopyright} 2022 The authors and IOS Press. All rights reserved.; 21st International Conference on New Trends in Intelligent Software Methodologies, Tools and Techniques, SoMeT 2022 ; Conference date: 20-09-2022 Through 22-09-2022",
year = "2022",
month = sep,
day = "14",
doi = "10.3233/FAIA220264",
language = "English",
series = "Frontiers in Artificial Intelligence and Applications",
publisher = "IOS Press BV",
pages = "346--359",
editor = "Hamido Fujita and Yutaka Watanobe and Takuya Azumi",
booktitle = "New Trends in Intelligent Software Methodologies, Tools and Techniques - Proceedings of the 21st International Conference on New Trends in Intelligent Software Methodologies, Tools and Techniques, SoMeT 2022",
}