A Convolutional Attention Network for Extreme Summarization of Source Code

By Miltiadis Allamanis, Hao Peng, Charles Sutton. 2016

626 citations recorded by the source corpus.

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.

Subfields: Artificial Intelligence, Information Systems, Natural Language Processing, Signal Processing

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Graham Neubig
  2. Mohit Bansal
  3. Percy Liang
  4. Luke S. Zettlemoyer
  5. Yejin Choi
  6. Jianfeng Gao
  7. Noah A. Smith
  8. Quoc V. Le

In Information Systems

  1. Miltiadis Allamanis
  2. Prem Devanbu
  3. Charles Sutton
  4. Uri Alon
  5. Michael Pradel
  6. Eran Yahav
  7. Baishakhi Ray
  8. Toufique Ahmed

In Natural Language Processing

  1. Graham Neubig
  2. Yejin Choi
  3. Luke S. Zettlemoyer
  4. Mohit Bansal
  5. Noah A. Smith
  6. Omer Levy
  7. Percy Liang
  8. Kyunghyun Cho

In Signal Processing

  1. Eran Yahav
  2. Uri Alon
  3. Michael Pradel
  4. Charles Sutton
  5. Miltiadis Allamanis
  6. Baishakhi Ray
  7. Prem Devanbu
  8. Saikat Chakraborty

Citations in the corpus