Chen Lyu

Chen Lyu

Auto-generated profile, based on publicly available information

Chen Lyu

Shandong Normal University, Jinan, China

Research Focus & Metrics

Academic Career Length

9Years (2018-Present)

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

Representative Publications

View All Publications
24 July 2020 in IEEE Access
Verified
Journal Article
Open access
RWRuyun Wang
Ruyun Wang
HZHanwen Zhang
Hanwen Zhang
Guoliang LuGuoliang Lu
Guoliang Lu
LLLei Lyu
Lei Lyu
CLChen Lyu
Chen Lyu
Code summarization has long been viewed as a challenge in software engineering because of the difficulties of understanding source code and generating natural language. Some mainstream methods combine abstract syntax trees with language models to capture the structural information of the source code and generate relatively satisfactory comments. However, these methods are still deficient in code understanding and limited by the long dependency problem. In this paper, we propose a novel model called Fret, which stands for Functional REinforced Transformer with BERT. The model provides a new way to generate code comments by learning code functionalities and deepening code understanding while alleviating the problem of long dependency. For this purpose, a novel reinforcer is proposed for learning the functional contents of code so that more accurate summaries to describe the code functionalities can be generated. In addition, a more efficient algorithm is newly designed to capture the source code structure. The experimental results show that the effectiveness of our model is remarkable. Fret significantly outperforms all the state-of-the-art methods we examine. It pushes the BLEU-4 score to 24.32 for Java code summarization (14.23% absolute improvement) and the ROUGE-L score to 40.12 for Python. An ablation test is also conducted to further explore the impact of each component of our method.

19 August 2023 in Signal Processing
Verified
Journal Article
Closed access
BXBoxue Xiao
Boxue Xiao
ZZZhuoran Zheng
Zhuoran Zheng
YZYunliang Zhuang
Yunliang Zhuang
CLChen Lyu
Chen Lyu
XJXiuyi Jia
Xiuyi Jia

21 April 2021 in Empirical Software Engineering
Verified
Journal Article
Closed access
PDF file
CLChen Lyu
Chen Lyu
RWRuyun Wang
Ruyun Wang
Hongyu ZhangHongyu Zhang
Hongyu Zhang
HZHanwen Zhang
Hanwen Zhang
SHSonglin Hu
Songlin Hu

12 July 2024 in Proceedings of the ACM on Software Engineering
Verified
Journal Article
Open access
BLBolun Li
Bolun Li
ZSZhihong Sun
Zhihong Sun
THTao Huang
Tao Huang
Hongyu ZhangHongyu Zhang
Hongyu Zhang
YWYao Wan
Yao Wan
CLChen Lyu
Chen Lyu
Code completion aims to enhance programming productivity by predicting potential code based on the current programming context. Recently, pre-trained language models (LMs) have become prominent in this field. Various approaches have been proposed to fine-tune LMs using supervised fine-tuning (SFT) techniques for code completion. However, the inherent exposure bias of these models can cause errors to accumulate early in the sequence completion, leading to even more errors in subsequent completions. To address this problem, deep reinforcement learning (DRL) is an alternative technique for fine-tuning LMs for code completion, which can improve the generalization capabilities and overall performance. Nevertheless, integrating DRL-based strategies into code completion faces two major challenges: 1) The dynamic nature of the code context requires the completion model to quickly adapt to changes, which poses difficulties for conventional DRL strategies that focus on delayed rewarding of the final code state. 2) It is difficult to evaluate the correctness of partial code, thus the reward redistribution-based strategies cannot be adapted to code completion. To tackle these challenges, we propose IRCoCo, a code completion-specific DRL-based fine-tuning framework. This framework is designed to provide immediate rewards as feedback for detecting dynamic context changes arising from continuous edits during code completion. With the aid of immediate feedback, the fine-tuned LM can gain a more precise understanding of the current context, thereby enabling effective adjustment of the LM and optimizing code completion in a more refined manner. Experimental results demonstrate that fine-tuning pre-trained LMs with IRCoCo leads to significant improvements in the code completion task, outperforming both SFT-based and other DRL-based baselines.

31 October 2024 in Engineering Applications of Artificial Intelligence
Verified
Journal Article
Closed access
YHYewei Han
Yewei Han
CLChen Lyu
Chen Lyu

1 October 2021 in Information Sciences
Verified
Journal Article
Closed access
CCChunlei Chai
Chunlei Chai
Guoliang LuGuoliang Lu
Guoliang Lu
RWRuyun Wang
Ruyun Wang
CLChen Lyu
Chen Lyu
LLLei Lyu
Lei Lyu
HLHong Liu
Hong Liu