mlsanityData to 14 Oct 2026

Beyond Function-Level Search: Repository-Aware Dual-Encoder Code Retrieval with Adversarial Verification

arXiv 2510.24749 ↗First posted 16 Oct 2025cs.SE cs.AIcited by 1

Not on the map. Why?

Abstract (arXiv)

The escalating complexity of modern codebases has intensified the need for retrieval systems capable of interpreting cross-component change intents, a capability fundamentally absent in conventional function-level search paradigms. While recent studies have improved the alignment between natural language queries and code snippets, retrieving contextually relevant code for specific change requests remains largely underexplored. To address this gap, we introduce RepoAlign-Bench, the first benchmark specifically designed to evaluate repository-level code retrieval under change request driven scenarios, encompassing 52k annotated instances. This benchmark shifts the retrieval paradigm from function-centric matching to holistic repository-level reasoning. Furthermore, we propose ReflectCode, an adversarial reflection augmented dual-tower architecture featuring disentangled code_encoder and doc_encoder components. ReflectCode dynamically integrates syntactic patterns, function dependencies, and semantic expansion intents through large language model guided reflection. Comprehensive experiments demonstrate that ReflectCode achieves 12.2% improvement in Top-5 Accuracy and 7.1% in Recall over state-of-the-art baselines, establishing a new direction for context-aware code retrieval.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 23 of its 46 references that are in the map. First posted on arXiv 16 Oct 2025.

Builds on

23 of 46 references.

References · 23

  1. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  3. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
  4. 2018A Call for Clarity in Reporting BLEU Scorescited by 1,799
  5. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
  6. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 906
  7. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
  8. 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 498
  9. 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 367
  10. 2022A Systematic Evaluation of Large Language Models of Codecited by 363
  11. 2018code2vec: Learning Distributed Representations of Codecited by 250
  12. 2022DocPrompting: Generating Code by Retrieving the Docscited by 153
11 more
  1. 2024CodeRAG-Bench: Can Retrieval Augment Code Generation?cited by 91
  2. 2016Latent Predictor Networks for Code Generationcited by 73
  3. 2024MarsCode Agent: AI-native Automated Bug Fixingcited by 71
  4. 2019TBar: Revisiting Template-based Automated Program Repaircited by 65
  5. 2024RAG-Instruct: Boosting LLMs with Diverse Retrieval-Augmented Instructionscited by 25
  6. 2025TACO: Enhancing Multimodal In-context Learning via Task Mapping-Guided Sequence Configurationcited by 23
  7. 2025QFFT, Question-Free Fine-Tuning for Adaptive Reasoningcited by 15
  8. 2024RAMBO: Enhancing RAG-based Repository-Level Method Body Completioncited by 10
  9. 2025Position Bias Mitigates Position Bias:Mitigate Position Bias Through Inter-Position Knowledge Distillationcited by 9
  10. 2025Don't Reach for the Stars: Rethinking Topology for Resilient Federated Learningcited by 3
  11. 2025SupCLAP: Controlling Optimization Trajectory Drift in Audio-Text Contrastive Learning with Support Vector Regularizationcited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.