xTern:基于RISC-V边缘系统能效优化的三值神经网络推理
xTern: Energy-Efficient Ternary Neural Network Inference on RISC-V-Based Edge Systems
AI总结:
本文提出xTern,一种针对RISC-V的轻量级ISA扩展,通过优化内核加速三值神经网络推理,在极小的面积和功耗开销下显著提升吞吐量与能效,实现更高分类准确率。
摘要:
三值神经网络(TNN)相比二值神经网络提供了更优的准确率与能耗权衡。然而,迄今为止,它们需要专用加速器才能实现其效率潜力,这阻碍了其广泛采用。为了解决这一问题,我们提出了xTern,这是一种针对RISC-V指令集架构(ISA)的轻量级扩展,旨在加速通用核心上的TNN推理。为了补充ISA扩展,我们开发了一组利用xTern的优化内核,吞吐量比其2-bit等效物高出67%。功耗仅小幅增加5.2%,从而使能效提升57.1%。我们证明,所提出的xTern扩展集成到八核计算集群中,硅面积开销仅0.9%,且对时序无影响。在端到端基准测试中,我们证明xTern能够部署TNN,在相同推理延迟下,CIFAR-10分类准确率比2-bit网络高出1.6个百分点。我们的结果表明,xTern使基于RISC-V的超低功耗边缘AI平台能够受益于TNN的效率潜力。
英文摘要:
Ternary neural networks (TNNs) offer a superior accuracy-energy trade-off compared to binary neural networks. However, until now, they have required specialized accelerators to realize their efficiency potential, which has hindered widespread adoption. To address this, we present xTern, a lightweight extension of the RISC-V instruction set architecture (ISA) targeted at accelerating TNN inference on general-purpose cores. To complement the ISA extension, we developed a set of optimized kernels leveraging xTern, achieving 67% higher throughput than their 2-bit equivalents. Power consumption is only marginally increased by 5.2%, resulting in an energy efficiency improvement by 57.1%. We demonstrate that the proposed xTern extension, integrated into an octa-core compute cluster, incurs a minimal silicon area overhead of 0.9% with no impact on timing. In end-to-end benchmarks, we demonstrate that xTern enables the deployment of TNNs achieving up to 1.6 percentage points higher CIFAR-10 classification accuracy than 2-bit networks at equal inference latency. Our results show that xTern enables RISC-V-based ultra-low-power edge AI platforms to benefit from the efficiency potential of TNNs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。