Analysing the Behaviour of Tree-Based Neural Networks in Regression Tasks
Not on the map. Why?
Abstract (arXiv)
The landscape of deep learning has vastly expanded the frontiers of source code analysis, particularly through the utilization of structural representations such as Abstract Syntax Trees (ASTs). While these methodologies have demonstrated effectiveness in classification tasks, their efficacy in regression applications, such as execution time prediction from source code, remains underexplored. This paper endeavours to decode the behaviour of tree-based neural network models in the context of such regression challenges. We extend the application of established models--tree-based Convolutional Neural Networks (CNNs), Code2Vec, and Transformer-based methods--to predict the execution time of source code by parsing it to an AST. Our comparative analysis reveals that while these models are benchmarks in code representation, they exhibit limitations when tasked with regression. To address these deficiencies, we propose a novel dual-transformer approach that operates on both source code tokens and AST representations, employing cross-attention mechanisms to enhance interpretability between the two domains. Furthermore, we explore the adaptation of Graph Neural Networks (GNNs) to this tree-based problem, theorizing the inherent compatibility due to the graphical nature of ASTs. Empirical evaluations on real-world datasets showcase that our dual-transformer model outperforms all other tree-based neural networks and the GNN-based models. Moreover, our proposed dual transformer demonstrates remarkable adaptability and robust performance across diverse datasets.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 30 of its 52 references that are in the map. First posted on arXiv 17 Jun 2024.
Builds on
30 of 52 references.
References · 30
- 2017Attention Is All You Needcited by 59,932
- 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,282
- 2017Graph Attention Networkscited by 8,854
- 2017Inductive Representation Learning on Large Graphscited by 6,284
- 2018How Powerful are Graph Neural Networks?cited by 4,355
- 2019Fast Graph Representation Learning with PyTorch Geometriccited by 2,414
- 2020On the Bottleneck of Graph Neural Networks and its Practical Implicationscited by 624
- 2018code2vec: Learning Distributed Representations of Codecited by 249
- 2023A Survey on Oversmoothing in Graph Neural Networkscited by 246
- 2019A Gentle Introduction to Deep Learning for Graphscited by 107
- 2020Retrieval-Augmented Generation for Code Summarization via Hybrid GNNcited by 89
- 2023Graph Neural Networks for temporal graphs: State of the art, open challenges, and opportunitiescited by 60
18 more
- 2020Self-Supervised Contrastive Learning for Code Retrieval and Summarization via Semantic-Preserving Transformationscited by 49
- 2021TreeBERT: A Tree-Based Pre-Trained Model for Programming Languagecited by 40
- 2023The expressive power of pooling in Graph Neural Networkscited by 35
- 2019Learning and Evaluating Contextual Embedding of Source Codecited by 33
- 2020ProGraML: Graph-based Deep Learning for Program Optimization and Analysiscited by 23
- 2020InferCode: Self-Supervised Learning of Code Representations by Predicting Subtreescited by 23
- 2022Graph Neural Networks Designed for Different Graph Types: A Surveycited by 21
- 2021Fault Localization with Code Coverage Representation Learningcited by 16
- 2021A Multi-Modal Transformer-based Code Summarization Approach for Smart Contractscited by 16
- 2023Hypergraph Neural Networks through the Lens of Message Passing: A Common Perspective to Homophily and Architecture Designcited by 13
- 2020Modeling Functional Similarity in Source Code with Graph-Based Siamese Networkscited by 10
- 2023Meta-Path Learning for Multi-relational Graph Neural Networkscited by 10
- 2021Graph Neural Networks for Graph Drawingcited by 8
- 2022Graph Representation Learning for Multi-Task Settings: a Meta-Learning Approachcited by 5
- 2022TEP-GNN: Accurate Execution Time Prediction of Functional Tests using Graph Neural Networkscited by 5
- 2017Cross-Language Learning for Program Classification using Bilateral Tree-Based Convolutional Neural Networkscited by 4
- 2023A Unified Active Learning Framework for Annotating Graph Data with Application to Software Source Code Performance Predictioncited by 4
- 2022Emotion Analysis using Multi-Layered Networks for Graphical Representation of Tweetscited by 3
Built on by
Not cited yet.