面向高效马尔可夫链蒙特卡洛采样的概率存内计算设计
Probabilistic Compute-in-Memory Design For Efficient Markov Chain Monte Carlo Sampling
AI总结:
针对MCMC中重复随机数生成导致的延迟与能耗瓶颈,提出基于SRAM随机性、伪读、MSXOR和存内复制的CIM硬件设计,实现高精度均匀采样及极高能效与吞吐。
摘要:
马尔可夫链蒙特卡洛(MCMC)是现代人工智能和概率计算系统中广泛使用的采样方法。它涉及重复的随机数生成,因此常常主导概率模型计算的延迟。为此,我们提出一种基于存内计算(CIM)的MCMC设计,作为硬件加速方案。本工作研究了SRAM位单元的随机性,并提出一种新颖的“伪读”操作;在此基础上,我们给出一种分块随机数生成电路方案,用于快速生成随机数。此外,本工作提出一种新颖的多级异或门(MSXOR)设计方法,以生成严格均匀分布的随机数。其偏离均匀分布的概率误差被抑制在10^-5以下。本工作还提出一种新颖的存内复制电路方案,以在CIM子阵列内部实现数据复制,从而显著减少读/写电路的使用并节省功耗。在商用28-nm工艺开发套件中进行评估,该基于CIM的MCMC设计可生成4位至32位样本,能效为0.53 pJ/sample,且吞吐量最高可达166.7M samples/s。与传统处理器相比,整体能效提升了5.41×10^11至2.33×10^12倍。
英文摘要:
Markov chain Monte Carlo (MCMC) is a widely used sampling method in modern artificial intelligence and probabilistic computing systems. It involves repetitive random number generations and thus often dominates the latency of probabilistic model computing. Hence, we propose a compute-in-memory (CIM) based MCMC design as a hardware acceleration solution. This work investigates SRAM bitcell stochasticity and proposes a novel ``pseudo-read'' operation, based on which we offer a block-wise random number generation circuit scheme for fast random number generation. Moreover, this work proposes a novel multi-stage exclusive-OR gate (MSXOR) design method to generate strictly uniformly distributed random numbers. The probability error deviating from a uniform distribution is suppressed under $10^{-5}$. Also, this work presents a novel in-memory copy circuit scheme to realize data copy inside a CIM sub-array, significantly reducing the use of R/W circuits for power saving. Evaluated in a commercial 28-nm process development kit, this CIM-based MCMC design generates 4-bit$\sim$32-bit samples with an energy efficiency of $0.53$~pJ/sample and high throughput of up to $166.7$M~samples/s. Compared to conventional processors, the overall energy efficiency improves $5.41\times10^{11}$ to $2.33\times10^{12}$ times.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。