scimeatlas

Research map / Large language models / Retrieval and knowledge

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

Junjie Huang, Duyu Tang, Linjun Shou, Ming Gong, Ke Xu, Daxin Jiang, Ming Zhou, Nan Duan

ACL 2021Large language models › Retrieval and knowledgeapproach: Explanatory and multiple-choice QA benchmarksopen problems in this approach

Beihang University · Microsoft Research Asia · Microsoft

Read the paperPlace an idea next to itCheck your own paper ↗

13measured effects
11improved
2no clear effect

AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Measured effects reported in the paper

What was changedWhereMeasuredEffect
train CodeBERT on CoSQA in addition to CodeSearchNetCodeBERT · CodeXGLUE WebQueryTestaccuracy: 47.80 -> 52.87Improved
train CodeBERT on CoSQA in addition to CodeSearchNetCodeBERT · CoSQA code searchMRR: 51.29 -> 54.41Improved
add CoCLR contrastive augmentationCodeBERT trained on CSN + CoSQA · CodeXGLUE WebQueryTestaccuracy: 52.87 -> 63.38Improved
add CoCLR contrastive augmentationCodeBERT trained on CSN + CoSQA · CoSQA code searchMRR: 54.41 -> 64.66Improved
add in-batch augmentation (ablation)CodeBERT without augmentation · CoSQA code searchMRR: 54.41 -> 63.51Improved
add query-rewritten augmentation (switch) (ablation)CodeBERT without augmentation · CoSQA code searchMRR: 54.41 -> 55.66Improved
add query-rewritten (switch) on top of in-batch augmentation (ablation)CodeBERT + in-batch · CoSQA code searchMRR: 63.51 -> 64.66Improved
add query-rewritten (delete) on top of in-batch augmentation (ablation)CodeBERT + in-batch · CoSQA code searchMRR: 63.51 -> 63.41No clear effect
rewrite queries by switching word positions rather than deleting or copying (ablation)CoCLR query-rewritten augmentation · CoSQA code searchMRR: 55.66 (switch) vs 55.24 (delete), 54.82 (copy)Improved
add one more IBA example instead of QRA example (equalise number of examples) (ablation)CodeBERT · CoSQA code searchMRR: 55.52No clear effect
remove natural language documentation from code (ablation)CoCLR CodeBERT · CoSQA code searchMRR: 64.66 -> 58.54 when removedImproved
keep function header (ablation)CoCLR CodeBERT · CoSQA code searchMRR: 64.66 -> 62.01 when removedImproved

Open problems in explanatory and multiple-choice QA benchmarks

Which retrieval and QA methods hold up beyond English, small models and LLM judges, and what do they cost?

All 5 open problems and what was already tried →

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy