AI Paper Atlas

Research map / Label-efficient and robust learning / Recognition and long-tail

Rethinking Negative Pairs in Code Search

Haochen Li, Xin Zhou, Luu Anh Tuan, Chunyan Miao

EMNLP 2023Label-efficient and robust learning › Recognition and long-tailapproach: Contrastive representation theory26 citations (OpenAlex)

Nanyang Technological University

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

12measured effects
3improved
3no clear effect
5hurt
1mixed

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
replace InfoNCE with Soft-InfoNCE (SimCSE estimation)CodeBERT · CodeSearchNet PythonMRR: 0.636 -> 0.668Improved
replace InfoNCE with Soft-InfoNCE (any estimator)CodeBERT, GraphCodeBERT, UniXCoder · CodeSearchNet (6 languages)MRR: about 1%-2% MRRImproved
replace InfoNCE with Soft-InfoNCE (BM25)GraphCodeBERT · CodeSearchNet GoMRR: 0.896 -> 0.892No clear effect
use trained-model weight estimation instead of BM25/SimCSECodeBERT · CodeSearchNet (6 languages)MRRImproved
use trained-model estimation instead of BM25/SimCSEGraphCodeBERT, UniXCoder · CodeSearchNetMRRNo clear effect
replace Soft-InfoNCE with BCE loss (ablation)CodeBERT · CodeSearchNet overallMRR: 0.687 -> 0.641Hurt
replace Soft-InfoNCE with weighted InfoNCE (ablation)GraphCodeBERT · CodeSearchNet overallMRR: 0.722 -> 0.674Hurt
replace Soft-InfoNCE with KL regularization (ablation)UniXCoder · CodeSearchNet overallMRR: 0.751 -> 0.716Hurt
remove top-K similar negatives (K=1 to 5) instead of weighting (ablation)GraphCodeBERT · CodeSearchNet PythonMRR: 0.685 -> 0.680 as K goes 1 -> 5; Soft-InfoNCE 0.700Hurt
dynamic threshold false-negative removal (ablation)GraphCodeBERT · CodeSearchNet PythonMRR: 0.689, 0.688, 0.688 vs Soft-InfoNCE 0.700Hurt
alpha/beta setting (alpha=1.3, beta=0.7) (ablation)Soft-InfoNCE · CodeSearchNet PythonMRRNo clear effect
Soft-InfoNCE weight estimation overhead (CodeBERT)CodeBERT · training time per batchtime per batch (s): 0.75s -> 0.77s (BM25), 0.81s (SimCSE), 0.98s (Trained Model)Mixed

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