Fang Lv

Fang Lv

Auto-generated profile, based on publicly available information

Fang Lv

SKLP, Institute of Computing Technology, CAS, Beijing, China

Research Focus & Metrics

Academic Career Length

13Years (2014-Present)

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

Representative Publications

View All Publications
10 January 2014 in Journal of Computer Science and Technology
Verified
Journal Article
Closed access
PDF file
FLFang Lv
Fang Lv
HCHui-Min Cui
Hui-Min Cui
LWLei Wang
Lei Wang
LLLei Liu
Lei Liu
CWCheng-Gang Wu
Cheng-Gang Wu
PYPen-Chung Yew
Pen-Chung Yew

1 March 2025
Verified
Conference Paper
Open access
MZMing Zhong
Ming Zhong
FLFang Lv
Fang Lv
LWLulin Wang
Lulin Wang
LQLei Qiu
Lei Qiu
YWYingying Wang
Yingying Wang
JXJingling Xue
Jingling Xue
We introduce VEGA, an AI-driven system aimed at easing the development of compiler backends for new targets. Our approach involves categorizing functions from existing backends into function groups, each comprising various target-specific implementations of a standard compiler interface function, abstracted as a single function template. Therefore, generating a new backend involves customizing these function templates to specific target requirements. To capitalize on AI's capabilities in code generation, VEGA maps statements in a target-specific version of a function template into feature vectors, distinguishing between target-independent and target-specific properties. Leveraging a pre-trained model, VEGA can efficiently auto-generate a version of each function template tailored to a specific target, thereby enabling the construction of a complete compiler backend for a new target based solely on its target description files. We evaluated VEGA on three distinct targets: a CPU processor (RISC-V), a customized processor with instruction extensions (RI5CY), and an IoT processor (xCORE). VEGA demonstrated high efficiency, generating compiler backends under an hour, which can substantially enhance developer productivity. Across the three targets, VEGA achieved accuracy rates of 71.5%, 73.2%, and 62.2% for all generated functions, significantly outperforming the traditional fork-flow method, which yielded less than 8% accuracy. Moreover, VEGA provides explicit confidence scores for generated functions and statements, allowing developers to easily identify areas requiring minimal manual intervention. This research has the potential to improve the effectiveness of traditional compiler backend development.

26 April 2015 in The Journal of Supercomputing
Verified
Journal Article
Closed access
PDF file
FLFang Lv
Fang Lv
LLLei Liu
Lei Liu
HCHui-Min Cui
Hui-Min Cui
LWLei Wang
Lei Wang
YLYing Liu
Ying Liu
PYPen-Chung Yew
Pen-Chung Yew

30 November 2023 in Journal of Computer Science and Technology
Verified
Journal Article
Closed access
PDF file
HGHong-Na Geng
Hong-Na Geng
FLFang Lyu
Fang Lyu
MZMing Zhong
Ming Zhong
HCHui-Min Cui
Hui-Min Cui
JXJingling Xue
Jingling Xue
XFXiao-Bing Feng
Xiao-Bing Feng

13 May 2026 in ACM Transactions on Software Engineering and Methodology
Verified
Journal Article
Open access
MZMing Zhong
Ming Zhong
XSXin Sun
Xin Sun
FLFang Lv
Fang Lv
LWLulin Wang
Lulin Wang
HGHongna Geng
Hongna Geng
XFXiaobing Feng
Xiaobing Feng
Compiler backends are tasked with generating executable machine code for various processors. As the diversity of processors continues to grow, it is imperative for programmers to tailor specific compiler backends to accommodate each one. However, compiler backend development remains a labor-intensive and time-consuming process, with limited automation tools available. Although large language models (LLMs) have demonstrated strong abilities in code completion and code generation tasks, the lack of appropriate datasets for compiler backend development limits the application of LLMs in this field. In this article, we introduce ComBack++, a multilingual dataset covering C/C++, machine description, and TableGen, with 184 backends from GCC and LLVM, four backend-specific tasks. Based on ComBack++, we present BePilot, a compiler backend-specific LLM available in two sizes: BePilot-1.5B and BePilot-7B. We also introduce CB-Retriever , a retriever that constructs few-shot prompts via in-context learning to improve vanilla LLM performance in resource-constrained settings. Experimental results show that BePilot-1.5B and BePilot-7B achieve significantly higher accuracy across four tasks in ComBack++ compared to 12 baseline LLMs (125M–34B parameters). In addition, CB-Retriever consistently boosts the accuracy of six mainstream LLMs. Both BePilot-1.5B and BePilot-7B, as well as vanilla LLMs augmented with CB-Retriever , outperform the traditional manual compiler backend development approach (Fork-Flow) in efficiency across all four tasks in ComBack++. Furthermore, human evaluation by four experienced compiler backend developers confirms that BePilot not only improves development efficiency over Fork-Flow but also surpasses commercial AI programming assistants such as GPT-4o-mini and Gemini2-Flash in terms of code quality. These findings confirm that BePilot and CB-Retriever can substantially enhance compiler backend development efficiency.

2 June 2018 in The Journal of Supercomputing
Verified
Journal Article
Closed access
PDF file
DHDanqi Hu
Danqi Hu
FLFang Lv
Fang Lv
CWChenxi Wang
Chenxi Wang
HCHui-Min Cui
Hui-Min Cui
LWLei Wang
Lei Wang
XFXiao-Bing Feng
Xiao-Bing Feng