pith. sign in

arxiv: 2105.13239 · v1 · pith:UOG7JHPTnew · submitted 2021-05-27 · 💻 cs.CL · cs.SE

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

classification 💻 cs.CL cs.SE
keywords codecosqatrainingansweringcoclrcodesfurtherintroduce
0
0 comments X
read the original abstract

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. To remedy this, we introduce the CoSQA dataset.It includes 20,604 labels for pairs of natural language queries and codes, each annotated by at least 3 human annotators. We further introduce a contrastive learning method dubbed CoCLR to enhance query-code matching, which works as a data augmenter to bring more artificially generated training instances. We show that evaluated on CodeXGLUE with the same CodeBERT model, training on CoSQA improves the accuracy of code question answering by 5.1%, and incorporating CoCLR brings a further improvement of 10.5%.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 1 Pith paper

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. Are Decoder-Only Large Language Models the Silver Bullet for Code Search?

    cs.SE 2024-10 unverdicted novelty 4.0

    Fine-tuned decoder-only LLMs achieve up to 40.4% higher MAP than UniXcoder on CoSQA+ for code search, with non-monotonic size scaling and data composition sensitivity.