SANER 2025
Tue 4 - Fri 7 March 2025 Montréal, Québec, Canada
Thu 6 Mar 2025 14:15 - 14:30 at M-1410 - Search & Similarity Chair(s): Fatemeh Hendijani Fard

Retrieval-Augmented Generation (RAG) enhances Large Language Models (LLMs) by integrating external knowledge bases, achieving state-of-the-art results in various coding tasks. The core of RAG is retrieving demonstration examples, which is essential to balance effectiveness (generation quality) and efficiency (retrieval time) for optimal performance. However, the high-dimensional nature of code demonstrations and large knowledge bases often create efficiency bottlenecks, which are overlooked in previous research. This paper systematically evaluates the efficiency-effectiveness trade-offs of retrievers across three coding tasks: Program Synthesis, Commit Message Generation, and Assertion Generation. We examined six retrievers: two sparse (BM25 and BM25L) and four dense retrievers, including one exhaustive (SBERT’s Semantic Search) and three approximate (ANNOY, LSH, and HNSW). Our findings show that while BM25 excels in effectiveness, it suffers in efficiency as the knowledge base grows beyond 1000 entries. In large-scale retrieval, efficiency differences become more pronounced, with approximate dense retrievers offering the greatest gains. For instance, in Commit Generation task, HNSW achieves a 44x speed up, while only with a 1.74% drop in RougeL compared with BM25. Our results also show that increasing the number of demonstrations in the prompt doesn’t always improve the effectiveness and can increase latency and lead to incorrect outputs. Our findings provide valuable insights for practitioners aiming to build efficient and effective RAG systems for coding tasks.

Thu 6 Mar

Displayed time zone: Eastern Time (US & Canada) change

14:00 - 15:30
Search & SimilarityResearch Papers / Industrial Track at M-1410
Chair(s): Fatemeh Hendijani Fard University of British Columbia
14:00
15m
Talk
BinEGA: Enhancing DNN-based Binary Code Similarity Detection through Efficient Graph Alignment
Research Papers
Shize Zhou Zhejiang University, Lirong Fu Hangzhou Dianzi University, Peiyu Liu Zhejiang University, Wenhai Wang Zhejiang University
14:15
15m
Talk
Evaluating the Effectiveness and Efficiency of Demonstration Retrievers in RAG for Code Tasks
Research Papers
Pengfei He University of Manitoba, Shaowei Wang University of Manitoba, Shaiful Chowdhury University of Manitoba, Tse-Hsun (Peter) Chen Concordia University
14:30
15m
Talk
Stack Trace Deduplication: Faster, More Accurately, and in More Realistic Scenarios
Research Papers
Egor Shibaev Constructor University, JetBrains, Denis Sushentsev JetBrains, Yaroslav Golubev JetBrains Research, Aleksandr Khvorov JetBrains; Constructor University Bremen
Pre-print
14:45
15m
Talk
Industrial-Scale Neural Network Clone Detection with Disk-Based Similarity Search
Industrial Track
Gul Aftab Ahmed , Muslim Chochlov , Abdul Razzaq , James Vincent Patten , Yuanhua Han , Guoxian Lu , Jim Buckley Lero - The Irish Software Research Centre and University of Limerick, David Gregg Trinity College Dublin, Ireland