paper-with-me

Papers

Enhancing Project-Specific Code Completion by Inferring Internal API Information

2025-07-28 · Le Deng, Xiaoxue Ren, Chao Ni, Ming Liang, David Lo, Zhongxin Liu arxiv

Project-specific code completion is a critical task that leverages context from a project to generate accurate code. State-of-the-art methods use retrieval-augmented generation (RAG) with large language models (LLMs) and project information for code completion. However, they often struggle to incorporate internal API information, which is crucial for accuracy, especially when APIs are not explicitly imported in the file. To address this, we propose a method to infer internal API information without relying on imports. Our method extends the representation of APIs by constructing usage examples and semantic descriptions, building a knowledge base for LLMs to generate relevant completions. We also introduce ProjBench, a benchmark that avoids leaked imports and consists of large-scale real-world projects. Experiments on ProjBench and CrossCodeEval show that our approach significantly outperforms existing methods, improving code exact match by 22.72% and identifier exact match by 18.31%. Additionally, integrating our method with existing baselines boosts code match by 47.80% and identifier match by 35.55%.

📄 PDF Abstract BibTeX arXiv:2507.20888

Code (0)

등록된 구현이 없습니다.

Tasks

Code Completion

Similar Papers 제목 키워드 기반

RAMBO: Enhancing RAG-based Repository-Level Method Body Completion

2024-09-23 · Tuan-Dung Bui, Duc-Thieu Luu-Van, Thanh-Phat Nguyen, Thu-Trang Nguyen 외

Code completion is essential in software development, helping developers by predicting code snippets based on context. Among completion tasks, Method Body Completion (MBC) is particularly challenging as it involves gener…

Code CompletionCode GenerationRAG

R2C2-Coder: Enhancing and Benchmarking Real-world Repository-level Code Completion Abilities of Code Large Language Models

2024-06-03 · Ken Deng, Jiaheng Liu, He Zhu, Congnan Liu 외

Code completion models have made significant progress in recent years. Recently, repository-level code completion has drawn more attention in modern software development, and several baseline methods and benchmarks have …

BenchmarkingCode CompletionRetrieval

MonoScene: Monocular 3D Semantic Scene Completion

2021-12-01 · CVPR 2022 1 · Anh-Quan Cao, Raoul de Charette

MonoScene proposes a 3D Semantic Scene Completion (SSC) framework, where the dense geometry and semantics of a scene are inferred from a single monocular RGB image. Different from the SSC literature, relying on 2.5 or 3D…

3D Reconstruction3D Scene Reconstruction3D Semantic Scene Completion3D Semantic Scene Completion from a single RGB image+1

Enhancing LLM-Based Coding Tools through Native Integration of IDE-Derived Static Context

2024-02-06 · Yichen Li, Yun Peng, Yintong Huo, Michael R. Lyu

Large Language Models (LLMs) have achieved remarkable success in code completion, as evidenced by their essential roles in developing code assistant services such as Copilot. Being trained on in-file contexts, current LL…

Code Completion

Effective Code Membership Inference for Code Completion Models via Adversarial Prompts

2025-11-19 · Yuan Jiang, Zehao Li, Shan Huang, Christoph Treude 외 arxiv

Membership inference attacks (MIAs) on code completion models offer an effective way to assess privacy risks by inferring whether a given code snippet was part of the training data. Existing black- and gray-box MIAs rely…

Code Completion