The latest paradigm shift in software development brings in the innovation and automation afforded by Large Language Models (LLMs), showcased by Generative Pre-trained Transformer (GPT), which has shown remarkable capacity to generate code autonomously, significantly reducing the manual effort required for various programming tasks. Although, the potential benefits of LLM-generated code are vast, most notably in efficiency and rapid prototyping, as LLMs become increasingly integrated into the software development lifecycle and hence the supply chain, complex and multifaceted challenges arise as the code generated from these language models carry profound questions on quality and correctness. Research is required to comprehensively explore these critical concerns surrounding LLM-generated code.
In this paper, we propose a novel solution called metamorphic prompt testing to address these challenges. Our intuitive observation is that intrinsic consistency always exists among correct code pieces but may not exist among flawed code pieces, so we can detect flaws in the code by detecting inconsistencies. Therefore, we can vary a given prompt to multiple prompts with paraphrasing, and to ask the LLM to acquire multiple versions of generated code, so that we can validate whether the semantic relations still hold in the acquired code through cross-validation. Our evaluation on HumanEval shows that metamorphic prompt testing is able to detect 75 percent of the erroneous programs generated by GPT-4, with a false positive rate of 8.6 percent.
The Prompt Alchemist: Automated LLM-Tailored Prompt Optimization for Test Case Generation
The Chinese University of Hong Kong(香港中文大学);Harbin Institute of Technology(哈尔滨工业大学);Monash University Malaysia(莫纳什大学马来西亚分校);Peng Cheng Laboratory(鹏城实验室)
Test It Before You Trust It: Applying Software Testing for Trustworthy In-context Learning
Advanced Institute of So-Go-Chi (Convergence Knowledge) Informatics(融合知识研究院);Tohoku University(东北大学);Japan Advanced Institute of Science and Technology(日本先进科学研究院);Faculty of Information and Communication Technology(信息与通信技术学院);Mahidol University(玛希敦大学)
Gotta: Generative Few-shot Question Answering by Prompt-based Cloze Data Augmentation
University of California, Los Angeles(加州大学洛杉矶分校);University of Illinois at Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Univ of Technology Sydney(悉尼科技大学);Amazon Search(亚马逊搜索)
FedPOB: Sample-Efficient Federated Prompt Optimization via Bandits
The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳));South China University of Technology(华南理工大学);University of Edinburgh(爱丁堡大学);Beihang University(北航);The Hong Kong University of Science and Technology (Guangzhou)(香港科学与技术大学(广州));East China Normal University(华东师范大学);City University of Hong Kong(香港城市大学)
A semantic mutation metric for metamorphic relation adequacy in scientific computing programs
School of Computing, University of South China(南华大学计算机学院);Hunan Engineering Research Center of Software Evaluation and Testing for Intellectual Equipment(湖南软件测评与智能设备工程研究中心);CNNC Key Laboratory on High Trusted Computing(中核集团高可信计算重点实验室)
Bridging 6G IoT and AI: LLM-Based Efficient Approach for Physical Layer's Optimization Tasks
Department of Electronic Systems, Norwegian University of Science and Technology(电子系统系,挪威科学技术大学);Department of Electrical Engineering, Lahore University of Management sciences (LUMS)(电气工程系,拉合尔管理科学大学(LUMS))
SOLID: a Framework of Synergizing Optimization and LLMs for Intelligent Decision-Making
Department of Industrial & Systems Engineering, University of Washington(工业与系统工程系,华盛顿大学);College of Engineering, University of Washington(工程学院,华盛顿大学);Michael G. Foster School of Business, University of Washington(Michael G. Foster商学院,华盛顿大学)
No PUN Intended: Plausible Unknown Names for Person-Centred LLM Evaluation
Technische Universität Berlin(柏林工业大学);Weizenbaum Institute for the Networked Society(魏茨曼网络社会研究所);German Research Center for Artificial Intelligence (DFKI)(德国人工智能研究中心)
Inferring Latent Market Forces: Evaluating LLM Detection of Gamma Exposure Patterns via Obfuscation Testing
Department of Computer Science Kennesaw State University Marietta, GA, Cobb(计算机科学系 凯尼恩州立大学 马里埃塔, 乔治亚州, 理查兹);Department of Information Technology Professor of Information Technology Kennesaw State University Marietta, GA(信息科技系 信息科技教授 凯尼恩州立大学 马里埃塔, 乔治亚州)
Not as Sweet by Another Name: An Empirical Study of Format Robustness in LLM Document Workflows
Nanyang Technological University(南洋理工大学);National University of Singapore(新加坡国立大学);Beihang University(北京航空航天大学);Xi’an University of Architecture and Technology(西安建筑科技大学)