Pengyu Xue

Pengyu Xue

Auto-generated profile, based on publicly available information

Pengyu Xue

Hong Kong Polytechnic University, Hong Kong, Hong Kong

Research Focus & Metrics

Academic Career Length

4Years (2023-Present)

(Calculated once Scilit publication data is synced: current year − year of first publication + 1)

Representative Publications

View All Publications
10 October 2024 in IEEE Transactions on Software Engineering
Verified
Journal Article
Closed access
PXPengyu Xue
Pengyu Xue
LWLinhao Wu
Linhao Wu
ZYZhongxing Yu
Zhongxing Yu
ZJZhi Jin
Zhi Jin
XLXinyi Li
Xinyi Li
YTYue Tan
Yue Tan
Commit Message Generation (CMG) approaches aim to automatically generate commit messages based on given code diff s , which facilitate collaboration among developers and play a critical role in Open-Source Software (OSS). Very recently, Large Language Models (LLMs) have been applied in diverse code-related tasks owing to their powerful generality. Yet, in the CMG field, few studies systematically explored their effectiveness. This paper conducts the first comprehensive experiment to investigate how far we have been in applying LLM to generate high-quality commit messages and how to go further beyond in this field. Motivated by a pilot analysis, we first construct a multi-lingual high-quality CMG test set following practitioners’ criteria. Afterward, we re-evaluate diverse CMG approaches and make comparisons with recent LLMs. To delve deeper into LLMs’ ability, we further propose four manual metrics following the practice of OSS, including Accuracy, Integrity, Readability, and Applicability for assessment. Results reveal that LLMs have outperformed existing CMG approaches overall, and different LLMs carry different advantages, where GPT-3.5 performs best. To further boost LLMs’ performance in the CMG task, we propose an Efficient Retrieval-based In-Context Learning (ICL) framework, namely ERICommiter, which leverages a two-step filtering to accelerate the retrieval efficiency and introduces semantic/lexical-based retrieval algorithm to construct the ICL examples, thereby guiding the generation of high-quality commit messages with LLMs. Extensive experiments demonstrate the substantial performance improvement of ERICommiter on various LLMs across different programming languages. Meanwhile, ERICommiter also significantly reduces the retrieval time while keeping almost the same performance. Our research contributes to the understanding of LLMs’ capabilities in the CMG field and provides valuable insights for practitioners seeking to leverage these tools in their workflows.


22 June 2025 in Proceedings of the ACM on Software Engineering
Verified
Journal Article
Open access
PXPengyu Xue
Pengyu Xue
LWLinhao Wu
Linhao Wu
ZYZhen Yang
Zhen Yang
CWChengyi Wang
Chengyi Wang
XLXiang Li
Xiang Li
JKJacky Wai Keung
Jacky Wai Keung
In recent years, Large Language Models (LLMs) have dramatically advanced the performance of automated code translation, making their computational accuracy score reach up to over 80% on many previous benchmarks. However, most code samples in these benchmarks are short, standalone, statement/method-level, and algorithmic, which is not aligned with practical coding tasks. Therefore, it is still unknown the actual capability of LLMs in translating code samples written for daily development. To achieve this, we construct a class-level code translation benchmark, ClassEval-T, and make the first attempt to extensively assess recent LLMs' performance on class-level code translation. ClassEval-T is extended from ClassEval, a well-known class-level Python code generation benchmark consisting of multiple practical coding topics, such as database operation and game design, and diverse contextual dependencies (e.g., fields, methods, and libraries). It cost us 360 person-hours to accomplish the manual migration to Java and C++ with complete code samples and associated test suites. Subsequently, we design three translation strategies (i.e., holistic, min-dependency, and standalone) for class-level code translations and evaluate eight recent LLMs of commercial, general, and code kinds in diverse families and sizes on ClassEval-T. Experimental results demonstrate a remarkable performance drop compared with the most widely studied method-level code translation benchmark, and obvious discrepancies among LLMs appear, showing the effectiveness of ClassEval-T in measuring recent LLMs. Afterwards, we further discuss the usage scenarios for diverse translation strategies and LLMs' ability to dependency awareness when translating class samples. Finally, 1,243 failure cases made by the best-performing LLM under test are thoroughly analyzed and categorized in this paper for practical guidance and future enlightenment.

27 December 2023 in International Journal of Disaster Risk Reduction
Verified
Journal Article
Closed access
PXPengyu Xue
Pengyu Xue
SHShuoqi Huang
Shuoqi Huang
KXKaiwei Xie
Kaiwei Xie
YSYuyue Sun
Yuyue Sun
LFLiguo Fei
Liguo Fei

30 June 2026 in Proceedings of the ACM on Software Engineering
Verified
Journal Article
Open access
PXPengyu Xue
Pengyu Xue
KZKunwu Zheng
Kunwu Zheng
ZYZhen Yang
Zhen Yang
YPYifei Pei
Yifei Pei
LWLinhao Wu
Linhao Wu
CWChengyi Wang
Chengyi Wang
In recent years, Large Language Models (LLMs) have been widely studied in the code translation field on the method, class, and even repository levels. However, most of these benchmarks are limited in terms of Third-Party Library (TPL) categories and scales, making TPL-related errors hard to expose and hindering the development of targeted solutions. Considering the high dependence (over 90%) on TPLs in practical programming, demystifying and analyzing LLMs' code translation performance involving various TPLs becomes imperative. To address this gap, we construct TransLibEval, the first benchmark dedicated to library-centric code translation. It consists of 200 real-world tasks across Python, Java, and C++, each explicitly involving TPLs from diverse categories such as data processing, machine learning, and web development, with comprehensive dependency coverage and high-coverage test suites. We evaluate seven recent LLMs of commercial, general, and code-specialized families under six translation strategies of three categories: Direct, IR-guided, and Retrieval-augmented. Experimental results show a dramatic performance drop compared with library-free settings (average CA decline over 60%), while diverse strategies demonstrate heterogeneous advantages. Furthermore, we analyze 4,831 failed cases from GPT-4o, one of the State-of-the-Art (SOTA) LLMs, revealing numerous third-party reference errors that were obscured previously. These findings highlight the unique challenges of library-centric translation and provide practical guidance for improving TPL-aware code intelligence.

7 October 2026
Verified
Conference Paper
Open access
JJJinan Jiang
Jinan Jiang
JCJinzhao Chu
Jinzhao Chu
PXPengyu Xue
Pengyu Xue
XPXinghao Peng
Xinghao Peng
HQHaoran Qin
Haoran Qin
DLDaniel Luo
Daniel Luo