arXiv:2506.06817cs.ARcs.LG2025-06中稿 · International Conf…

针对FPGA软核优化,提出支持分类参数约束的贝叶斯优化方法

ASPO: Constraint-Aware Bayesian Optimization for FPGA-based Soft Processors

  • 用自定义核函数处理分支预测器等分类参数约束
  • 在BOOM处理器上使乘法基准提速35%,设计时间减少74%
  • 适合需要快速调优FPGA软核的硬件工程师

贝叶斯优化(BO)在处理器参数调优中展现出潜力,但标准BO无法处理涉及分类参数(如分支预测器类型、除法电路)的约束。此外,随着处理器复杂度增加,BO优化耗时显著上升,尤其对FPGA上的软核处理器而言更成问题。本文提出ASPO,首次通过析取形式定制BO的数学机制,以应对软核设计挑战。ASPO采用新型自定义协方差核支持分类参数,并通过惩罚获取函数中的潜在评估时间,以及复用先前配置的FPGA综合检查点,加速设计评估。该方法针对RocketChip、BOOM和EL2 VeeR三款软核处理器,在七个RISC-V基准上验证。结果表明,相较于默认配置,ASPO在BOOM处理器上可将‘multiply’基准执行时间减少最高35%;相比当前最先进的硬件导向方法Boomerang,设计时间最多缩短74%。

原文摘要 · Abstract (English)

Bayesian Optimization (BO) has shown promise in tuning processor design parameters. However, standard BO does not support constraints involving categorical parameters such as types of branch predictors and division circuits. In addition, optimization time of BO grows with processor complexity, which becomes increasingly significant especially for FPGA-based soft processors. This paper introduces ASPO, an approach that leverages disjunctive form to enable BO to handle constraints involving categorical parameters. Unlike existing methods that directly apply standard BO, the proposed ASPO method, for the first time, customizes the mathematical mechanism of BO to address challenges faced by soft-processor designs on FPGAs. Specifically, ASPO supports categorical parameters using a novel customized BO covariance kernel. It also accelerates the design evaluation procedure by penalizing the BO acquisition function with potential evaluation time and by reusing FPGA synthesis checkpoints from previously evaluated configurations. ASPO targets three soft processors: RocketChip, BOOM, and EL2 VeeR. The approach is evaluated based on seven RISC-V benchmarks. Results show that ASPO can reduce execution time for the ``multiply'' benchmark on the BOOM processor by up to 35\% compared to the default configuration. Furthermore, it reduces design time for the BOOM processor by up to 74\% compared to Boomerang, a state-of-the-art hardware-oriented BO approach.

FPGA优化贝叶斯优化软核设计参数调优

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。