paperbot · PL 论文追踪

全部论文 待读 收藏

P2 CC2Vec

CC2Vec
ICSE Proceedings of the ACM/IEEE 42nd International Conference on Software Engineering2020匹配度 2/10 · 该论文研究代码变更的神经表示学习,属于机器学习与程序语言交叉,但未涉及用户核心关注的静态分析、LLM/Agent、浮点程序分析或贝叶斯程序分析。它也不以当前较强LLM/Agent为工具,因此与研究方向仅有较弱的间接关联。引用 174 inbox
Thong Hoang, Hong Jin Kang, David Lo, Julia Lawall
crossref: 2026-09-12

AI 速览

一句话:提出 CC2Vec,一种以日志消息为语义意图引导、学习代码变更表示的神经网络模型。

现有软件补丁研究通常依赖为单一任务人工设计的特征,难以为每个任务重新识别特征。本文提出 CC2Vec,一种学习代码变更表示的神经网络模型。与直接依赖人工特征不同,CC2Vec 以代码变更伴随的日志消息作为语义意图信号进行引导,并利用注意力机制建模代码变更的层次结构;同时采用多种比较函数刻画删除代码与新增代码之间的差异。摘要未报告具体数据集与定量结果,但该工作将代码变更表示学习与日志语义结合,为后续补丁相关任务提供了一种不依赖任务特定手工特征的表示方法。

问题
现有软件补丁工作常使用任务特定特征,且需人工为每个任务识别特征,难以复用。
方法
提出 CC2Vec,用日志消息引导神经网络学习代码变更表示,通过注意力机制建模层级结构,并用多种比较函数识别删除与新增代码的差异。
评估
摘要未描述评估方式或实验结果。
原文摘要(Abstract)

Existing work on software patches often use features specific to a single task. These works often rely on manually identified features, and human effort is required to identify these features for each task. In this work, we propose CC2Vec, a neural network model that learns a representation of code changes guided by their accompanying log messages, which represent the semantic intent of the code changes. CC2Vec models the hierarchical structure of a code change with the help of the attention mechanism and uses multiple comparison functions to identify the differences between the removed and added code.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot5574,
  title = {CC2Vec},
  author = {Thong Hoang and Hong Jin Kang and David Lo and Julia Lawall},
  booktitle = {ICSE},
  year = {2020},
  doi = {10.1145/3377811.3380361}
}