CoSQAPlus

Citation Author(s):
Jing
Gong
Sun Yat-sen University
Submitted by:
Jing Gong
Last updated:
Thu, 04/10/2025 - 02:55
DOI:
10.21227/yj8s-z247
Data Format:
License:
4 Views
Categories:
Keywords:
0
0 ratings - Please login to submit your rating.

Abstract 

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.

Instructions: 

Research paper

Documentation

AttachmentSize
File CoSQAPlus__TSE (2).pdf1002.99 KB