ResearchTrend.AI
  • Papers
  • Communities
  • Events
  • Blog
  • Pricing
Papers
Communities
Social Events
Terms and Conditions
Pricing
Parameter LabParameter LabTwitterGitHubLinkedInBlueskyYoutube

© 2025 ResearchTrend.AI, All rights reserved.

  1. Home
  2. Papers
  3. 2505.13073
12
0

Structure-Aware Corpus Construction and User-Perception-Aligned Metrics for Large-Language-Model Code Completion

19 May 2025
Dengfeng Liu
Jucai Zhai
Xiaoguang Jiang
Ziqun Li
Qianjin Yu
Feng Liu
Rui Ye
Huang Liu
Zhiguo Yang
Yongsheng Du
Fang Tan
ArXivPDFHTML
Abstract

Code completion technology based on large language model has significantly improved the development efficiency of programmers. However, in practical applications, there remains a gap between current commonly used code completion evaluation metrics and users' actual perception. To address this issue, we propose two evaluation metrics for code completion tasks--LCP and ROUGE-LCP, from the perspective of probabilistic modeling. Furthermore, to tackle the lack of effective structural semantic modeling and cross-module dependency information in LLMs for repository-level code completion scenarios, we propose a data processing method based on a Structure-Preserving and Semantically-Reordered Code Graph (SPSR-Graph). Through theoretical analysis and experimental validation, we demonstrate the superiority of the proposed evaluation metrics in terms of user perception consistency, as well as the effectiveness of the data processing method in enhancing model performance.

View on arXiv
@article{liu2025_2505.13073,
  title={ Structure-Aware Corpus Construction and User-Perception-Aligned Metrics for Large-Language-Model Code Completion },
  author={ Dengfeng Liu and Jucai Zhai and Xiaoguang Jiang and Ziqun Li and Qianjin Yu and Feng Liu and Rui Ye and Huang Liu and Zhiguo Yang and Yongsheng Du and Fang Tan },
  journal={arXiv preprint arXiv:2505.13073},
  year={ 2025 }
}
Comments on this paper