arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1409.7165cs.LGcs.IRcs.SE
收藏

基于内容正则化的异构度量学习在软件检索中的应用

Heterogeneous Metric Learning with Content-based Regularization for Software Artifact Retrieval

Chinese Academy of Sciences(中国科学院);Rutgers University(罗格斯大学);NEC Laboratories China(NEC中国实验室);University of Technology Sydney(悉尼科技大学);University of North Carolina at Charlotte(北卡罗来纳大学夏洛特分校)

Liang Wu, Hui Xiong, Liang Du, Bo Liu, Guandong Xu, Yong Ge, Yanjie Fu, Yuanchun Zhou, Jianhui Li

摘要:

软件工件检索问题的目标是在大型代码库中有效地定位软件工件,例如一段源代码。这个问题传统上通过文本查询来解决。换句话说,信息检索技术将基于查询和软件工件的文本表示之间的文本相似性来开发,该文本表示通过从程序的注释、标识符和描述中收集单词来生成。然而,除了这些语义信息之外,源代码本身还嵌入了丰富的信息。这些源代码,如果分析得当,可以是一个丰富的资源,以提高软件工件检索的努力。为此,本文提出了一种基于源代码的特征提取方法。具体地说,该方法既可以捕获源代码中的固有信息,又可以捕获隐藏在源代码的注释、描述和标识符中的语义信息。此外,我们设计了一个异构的度量学习方法,它允许集成代码功能和文本功能到同一个潜在的语义空间。反过来,这可以通过利用代码和文本特征的联合能力来帮助测量工件相似性。最后,大量的实验表明,该方法可以帮助提高软件工件检索的性能与显着的利润。

英文摘要:

The problem of software artifact retrieval has the goal to effectively locate software artifacts, such as a piece of source code, in a large code repository. This problem has been traditionally addressed through the textual query. In other words, information retrieval techniques will be exploited based on the textual similarity between queries and textual representation of software artifacts, which is generated by collecting words from comments, identifiers, and descriptions of programs. However, in addition to these semantic information, there are rich information embedded in source codes themselves. These source codes, if analyzed properly, can be a rich source for enhancing the efforts of software artifact retrieval. To this end, in this paper, we develop a feature extraction method on source codes. Specifically, this method can capture both the inherent information in the source codes and the semantic information hidden in the comments, descriptions, and identifiers of the source codes. Moreover, we design a heterogeneous metric learning approach, which allows to integrate code features and text features into the same latent semantic space. This, in turn, can help to measure the artifact similarity by exploiting the joint power of both code and text features. Finally, extensive experiments on real-world data show that the proposed method can help to improve the performances of software artifact retrieval with a significant margin.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑