• Home
  • Search
  • A Self-Attentional Neural Architecture for Code Completion with Multi-Task Learning
  • Open Access IconOpen Access
  • Cite Icon84
  • https://doi.org/10.1145/3387904.3389261Copy DOI Icon

A Self-Attentional Neural Architecture for Code Completion with Multi-Task Learning

  • Jul 13, 2020
  • Fang Liu +5 more
Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Code completion, one of the most useful features in the Integrated Development Environments (IDEs), can accelerate software development by suggesting the libraries, APIs, and method names in real-time. Recent studies have shown that statistical language models can improve the performance of code completion tools through learning from large-scale software repositories. However, these models suffer from three major drawbacks: a) The hierarchical structural information of the programs is not fully utilized in the program's representation; b) In programs, the semantic relationships can be very long. Existing recurrent neural networks based language models are not sufficient to model the long-term dependency. c) Existing approaches perform a specific task in one model, which leads to the underuse of the information from related tasks. To address these challenges, in this paper, we propose a self-attentional neural architecture for code completion with multi-task learning. To utilize the hierarchical structural information of the programs, we present a novel method that considers the path from the predicting node to the root node. To capture the long-term dependency in the input programs, we adopt a self-attentional architecture based network as the base language model. To enable the knowledge sharing between related tasks, we creatively propose a Multi-Task Learning (MTL) framework to learn two related tasks in code completion jointly. Experiments on three real-world datasets demonstrate the effectiveness of our model when compared with state-of-the-art methods.

Similar Papers
  • Conference Article
  • Citations169

Multi-task learning based pre-trained language model for code completion

  • Dec 21, 2020
  • Fang Liu +3
  • Research Article
  • Citations3

Exploring the Impact of Vocabulary Techniques on Code Completion: A Comparative Approach

  • Jan 13, 2024
  • International Journal of Software Engineering and Knowledge Engineering
  • Yasir Hussain +3
  • Conference Article
  • Citations7

Semi-Supervised Life-Long Learning with Application to Sensing

  • Dec 01, 2007
  • Qiuhua Liu +2
  • Book Chapter

Multitask Deep Learning Model with Efficient Encoding Layer and Enhanced Parallel Convolution Block

  • Jan 01, 2022
  • Anupam Biswas +4
  • Conference Article
  • Citations10

A study on repetitiveness of code completion operations

  • Sep 01, 2012
  • Takayuki Omori +2
  • Research Article
  • Citations1

An approach framework of transfer learning, adversarial training and hierarchical multi-task learning - a case study of disinformation detection with offensive text

  • Jan 01, 2022
  • Journal of Physics: Conference Series
  • Shravan Chandra +1
  • Research Article
  • Citations30

A unified modeling framework for lane change intention recognition and vehicle status prediction

  • Oct 31, 2023
  • Physica A: Statistical Mechanics and its Applications
  • Renteng Yuan +4
  • Research Article
  • Citations22

ADMET property prediction via multi-task graph learning under adaptive auxiliary task selection

  • Oct 24, 2023
  • iScience
  • Bing-Xue Du +4
  • Research Article
  • Citations77

Code Completion by Modeling Flattened Abstract Syntax Trees as Graphs

  • May 18, 2021
  • Proceedings of the AAAI Conference on Artificial Intelligence
  • Yanlin Wang +1
  • Research Article
  • Citations33

Multitask Learning for Crash Analysis: A Fine-Tuned LLM Framework Using Twitter Data

  • Sep 01, 2024
  • Smart Cities
  • Shadi Jaradat +4
  • Conference Article
  • Citations19

Multi-task Learning with Bidirectional Language Models for Text Classification

  • Jul 01, 2019
  • Qi Yang +1
  • Conference Article
  • Citations16

Multi-Task Learning with Calibrated Mixture of Insightful Experts

  • May 01, 2022
  • Sinan Wang +5
  • Research Article
  • Citations41

Data Poisoning Attacks on Multi-Task Relationship Learning

  • Apr 26, 2018
  • Proceedings of the AAAI Conference on Artificial Intelligence
  • Mengchen Zhao +4
  • Book Chapter
  • Citations916

Multitask Learning: A Knowledge-Based Source of Inductive Bias

  • Jan 01, 1993
  • Machine Learning Proceedings 1993
  • Richard A Caruana
  • Conference Article
  • Citations8

Robust Dynamic Trajectory Regression on Road Networks: A Multi-task Learning Framework

  • Dec 01, 2014
  • Aiqing Huang +3
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.