Obsidian:面向安全 ML 加速器高性能推理的协同状态空间探索
Obsidian: Cooperative State-Space Exploration for Performant Inference on Secure ML Accelerators
AI总结:
Obsidian 框架通过协同使用解析模型与周期精确模型进行状态空间探索,为安全 ML 加速器寻找最优内核映射,在云和边缘部署中显著降低推理延迟并改善能耗。
摘要:
用于机器学习加速器的可信执行环境(TEE)在安全且高效的 ML 推理中不可或缺。通过针对加速器架构进行状态空间探索来优化工作负载,可以提升性能并降低能耗。然而,由于搜索空间巨大,此类探索代价高昂且速度缓慢。当前研究不得不使用快速的解析模型,这些模型忽略了关键硬件细节以及硬件安全原语所独有的跨层优化机会。虽然周期精确模型在理论上能够获得更好的设计,但其高昂的运行时间成本将其限制在较小的状态空间内。我们提出 Obsidian,一个用于寻找从 ML 内核到安全 ML 加速器的最优映射的优化框架。Obsidian 通过协同使用解析模型和周期精确模型进行状态空间探索来应对上述挑战。两个主要探索组件包括:(1)一个安全加速器解析模型,在遍历大规模映射状态空间时纳入安全硬件的影响,并产生最佳的 m 个模型映射;(2)一个在周期精确模型上的编译器性能分析步骤,用于捕获运行时瓶颈,以进一步改善执行运行时间、能耗和资源利用率,并找到最优模型映射。我们将结果与一个基线安全加速器进行比较,该基线包含从 guardnn [33] 和 sesame [11] 获得的最先进安全方案。解析模型将云部署的推理延迟降低了 20.5%,将边缘部署的推理延迟降低了 8.4%,能耗分别改善了 24% 和 19%。周期精确模型进一步将云部署的延迟降低了 9.1%,将边缘部署的延迟降低了 12.2%,能耗分别改善了 13.8% 和 13.1%。
英文摘要:
Trusted execution environments (TEEs) for machine learning accelerators are indispensable in secure and efficient ML inference. Optimizing workloads through state-space exploration for the accelerator architectures improves performance and energy consumption. However, such explorations are expensive and slow due to the large search space. Current research has to use fast analytical models that forego critical hardware details and cross-layer opportunities unique to the hardware security primitives. While cycle-accurate models can theoretically reach better designs, their high runtime cost restricts them to a smaller state space. We present Obsidian, an optimization framework for finding the optimal mapping from ML kernels to a secure ML accelerator. Obsidian addresses the above challenge by exploring the state space using analytical and cycle-accurate models cooperatively. The two main exploration components include: (1) A secure accelerator analytical model, that includes the effect of secure hardware while traversing the large mapping state space and produce the best m model mappings; (2) A compiler profiling step on a cycle-accurate model, that captures runtime bottlenecks to further improve execution runtime, energy and resource utilization and find the optimal model mapping. We compare our results to a baseline secure accelerator, comprising of the state-of-the-art security schemes obtained from guardnn [ 33 ] and sesame [11]. The analytical model reduces the inference latency by 20.5% for a cloud and 8.4% for an edge deployment with an energy improvement of 24% and 19% respectively. The cycle-accurate model, further reduces the latency by 9.1% for a cloud and 12.2% for an edge with an energy improvement of 13.8% and 13.1%.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。