paper-with-me

홈 › Papers

CodeGRU: Context-aware Deep Learning with Gated Recurrent Unit for Source Code Modeling

2019-03-03 · Yasir Hussain, Zhiqiu Huang, Yu Zhou, Senzhang Wang

Recently deep learning based Natural Language Processing (NLP) models have shown great potential in the modeling of source code. However, a major limitation of these approaches is that they take source code as simple tokens of text and ignore its contextual, syntactical and structural dependencies. In this work, we present CodeGRU, a gated recurrent unit based source code language model that is capable of capturing source code's contextual, syntactical and structural dependencies. We introduce a novel approach which can capture the source code context by leveraging the source code token types. Further, we adopt a novel approach which can learn variable size context by taking into account source code's syntax, and structural information. We evaluate CodeGRU with real-world data set and it shows that CodeGRU outperforms the state-of-the-art language models and help reduce the vocabulary size up to 24.93\%. Unlike previous works, we tested CodeGRU with an independent test set which suggests that our methodology does not requisite the source code comes from the same domain as training data while providing suggestions. We further evaluate CodeGRU with two software engineering applications: source code suggestion, and source code completion. Our experiment confirms that the source code's contextual information can be vital and can help improve the software language models. The extensive evaluation of CodeGRU shows that it outperforms the state-of-the-art models. The results further suggest that the proposed approach can help reduce the vocabulary size and is of practical use for software developers.

📄 PDF Abstract BibTeX arXiv:1903.00884

Code (1)

yaxirhuxxain/Source-Code-Suggestion 공식 구현 tf

Tasks

Code CompletionCode GenerationLanguage Modelling

Similar Papers 제목 키워드 기반

Scene Labeling using Gated Recurrent Units with Explicit Long Range Conditioning

2016-11-22 · Qiangui Huang, Weiyue Wang, Kevin Zhou, Suya You 외

Recurrent neural network (RNN), as a powerful contextual dependency modeling framework, has been widely applied to scene labeling problems. However, this work shows that directly applying traditional RNN architectures, w…

Scene Labeling

Gated Recurrent Unit Based Acoustic Modeling with Future Context

2018-05-18 · Jie Li, Xiaorui Wang, Yuan-Yuan Zhao, Yan Li

The use of future contextual information is typically shown to be helpful for acoustic modeling. However, for the recurrent neural network (RNN), it's not so easy to model the future temporal context effectively, meanwhi…

Improving Gated Recurrent Unit Based Acoustic Modeling with Batch Normalization and Enlarged Context

2018-11-26 · Jie Li, Yahui Shan, Xiaorui Wang, Yan Li

The use of future contextual information is typically shown to be helpful for acoustic modeling. Recently, we proposed a RNN model called minimal gated recurrent unit with input projection (mGRUIP), in which a context mo…

Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modeling

2014-12-11 · Junyoung Chung, Caglar Gulcehre, Kyunghyun Cho, Yoshua Bengio

In this paper we compare different types of recurrent units in recurrent neural networks (RNNs). Especially, we focus on more sophisticated units that implement a gating mechanism, such as a long short-term memory (LSTM)…

Music Modeling

Adaptive Detrending to Accelerate Convolutional Gated Recurrent Unit Training for Contextual Video Recognition

2017-05-24 · Minju Jung, Haanvid Lee, Jun Tani

Based on the progress of image recognition, video recognition has been extensively studied recently. However, most of the existing methods are focused on short-term but not long-term video recognition, called contextual …

Video Recognition