arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.15946cs.LGcs.ARhep-ex
收藏

AIE4ML:一个端到端框架,用于为下一代AMD AI引擎编译神经网络

AIE4ML: An End-to-End Framework for Compiling Neural Networks for the Next Generation of AMD AI Engines

Institute of Physics Belgrade, Serbia(塞尔维亚贝尔格莱物理研究所);Physikalisches Institut, Heidelberg University, Germany(德国海德堡大学物理研究所);SLAC National Accelerator Laboratory, Menlo Park, CA, USA(美国Menlo Park加州SLAC国家加速器实验室)

Dimitrios Danopoulos, Enrico Lupi, Chang Sun, Sebastian Dittmeier, Michael Kagan, Vladimir Loncar, Maurizio Pierini

AI总结:

AIE4ML是一个端到端框架,用于将AI模型自动转换为优化的固件,以在AMD AIE-ML设备上实现高效神经网络执行,同时支持向前兼容新架构,提供高效率和低延迟性能。

摘要:

在AMD的Versal AI引擎(AIE)上实现高效的AI推理具有挑战性,因为存在紧密耦合的VLIW执行、显式数据路径和本地内存管理。以往的研究集中在第一代AIE内核优化上,没有解决整个神经网络在2D阵列上的执行问题。在本工作中,我们提出了AIE4ML,这是首个全面的框架,用于将AI模型自动转换为优化的固件,目标是AIE-ML生成设备,同时向前兼容新的AIE-MLv2架构。在单内核级别,我们实现了接近架构峰值的性能。在图和系统级别,我们提供了一种结构化的并行化方法,可以跨2D AIE-ML织物扩展,并利用其专用内存模块在整个模型执行过程中保持完全芯片内数据移动。作为演示,我们设计了一种通用且高度高效的线性层实现,具有内建的融合偏置添加和ReLU激活支持。此外,由于我们的框架需要生成多层实现,我们的方法系统地推导出确定性、紧凑且拓扑优化的放置,这些放置针对设备的物理2D网格,通过一种新的图放置和搜索算法。最后,该框架无缝接受从高级工具如hls4ml或PyTorch导入的量化模型,同时保持位精确性。在层扩展基准测试中,我们实现了相对于单内核基线高达98.6%的效率,利用了设备中296个(97.4%)的304个AIE模块,完全芯片内数据移动。通过在真实世界模型拓扑上的评估,我们证明了AIE4ML在微秒延迟约束下能够实现GPU级吞吐量,使其成为超低延迟环境如粒子物理实验中的触发系统等实用的配套工具。

英文摘要:

Efficient AI inference on AMD's Versal AI Engine (AIE) is challenging due to tightly coupled VLIW execution, explicit datapaths, and local memory management. Prior work focused on first-generation AIE kernel optimizations, without tackling full neural network execution across the 2D array. In this work, we present AIE4ML, the first comprehensive framework for converting AI models automatically into optimized firmware targeting the AIE-ML generation devices, also with forward compatibility for the newer AIE-MLv2 architecture. At the single-kernel level, we attain performance close to the architectural peak. At the graph and system levels, we provide a structured parallelization method that can scale across the 2D AIE-ML fabric and exploit its dedicated memory tiles to stay entirely on-chip throughout the model execution. As a demonstration, we designed a generalized and highly efficient linear-layer implementation with intrinsic support for fused bias addition and ReLU activation. Also, as our framework necessitates the generation of multi-layer implementations, our approach systematically derives deterministic, compact, and topology-optimized placements tailored to the physical 2D grid of the device through a novel graph placement and search algorithm. Finally, the framework seamlessly accepts quantized models imported from high-level tools such as hls4ml or PyTorch while preserving bit-exactness. In layer scaling benchmarks, we achieve up to 98.6% efficiency relative to the single-kernel baseline, utilizing 296 of 304 AIE tiles (97.4%) of the device with entirely on-chip data movement. With evaluations across real-world model topologies, we demonstrate that AIE4ML delivers GPU-class throughput under microsecond latency constraints, making it a practical companion for ultra-low-latency environments such as trigger systems in particle physics experiments.

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

↑