Dianshu Liao

Dianshu Liao

Auto-generated profile, based on publicly available information

Dianshu Liao

The School of Computing, The Australian National University, Canberra, Australia

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
24 October 2024 in IEEE Transactions on Software Engineering
Verified
Journal Article
Closed access
DLDianshu Liao
Dianshu Liao
SPShidong Pan
Shidong Pan
XSXiaoyu Sun
Xiaoyu Sun
XRXiaoxue Ren
Xiaoxue Ren
QHQing Huang
Qing Huang
QLQinying Li
Qinying Li
LLM-based code generation tools are essential to help developers in the software development process. Existing tools often disconnect with the working context, i.e., the code repository, causing the generated code to be not similar to human developers. In this paper, we propose a novel code generation framework, dubbed A 3 -CodGen, to harness information within the code repository to generate code with fewer potential logical errors, code redundancy, and library-induced compatibility issues. We identify three types of representative information for the code repository: local-aware information from the current code file, global-aware information from other code files, and third-party- library information. Results demonstrate that by adopting the A 3 -CodGen framework, we successfully extract, fuse, and feed code repository information into the LLM, generating more accurate, efficient, and highly reusable code. The effectiveness of our framework is further underscored by generating code with a higher reuse rate, compared to human developers. This research contributes significantly to the field of code generation, providing developers with a more powerful tool to address the evolving demands in software development in practice.

12 April 2024
Verified
Conference Paper
Open access
YSYanqi Su
Yanqi Su
DLDianshu Liao
Dianshu Liao
ZXZhenchang Xing
Zhenchang Xing
QHQing Huang
Qing Huang
MXMulong Xie
Mulong Xie
XXXiwei XU
Xiwei XU

30 September 2023 in ACM Transactions on Software Engineering and Methodology
Verified
Journal Article
Open access
QHQing Huang
Qing Huang
DLDianshu Liao
Dianshu Liao
ZXZhenchang Xing
Zhenchang Xing
ZZZhengkang Zuo
Zhengkang Zuo
CWChangjing Wang
Changjing Wang
XXXin Xia
Xin Xia
Programmers who work with smart contract development often encounter challenges in reusing code from repositories. This is due to the presence of two unknowns that can lead to non-functional and functional failures. These unknowns are implicit collaborations between functions and subtle differences among similar functions. Current code mining methods can extract syntax and semantic knowledge (known knowledge), but they cannot uncover these unknowns due to a significant gap between the known and the unknown. To address this issue, we formulate knowledge acquisition as a knowledge deduction task and propose an analytic flow that uses the function clone as a bridge to gradually deduce the known knowledge into the problem-solving knowledge that can reveal the unknowns. This flow comprises five methods: clone detection, co-occurrence probability calculation, function usage frequency accumulation, description propagation, and control flow graph annotation. This provides a systematic and coherent approach to knowledge deduction. We then structure all of the knowledge into a semantic-enriched code Knowledge Graph (KG) and integrate this KG into two software engineering tasks: code recommendation and crowd-scaled coding practice checking. As a proof of concept, we apply our approach to 5,140 smart contract files available on Etherscan.io and confirm high accuracy of our KG construction steps. In our experiments, our code KG effectively improved code recommendation accuracy by 6% to 45%, increased diversity by 61% to 102%, and enhanced NDCG by 1% to 21%. Furthermore, compared to traditional analysis tools and the debugging-with-the-crowd method, our KG improved time efficiency by 30 to 380 seconds, vulnerability determination accuracy by 20% to 33%, and vulnerability fixing accuracy by 24% to 40% for novice developers who identified and fixed vulnerable smart contract functions.

12 November 2024 in IEEE Transactions on Knowledge and Data Engineering
Verified
Journal Article
Closed access
QHQing Huang
Qing Huang
DLDianshu Liao
Dianshu Liao
ZXZhenchang Xing
Zhenchang Xing
ZYZhiqiang Yuan
Zhiqiang Yuan
QLQinghua Lu
Qinghua Lu
JLJiaxing Lu
Jiaxing Lu
Giant pre-trained code models (PCMs) start coming into the developers’ daily practices. Understanding the type and amount of software knowledge in PCMs is essential for integrating PCMs into software engineering (SE) tasks and unlocking their potential. In this work, we conduct the first systematic study on the SE factual knowledge in the state-of-the-art PCM CoPilot, focusing on APIs’ Fully Qualified Names (FQNs), the fundamental knowledge for effective code analysis, search and reuse. Driven by FQNs’ data distribution properties, we design a novel lightweight in-context learning on Copilot for FQN inference, which does not require code compilation as traditional methods or gradient update by recent FQN prompt-tuning. We systematically experiment with five in-context learning design factors to identify the best configuration for practical use. With this best configuration, we investigate the impact of example prompts and FQN data properties on CoPilot's FQN inference capability. Our results confirm that CoPilot stores diverse FQN knowledge and can be applied for FQN inference due to its high accuracy and non-reliance on code analysis. Additionally, our extended study shows that the in-context learning method can be generalized to retrieve other SE factual knowledge embedded in giant PCMs. Furthermore, we find that the advanced general model GPT-4 also stores substantial SE knowledge. Comparing FQN inference between CoPilot and GPT-4, we observe that as model capabilities improve, the same prompts yield better results. Based on our experience interacting with Copilot, we discuss various opportunities to improve human-CoPilot interaction in the FQN inference task.

11 July 2026 in ACM Transactions on Software Engineering and Methodology
Verified
Journal Article
Open access
DLDianshu Liao
Dianshu Liao
SPShidong Pan
Shidong Pan
SYSiyuan Yang
Siyuan Yang
YZYanjie Zhao
Yanjie Zhao
ZXZhenchang Xing
Zhenchang Xing
XSXiaoyu Sun
Xiaoyu Sun
Performance issues in Android applications significantly undermine users’ experience, engagement, and retention, which is a long-lasting research topic in academia. Unlike functionality issues, performance issues are more difficult to diagnose and resolve due to their complex root causes, which often emerge only under specific conditions or payloads. Although many efforts have attempted to mitigate the impact of performance issues by developing methods to automatically identify and resolve them, it remains unclear if this objective has been fulfilled, and the existing approaches indeed targeted on the most critical performance issues encountered in real-world settings. To this end, we conduct a large-scale comparative study of Android performance issues in real-world applications and literature. Specifically, we started by investigating real-world performance issues, their underlying root causes (i.e., contributing factors), and common code patterns. We then took an additional step to empirically summarize existing approaches and datasets through a literature review, assessing how well academic research reflects the real-world challenges faced by developers and users. Our comparison results show a substantial divergence exists in the primary performance concerns of researchers, developers, and users. Among all the identified factors, 57.14% have not been examined in academic research, while a substantial 63.41% remain unaddressed by existing tools, and 70.73% lack corresponding datasets. This stark contrast underscores a substantial gap in our understanding and management of performance issues. Consequently, it is crucial for our community to intensify efforts to bridge these gaps and achieve comprehensive detection and resolution of performance issues.

12 April 2026
Verified
Conference Paper
Open access
DLDianshu Liao
Dianshu Liao
XYXin Yin
Xin Yin
SPShidong Pan
Shidong Pan
CNChao Ni
Chao Ni
ZXZhenchang Xing
Zhenchang Xing
XSXiaoyu Sun
Xiaoyu Sun
Unit testing is essential for software quality assurance, yet writing and maintaining tests remains time-consuming and error-prone. To address this challenge, researchers have proposed techniques for automating unit test generation, including heuristic-based methods and more recent approaches that leverage large language models (LLMs). However, these approaches are inherently path-insensitive because they rely on fixed heuristics or limited contextual information and fail to reason about deep control-flow structures, which leads to inadequate coverage, especially for deep execution paths. JUnitGenie extracts code knowledge from Java projects, distills it into structured prompts, and guides LLMs to generate high-coverage tests. We evaluate JUnitGenie on 2,258 complex focal methods from ten real-world Java projects. Results show that JUnitGenie improves branch coverage by an average of 29.60% and line coverage by 31.00% over both heuristic and LLM-based baselines, and generalizes effectively across both closed- and open-source foundation models. JUnitGenie is available at https://github.com/Dianshu-Liao/JUnitGenie-ICSE-Demo, and the demo video is available at https://www.youtube.com/watch?v=-jWJaf661mw.