arrow
返回

KAPE: kNN-based Performance Testing for Deep Code Search

delete2023-12-21
delete0
delete
OA
AI
Y
Yuejun Guo
Q
Qiang Hu *
X
Xiaofei Xie
M
Maxime Cordy
M
Mike Papadakis
Y
Yves Le Traon
DOI:10.1145/3624735delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Code search is a common yet important activity of software developers. An efficient code search model can largely facilitate the development process and improve the programming quality. Given the superb performance of learning the contextual representations, deep learning models, especially pre-trained language-models, have been widely explored for the code search task. However, studies mainly focus on proposing new architectures for ever-better performance on designed test sets but ignore the performance on unseen test data where only natural language queries are available. The same problem in other domains, e.g., CV and NLP, is usually solved by test input selection that uses a subset of the unseen set to reduce the labeling effort. However, approaches from other domains are not directly applicable and still require labeling effort. In this article, we propose the kNN-based performance testing (KAPE) to efficiently solve the problem without manually matching code snippets to test queries. The main idea is to use semantically similar training data to perform the evaluation. Extensive experiments on six programming language datasets, three state-of-the-art pre-trained models, and seven baseline methods demonstrate that KAPE can effectively assess the model performance (e.g., CodeBERT achieves MRR 0.5795 on JavaScript) with a slight difference (e.g., 0.0261).
Keyword:
Deep code search
software testing
deep learning testing
test selection

期刊

A
ACM Transactions on Software Engineering and Methodology
IF:
6.2
论文数:
1.2K
被引数:
3.4K

机构

S
Singapore Management University
学者数:
1.5K
论文数: 2.5K
被引数: 3.5K
L
luxembourg institute of science & technology
学者数:
1.9K
论文数: 1.8K
被引数: 1
U
university of luxembourg
学者数:
5.2K
论文数: 4.8K
被引数: 4
学者 查看更多机构
引用论文

引用论文

No Perisaccadic Mislocalization with Abruptly Cancelled Saccades
err2014-04-16
err0
errOAAI
errJeroen Atsma; Femke Maij; Brian D. Corneil; W. Pieter Medendorp
err分享
err收藏
err分享
err收藏
err
IF0
err
err0
PREAI
err
err分享
err收藏
SOSRepair: Expressive Semantic Search for Real-World Program Repair
err2021-10-01
err20
errOAAI
errAfzal, Afsoon; Motwani, Manish; Stolee, Kathryn T.; Brun, Yuriy; Le Goues, Claire
err分享
err收藏
err分享
err收藏
学者 查看更多内容