Structure-Aware Corpus Construction and User-Perception-Aligned Metrics for Large-Language-Model Code Completion
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 20 of its 27 references that are in the map. First posted on arXiv 19 May 2025.
Builds on
20 of 27 references.
References · 20
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 906
- 2023Large Language Models Can Be Easily Distracted by Irrelevant Contextcited by 841
- 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 546
- 2021Unified Pre-training for Program Understanding and Generationcited by 366
- 2023CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completioncited by 183
- 2022CoCoMIC: Code Completion By Jointly Modeling In-file and Cross-file Contextcited by 65
- 2024RLCoder: Reinforcement Learning for Repository-Level Code Completioncited by 44
- 2024GraphCoder: Enhancing Repository-Level Code Completion via Code Context Graph-based Retrieval and Language Modelcited by 40
- 2024Language Models for Code Completion: A Practical Evaluationcited by 39
- 2024AST-T5: Structure-Aware Pretraining for Code Generation and Understandingcited by 33
- 2024Evaluating and Aligning CodeLLMs on Human Preferencecited by 22
8 more
- 2024STALL+: Boosting LLM-based Repository-level Code Completion with Static Analysiscited by 21
- 2020Learning Autocompletion from Real-World Datasetscited by 20
- 2022Syntax-Aware On-the-Fly Code Completioncited by 10
- 2022All You Need Is Logs: Improving Code Completion by Learning from Anonymous IDE Usage Logscited by 9
- 2023Enriching Source Code with Contextual Data for Code Completion Models: An Empirical Studycited by 8
- 2025aiXcoder-7B-v2: Training LLMs to Fully Utilize the Long Context in Repository-level Code Completioncited by 8
- 2024Investigating the Performance of Language Models for Completing Code in Functional Programming Languages: a Haskell Case Studycited by 7
- 2024Is Next Token Prediction Sufficient for GPT? Exploration on Code Logic Comprehensioncited by 6
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025GRACE: Graph-Guided Repository-Aware Code Completion through Hierarchical Code Fusion
- 2025CodeRAG: Finding Relevant and Necessary Knowledge for Retrieval-Augmented Repository-Level Code Completion
- 2025Completion by Comprehension: Guiding Code Generation with Multi-Granularity Understanding
- 2022ReACC: A Retrieval-Augmented Code Completion Framework
- 2026Evaluating and Achieving Controllable Code Completion in Code LLM
- 2025A Deep Dive into Retrieval-Augmented Generation for Code Completion: Experience on WeChat
- 2024Retrieval-augmented code completion for local projects using large language models
- 2024Prompt-based Code Completion via Multi-Retrieval Augmented Generation