OASIS: Order-Augmented Strategy for Improved Code Search
Not on the map. Why?
Abstract (arXiv)
Code embeddings capture the semantic representations of code and are crucial for various code-related large language model (LLM) applications, such as code search. Previous training primarily relies on optimizing the InfoNCE loss by comparing positive natural language (NL)-code pairs with in-batch negatives. However, due to the sparse nature of code contexts, training solely by comparing the major differences between positive and negative pairs may fail to capture deeper semantic nuances. To address this issue, we propose a novel order-augmented strategy for improved code search (OASIS). It leverages order-based similarity labels to train models to capture subtle differences in similarity among negative pairs. Extensive benchmark evaluations demonstrate that our OASIS model significantly outperforms previous state-of-the-art models focusing solely on major positive-negative differences. It underscores the value of exploiting subtle differences among negative pairs with order labels for effective code embedding training.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 28 of its 45 references that are in the map. First posted on arXiv 11 Mar 2025.
Builds on
28 of 45 references.
References · 28
- 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
- 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,185
- 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,168
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
- 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 355
- 2022The Stack: 3 TB of permissively licensed source codecited by 354
- 2021Retrieval Augmented Code Generation and Summarizationcited by 148
16 more
- 2022DiffCSE: Difference-based Contrastive Learning for Sentence Embeddingscited by 131
- 2021Scaling Deep Contrastive Learning Batch Size under Memory Limited Setupcited by 123
- 2022ReACC: A Retrieval-Augmented Code Completion Frameworkcited by 117
- 2020An Unsupervised Sentence Embedding Method by Mutual Information Maximizationcited by 91
- 2021Adversarial Retriever-Ranker for dense text retrievalcited by 82
- 2021Torch.manual_seed(3407) is all you need: On the influence of random seeds in deep learning architectures for computer visioncited by 76
- 2021CoSQA: 20,000+ Web Queries for Code Search and Question Answeringcited by 74
- 2023RankCSE: Unsupervised Sentence Representations Learning via Learning to Rankcited by 23
- 2022CodeRetriever: Unimodal and Bimodal Contrastive Learning for Code Searchcited by 21
- 2022CoCoSoDa: Effective Contrastive Learning for Code Searchcited by 21
- 2017Query Expansion Based on Crowd Knowledge for Code Searchcited by 18
- 2022Code Search: A Survey of Techniques for Finding Codecited by 18
- 2024How Far Can We Go with Practical Function-Level Program Repair?cited by 16
- 2022Ranking-Enhanced Unsupervised Sentence Representation Learningcited by 15
- 2023Rethinking Negative Pairs in Code Searchcited by 14
- 2022Soft-Labeled Contrastive Pre-training for Function-level Code Representationcited by 7
Built on by
Citing papers per year: 2025: 2.
2 papers.