arrow
Return

Tree Variational Autoencoder for Code

delete2025-01-01
delete0
delete
OA
AI
V
Vadim Liventsev *
S
Sander de Bruin
A
Aki Härmä
M
Milan Petković
DOI:10.1109/ACCESS.2025.3532522delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Autoencoder models of source code are an emerging alternative to autoregressive large language models with important benefits for genetic improvement of software. We hypothesize that encoder-decoder architectures are suboptimal for source code because they ignore the grammatical structure that can be derived with an Abstract Syntax Tree parser. We propose a structured Variational Auto-Encoder based on TreeLSTM that operates directly on the AST. We train it along with a baseline sequence VAE on a dataset of competitive programming submissions We find the structured model to perform better in most tests, with some notable exceptions. These findings suggest structured autoencoder models could enable more effective generation and manipulation of source code for tasks like automated bug fixing and generative programming.
Keywords:
Decoding
Codes
Autoencoders
Vectors
Predictive models
Recurrent neural networks
Logic gates
Vocabulary
Source coding
Genetic programming
Automatic programming
representation learning
long short term memory

Journal

IEEE Access cover
IEEE Access
IF:
3.6
Papers:
9.8W
Citations:
29.4W

Organization

M
Maastricht University
Scholars:
3.1W
Papers: 2.8W
Citations: 277
P
Philips
Scholars:
4.0K
Papers: 3.4K
Citations: 1
E
Eindhoven University of Technology
Scholars:
1.6W
Papers: 1.5W
Citations: 2.2W
researcher View more organizations