CoSQA+: Pioneering the Multi-Choice Code Search Benchmark with Test-Driven Agents
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
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 93.9%. Through extensive experiments, CoSQA+ has demonstrated superior quality over CoSQA. Models trained on CoSQA+ exhibit improved performance. We publicly release both CoSQA+_all, which contains 412,080 agent-annotated pairs, and CoSQA+_verified, which contains 1,000 human-verified pairs, at https://github.com/DeepSoftwareAnalytics/CoSQA_Plus.
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 36 of its 75 references that are in the map. First posted on arXiv 17 Jun 2024.
Builds on
36 of 75 references.
References · 36
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
- 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,414
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2021BEIR: A Heterogenous Benchmark for Zero-shot Evaluation of Information Retrieval Modelscited by 1,225
- 2020MPNet: Masked and Permuted Pre-training for Language Understandingcited by 973
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
24 more
- 2022MTEB: Massive Text Embedding Benchmarkcited by 623
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
- 2024Multilingual E5 Text Embeddings: A Technical Reportcited by 357
- 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 355
- 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 327
- 2022Matryoshka Representation Learningcited by 268
- 2023Magicoder: Empowering Code Generation with OSS-Instructcited by 251
- 2018Learning to Mine Aligned Code and Natural Language Pairs from Stack Overflowcited by 165
- 2022Practical Program Repair in the Era of Large Pre-trained Language Modelscited by 133
- 2013A Theoretical Analysis of NDCG Type Ranking Measurescited by 119
- 2023Impact of Code Language Models on Automated Program Repaircited by 85
- 2020PyMT5: multi-mode translation of natural language and Python code with transformerscited by 80
- 2021CoSQA: 20,000+ Web Queries for Code Search and Question Answeringcited by 74
- 2022XLCoST: A Benchmark Dataset for Cross-lingual Code Intelligencecited by 54
- 2018StaQC: A Systematically Mined Question-Code Dataset from Stack Overflowcited by 30
- 2022On the Importance of Building High-quality Training Datasets for Neural Code Searchcited by 30
- 2021CoDesc: A Large Code-Description Parallel Datasetcited by 23
- 2022Code Search: A Survey of Techniques for Finding Codecited by 18
- 2020Neural Code Search Revisited: Enhancing Code Snippet Retrieval through Natural Language Intentcited by 16
- 2024CigaR: Cost-efficient Program Repair with LLMscited by 14
- 2024ProCQA: A Large-scale Community-based Programming Question Answering Dataset for Code Searchcited by 12
- 2020TranS^3: A Transformer-based Framework for Unifying Code Summarization and Code Searchcited by 11
- 2022CS1QA: A Dataset for Assisting Code-based Question Answering in an Introductory Programming Coursecited by 11
- 2024Generative AI to Generate Test Data Generatorscited by 4
Built on by
Citing papers per year: 2025: 5; 2026: 6.
11 papers.
- 2025An Empirical Study of Agent Developer Practices in AI Agent Frameworkscited by 14
- 2025Software Development Life Cycle Perspective: A Survey of Benchmarks for Code Large Language Models and Agentscited by 11
- 2025Towards an Understanding of Context Utilization in Code Intelligencecited by 10
- 2025RustEvo^2: An Evolving Benchmark for API Evolution in LLM-based Rust Code Generationcited by 9
- 2026AlignCoder: Aligning Retrieval with Target Intent for Repository-Level Code Completioncited by 7
- 2026DRAINCODE: Stealthy Energy Consumption Attacks on Retrieval-Augmented Code Generation via Context Poisoningcited by 3
- 2026PhoenixRepair: Rethinking Repair Strategy Exploration in Software Agentscited by 2
- 2026Deep Agentic Search for Repository-Level Code Question Answering: An Empirical Studycited by 1
- 2025Reasoning Distillation and Structural Alignment for Improved Code Generationcited by 0
- 2026Adaptive Critical Token-Aware Retrieval for Repository-Level Code Generationcited by 0
- 2026Efficient SWE Agent Benchmarking via Trajectory-Aware Evaluationcited by 0
- 2026Efficient SWE Agent Benchmarking via Trajectory-Aware Evaluation1 Sep 2026
- 2026Adaptive Critical Token-Aware Retrieval for Repository-Level Code Generation1 Sep 2026
- 2026Deep Agentic Search for Repository-Level Code Question Answering: An Empirical Study2 Aug 2026
- 2026PhoenixRepair: Rethinking Repair Strategy Exploration in Software Agents21 Jul 2026
- 2026DRAINCODE: Stealthy Energy Consumption Attacks on Retrieval-Augmented Code Generation via Context Poisoning28 Jan 2026
- 2026AlignCoder: Aligning Retrieval with Target Intent for Repository-Level Code Completion27 Jan 2026
- 2025An Empirical Study of Agent Developer Practices in AI Agent Frameworks1 Dec 2025
- 2025Reasoning Distillation and Structural Alignment for Improved Code Generation20 Oct 2025
- 2025Software Development Life Cycle Perspective: A Survey of Benchmarks for Code Large Language Models and Agents8 May 2025
- 2025Towards an Understanding of Context Utilization in Code Intelligence11 Apr 2025
- 2025RustEvo^2: An Evolving Benchmark for API Evolution in LLM-based Rust Code Generation21 Mar 2025
Similar, not cited
Close in wording, no citation either way
- 2025Automatically Benchmarking LLM Code Agents through Agent-Driven Annotation and Evaluation
- 2026CORE-Bench: A Comprehensive Benchmark for Code Retrieval in the Era of Agentic Coding
- 2024LLM Agents Improve Semantic Code Search
- 2026ExecRetrieval: Measuring the Functional-Correctness Gap in Code-Embedding Retrieval
- 2024MapCoder: Multi-Agent Code Generation for Competitive Problem Solving
- 2026Are you Synthesizing or Recalling? Evaluating LLMs on Algorithmic Code Retrieval
- 2026FastCode: Fast and Cost-Efficient Code Understanding and Reasoning
- 2024CodeAgent: Enhancing Code Generation with Tool-Integrated Agent Systems for Real-World Repo-level Coding Challenges