Large language models (LLMs) achieve promising results in code generation based on a given natural language description. They have been integrated into open-source projects and commercial products to facilitate daily coding activities. The natural language description in the prompt is crucial for LLMs to comprehend users' requirements. Prior studies uncover that LLMs are sensitive to the changes in the prompts, including slight changes that look inconspicuous. However, the natural language descriptions often vary in real-world scenarios (e.g., different formats, grammar, and wording). Prior studies on the robustness of LLMs are often based on random perturbations and such perturbations may not actually happen. In this paper, we conduct a comprehensive study to investigate how are code LLMs robust to variations of natural language description in real-world scenarios. We summarize 18 categories of perturbations of natural language and 3 combinations of co-occurred categories based on our literature review and an online survey with practitioners. We propose an automated framework, NLPerturbator, which can perform perturbations of each category given a set of prompts. Through a series of experiments on code generation using six code LLMs, we find that the perturbed prompts can decrease the performance of code generation by a considerable margin (e.g., up to 21.2%, and 4.8% to 6.1% on average). Our study highlights the importance of enhancing the robustness of LLMs to real-world variations in the prompts, as well as the essentiality of attentively constructing the prompts.
Native Design Bias: Studying the Impact of English Nativeness on Language Model Performance
Research Centre for Information Systems Engineering (LIRIS), KU Leuven(信息系统工程研究中心(LIRIS),库勒文大学);IESEG School of Management(IESEG管理学院);Department of Decision Analytics and Risk, University of Southampton(决策分析与风险系,南安普顿大学)
Evaluating and Inducing Personality in Pre-trained Language Models
Institute for Artificial Intelligence, Peking University(北京大学人工智能研究院);Yuanpei College, Peking University(北京大学元培学院);National Key Laboratory of General Artificial Intelligence, BIGAI(北京通用人工智能研究院通用人工智能全国重点实验室);Beijing Jiaotong University(北京交通大学)
Can LLMs Generate Reliable Test Case Generators? A Study on Competition-Level Programming Problems
Shanghai Qi Zhi Institute(上海启智研究院);ShanghaiTech University(上海科技大学);Wuhan University(武汉大学);Fuzhou University(福州大学);Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);Tsinghua University(清华大学);Huazhong University of Science and Technology(华中科技大学);Nanjing University(南京大学);Beijing University of Posts and Telecommunications(北京邮电大学);Peking University(北京大学)
Demystifying Scientific Problem-Solving in LLMs by Probing Knowledge and Reasoning
Department of Computer Science, Yale University;Department of Molecular \& Cellular Biology, Harvard University;Allen Institute for AI;Department of Computer Science, Northwestern University
tnGPS: Discovering Unknown Tensor Network Structure Search Algorithms via Large Language Models (LLMs)
School of Automation, Guangdong University of Technology(广东工业大学自动化学院);RIKEN Center for Advanced Intelligence Project (RIKEN-AIP)(理化学研究所先进智能中心);Tencent Inc.(腾讯公司)
IndRegBias: A Dataset for Studying Indian Regional Biases in English and Code-Mixed Social Media Comments
Department of Data Science and Engineering, Indian Institute of Science Education and Research(数据科学与工程系,印度科学教育与研究学院);Oracle Industries AI, Oracle Corporation(Oracle人工智能部,Oracle公司)
School of Software, Tsinghua University(清华大学软件学院);BNRist, Tsinghua University(清华大学BNRist);Kuaishou Technology(快手科技);Beihang University(北航);University of Chinese Academy of Sciences(中国科学院大学);School of Computer Science, BUPT(北京邮电大学计算机科学学院);Department of Automation, Tsinghua University(清华大学自动化系)
BenSyc: Benchmarking Conversational Sycophancy and Human Alignment in LLMs for Bengali Contexts
University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Virginia Tech(弗吉尼亚理工大学);Bangladesh University of Engineering and Technology(孟加拉工程与技术大学);BRAC University(BRAC大学);University of Toronto(多伦多大学)
Towards Modular LLMs by Building and Reusing a Library of LoRAs
Microsoft Research(微软研究院);Mila — Quebec AI Institute(米拉魁北克人工智能研究所);Université de Montréal(蒙特利尔大学);University of Copenhagen(哥本哈根大学);University of Edinburgh(爱丁堡大学);HEC Montréal(蒙特利尔高等商学院)