A Comprehensive Evaluation of Parameter-Efficient Fine-Tuning on Code Smell Detection
School of Computer Science, Wuhan University(武汉大学计算机学院);School of Computing and Information Systems, Singapore Management University(新加坡管理大学计算与信息系);School of Computer Science, Nanjing University of Science and Technology(南京理工大学计算机学院);School of Computer Science, Central China Normal University(华中师范大学计算机学院);School of Computer Science and Artificial Intelligence, Wuhan University of Technology(武汉科技大学计算机与人工智能学院)
Beiqi Zhang, Peng Liang, Xin Zhou, Xiyu Zhou, David Lo, Qiong Feng, Zengyang Li, Lin Li
备注:
Preprint accepted for publication in ACM Transactions on Software Engineering and Methodology (TOSEM), 2026
Automated code smell detection faces persistent challenges due to the subjectivity of heuristic rules and the limited performance of traditional ML/DL models. While Large Language Models (LLMs) offer a promising alternative, their adoption is impeded by high fine-tuning costs and a lack of "LM-ready" benchmarks. To bridge these gaps, we present a study with two synergistic contributions. First, we constructed a high-quality benchmark for Complex Conditional, Complex Method, Feature Envy, and Data Class, validated through a rigorous two-stage manual review. Second, leveraging this benchmark, we systematically evaluated four Parameter-Efficient Fine-Tuning (PEFT) methods across nine LMs of varying parameter sizes. Their performance is compared against a comprehensive suite of baselines, including heuristics-based detectors, Deep Learning (DL)-based approaches, and state-of-the-art general-purpose LLMs under multiple In-Context Learning (ICL) settings. Our results demonstrate that PEFT methods achieve effectiveness comparable to or surpassing full fine-tuning while substantially reducing peak GPU memory usage for code smell detection. Furthermore, PEFT-tuned LMs consistently outperform all baselines, yielding MCC improvements ranging from 0.33% to 13.69%, with particularly notable gains for specific smell categories. These findings highlight PEFT techniques as effective and scalable solutions for advancing code smell detection.
University of California, Irvine(加州大学欧文分校);Facebook(脸书);Singapore Management University(新加坡管理大学);Federal University of Bahia(巴伊亚联邦大学);Microsoft Research(微软研究院);Zhejiang University(浙江大学)
Law Smells: Defining and Detecting Problematic Patterns in Legal Drafting
Max Planck Institute for Informatics(马克斯·普朗克信息学研究所);Bucerius Law School(汉堡博锐思法学院);Stanford Law School(斯坦福法学院);Ruprecht-Karls-Universität Heidelberg(海德堡大学);Hasso Plattner Institute, University of Potsdam(波茨坦大学哈索·普拉特纳研究所);Illinois Tech – Chicago Kent College of Law(伊利诺伊理工大学芝加哥肯特法学院)
FedCSD: A Federated Learning Based Approach for Code-Smell Detection
Center for Applied Intelligent Systems Research(应用智能系统研究中心);School of Information Technology(信息技术学院);Halmstad University(哈尔姆斯塔德大学);Prince Abdullah bin Ghazi Faculty of Information and Communication Technology(阿卜杜拉·本·加齐王子信息与通信技术学院);Al-Balqa Applied University(巴尔卡应用大学);Internet of Things and People Research Center(物联网与人研究中心);Malmö University(马尔默大学);Department of Computer Science(计算机科学系);Blekinge Institute of Technology(布莱金厄理工学院);Institute of Computer Science(计算机科学研究所);Delta Research Centre(德尔塔研究中心);University of Tartu(塔尔图大学);SeSa Lab(SeSa实验室);University of Salerno(萨勒诺大学);Arab American University(阿拉伯美国大学)
A Comprehensive Evaluation of Parameter-Efficient Fine-Tuning on Software Engineering Tasks
National Key Laboratory for Novel Software Technology at Nanjing University(南京大学计算机软件新技术国家重点实验室);Eastern Institute for Advanced Study(东方理工高等研究院);Southern Methodist University(南卫理公会大学)
A Comprehensive Study of Machine Learning Techniques for Log-Based Anomaly Detection
University of Ottawa(渥太华大学);Prince Sultan University(普森国王大学);University of Luxembourg(卢森堡大学);Research Ireland Lero Centre, University of Limerick(爱尔兰Lero研究中心,利默里克大学)