Yinghao Wang
Current Organizations / Institutes
The organizations/institutes from the scholar's latest article
Research Subjects
Yinghao Wang has a total of 8 co-authors. Here are the top co-authors by number of shared publications:
- Bo Jiang
ByteDance, Shenzhen, China
1 shared publication - Chao Peng
Bytedance, Beijing, China
1 shared publication - Jiangchao Liu
ByteDance, Hangzhou, China
1 shared publication - Jierui Liu
ByteDance, Hangzhou, China
1 shared publication - Mengqian Xu
East China Normal University, Shanghai, China
1 shared publication - Ping Yang
Bytedance, Beijing, China
1 shared publication
Latest Publications
- Open Access
- 27 October 2024
- Published by Association for Computing Machinery (ACM)
- p. 2279-2283
RepoSim: Evaluating Prompt Strategies for Code Completion via User Behavior Simulation
Large language models (LLMs) have revolutionized code completion tasks. IDE plugins such as MarsCode can generate code recommendations, saving developers significant time and effort. However, current evaluation methods for code completion are limited by their reliance on static code benchmarks, which do not consider human interactions and evolving repositories. This paper proposes RepoSim, a novel benchmark designed to evaluate code completion tasks by simulating the evolving process of repositories and incorporating user behaviors. RepoSim leverages data from an IDE plugin, by recording and replaying user behaviors to provide a realistic programming context for evaluation. This allows for the assessment of more complex prompt strategies, such as utilizing recently visited files and incorporating user editing history. Additionally, RepoSim proposes a new metric based on users' acceptance or rejection of predictions, offering a user-centric evaluation criterion. Our preliminary evaluation demonstrates that incorporating users' recent edit history into prompts significantly improves the quality of LLM-generated code, highlighting the importance of temporal context in code completion. RepoSim represents a significant advancement in benchmarking tools, offering a realistic and user-focused framework for evaluating code completion performance.
- 27 October 2024
- Published by Association for Computing Machinery (ACM)
- p. 2279-2283
Open AccessRepoSim: Evaluating Prompt Strategies for Code Completion via User Behavior Simulation
Large language models (LLMs) have revolutionized code completion tasks. IDE plugins such as MarsCode can generate code recommendations, saving developers significant time and effort. However, current evaluation methods for code completion are limited by their reliance on static code benchmarks, which do not consider human interactions and evolving repositories. This paper proposes RepoSim, a novel benchmark designed to evaluate code completion tasks by simulating the evolving process of repositories and incorporating user behaviors. RepoSim leverages data from an IDE plugin, by recording and replaying user behaviors to provide a realistic programming context for evaluation. This allows for the assessment of more complex prompt strategies, such as utilizing recently visited files and incorporating user editing history. Additionally, RepoSim proposes a new metric based on users' acceptance or rejection of predictions, offering a user-centric evaluation criterion. Our preliminary evaluation demonstrates that incorporating users' recent edit history into prompts significantly improves the quality of LLM-generated code, highlighting the importance of temporal context in code completion. RepoSim represents a significant advancement in benchmarking tools, offering a realistic and user-focused framework for evaluating code completion performance.