• Home
  • Search
  • Code Completion by Modeling Flattened Abstract Syntax Trees as Graphs
  • Cite Icon77
  • https://doi.org/10.1609/aaai.v35i16.17650Copy DOI Icon

Code Completion by Modeling Flattened Abstract Syntax Trees as Graphs

  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Code completion has become an essential component of integrated development environments. Contemporary code completion methods rely on the abstract syntax tree (AST) to generate syntactically correct code. However, they cannot fully capture the sequential and repetitive patterns of writing code and the structural information of the AST. To alleviate these problems, we propose a new code completion approach named CCAG, which models the flattened sequence of a partial AST as an AST graph. CCAG uses our proposed AST Graph Attention Block to capture different dependencies in the AST graph for representation learning in code completion. The sub-tasks of code completion are optimized via multi-task learning in CCAG, and the task balance is automatically achieved using uncertainty without the need to tune task weights. The experimental results show that CCAG has superior performance than state-of-the-art approaches and it is able to provide intelligent code completion.

Similar Papers
  • Conference Article
  • Citations4

Exploring and Improving Code Completion for Test Code

  • Apr 15, 2024
  • Tingwei Zhu +6
  • Conference Article
  • Citations84

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

  • Jul 13, 2020
  • Fang Liu +5
  • Conference Article
  • Citations169

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

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

A Two Phase Smart Code Editor

  • Jun 11, 2021
  • 2021 3rd International Congress on Human-Computer Interaction, Optimization and Robotic Applications (HORA)
  • Melike Serra Kalyon +1
  • 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
  • Citations10

A study on repetitiveness of code completion operations

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

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

  • Oct 24, 2023
  • iScience
  • Bing-Xue Du +4
  • Conference Article
  • Citations430

Learning from examples to improve code completion systems

  • Aug 24, 2009
  • Marcel Bruch +2
  • Conference Article
  • Citations82

CodeFill

  • May 21, 2022
  • Maliheh Izadi +2
  • Conference Article
  • Citations53

Efficient multi-task feature learning with calibration

  • Aug 24, 2014
  • Pinghua Gong +3
  • Conference Article
  • Citations5

Multivariate Load Interval Prediction of Integrated Energy System Based on Multitask Learning

  • Nov 01, 2019
  • Wenliang Liu +6
  • Conference Article
  • Citations13

Enhancing LLM-Based Coding Tools through Native Integration of IDE-Derived Static Context

  • Apr 20, 2024
  • Yichen Li +3
  • Conference Article
  • Citations94

Fast and Memory-Efficient Neural Code Completion

  • May 01, 2021
  • Alexey Svyatkovskiy +5
  • Conference Article
  • Citations2

APT: Adaptive Prefix-Tuning on Pretrained Models for Code Intelligence

  • Jun 30, 2024
  • Yue Wu +4
  • Research Article

Significance of multi-task deep learning neural networks for diagnosing clinically significant prostate cancer in plain abdominal CT.

  • May 02, 2025
  • Frontiers in oncology
  • Yujun Geng +6
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.