arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.13523cs.AR
收藏

ATLAAS:自动张量级加速器语义抽象

TensorLift: Automatic Extraction of Tensor-Level ISA Semantics from Accelerator RTL via MLIR Semantic Lifting

University of Michigan(密歇根大学);University of Texas at Austin(德克萨斯大学奥斯汀分校)

Ruijie Gao, Haoran Jin, Jirong Yang, Nathaniel Bleier

AI总结:

ATLAAS通过8步语义提升管道将RTL提取的加速器语义提升为张量ISA规范,实现从RTL到性能竞争型编译器后端的自动化流程。

摘要:

许多张量加速器设计已提出,但大多数缺乏良好文档化的ISA和编译器后端,限制了评估仅限于少数运算符。最近的研究表明,给定张量级ISA规范,可以自动生成完整的软件栈,包括编译器后端,但编写此类规范仍是一个手动、专家驱动的过程。我们提出了ATLAAS,这是首个基于MLIR的端到端管道,将RTL提取的加速器语义提升为张量ISA规范。从先前架构级模型提取产生的位级LLVM IR开始,ATLAAS应用一个8步语义提升管道,逐步恢复高级张量结构——MAC惯用法、饱和语义、多维缓冲区组织和数据布局转换——生成的规范立即通过ACT生态系统实现自动软件栈生成。我们在Gemmini卷积数组加速器上评估了ATLAAS,其中管道在处理元素上压缩位级MLIR高达92.9%,在控制器模块上压缩24-34%。ATLAAS发现了手写参考中遗漏的硬件特性,通过Z3 SMT等价证明验证正确性。在TVM的VTA处理器上,相同的管道在不进行加速器特定更改的情况下提升所有四个数据路径模块,实现了从RTL到性能竞争型编译器后端的自动化路径。

英文摘要:

Most proposed tensor accelerators lack well-documented ISAs and compiler backends, and are exercised only through hand-written kernels covering a handful of operators. Recent work (TAIDL, ACT) shows that a tensor-level ISA specification is enough to generate complete software stacks automatically. Writing that specification, however, remains a manual, expert-driven process. We present TensorLift, the first end-to-end MLIR-based pipeline that lifts RTL-extracted accelerator semantics to TAIDL-like tensor ISA specifications. Building on prior architecture-level model extraction that yields bit-level IR, an 8-pass MLIR pipeline progressively recovers tensor structure (MAC idioms, saturation semantics, multi-dimensional buffer organizations, and layout transformations) and emits specifications the ACT ecosystem consumes directly. On Gemmini and VTA, TensorLift captures every hardware instruction the two designs decode across 156 MLIR files, reducing the extracted bit-level MLIR by 24.8% and 41.2% overall and by up to 92.9% on a processing element, with controller modules retaining irreducible control logic. It recovers hardware features the hand-written reference omits (multi-bank DMA configuration, pooling, and im2col) and lifts VTA unmodified. Core compute and data-movement semantics are proven equivalent to the RTL-extracted model by Z3 SMT, the remainder validated against golden simulator data. Fed into ACT, the extracted specification yields a compiler backend at parity with hand-written Gemmini kernels (1.014x geometric mean), giving an automated path from RTL to a working software stack.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑