Fang Liu
· 1 previous affiliation
- Beihang UniversitySince 2022
- Assistant Professor · Since 2022
8 other authors named Fang Liu: Fang Liu (Xidian University · 503 papers), Fang Liu (41 papers), FANG LIU (Hunan University · 9 papers), Fang Liu (City University of Hong Kong · 4 papers), Fang Liu (Nanjing University of Science and Technology · 3 papers), and 3 more
Research Overview
Fang Liu focuses on the intersection of software engineering and natural language processing, specifically targeting automated code generation, program translation, and code completion. His trajectory spans from early work on hierarchical program modeling and syntax-aware neural architectures to recent investigations into the capabilities and limitations of large language models for programming tasks. Currently, he explores automated program repair, robust code translation, and semantic code search.
Research Trajectory
Liu’s early research concentrated on improving the fundamental representations of source code to enhance automated programming assistance. In 2020, he developed approaches to better capture the structural and contextual nuances of code. He introduced a method for Modeling programs hierarchically with stack-augmented LSTM, which integrated a stack mechanism into long short-term memory networks to effectively capture the hierarchical structures and long-term dependencies inherent in source code. Concurrently, he addressed limitations in real-time code completion tools by proposing a Multi-task Learning based Pre-trained Language Model for Code Completion. This work moved beyond static embeddings, which map tokens to single vectors regardless of context, by utilizing multi-task learning to capture contextual variations in token meaning.
Building on these foundational models, Liu expanded his focus to incorporate broader contextual and syntactic constraints into code generation tasks. He designed A unified multi-task learning model for AST-level and token-level code completion, which treated code completion not merely as a sequential generation task, but as one constrained by static type information and abstract syntax tree (AST) structures. He also applied neural machine translation techniques to improve code readability and maintainability in Learning to Recommend Method Names with Global Context, extracting code-specific features from a broader codebase to suggest consistent and meaningful method names.
As his research progressed, Liu tackled the challenges of program translation and generation efficiency. Recognizing the scarcity of parallel bilingual code corpora, he developed a Syntax and Domain Aware Model for Unsupervised Program Translation to automate software migration without relying on expensive, manually aligned datasets. He also investigated methods to accelerate code generation, introducing techniques for Non-Autoregressive Line-Level Code Completion to improve the speed of automated programming assistants.
More recently, Liu’s work has heavily engaged with the integration of large language models (LLMs) into software engineering. He co-authored A Survey on Natural Language Processing for Programming, which systematically reviewed structure-based representations and functionality-oriented algorithms. This comprehensive review intersects with several broader research areas, including the area of Graph-Based Code Representation for Software Engineering, the direction of Repository-Level Code Intelligence for Large Language Models, and the field of Functional Correctness for Code Generation.
While LLMs have advanced the state of the art, Liu has also focused on identifying and mitigating their vulnerabilities. He contributed to a systematic study, Imperfect Code Generation: Uncovering Weaknesses in Automatic Code Generation by Large Language Models, which established a weakness taxonomy across multiple LLMs and datasets to highlight unrecognized issues in automated code generation. To address practical repair challenges, he helped develop Peer-aided Repairer: Empowering Large Language Models to Repair Advanced Student Assignments. This framework, evaluated on a novel dataset of complex data structures coursework, utilizes a multi-metric peer solution selection strategy to improve automated program repair, advancing work in the area of Coordinated Multi File Reasoning for Repository Level Code Repair.
In the domain of code translation, Liu collaborated on Exploring and Unleashing the Power of Large Language Models in Automated Code Translation, introducing the UniTrans framework. This approach intelligently incorporates auto-generated test cases to significantly enhance the accuracy and robustness of LLM-driven transpilers. Expanding into information retrieval, he also participated in the development of SCodeSearcher: soft contrastive learning for code search, which applies soft contrastive learning to retrieve diverse code snippets that satisfy user intent across varying programming styles.
Current Directions
The most recent papers in Liu’s evidence indicate a strong focus on harnessing and refining large language models for complex, real-world software engineering tasks. A primary theme is the shift from basic code generation to ensuring functional correctness and robustness in advanced scenarios, such as translating legacy codebases and repairing complex algorithmic assignments. His current work investigates how to augment LLMs with external validation mechanisms—such as auto-generated test cases and peer-aided solution selection—to overcome the inherent stochastic instability and weaknesses of standalone models. Additionally, he is exploring advanced semantic retrieval techniques, utilizing contrastive learning to build more flexible and intent-aware code search systems that accommodate diverse programming styles.
Profile updated
| Paper | Venue | Year |
|---|---|---|
| Non-Autoregressive Line-Level Code CompletionGitHubLiuFang816/ | ACM Transactions on Software Engineering and Methodology | 2024 |
| Learning to Recommend Method Names with Global ContextGitHubLiuFang816/ | ICSE | 2022 |
| Multi-task Learning based Pre-trained Language Model for Code CompletionGitHubLiuFang816/ | Ase | 2020 |
Loading new papers…
Other researchers whose papers cluster into the same research directions — a proxy for overlapping technical interests and shared intellectual neighborhoods.
See something wrong? Report a mistake