• Medientyp: E-Artikel
  • Titel: KAPE: k NN-based Performance Testing for Deep Code Search
  • Beteiligte: Guo, Yuejun; Hu, Qiang; Xie, Xiaofei; Cordy, Maxime; Papadakis, Mike; Le Traon, Yves
  • Erschienen: Association for Computing Machinery (ACM), 2024
  • Erschienen in: ACM Transactions on Software Engineering and Methodology
  • Sprache: Englisch
  • DOI: 10.1145/3624735
  • ISSN: 1049-331X; 1557-7392
  • Schlagwörter: Software
  • Entstehung:
  • Anmerkungen:
  • Beschreibung: <jats:p> 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 <jats:bold>k</jats:bold> NN-b <jats:bold>a</jats:bold> sed <jats:bold>p</jats:bold> erformance t <jats:bold>e</jats:bold> sting ( <jats:bold>KAPE</jats:bold> ) 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). </jats:p>