Ling Liang
Research Subjects
Ling Liang has a total of 4 co-authors. Here are the top co-authors by number of shared publications:
- Fajun Zhang
Microsoft, Beijing, China
1 shared publication - Richard Yu
Microsoft, Beijing, China
1 shared publication - Yang Luo
Peking University
1 shared publication - Yongqiang Xiong
Microsoft Research Asia, Beijing, China
1 shared publication
Latest Publications
- Open Access
- 27 October 2024
- Published by Association for Computing Machinery (ACM)
- p. 2448-2449
Bridging Gaps in LLM Code Translation: Reducing Errors with Call Graphs and Bridged Debuggers
When using large language models (LLMs) for code translation of complex software, numerous compilation and runtime errors can occur due to insufficient context awareness. To address this issue, this paper presents a code translation method based on call graphs and bridged debuggers: TransGraph. TransGraph first obtains the call graph of the entire code project using the Language Server Protocol, which provides a detailed description of the function call relationships in the program. Through this structured view of the code, LLMs can more effectively handle large-scale and complex codebases, significantly reducing compilation errors. Furthermore, TransGraph, combined with bridged debuggers and dynamic test case generation, significantly reduces runtime errors, overcoming the limitations of insufficient test case coverage in traditional methods. In experiments on six datasets including CodeNet and Avatar, TransGraph outperformed existing code translation methods and LLMs in terms of translation accuracy, with improvements of up to 10.2%.
- 27 October 2024
- Published by Association for Computing Machinery (ACM)
- p. 2448-2449
Open AccessBridging Gaps in LLM Code Translation: Reducing Errors with Call Graphs and Bridged Debuggers
When using large language models (LLMs) for code translation of complex software, numerous compilation and runtime errors can occur due to insufficient context awareness. To address this issue, this paper presents a code translation method based on call graphs and bridged debuggers: TransGraph. TransGraph first obtains the call graph of the entire code project using the Language Server Protocol, which provides a detailed description of the function call relationships in the program. Through this structured view of the code, LLMs can more effectively handle large-scale and complex codebases, significantly reducing compilation errors. Furthermore, TransGraph, combined with bridged debuggers and dynamic test case generation, significantly reduces runtime errors, overcoming the limitations of insufficient test case coverage in traditional methods. In experiments on six datasets including CodeNet and Avatar, TransGraph outperformed existing code translation methods and LLMs in terms of translation accuracy, with improvements of up to 10.2%.