器件仿真传统上聚焦于简单的基本单元。过去,这些基本单元是晶体管、反相器,或者某个算术单元。如今,最大的工作负载是机器学习算法,ASIC 正被专门设计来加速此类应用。虽然这类加速器通常使用全精度权重和激活,但用低比特量化版本替代它们(必要时辅以适当的重训练)已变得日益普遍。本文聚焦于使用二值随机神经元(BSN)或 p-bit 实现此类低比特量化模型的电路。对于这类 p 电路,合适的基本单元是这样一个单元:它作用于每个 p-bit,并依据其与之交互的 n 个邻近 p-bit 上所执行的计算来更新该 p-bit。执行这一基本操作(ELOP)所需能量的倒数提供了一个度量 ELOP/S/W,可用于比较不同实现。我们以 MNIST 分类这一简单示例来说明我们的方法。
Device simulation has traditionally focused on simple building blocks. In the past, these were transistors or inverters or perhaps an arithmetic unit. Today, the biggest workloads are machine-learning algorithms, and ASICs are being designed specifically to accelerate such applications. While such accelerators commonly use full precision weights and activations, it is becoming common to replace them with low-bit quantized versions, supported by appropriate retraining when necessary. Here we focus on circuits that implement such low-bit quantized models using binary stochastic neurons (BSN) or p-bits. A suitable building block for such p-circuits is a unit that operates on each p-bit and updates it in accordance with a computation performed on n neighboring p-bits that it interacts with. The reciprocal of the energy needed to perform this elementary operation (ELOP) provides a metric, ELOP/S/W, that can be used to compare different implementations. We illustrate our methodology using a simple example of MNIST classification.
| 指标 | 数值 | 说明 |
|---|---|---|
| MNIST 分类准确率 | 约 96% | 三层全连接网络 784→64→256→10 在 MNIST 数据集上的识别精度 |
| 端到端推理时延 | 约 40 µs/图像 | FPGA 在 250 MHz 下处理一幅图像的流水线总时间 |
| 工作频率 | 250 MHz | Xilinx UltraScale+ VCU118 (XCVU9P) FPGA 上的实现频率 |
| 量化精度 | 8-bit 权重/输入、1-bit 激活 | 输入与权重为 8 位整数,激活由单个 p-bit 随机采样实现 |
| ELOP 能耗随输入数 n 变化 | n = 64、128、192、256 | 在此范围内每 ELOP 能耗随 n 近似线性增长 |
MNIST 分类准确率约 96%;250 MHz 下每幅图像端到端推理约 40 µs
概率计算、机器学习、深度学习、神经形态
AI加速器、图像分类、组合优化与概率逻辑求解
打开交互版 · AI 解读 / 同类对比 / 完整指标在香农学术库中查看(需会员)