mlsanityData to 14 Oct 2026

Learning to Parallelize with OpenMP by Augmented Heterogeneous AST Representation

arXiv 2305.05779 ↗First posted 9 May 2023cs.LG cs.SEcited by 14

Not on the map. Why?

Abstract (arXiv)

Detecting parallelizable code regions is a challenging task, even for experienced developers. Numerous recent studies have explored the use of machine learning for code analysis and program synthesis, including parallelization, in light of the success of machine learning in natural language processing. However, applying machine learning techniques to parallelism detection presents several challenges, such as the lack of an adequate dataset for training, an effective code representation with rich information, and a suitable machine learning model to learn the latent features of code for diverse analyses. To address these challenges, we propose a novel graph-based learning approach called Graph2Par that utilizes a heterogeneous augmented abstract syntax tree (Augmented-AST) representation for code. The proposed approach primarily focused on loop-level parallelization with OpenMP. Moreover, we create an OMPSerial dataset with 18598 parallelizable and 13972 non-parallelizable loops to train the machine learning models. Our results show that our proposed approach achieves the accuracy of parallelizable code region detection with 85% accuracy and outperforms the state-of-the-art token-based machine learning approach. These results indicate that our approach is competitive with state-of-the-art tools and capable of handling loops with complex structures that other tools may overlook.

Key facts. Cited by 14 papers in the map (data through 14 Oct 2026). Builds on 14 of its 49 references that are in the map. First posted on arXiv 9 May 2023.

Builds on

14 of 49 references.

References · 14

  1. 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,361
  2. 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,375
  3. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
  4. 2020Heterogeneous Graph Transformercited by 582
  5. 2018Graph Convolutional Networks for Text Classificationcited by 345
  6. 2018code2vec: Learning Distributed Representations of Codecited by 250
  7. 2017Learning to Represent Programs with Graphscited by 220
  8. 2021Language-Agnostic Representation Learning of Source Code from Structure and Contextcited by 63
  9. 2019Text Level Graph Neural Network for Text Classificationcited by 60
  10. 2018Neural Code Comprehension: A Learnable Representation of Code Semanticscited by 59
  11. 2022Image Classification using Graph Neural Network and Multiscale Wavelet Superpixelscited by 10
  12. 2022Learning to Parallelize in a Shared-Memory Environment with Transformerscited by 10
2 more
  1. 2022Learning Intermediate Representations using Graph Neural Networks for NUMA and Prefetchers Optimizationcited by 9
  2. 2022MolNet: A Chemically Intuitive Graph Neural Network for Prediction of Molecular Propertiescited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 7; 2024: 3; 2025: 3; 2026: 1.

14 papers.

Sort: