paper-with-me

Papers

RepoQA: Evaluating Long Context Code Understanding

2024-06-10 · Jiawei Liu, Jia Le Tian, Vijay Daita, Yuxiang Wei, Yifeng Ding, Yuhan Katherine Wang, Jun Yang, Lingming Zhang

Recent advances have been improving the context windows of Large Language Models (LLMs). To quantify the real long-context capabilities of LLMs, evaluators such as the popular Needle in a Haystack have been developed to test LLMs over a large chunk of raw texts. While effective, current evaluations overlook the insight of how LLMs work with long-context code, i.e., repositories. To this end, we initiate the RepoQA benchmark to evaluate LLMs on long-context code understanding. Traditional needle testers ask LLMs to directly retrieve the answer from the context without necessary deep understanding. In RepoQA, we built our initial task, namely Searching Needle Function (SNF), which exercises LLMs to search functions given their natural-language description, i.e., LLMs cannot find the desired function if they cannot understand the description and code. RepoQA is multilingual and comprehensive: it includes 500 code search tasks gathered from 50 popular repositories across 5 modern programming languages. By evaluating 26 general and code-specific LLMs on RepoQA, we show (i) there is still a small gap between the best open and proprietary models; (ii) different models are good at different languages; and (iii) models may understand code better without comments.

📄 PDF Abstract BibTeX arXiv:2406.06025

Code (1)

evalplus/repoqa 공식 구현 pytorch

Tasks

Code Search

Similar Papers 제목 키워드 기반

CodeRepoQA: A Large-scale Benchmark for Software Engineering Question Answering

2024-12-19 · Ruida Hu, Chao Peng, Jingyi Ren, Bo Jiang 외

In this work, we introduce CodeRepoQA, a large-scale benchmark specifically designed for evaluating repository-level question-answering capabilities in the field of software engineering. CodeRepoQA encompasses five progr…

Question Answering

Repository Structure-Aware Training Makes SLMs Better Issue Resolver

2024-12-26 · Zexiong Ma, Shengnan An, Zeqi Lin, Yanzhen Zou 외

Language models have been applied to various software development tasks, but the performance varies according to the scale of the models. Large Language Models (LLMs) outperform Small Language Models (SLMs) in complex ta…

Long-Context Understanding

Too Long, Didn't Model: Decomposing LLM Long-Context Understanding With Novels

2025-05-20 · Sil Hamilton, Rebecca M. M. Hicke, Matthew Wilkens, David Mimno

Although the context length of large language models (LLMs) has increased to millions of tokens, evaluating their effectiveness beyond needle-in-a-haystack approaches has proven difficult. We argue that novels provide a …

Language ModelingLanguage ModellingLong-Context Understanding

LongBench: A Bilingual, Multitask Benchmark for Long Context Understanding

2023-08-28 · Yushi Bai, Xin Lv, Jiajie Zhang, Hongchang Lyu 외

Although large language models (LLMs) demonstrate impressive performance for many language tasks, most of them can only handle texts a few thousand tokens long, limiting their applications on longer sequence inputs, such…

16kCode CompletionFew-Shot LearningLong-Context Understanding

Beyond Code Snippets: Benchmarking LLMs on Repository-Level Question Answering

2026-03-27 · Yoseph Berhanu Alebachew, Hunter Leary, Swanand Vaishampayan, Chris Brown arxiv

Large Language Models (LLMs) have shown impressive capabilities across software engineering tasks, including question answering (QA). However, most studies and benchmarks focus on isolated functions or single-file snippe…

Question Answering