arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2405.18894cs.LGcs.AIcs.ET
收藏

少样本测试:使用单个贝叶斯测试向量估计忆阻深度神经网络的不确定性

Few-Shot Testing: Estimating Uncertainty of Memristive Deep Neural Networks Using One Bayesian Test Vector

Karlsruhe Institute of Technology(卡尔斯鲁厄理工学院)

Soyed Tuhin Ahmed, Mehdi Tahoori

AI总结:

本文提出一种贝叶斯测试向量生成框架,通过仅需存储单个测试向量来估计忆阻存内计算硬件上神经网络在器件非理想性下的模型不确定性,以仅0.024MB内存开销持续实现100%测试覆盖率。

摘要:

近年来,神经网络(NNs)等深度学习算法的性能大幅提升,在许多领域取得了最先进的性能。然而,由于内存和计算资源的限制,在边缘设备上实现 NNs 是一项具有挑战性的任务。因此,人们开发了基于忆阻器件的存内计算(CIM)等硬件加速器,以加速最常见的操作,即矩阵-向量乘法。然而,由于固有的器件属性、温度等外部环境因素以及不成熟的制造工艺,忆阻器存在各种非理想性,包括在制造和运行期间发生的缺陷和变化。因此,对模型做出的预测缺乏完全的置信度。为了提高在存在器件非理想性的情况下硬件加速器做出的 NN 预测的置信度,本文提出了一种贝叶斯测试向量生成框架,该框架可以估计在基于忆阻器的 CIM 硬件上实现的 NNs 的模型不确定性。与传统的点估计测试向量生成方法相比,我们的方法在不同的模型维度上具有更好的泛化能力,并且只需在硬件中存储一个测试贝叶斯向量。我们的方法在不同的模型维度、任务、故障率和变化噪声上进行了评估,结果表明它能够仅以 0.024 MB 的内存开销持续实现 100% 的覆盖率。

英文摘要:

The performance of deep learning algorithms such as neural networks (NNs) has increased tremendously recently, and they can achieve state-of-the-art performance in many domains. However, due to memory and computation resource constraints, implementing NNs on edge devices is a challenging task. Therefore, hardware accelerators such as computation-in-memory (CIM) with memristive devices have been developed to accelerate the most common operations, i.e., matrix-vector multiplication. However, due to inherent device properties, external environmental factors such as temperature, and an immature fabrication process, memristors suffer from various non-idealities, including defects and variations occurring during manufacturing and runtime. Consequently, there is a lack of complete confidence in the predictions made by the model. To improve confidence in NN predictions made by hardware accelerators in the presence of device non-idealities, in this paper, we propose a Bayesian test vector generation framework that can estimate the model uncertainty of NNs implemented on memristor-based CIM hardware. Compared to the conventional point estimate test vector generation method, our method is more generalizable across different model dimensions and requires storing only one test Bayesian vector in the hardware. Our method is evaluated on different model dimensions, tasks, fault rates, and variation noise to show that it can consistently achieve $100\%$ coverage with only $0.024$ MB of memory overhead.

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

↑