2022

CoCoSoDa: Effective Contrastive Learning for Code Search

Shi, Ensheng, Wang, Yanlin, Gu, Wenchao et al.

Understand

Code search aims to retrieve semantically relevant code snippets for a given natural language query.

  • Recently, many approaches employing contrastive learning have shown promising results on code representation learning and greatly improved the performance of code search.
  • However, there is still a lot of room for improvement in using contrastive learning for code search.
  • In this paper, we propose CoCoSoDa to effectively utilize contrastive learning for code search via two key factors in contrastive learning: data augmentation and negative samples.

Reading the bibliography…