Large Language Models for Code (code LLMs) have demonstrated remarkable performance across various software engineering (SE) tasks, increasing the application of code LLMs in software development. Despite the success of code LLMs, there remain significant concerns about the actual capabilities and reliability of these models, "whether these models really learn the semantics of code from the training data and leverage the learned knowledge to perform the SE tasks". In this paper, we introduce EMPICA, a comprehensive framework designed to systematically and empirically evaluate the capabilities of code LLMs in understanding code semantics. Specifically, EMPICA systematically introduces controlled modifications/transformations into the input code and examines the models' responses. Generally, code LLMs must be robust to semantically equivalent code inputs and be sensitive to non-equivalent ones for all SE tasks. Specifically, for every SE task, given an input code snippet c and its semantic equivalent variants, code LLMs must robustly produce consistent/equivalent outputs while they are expected to generate different outputs for c and its semantic non-equivalent variants. Our experimental results on three representative code understanding tasks, including code summarization, method name prediction, and output prediction, reveal that the robustness and sensitivity of the state-of-the-art code LLMs to code transformations vary significantly across tasks and transformation operators. In addition, the code LLMs exhibit better robustness to the semantic preserving transformations than their sensitivity to the semantic non-preserving transformations. These results highlight a need to enhance the model's capabilities of understanding code semantics, especially the sensitivity property.
An Empirical Study of NetOps Capability of Pre-Trained Large Language Models
Zhongguancun Laboratory(中关村实验室);Tsinghua University(清华大学);China Telecom Corporation Limited Research Institute(中国电信股份有限公司研究院);Beijing University of Posts and Telecommunications(北京邮电大学)
SARVLM: A Vision Language Foundation Model for Semantic Understanding in SAR Imagery
School of Artificial Intelligence and Robotics, Hunan University(湖南大学人工智能与机器人学院);Yuelushan Center for Industrial Innovation(岳麓山创新中心);School of Medical Information Engineering, Jining Medical University(济南医学院医学信息工程学院)
Decoupling Reconnaissance and Exploitation: Measuring the Capability Boundaries of LLM-Based Web Penetration Testing
University of Science and Technology of China(中国科学技术大学);Suzhou Institute for Advanced Research, University of Science and Technology of China(中国科学技术大学苏州先进研究院);Nanjing University of Science and Technology(南京理工大学);Research Institute, Runjian Co., Ltd(润杰有限公司研究院)
A Theoretical and Empirical Evaluation of Software Component Search Engines, Semantic Search Engines and Google Search Engine in the Context of COTS-Based Development
An Empirical Study on the Impact of Normalized Use-Case Specifications on Traceability
College of Computer Science and Technology, National University of Defense Technology(国防科技大学计算机学院);State Key Laboratory of Complex & Critical Software Environment(复杂与关键软件环境国家重点实验室)
Can LLMs Learn and Apply Multi-Level Modelling Semantics? A First Empirical Study
Industrial AI Research Centre, Adelaide University(工业人工智能研究中心,阿德莱德大学);Future Energy Exports Cooperative Research Centre(未来能源出口合作研究中心);SDQ group, Karlsruhe Institute of Technology(SDQ组,卡尔斯鲁厄理工学院);Waseda University(早稻田大学)
Learning Program Semantics with Code Representations: An Empirical Study
Nanyang Technological University(南洋理工大学);Singapore Management University(新加坡管理大学);Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);Zhejiang Sci-Tech University(浙江理工大学)
Why Aren't Regular Expressions a Lingua Franca? An Empirical Study on the Re-use and Portability of Regular Expressions
本文探讨了正则表达式(regex)跨程序设计语言的可移植性。许多语言都提供类似的正则表达式语法,因此很自然地认为正则表达式可以跨语言边界移植。但是,正则表达式是否可以跨语言边界复制/粘贴,同时保留其语义和性能特征?在我们对158名专业软件开发人员的调查中,大多数人表示他们跨语言边界重用regex,大约一半的人报告说他们认为regex是一种通用语言。我们使用一个新的正则表达式语料库对这种做法的风险进行了实验性评估--来自193,524个项目的537,806个正则表达式,这些项目使用JavaScript、Java、PHP、Python、Ruby、Go、Perl和Rust编写。使用我们的polyglot正则表达式语料库,我们探讨了迄今尚未研究的正则表达式可移植性问题:由于语义差异的逻辑错误,由于性能差异的安全漏洞。我们报告说,开发人员对regex lingua franca的信念是可以理解的,但没有根据。虽然大多数正则表达式跨语言边界编译,但15%的正则表达式表现出跨语言的语义差异,10%的正则表达式表现出跨语言的性能差异。我们使用regex文档解释了这些差异,并通过调查regex引擎实现进一步阐明了我们的发现。在此过程中,我们发现了JavaScript-V8、Python、Ruby和Rust的正则表达式引擎中的错误,以及数千个模块中潜在的语义和性能正则表达式错误。