Evaluation of Siamese Networks for Semantic Code Search
원문 초록
With the increase in the number of open repositories and discussion forums, the use of natural language for semantic code search has become increasingly common. The accuracy of the results returned by such systems, however, can be low due to 1) limited shared vocabulary between code and user query and 2) inadequate semantic understanding of user query and its relation to code syntax. Siamese networks are well suited to learning such joint relations between data, but have not been explored in the context of code search. In this work, we evaluate Siamese networks for this task by exploring multiple extraction network architectures. These networks independently process code and text descriptions before passing them to a Siamese network to learn embeddings in a common space. We experiment on two different datasets and discover that Siamese networks can act as strong regularizers on networks that extract rich information from code and text, which in turn helps achieve impressive performance on code search beating previous baselines on $2$ programming languages. We also analyze the embedding space of these networks and provide directions to fully leverage the power of Siamese networks for semantic code search.
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
Zero-Shot Cross-Domain Code Search without Fine-Tuning
Repository-level Code Search with Neural Retrieval Methods
Isotropy Matters: Soft-ZCA Whitening of Embeddings for Semantic Code Search
ViC: Virtual Compiler Is All You Need For Assembly Code Search
CoIR: A Comprehensive Benchmark for Code Information Retrieval Models
CoSQA+: Pioneering the Multi-Choice Code Search Benchmark with Test-Driven Agents
토론
이 논문과 연결된 포럼 글이 아직 없습니다.