Yan Liu
Current Organizations / Institutes
The organizations/institutes from the scholar's latest article
Previous Organizations / Institutes
The organizations / institutes from the scholar's other articles in the past ten years
Research Subjects
Yan Liu has a total of 8 co-authors. Here are the top co-authors by number of shared publications:
- Chunrong Fang
State Key Laboratory for Novel Software Technology, Nanjing University, Nanjing, China
1 shared publication - Quanjun Zhang
School of Computer Science and Engineering, Nanjing University of Science and Technology, Nanjing, China
1 shared publication - Simin Cai
School of Innovation, Design and Engineering, Mälardalen University, Västerås, Sweden
1 shared publication - Tieke He
Nanjing University, Nanjing, China
1 shared publication - Weisong Sun
Nanyang technological university, Singapore, Singapore
1 shared publication - Xiaodong Hao
State Key Laboratory for Novel Software Technology, Nanjing University, Nanjing, Jiangsu, China
1 shared publication
Latest Publications
- 17 January 2024
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Software Engineering
- Vol. 50 (3) , 474-494
APPT: Boosting Automated Patch Correctness Prediction via Fine-Tuning Pre-Trained Models
Automated program repair (APR) aims to fix software bugs automatically without human debugging efforts and plays a crucial role in software development and maintenance. Despite the recent significant progress in the number of fixed bugs, APR is still challenged by a long-standing overfitting problem (i.e., the generated patch is plausible but overfitting). Various techniques have thus been proposed to address the overfitting problem. Recently, researchers have employed BERT to extract code features, which are then used to train a classifier for patch correctness prediction, indicating the potential of such pre-trained models in reasoning about patch correctness. However, BERT is restricted to feature extraction for classifier training without benefiting from the training process, potentially generating sub-optimal vector representations for patched code snippets. In this paper, we propose APPT, a pre-trained model-based automated patch correctness assessment technique by both pre-training and fine-tuning. APPT adopts a pre-trained model as the encoder stack, followed by an LSTM stack and a deep learning classifier. More importantly, the pre-trained model is fine-tuned in conjunction with other components as a whole pipeline to fully adapt it specifically for reasoning about patch correctness. Although our idea is general and can be built on various existing pre-trained models, we have implemented APPT based on the BERT model. We conduct an extensive experiment on 1,183 Defects4J patches and the experimental results show that APPT achieves prediction accuracy of 79.7% and recall of 83.2%, outperforming the state-of-the-art technique CACHE by 4.3% and 6.7%. Our additional investigation on 49,694 real-world patches shows that APPT achieves the optimum performance (exceeding 99% in five common metrics for assessing patch classification techniques) compared with existing representation learning techniques. We further investigate the impact of each component and find that they all positively contribute to APPT, e.g., the fine-tuning process and the LSTM stack increase F1-score by 10.22% and 4.11%, respectively. We also prove that adopting advanced pre-trained models can further provide substantial advancement (e.g., GraphCodeBERT-based APPT improves BERT-based APPT by 2.8% and 3.3% in precision and AUC, respectively), highlighting the generalizability of APPT. Overall, our study highlights the promising future of fine-tuning pre-trained models to assess patch correctness and reduce the manual inspection effort of debugging experts when deploying APR tools in practice.
- 17 January 2024
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Software Engineering
- Vol. 50 (3) , 474-494
APPT: Boosting Automated Patch Correctness Prediction via Fine-Tuning Pre-Trained Models
Automated program repair (APR) aims to fix software bugs automatically without human debugging efforts and plays a crucial role in software development and maintenance. Despite the recent significant progress in the number of fixed bugs, APR is still challenged by a long-standing overfitting problem (i.e., the generated patch is plausible but overfitting). Various techniques have thus been proposed to address the overfitting problem. Recently, researchers have employed BERT to extract code features, which are then used to train a classifier for patch correctness prediction, indicating the potential of such pre-trained models in reasoning about patch correctness. However, BERT is restricted to feature extraction for classifier training without benefiting from the training process, potentially generating sub-optimal vector representations for patched code snippets. In this paper, we propose APPT, a pre-trained model-based automated patch correctness assessment technique by both pre-training and fine-tuning. APPT adopts a pre-trained model as the encoder stack, followed by an LSTM stack and a deep learning classifier. More importantly, the pre-trained model is fine-tuned in conjunction with other components as a whole pipeline to fully adapt it specifically for reasoning about patch correctness. Although our idea is general and can be built on various existing pre-trained models, we have implemented APPT based on the BERT model. We conduct an extensive experiment on 1,183 Defects4J patches and the experimental results show that APPT achieves prediction accuracy of 79.7% and recall of 83.2%, outperforming the state-of-the-art technique CACHE by 4.3% and 6.7%. Our additional investigation on 49,694 real-world patches shows that APPT achieves the optimum performance (exceeding 99% in five common metrics for assessing patch classification techniques) compared with existing representation learning techniques. We further investigate the impact of each component and find that they all positively contribute to APPT, e.g., the fine-tuning process and the LSTM stack increase F1-score by 10.22% and 4.11%, respectively. We also prove that adopting advanced pre-trained models can further provide substantial advancement (e.g., GraphCodeBERT-based APPT improves BERT-based APPT by 2.8% and 3.3% in precision and AUC, respectively), highlighting the generalizability of APPT. Overall, our study highlights the promising future of fine-tuning pre-trained models to assess patch correctness and reduce the manual inspection effort of debugging experts when deploying APR tools in practice.
- 1 December 2011
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- Vol. 27, 464-470
A Survey of Service Identification Strategies
In service engineering, service identification plays a critical role as it lays the foundation for the later phases. Many existing research focus on creating holistic service oriented engineering process, generating SOA methodologies and frameworks, as well as proposing new service identification methods. Unfortunately, most methods deal with certain business cases and cannot provide universal guidance on service identification. While a few researchers have done surveys on various identification methods, they focus on describing the methods themselves, and the analysis is isolated from either the engineering process or the goals of SOA endeavor. In this paper we present a comprehensive understanding on service identification with software and service engineering process in consideration. We try to answer questions concerning about obtaining a generic service identification method. By examining recent research works we find some shared high-value activities among various methods, which works as a start point to solve the questions we presented. Detailed discussions are studied on these high-value activities. How to apply some frequent used activities under different environments are also covered.
- 1 December 2011
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- Vol. 27, 464-470
A Survey of Service Identification Strategies
In service engineering, service identification plays a critical role as it lays the foundation for the later phases. Many existing research focus on creating holistic service oriented engineering process, generating SOA methodologies and frameworks, as well as proposing new service identification methods. Unfortunately, most methods deal with certain business cases and cannot provide universal guidance on service identification. While a few researchers have done surveys on various identification methods, they focus on describing the methods themselves, and the analysis is isolated from either the engineering process or the goals of SOA endeavor. In this paper we present a comprehensive understanding on service identification with software and service engineering process in consideration. We try to answer questions concerning about obtaining a generic service identification method. By examining recent research works we find some shared high-value activities among various methods, which works as a start point to solve the questions we presented. Detailed discussions are studied on these high-value activities. How to apply some frequent used activities under different environments are also covered.