A Deep Learning Model for Predicting Transformation Legality
Avani Tiwari, Yacine Hakimi, Riyadh Baghdadi

TL;DR
This paper introduces a deep learning model that predicts the legality of code transformations, enabling faster and more resource-efficient training of code optimization agents with minimal impact on performance.
Contribution
The paper presents a novel DL-based legality prediction model that improves training efficiency for code optimization without sacrificing accuracy.
Findings
F1 score of 0.91 on test set
Training speed doubled with the model
Resource usage reduced by 80% CPU and 35% RAM
Abstract
Compilers must check the legality of code transformations to guarantee the correctness of applying a sequence of code transformations to a given code. While such a legality check needs to be precisely computed in general, we can use an approximate legality prediction model in certain cases, such as training a reinforcement learning (RL) agent for schedule prediction. In this paper, we propose an approximate method for legality checks. We propose a novel DL model for predicting the legality of transformations. The model takes the code representation and a list of transformations as input and predicts whether applying those transformations to the code is legal. We implement and evaluate the proposed model, demonstrating its effectiveness. Our evaluation shows an F1 score of 0.91 on a test set of randomly generated programs. To further evaluate the model in a practical scenario, we used…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Parallel Computing and Optimization Techniques · Security and Verification in Computing
