武汉大学自然科学学报(英文版)2023,Vol.28Issue(6) :493-507.DOI:10.1051/wujns/2023286493

Multi-View Feature Fusion Model for Software Bug Repair Pattern Prediction

XU Yong CHENG Ming
武汉大学自然科学学报(英文版)2023,Vol.28Issue(6) :493-507.DOI:10.1051/wujns/2023286493

Multi-View Feature Fusion Model for Software Bug Repair Pattern Prediction

XU Yong 1CHENG Ming2
扫码查看

作者信息

  • 1. School of Mathematics and Statistics,Zhaoqing University,Zhaoqing 526040,Guangdong,China
  • 2. Department of Medical Information,The First Affiliated Hospital of Zhengzhou University,Zhengzhou 450000,Henan,China
  • 折叠

Abstract

Many search-based Automatic Program Repair(APR)techniques employ a set of repair patterns to generate candidate patches.Regarding repair pattern selection,existing search-based APR techniques either randomly select a repair pattern from the repair pattern set to apply or prioritize all repair patterns based on the bug's context information.In this paper,we introduce PatternNet,a multi-view feature fusion model capable of predicting the repair pattern for a reported software bug.To accomplish this task,PatternNet first extracts multi-view features from the pair of buggy code and bug report using different models.Specifically,a transformer-based model(i.e.,UniXcoder)is utilized to obtain the bimodal feature representation of the buggy code and bug report.Additionally,an Abstract Syntax Tree(AST)-based neural model(i.e.,ASTNN)is employed to learn the feature representation of the buggy code.Second,a co-attention mechanism is adopted to capture the dependencies between the statement trees in the AST of the buggy code and the textual tokens of the reported bug,resulting in co-attentive features between statement trees and reported bug's textual tokens.Finally,these multi-view features are combined into a unified representation using a feature fusion network.We quantitatively demonstrate the effectiveness of PatternNet and the feature fusion network for predicting software bug repair patterns.

Key words

Automatic Program Repair(APR)/bug repair pattern prediction/Recurrent Neural Network(RNN)/transformer/co-attention

引用本文复制引用

基金项目

国家自然科学基金(61802350)

出版年

2023
武汉大学自然科学学报(英文版)
武汉大学

武汉大学自然科学学报(英文版)

CSTPCDCSCD
影响因子:0.066
ISSN:1007-1202
参考文献量1
段落导航相关论文