Code retrieval is to find the code snippet from a large corpus of source code repositories that highly matches the query of natural language description. Recent work mainly uses natural language processing techniques to process both query texts (i.e., human natural language) and code snippets (i.e., machine programming language), however neglecting the deep structured features of query texts and source codes, both of which contain rich semantic information. In this paper, we propose an end-to-end deep graph matching and searching (DGMS) model based on graph neural networks for the task of semantic code retrieval. To this end, we first represent both natural language query texts and programming language code snippets with the unified graph-structured data, and then use the proposed graph matching and searching model to retrieve the best matching code snippet. In particular, DGMS not only captures more structural information for individual query texts or code snippets but also learns the fine-grained similarity between them by cross-attention based semantic matching operations. We evaluate the proposed DGMS model on two public code retrieval datasets with two representative programming languages (i.e., Java and Python). Experiment results demonstrate that DGMS significantly outperforms state-of-the-art baseline models by a large margin on both datasets. Moreover, our extensive ablation studies systematically investigate and illustrate the impact of each part of DGMS.
Toward the Understanding of Deep Text Matching Models for Information Retrieval
Sogou Inc.(搜狗公司);Institute for AI Industry Research, Tsinghua University(清华大学人工智能产业研究院);Data Intelligence System Research Center, Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所数据智能系统研究中心);CAS Key Lab of Network Data Science and Technology, Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所网络数据科学与技术重点实验室)
School of Computer Science and Engineering, Nanjing University of Science and Technology(南京理工大学计算机科学与工程学院);School of Electrical and Information Engineering, The University of Sydney(悉尼大学电气与信息工程学院)
EASNet: Searching Elastic and Accurate Network Architecture for Stereo Matching
Harbin Institute of Technology (Shenzhen)(哈尔滨工业大学(深圳));Guangdong Provincial Key Laboratory of Novel Security Intelligence Technologies(广东省新型安全智能技术重点实验室);Hong Kong Baptist University(香港浸会大学);The Hong Kong University of Science and Technology(香港科技大学);XGRIDS;The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州))
Hybrid Inverted Index Is a Robust Accelerator for Dense Retrieval
Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学高瓴人工智能学院);Beijing Academy of Artificial Intelligence(北京人工智能研究院);Microsoft Research Asia(微软亚洲研究院)
Stanford University(斯坦福大学);Harvard University(哈佛大学);Harvard Medical School(哈佛医学院);Brigham and Women’s Hospital(布莱根和妇女医院);University of Texas Health Science Center at San Antonio(德克萨斯大学圣安东尼奥健康科学中心);Jawaharlal Institute of Postgraduate Medical Education and Research(贾瓦哈拉尔研究生医学教育与研究学院)
SatIR: Scalable High-Recall Constraint-Satisfaction-Based Information Retrieval for Clinical Trials Matching
Department of Computer Science, Stanford University(斯坦福大学计算机科学系);Samueli Electrical and Computer Engineering, UCLA(UCLA Samueli电气与计算机工程系);Department of Computer Science and Informatics, Emory University(埃默里大学计算机科学与信息学系);Mayo Clinic(梅奥诊所)