paperbot · PL 论文追踪

全部论文 待读 收藏

P2 OCoR

OCoR:重叠感知的代码检索
ASE Proceedings of the 35th IEEE/ACM International Conference on Automated Software Engineering2020匹配度 2/10 · 该论文属于代码检索(code retrieval)方向,虽处于机器学习和程序语言的交叉领域,但与用户关注的静态分析、形式化验证、浮点/贝叶斯程序分析及其与 LLM 的交叉均无直接关联;其方法基于神经网络的名称/词重叠特征,也不是以 LLM/Agent 为工具来增强分析的研究。引用 28 inbox
Qihao Zhu, Zeyu Sun, Xiran Liang, Yingfei Xiong, Lu Zhang
crossref: 2026-09-12

AI 速览

一句话:提出重叠感知的代码检索方法 OCoR,利用名称与自然语言词之间的重叠关系提升检索效果。

该论文关注代码检索任务:给定自然语言描述,从代码片段集合中检索最相关的代码,以帮助开发者复用开源代码。现有基于神经网络的方法虽已成为主流,但未能捕捉一个重要特征——重叠。重叠有两类:不同人对同一概念可能使用不同名称,这些名称之间的重叠暗示潜在关联,例如“message”与“msg”;代码标识符与自然语言描述中的词语之间的重叠也暗示代码片段与描述可能相关。OCoR 将上述重叠作为潜在关联信号纳入代码检索。摘要主要阐述问题与动机,未报告具体数据集、评价指标或量化实验结果。

问题
自然语言描述与代码片段之间的语义匹配是代码检索的核心问题;现有神经网络方法未能利用名称之间以及代码标识符与描述词语之间的重叠关系。
方法
OCoR 将不同名称间的重叠和代码标识符与自然语言词之间的重叠作为潜在关联特征,用于改进代码检索中的相关性建模。
评估
摘要未明确给出评估方式,仅说明其面向基于自然语言描述检索最相关代码片段的代码检索任务。
原文摘要(Abstract)

Code retrieval helps developers reuse code snippets in the open-source projects. Given a natural language description, code retrieval aims to search for the most relevant code relevant among a set of code snippets. Existing state-of-the-art approaches apply neural networks to code retrieval. However, these approaches still fail to capture an important feature: overlaps. The overlaps between different names used by different people indicate that two different names may be potentially related (e.g., "message" and "msg"), and the overlaps between identifiers in code and words in natural language descriptions indicate that the code snippet and the description may potentially be related.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot5967,
  title = {OCoR},
  author = {Qihao Zhu and Zeyu Sun and Xiran Liang and Yingfei Xiong and Lu Zhang},
  booktitle = {ASE},
  year = {2020},
  doi = {10.1145/3324884.3416530}
}