mlsanityData to 7 Oct 2026

REINFOREST: Reinforcing Semantic Code Similarity for Cross-Lingual Code Search Models

arXiv 2305.03843 ↗First posted 5 May 2023cs.SE cs.AI cs.PLcited by 3

Not on the map. Why?

Abstract (arXiv)

This paper introduces a novel code-to-code search technique that enhances the performance of Large Language Models (LLMs) by including both static and dynamic features as well as utilizing both similar and dissimilar examples during training. We present the first-ever code search method that encodes dynamic runtime information during training without the need to execute either the corpus under search or the search query at inference time and the first code search technique that trains on both positive and negative reference samples. To validate the efficacy of our approach, we perform a set of studies demonstrating the capability of enhanced LLMs to perform cross-language code-to-code search. Our evaluation demonstrates that the effectiveness of our approach is consistent across various model architectures and programming languages. We outperform the state-of-the-art cross-language search tool by up to 44.7%. Moreover, our ablation studies reveal that even a single positive and negative reference sample in the training process results in substantial performance improvements demonstrating both similar and dissimilar references are important parts of code search. Importantly, we show that enhanced well-crafted, fine-tuned models consistently outperform enhanced larger modern LLMs without fine tuning, even when enhancing the largest available LLMs highlighting the importance for open-sourced models. To ensure the reproducibility and extensibility of our research, we present an open-sourced implementation of our tool and training procedures called REINFOREST.

Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 17 of its 56 references that are in the map. First posted on arXiv 5 May 2023.

Builds on

17 of 56 references.

References · 17

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
  4. 2017Billion-scale similarity search with GPUscited by 2,477
  5. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  6. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
  7. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
  8. 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 355
  9. 2017Learning to Represent Programs with Graphscited by 219
  10. 2015Action-Conditional Video Prediction using Deep Networks in Atari Gamescited by 171
  11. 2015SourcererCC: Scaling Code Clone Detection to Big Codecited by 40
  12. 2022Code Search: A Survey of Techniques for Finding Codecited by 18
5 more
  1. 2018Automatic Clone Recommendation for Refactoring Based on the Present and the Pastcited by 5
  2. 2021Cross-Language Code Search using Static and Dynamic Analysescited by 4
  3. 2020SLACC: Simion-based Language Agnostic Code Clonescited by 3
  4. 2023Pathways to Leverage Transcompiler based Data Augmentation for Cross-Language Clone Detectioncited by 3
  5. 2018Obfuscation Resilient Search through Executable Classificationcited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 1; 2024: 1; 2025: 0; 2026: 1.

3 papers.