Structure‐Aware Representation Learning for Effective Performance Prediction
Open Access
- 8 April 2025
- journal article
- Published by Wiley in Concurrency and Computation: Practice and Experience
- Vol. 37 (9-11)
Abstract
Application performance is a function of several unknowns stemming from the interactions between the application, runtime, OS, and underlying hardware, making it challenging to model performance using deep learning techniques, especially without a large labeled dataset. Collecting such labeled longitudinal datasets can take weeks. Intuitively, developers could save analysis time during code development by taking a comparative approach between multiple applications. However, the unknown dynamic interactions between applications and execution environments make it difficult for deep learning‐based models to predict the performance of new applications. In this paper, we address these problems by presenting a labeled dataset for the community and taking a comparative analysis approach to explore the source code differences between different correct implementations of the same problem. This paper assesses the feasibility of using purely static information, for example, Abstract Syntax Tree (AST), of applications to predict performance change based on code structure. We evaluate several deep learning‐based representation learning techniques for source code and propose an architecture for the tree‐based Long Short‐Term Memory (LSTM) models to discover latent representations for a source code's hierarchical structure. We demonstrate that our proposed architecture enables feed‐forward predictive models to predict change in performance using source code with up to 84% accuracy.Keywords
Funding Information
- Advanced Scientific Computing Research (DE‐SC0023173)
This publication has 33 references indexed in Scilit:
- Multi-modal Attention Network Learning for Semantic Source Code Retrieval2019
- Automatic Source Code Summarization with Extended Tree-LSTM2019
- Modeling Relational Data with Graph Convolutional Networks2018
- Adaptive Optimization of Sparse Matrix-Vector Multiplication on Emerging Many-Core Architectures2018
- Mira: A Framework for Static Performance Analysis2017
- PCA indexing based feature learning and feature selection2016
- Collective I/O Tuning Using Analytical and Machine Learning Models2015
- On the naturalness of software2012
- Generating Performance Bounds from Source Code2010
- Framewise phoneme classification with bidirectional LSTM and other neural network architecturesNeural Networks, 2005