paper-with-me

Papers

CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completion

2023-10-17 · NeurIPS 2023 11

Code completion models have made significant progress in recent years, yet current popular evaluation datasets, such as HumanEval and MBPP, predominantly focus on code completion tasks within a single file. This over-simplified setting falls short of representing the real-world software development scenario where repositories span multiple files with numerous cross-file dependencies, and accessing and understanding cross-file context is often required to complete the code correctly. To fill in this gap, we propose CrossCodeEval, a diverse and multilingual code completion benchmark that necessitates an in-depth cross-file contextual understanding to complete the code accurately. CrossCodeEval is built on a diverse set of real-world, open-sourced, permissively-licensed repositories in four popular programming languages: Python, Java, TypeScript, and C#. To create examples that strictly require cross-file context for accurate completion, we propose a straightforward yet efficient static-analysis-based approach to pinpoint the use of cross-file context within the current file. Extensive experiments on state-of-the-art code language models like CodeGen and StarCoder demonstrate that CrossCodeEval is extremely challenging when the relevant cross-file context is absent, and we see clear improvements when adding these context into the prompt. However, despite such improvements, the pinnacle of performance remains notably unattained even with the highest-performing model, indicating that CrossCodeEval is also capable of assessing model's capability in leveraging extensive context to make better code completion. Finally, we benchmarked various methods in retrieving cross-file context, and show that CrossCodeEval can also be used to measure the capability of code retrievers.

📄 PDF Abstract BibTeX arXiv:2310.11248

Code (1)

amazon-science/cceval pytorch

Tasks

Code CompletionHumanEvalmbpp

Methods 이 논문이 사용한 방법론

SET Dynamic Sparse Training method where weight mask is updated randomly periodically
Focus 설명 없음
CodeGen CodeGen is an autoregressive transformers with next-token prediction language modeling as the learning objective trained on a natural language corpus and programming language…

Similar Papers 제목 키워드 기반

AlignCoder: Aligning Retrieval with Target Intent for Repository-Level Code Completion

2026-01-27 · Tianyue Jiang, Yanli Wang, Yanlin Wang, Daya Guo 외 arxiv

Repository-level code completion remains a challenging task for existing code large language models (code LLMs) due to their limited understanding of repository-specific context and domain knowledge. While retrieval-augm…

Reinforcement LearningCode Completion

RANGER -- Repository-Level Agent for Graph-Enhanced Retrieval

2025-09-27 · Pratik Shah, Rajat Ghosh, Aryan Singhal, Debojyoti Dutta arxiv

General-purpose automated software engineering (ASE) includes tasks such as code completion, retrieval, repair, QA, and summarization. These tasks require a code retrieval system that can handle specific queries about co…

Natural Language QueriesQuestion AnsweringCode CompletionCode Search

PolyPrompt: Automating Knowledge Extraction from Multilingual Language Models with Dynamic Prompt Generation

2025-02-27 · Nathan Roll

Large language models (LLMs) showcase increasingly impressive English benchmark scores, however their performance profiles remain inconsistent across multilingual settings. To address this gap, we introduce PolyPrompt, a…

MMLU

Enhancing Project-Specific Code Completion by Inferring Internal API Information

2025-07-28 · Le Deng, Xiaoxue Ren, Chao Ni, Ming Liang 외 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…

Code Completion

RepoGraph: Enhancing AI Software Engineering with Repository-level Code Graph

2024-10-03 · Siru Ouyang, Wenhao Yu, Kaixin Ma, Zilin Xiao 외

Large Language Models (LLMs) excel in code generation yet struggle with modern AI software engineering tasks. Unlike traditional function-level or file-level coding tasks, AI software engineering requires not only basic …

Code Generation