mlsanityData to 7 Oct 2026

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

arXiv 2406.11589 ↗First posted 17 Jun 2024cs.SE cs.AI cs.IRcited by 11

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

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  3. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  4. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
  5. 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,414
  6. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
  7. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  8. 2021BEIR: A Heterogenous Benchmark for Zero-shot Evaluation of Information Retrieval Modelscited by 1,225
  9. 2020MPNet: Masked and Permuted Pre-training for Language Understandingcited by 973
  10. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
  11. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
  12. 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
24 more
  1. 2022MTEB: Massive Text Embedding Benchmarkcited by 623
  2. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
  3. 2024Multilingual E5 Text Embeddings: A Technical Reportcited by 357
  4. 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 355
  5. 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 327
  6. 2022Matryoshka Representation Learningcited by 268
  7. 2023Magicoder: Empowering Code Generation with OSS-Instructcited by 251
  8. 2018Learning to Mine Aligned Code and Natural Language Pairs from Stack Overflowcited by 165
  9. 2022Practical Program Repair in the Era of Large Pre-trained Language Modelscited by 133
  10. 2013A Theoretical Analysis of NDCG Type Ranking Measurescited by 119
  11. 2023Impact of Code Language Models on Automated Program Repaircited by 85
  12. 2020PyMT5: multi-mode translation of natural language and Python code with transformerscited by 80
  13. 2021CoSQA: 20,000+ Web Queries for Code Search and Question Answeringcited by 74
  14. 2022XLCoST: A Benchmark Dataset for Cross-lingual Code Intelligencecited by 54
  15. 2018StaQC: A Systematically Mined Question-Code Dataset from Stack Overflowcited by 30
  16. 2022On the Importance of Building High-quality Training Datasets for Neural Code Searchcited by 30
  17. 2021CoDesc: A Large Code-Description Parallel Datasetcited by 23
  18. 2022Code Search: A Survey of Techniques for Finding Codecited by 18
  19. 2020Neural Code Search Revisited: Enhancing Code Snippet Retrieval through Natural Language Intentcited by 16
  20. 2024CigaR: Cost-efficient Program Repair with LLMscited by 14
  21. 2024ProCQA: A Large-scale Community-based Programming Question Answering Dataset for Code Searchcited by 12
  22. 2020TranS^3: A Transformer-based Framework for Unifying Code Summarization and Code Searchcited by 11
  23. 2022CS1QA: A Dataset for Assisting Code-based Question Answering in an Introductory Programming Coursecited by 11
  24. 2024Generative AI to Generate Test Data Generatorscited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 5; 2026: 6.

11 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Automatically Benchmarking LLM Code Agents through Agent-Driven Annotation and Evaluation
  2. 2026CORE-Bench: A Comprehensive Benchmark for Code Retrieval in the Era of Agentic Coding
  3. 2024LLM Agents Improve Semantic Code Search
  4. 2026ExecRetrieval: Measuring the Functional-Correctness Gap in Code-Embedding Retrieval
  5. 2024MapCoder: Multi-Agent Code Generation for Competitive Problem Solving
  6. 2026Are you Synthesizing or Recalling? Evaluating LLMs on Algorithmic Code Retrieval
  7. 2026FastCode: Fast and Cost-Efficient Code Understanding and Reasoning
  8. 2024CodeAgent: Enhancing Code Generation with Tool-Integrated Agent Systems for Real-World Repo-level Coding Challenges