Pith. sign in

REVIEW 2 cited by

A Reinforcement Learning Environment for Polyhedral Optimizations

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2104.13732 v2 pith:QG3FMHEK submitted 2021-04-28 cs.LG cs.DCcs.DMcs.PF

classification cs.LGcs.DCcs.DMcs.PF
keywords formulationlearningloopsspacetransformationsheuristicsmodelpolyhedral
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

The polyhedral model allows a structured way of defining semantics-preserving transformations to improve the performance of a large class of loops. Finding profitable points in this space is a hard problem which is usually approached by heuristics that generalize from domain-expert knowledge. Existing problem formulations in state-of-the-art heuristics depend on the shape of particular loops, making it hard to leverage generic and more powerful optimization techniques from the machine learning domain. In this paper, we propose PolyGym, a shape-agnostic formulation for the space of legal transformations in the polyhedral model as a Markov Decision Process (MDP). Instead of using transformations, the formulation is based on an abstract space of possible schedules. In this formulation, states model partial schedules, which are constructed by actions that are reusable across different loops. With a simple heuristic to traverse the space, we demonstrate that our formulation is powerful enough to match and outperform state-of-the-art heuristics. On the Polybench benchmark suite, we found transformations that led to a speedup of 3.39x over LLVM O3, which is 1.83x better than the speedup achieved by ISL. Our generic MDP formulation enables using reinforcement learning to learn optimization policies over a wide range of loops. This also contributes to the emerging field of machine learning in compilers, as it exposes a novel problem formulation that can push the limits of existing methods.

Discussion (0). Sign in to comment.

Forward citations

Cited by 2 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. Pearl: Automatic Code Optimization Using Deep Reinforcement Learning

    cs.PL 2025-06 conditional novelty 6.0 of 10

    An RL agent with a graph neural network learns loop nest optimizations for the Tiramisu compiler and generalizes to unseen benchmarks, reporting 2.02x and 3.36x geometric mean speedups over Tiramisu and Pluto.

  2. DRIVE: Dynamic Rule Inference and Verified Evaluation for Constraint-Aware Autonomous Driving

    cs.RO 2025-08 unverdicted novelty 5.0 of 10

    DRIVE uses exponential-family likelihoods to learn soft driving constraints from expert data and injects them into convex optimization, reporting 0.0% constraint violations on inD, highD, and RoundD.

Pith tools