Graphiti: Formally Verified Out-of-Order Execution in Dataflow Circuits

Authors:
Yann Herklotz, Ayatallah Elakhras, Martina Camaioni, Paolo Ienne, Lana Josipović, Thomas Bourgeat
Published:
In ASPLOS '26: 31st ACM International Conference on Architectural Support for Programming Languages and Operating Systems. March 22, 2026.
Abstract:

High-level synthesis (HLS) tools automatically synthesise hardware from imperative programs and have seen a significant rise in adoption in both industry and academia. To deliver high-quality hardware designs for increasingly general purpose programs, HLS compilers have to become more aggressive. For the most irregular programs, HLS tools generating dataflow circuits show promising performance by adapting and specializing key ideas from processor architectures, like out-of-order execution and speculation. However, the complexity of these transformations makes them difficult to reason about, increasing the risk of subtle bugs and potentially delaying their adoption in a conservative industry where bugs can be extremely costly. This paper introduces Graphiti, a framework embedded in the Lean 4 proof assistant designed to formally reason about and manipulate dataflow circuits at the core of these HLS tools. We develop a metatheory of graph refinement that allows us to verify a general-purpose dataflow circuit rewriting algorithm. Using this framework, we formally verify a loop rewrite that introduces out-of-order execution into a dataflow circuit. Our evaluation shows that the resulting verified optimization pipeline achieves a 2.1× speedup over the in-order HLS flow and a 5.8× speedup over a verified HLS tool generating a static state machine. We also show that it achieves the same performance compared to an existing unverified approach which introduces out-of-order execution. Graphiti is a step toward a fully-verified HLS flow targeting dataflow circuits. In the interim, it can serve as an extensible, verified, optimizing engine that can be integrated into existing dataflow HLS compilers.

BibTeX:
@inproceedings{herklotz2026,
  title = {{Graphiti: Formally Verified Out-of-Order Execution in Dataflow Circuits}},
  author = {Yann Herklotz and Ayatallah Elakhras and Martina Camaioni and Paolo Ienne and Lana Josipović and Thomas Bourgeat},
  booktitle = {ASPLOS '26: 31st ACM International Conference on Architectural Support for Programming Languages and Operating Systems},
  year = 2026,
  doi = {10.1145/3779212.3790166},
}