paperbot · PL 论文追踪

全部论文 待读 收藏

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

Graphiti:数据流电路中形式化验证的乱序执行
ASPLOS Proceedings of the 31st ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 22026匹配度 3/10 · 论文属于形式化验证与程序语言/编译器优化,使用Lean 4建立图精化元理论并验证数据流电路乱序执行,与用户关注的形式化验证有间接关联;但完全不涉及LLM/Agent、静态分析、浮点程序分析或贝叶斯程序分析,应用领域为HLS硬件综合,偏离核心研究方向。引用 2 inbox
Yann Herklotz, Ayatallah Elakhras, Martina Camaioni, Paolo Ienne, Lana Josipović, Thomas Bourgeat
crossref: 2026-09-12dblp: 2026-09-12

AI 速览

一句话:在 Lean 4 中建立数据流电路的图精化元理论,并形式化验证引入乱序执行的循环重写,性能与未验证方法持平。

高层综合(HLS)工具能从命令式程序自动生成硬件,而对最不规则的程序,生成数据流电路的 HLS 工具通过借鉴处理器架构中的乱序执行与推测等思想获得良好性能。然而这些变换过于复杂,难以推理,容易引入隐蔽缺陷,从而阻碍其在保守产业中的采用。本文提出 Graphiti——一个嵌入 Lean 4 证明助手的框架,用于对这类 HLS 工具核心的数据流电路进行形式化推理与操纵。作者发展了图精化(graph refinement)元理论,据此验证了一个通用数据流电路重写算法,并形式化验证了将乱序执行引入数据流电路的循环重写。评估表明,该已验证优化流水线相对顺序执行的 HLS 流程取得 2.1× 加速,相对生成静态状态机的已验证 HLS 工具取得 5.8× 加速,且与已有的未验证乱序执行方法性能相当。Graphiti 是迈向全验证数据流 HLS 流程的一步,同时也可作为可扩展的已验证优化引擎集成进现有数据流 HLS 编译器。

问题
HLS 工具为不规则程序生成数据流电路时会引入乱序执行、推测等激进变换,其复杂性使正确性难以推理,易产生隐蔽且代价高昂的缺陷。
方法
在 Lean 4 中构建 Graphiti 框架,提出数据流电路的图精化元理论,用以验证通用电路重写算法,并形式化验证引入乱序执行的循环重写。
评估
通过构建已验证的优化流水线进行性能对比:相对顺序 HLS 流程加速 2.1×,相对生成静态状态机的已验证 HLS 工具加速 5.8×,并与已有未验证乱序执行方法性能相当。
原文摘要(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.

链接与引用

DOI 原文 · PDF(开放获取) · DBLP

BibTeX
@inproceedings{HerklotzECIJB26,
  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},
  year = {2026},
  doi = {10.1145/3779212.3790166}
}