Reproduce “A Deep Learning Model for Predicting Transformation Legality” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Avani Tiwari, Yacine Hakimi, Riyadh Baghdadi

Researchers from NYU Abu Dhabi and ESI Algiers developed a deep learning model to predict the legality of code transformations, addressing the computational overhead of traditional dependency analysis in compilers. The model accelerated Reinforcement Learning agent training by nearly two-fold while reducing CPU usage by 80% and RAM usage by 35%, with only a 4% reduction in the performance of generated schedules.

Key insights

  • An approximate, fast, and differentiable legality prediction model can significantly accelerate the training of ML-driven optimizers without major performance degradation.
  • By providing a differentiable legality predictor, the approach enables future integration with gradient-based optimization methods for compiler transformations, unifying performance and legality considerations.
  • A learned approximate legality model is crucial for efficient search, effectively guiding an RL agent towards productive regions of the search space and avoiding wasted effort on illegal transformations.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.