We propose MC-CIM, a compute-in-memory (CIM) framework for robust, yet low power, Bayesian edge intelligence. Deep neural networks (DNN) with deterministic weights cannot express their prediction uncertainties, thereby pose critical risks for applications where the consequences of mispredictions are fatal such as surgical robotics. To address this limitation, Bayesian inference of a DNN has gained attention. Using Bayesian inference, not only the prediction itself, but the prediction confidence can also be extracted for planning risk-aware actions. However, Bayesian inference of a DNN is computationally expensive, ill-suited for real-time and/or edge deployment. An approximation to Bayesian DNN using Monte Carlo Dropout (MC-Dropout) has shown high robustness along with low computational complexity. Enhancing the computational efficiency of the method, we discuss a novel CIM module that can perform in-memory probabilistic dropout in addition to in-memory weight-input scalar product to support the method. We also propose a compute-reuse reformulation of MC-Dropout where each successive instance can utilize the product-sum computations from the previous iteration. Even more, we discuss how the random instances can be optimally ordered to minimize the overall MC-Dropout workload by exploiting combinatorial optimization methods. Application of the proposed CIM-based MC-Dropout execution is discussed for MNIST character recognition and visual odometry (VO) of autonomous drones. The framework reliably gives prediction confidence amidst non-idealities imposed by MC-CIM to a good extent. Proposed MC-CIM with 16x31 SRAM array, 0.85 V supply, 16nm low-standby power (LSTP) technology consumes 27.8 pJ for 30 MC-Dropout instances of probabilistic inference in its most optimal computing and peripheral configuration, saving 43% energy compared to typical execution.
翻译:我们建议 MC- CIM, 是一个可靠但低功率、 巴伊西亚边缘智能的计算模型( CIM ) 。 具有确定性重量的深神经网络( DNN ) 无法表达其预测的不确定性, 从而给错误后果致命的应用带来重大风险, 如手术机器人。 为解决这一局限性, 巴伊西亚对DN 的推论得到了关注。 使用贝伊斯的推论, 不仅预测本身, 而且预测信任也可用于规划风险意识行动。 然而, 德内核的预测性判断值在计算上非常昂贵, 不适合实时和( 或) 边缘部署。 使用蒙特卡洛( MC- Dropout) 的近似巴伊斯 丹( DNNNN) 和低计算复杂性。 提高该方法的计算效率, 我们讨论一个新的 CIM JM 模型模块, 进行基于内值的降压值的降价变现, 也提议通过不断的计算方法, 将SOM- dal- droad 的算算算法 。