A Convolutional Attention Network for Extreme Summarization of Source Code

被引:0
|
作者
Allamanis, Miltiadis [1 ]
Peng, Hao [2 ]
Sutton, Charles [3 ]
机构
[1] Univ Edinburgh, Sch Informat, Edinburgh EH8 9AB, Midlothian, Scotland
[2] Peking Univ, Sch Elect Engn & Comp Sci, Beijing 100871, Peoples R China
[3] Univ Edinburgh, Sch Informat, Edinburgh EH8 9AB, Midlothian, Scotland
基金
英国工程与自然科学研究理事会;
关键词
D O I
暂无
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Attention mechanisms in neural networks have proved useful for problems in which the input and output do not have fixed dimension. Often there exist features that are locally translation invariant and would be valuable for directing the model's attention, but previous attentional architectures are not constructed to learn such features specifically. We introduce an attentional neural network that employs convolution on the input tokens to detect local time-invariant and long-range topical attention features in a context-dependent way. We apply this architecture to the problem of extreme summarization of source code snippets into short, descriptive function name-like summaries. Using those features, the model sequentially generates a summary by marginalizing over two attention mechanisms: one that predicts the next summary token based on the attention weights of the input tokens and another that is able to copy a code token as-is directly into the summary. We demonstrate our convolutional attention neural network's performance on 10 popular Java projects showing that it achieves better performance compared to previous attentional mechanisms.
引用
收藏
页数:10
相关论文
共 50 条
  • [31] Video summarization with a convolutional attentive adversarial network
    Liang, Guoqiang
    Lv, Yanbing
    Li, Shucheng
    Zhang, Shizhou
    Zhang, Yanning
    [J]. PATTERN RECOGNITION, 2022, 131
  • [32] A two-stage attention augmented fully convolutional network-based dynamic video summarization
    Deeksha Gupta
    Akashdeep Sharma
    [J]. Multimedia Systems, 2023, 29 : 3685 - 3701
  • [33] A two-stage attention augmented fully convolutional network-based dynamic video summarization
    Gupta, Deeksha
    Sharma, Akashdeep
    [J]. MULTIMEDIA SYSTEMS, 2023, 29 (06) : 3685 - 3701
  • [34] Incorporating word attention with convolutional neural networks for abstractive summarization
    Yuan, Chengzhe
    Bao, Zhifeng
    Sanderson, Mark
    Tang, Yong
    [J]. WORLD WIDE WEB-INTERNET AND WEB INFORMATION SYSTEMS, 2020, 23 (01): : 267 - 287
  • [35] Incorporating word attention with convolutional neural networks for abstractive summarization
    Chengzhe Yuan
    Zhifeng Bao
    Mark Sanderson
    Yong Tang
    [J]. World Wide Web, 2020, 23 : 267 - 287
  • [36] TraceLab Components for Reproducing Source Code Summarization Experiments
    Cruz, Breno Dantas
    McBurney, Paul W.
    McMillan, Collin
    [J]. 32ND IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION (ICSME 2016), 2016, : 610 - 610
  • [37] An Extractive-and-Abstractive Framework for Source Code Summarization
    Sun, Weisong
    Fang, Chunrong
    Chen, Yuchen
    Zhang, Quanjun
    Tao, Guanhong
    You, Yudu
    Han, Tingxu
    Ge, Yifei
    Hu, Yuling
    Luo, Bin
    Chen, Zhenyu
    [J]. ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2024, 33 (03)
  • [38] Semantic similarity loss for neural source code summarization
    Su, Chia-Yi
    McMillan, Collin
    [J]. JOURNAL OF SOFTWARE-EVOLUTION AND PROCESS, 2024,
  • [39] Evaluating Source Code Summarization Techniques: Replication and Expansion
    Eddy, Brian P.
    Robinson, Jeffrey A.
    Kraft, Nicholas A.
    Carver, Jeffrey C.
    [J]. 2013 IEEE 21ST INTERNATIONAL CONFERENCE ON PROGRAM COMPREHENSION (ICPC), 2013, : 13 - 22
  • [40] Retrieval-based Neural Source Code Summarization
    Zhang, Jian
    Wang, Xu
    Zhang, Hongyu
    Sun, Hailong
    Liu, Xudong
    [J]. 2020 ACM/IEEE 42ND INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE 2020), 2020, : 1385 - 1397