Which Programming Language and Model Work Best With LLM-as-a-Judge For Code Retrieval?
Not on the map. Why?
Abstract (arXiv)
Code search is an important information retrieval application. Benefits of better code search include faster new developer on-boarding, reduced software maintenance, and ease of understanding for large repositories. Despite improvements in search algorithms and search benchmarks, the domain of code search has lagged behind. One reason is the high cost of human annotation for code queries and answers. While humans may annotate search results in general text QA systems, code annotations require specialized knowledge of a programming language (PL), as well as domain specific software engineering knowledge. In this work we study the use of Large Language Models (LLMs) to retrieve code at the level of functions and to generate annotations for code search results. We compare the impact of the retriever representation (sparse vs. semantic), programming language, and LLM by comparing human annotations across several popular languages (C, Java, Javascript, Go, and Python). We focus on repositories that implement common data structures likely to be implemented in any PLs. For the same human annotations, we compare several LLM-as-a-Judge models to evaluate programming language and other affinities between LLMs. We find that the chosen retriever and PL exhibit affinities that can be leveraged to improve alignment of human and AI relevance determinations, with significant performance implications. We also find differences in representation (sparse vs. semantic) across PLs that impact alignment of human and AI relevance determinations. We propose using transpilers to bootstrap scalable code search benchmark datasets in other PLs and in a case study demonstrate that human-AI relevance agreement rates largely match the (worst case) human-human agreement under study. The application code used in this work is available at hrefhttps://github.com/rlucas7/code-searcher/this github repo.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 23 of its 44 references that are in the map. First posted on arXiv 30 Sep 2025.
Builds on
23 of 44 references.
References · 23
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
- 2024A Survey on LLM-as-a-Judgecited by 1,423
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
- 2022The Stack: 3 TB of permissively licensed source codecited by 359
- 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 333
- 2024CodeAgent: Enhancing Code Generation with Tool-Integrated Agent Systems for Real-World Repo-level Coding Challengescited by 282
- 2023Large language models can accurately predict searcher preferencescited by 131
- 2024Limitations of the LLM-as-a-Judge Approach for Evaluating LLM Outputs in Expert Knowledge Taskscited by 106
- 2024BM25S: Orders of magnitude faster lexical search via eager sparse scoringcited by 88
- 2021CoSQA: 20,000+ Web Queries for Code Search and Question Answeringcited by 75
- 2024Repoformer: Selective Retrieval for Repository-Level Code Completioncited by 55
- 2024"We Need Structured Output": Towards User-centered Constraints on Large Language Model Outputcited by 46
11 more
- 2024UMBRELA: UMbrela is the (Open-Source Reproduction of the) Bing RELevance Assessorcited by 42
- 2024Code as Reward: Empowering Reinforcement Learning with VLMscited by 39
- 2024Scaling Laws For Dense Retrievalcited by 29
- 2024LLM-based relevance assessment still can't replace human relevance assessmentcited by 27
- 2023The Vault: A Comprehensive Multilingual Dataset for Advancing Code Understanding and Generationcited by 20
- 2024Prompt-based Code Completion via Multi-Retrieval Augmented Generationcited by 16
- 2024LLM-Assisted Relevance Assessments: When Should We Ask LLMs for Help?cited by 11
- 2020Multilingual Evidence Retrieval and Fact Verification to Combat Global Disinformation: The Power of Polyglotismcited by 3
- 2024DIRAS: Efficient LLM Annotation of Document Relevance in Retrieval Augmented Generationcited by 3
- 2022Stack graphs: Name resolution at scalecited by 2
- 2023Efficient Large-Scale Visual Representation Learning And Evaluationcited by 1
Built on by
Not cited yet.