paper-with-me

Papers

CoSQA+: Pioneering the Multi-Choice Code Search Benchmark with Test-Driven Agents

2024-06-17 · Jing Gong, Yanghui Wu, Linxi Liang, Yanlin Wang, Jiachi Chen, Mingwei Liu, Zibin Zheng

Semantic code search, retrieving code that matches a given natural language query, is an important task to improve productivity in software engineering. Existing code search datasets face limitations: they rely on human annotators who assess code primarily through semantic understanding rather than functional verification, leading to potential inaccuracies and scalability issues. Additionally, current evaluation metrics often overlook the multi-choice nature of code search. This paper introduces CoSQA+, pairing high-quality queries from CoSQA with multiple suitable codes. We develop an automated pipeline featuring multiple model-based candidate selections and the novel test-driven agent annotation system. Among a single Large Language Model (LLM) annotator and Python expert annotators (without test-based verification), agents leverage test-based verification and achieve the highest accuracy of 92.0%. Through extensive experiments, CoSQA+ has demonstrated superior quality over CoSQA. Models trained on CoSQA+ exhibit improved performance. We provide the code and data at https://github.com/DeepSoftwareAnalytics/CoSQA_Plus.

📄 PDF Abstract BibTeX arXiv:2406.11589

Code (1)

DeepSoftwareAnalytics/CoSQA_Plus 공식 구현 pytorch

Tasks

Code GenerationCode SearchLanguage ModelingLanguage ModellingLarge Language Modelvalid

Similar Papers 제목 키워드 기반

CoSQA: 20,000+ Web Queries for Code Search and Question Answering

2021-05-27 · ACL 2021 5 · JunJie Huang, Duyu Tang, Linjun Shou, Ming Gong 외

Finding codes given natural language query isb eneficial to the productivity of software developers. Future progress towards better semantic matching between query and code requires richer supervised training resources. …

Code SearchContrastive LearningNatural Language QueriesQuestion Answering

A New Search Paradigm for Natural Language Code Search

2021-11-16 · ACL ARR November 2021 11 · Anonymous

Code search can accelerate the efficiency of software development by finding code snippets for the given query. The dominant code search paradigm is to learn the semantic matching between code snippets and queries by neu…

Code Search

CodeRetriever: Unimodal and Bimodal Contrastive Learning for Code Search

2021-11-16 · ACL ARR November 2021 11 · Anonymous

In this paper, we propose the CodeRetriever model, which combines the unimodal and bimodal contrastive learning to train function-level code semantic representations, specifically for the code search task. For unimodal c…

Code SearchContrastive Learning

SWE-QA: Can Language Models Answer Repository-level Code Questions?

2025-09-18 · Weihan Peng, Yuling Shi, Yuhang Wang, Xinyun Zhang 외 arxiv

Understanding and reasoning about entire software repositories is an essential capability for intelligent software engineering tools. While existing benchmarks such as CoSQA and CodeQA have advanced the field, they predo…

Question Answering

Likelihood-free Model Choice for Simulator-based Models with the Jensen--Shannon Divergence

2022-06-08 · Jukka Corander, Ulpu Remes, Timo Koski

Choice of appropriate structure and parametric dimension of a model in the light of data has a rich history in statistical research, where the first seminal approaches were developed in 1970s, such as the Akaike's and Sc…