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

面向硬件的神经网络编译与学习优化:一种RISC-V加速器方法

Hardware-Aware Neural Network Compilation with Learned Optimization: A RISC-V Accelerator Approach

XgenSilicon Inc.(Xgen硅有限公司)

Ravindra Ganti, Steve Xu

AI总结:

XgenSilicon ML编译器通过学习优化和硬件感知技术,实现高效神经网络编译,生成高性能低功耗的RISC-V加速器

摘要:

我们提出了XgenSilicon ML编译器,这是一个完全自动的端到端编译框架,将高级机器学习模型转换为优化的RISC-V汇编代码,用于定制的ASIC加速器。通过在软件和硬件之间统一系统的成本模型,该编译器在五个关键创新方面相比标准现成组件和手工设计的芯片在功率、性能和面积(PPA)指标上实现了显著改进:(1)一个多算法自动调优框架,结合了五种搜索策略(贝叶斯优化、遗传算法、模拟退火、随机搜索、网格搜索)和学习成本模型;(2)一个集成了量化框架,支持从FP32到二进制的极端精度,具有完整的KL散度校准(2048-bin直方图优化)和基于动量的QAT梯度更新;(3)硬件感知的验证确保100%的ISA合规性和内存约束满足;(4)动态形状支持,具有多配置专门化;(5)先进的缓存感知成本建模,结合多级缓存层次结构分析。我们的评估表明,由该编译器生成的ASIC在性能上比基线实现提高了2.5-4.5倍,在功耗上降低了3-6倍,在面积上减少了40-60%。该编译器支持超过100个ONNX操作符,涵盖12个类别,实现了高级RISC-V向量优化,并生成适用于直接ASIC综合的硬件验证汇编代码。所有编译步骤都是完全自动化的,从模型输入到ASIC-ready输出不需要任何手动干预。

英文摘要:

We present XgenSilicon ML Compiler, a fully automated end-to-end compilation framework that transforms high-level machine learning models into optimized RISC-V assembly code for custom ASIC accelerators. By unifying the system's cost model across software and hardware, the compiler achieves significant improvements in Power, Performance, and Area (PPA) metrics compared to standard off-the-shelf components and hand-designed chips through five key innovations: (1) a multi-algorithm auto-tuning framework with five search strategies (Bayesian Optimization, Genetic Algorithm, Simulated Annealing, Random Search, Grid Search) combined with a learned cost model, (2) an integrated quantization framework supporting extreme precisions from FP32 to Binary with full KL divergence calibration (2048-bin histogram optimization) and momentum-based QAT gradient updates, (3) hardware-aware validation ensuring 100 percent ISA compliance and memory constraint satisfaction, (4) dynamic shape support with multi-configuration specialization, and (5) advanced cache-aware cost modeling with multi-level cache hierarchy analysis. Our evaluation demonstrates that ASICs produced by this compiler achieve 2.5-4.5x better performance, 3-6x lower power consumption, and 40-60 percent area reduction compared to baseline implementations. The compiler supports more than 100 ONNX operators across 12 categories, implements advanced RISC-V Vector optimizations, and generates hardware-validated assembly code suitable for direct ASIC synthesis. All compilation steps are fully automated, requiring zero manual intervention from model input to ASIC-ready output.

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

↑