RepoBench: Benchmarking Repository-Level Code Auto-Completion Systems

By Tianyang Liu, Canwen Xu, Julian McAuley. 2023

404 citations recorded by the source corpus.

Large Language Models (LLMs) have greatly advanced code auto-completion systems, with a potential for substantial productivity enhancements for developers. However, current benchmarks mainly focus on single-file tasks, leaving an assessment gap for more complex, real-world, multi-file programming scenarios. To fill this gap, we introduce RepoBench, a new benchmark specifically designed for evaluating repository-level code auto-completion systems. RepoBench supports both Python and Java and consists of three interconnected evaluation tasks: RepoBench-R (Retrieval), RepoBench-C (Code Completion), and RepoBench-P (Pipeline). Each task respectively measures the system's ability to retrieve the most relevant code snippets from other files as cross-file context, predict the next line of code with cross-file and in-file context, and handle complex tasks that require a combination of both retrieval and next-line prediction. RepoBench aims to facilitate a more complete comparison of performance and encouraging continuous improvement in auto-completion systems. RepoBench is publicly available at https://github.com/Leolty/repobench.

Subfields: Artificial Intelligence, Computer Networks and Communications, Information Systems, Evaluation & Benchmarks, Code Generation & Program Synthesis

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Lingming Zhang
  2. Chun Xia
  3. Julian McAuley
  4. Yuxiao Dong
  5. Canwen Xu
  6. Xiao Liu
  7. Daya Guo
  8. Nan Duan

In Computer Networks and Communications

  1. Armando Solar-Lezama
  2. Chun Xia
  3. Koushik Sen
  4. Yuxiao Dong
  5. Lingming Zhang
  6. Ion Stoica
  7. Julian McAuley
  8. Nan Duan

In Information Systems

  1. Chun Xia
  2. Lingming Zhang
  3. Yinlin Deng
  4. Ling-Ming Zhang
  5. Soren Dunn
  6. Daya Guo
  7. Xiao Liu
  8. Armando Solar-Lezama

In Evaluation & Benchmarks

  1. Chun Xia
  2. Lingming Zhang
  3. Armando Solar-Lezama
  4. Jian Yin
  5. Naman Jain
  6. Tianjun Zhang
  7. Yuxiao Dong
  8. Xiao Liu

In Code Generation & Program Synthesis

  1. Armando Solar-Lezama
  2. Jian Yin
  3. Chun Xia
  4. Koushik Sen
  5. Yuxiao Dong
  6. Lingming Zhang
  7. Daya Guo
  8. Julian McAuley

Citations in the corpus