arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.05286cs.LGcs.AIcs.DC
收藏

Tiny Deep Ensemble:通过集成共享权重的归一化层在边缘 AI 加速器中进行不确定性估计

Tiny Deep Ensemble: Uncertainty Estimation in Edge AI Accelerators via Ensembling Normalization Layers with Shared Weights

Karlsruhe Institute of Technology(卡尔斯鲁厄理工学院);Revoai GmbH(Revoai有限公司)

Soyed Tuhin Ahmed, Michael Hefenbrock, Mehdi B. Tahoori

AI总结:

针对边缘设备不确定性估计的资源瓶颈,本文提出 Tiny-Deep Ensemble,仅集成共享权重的归一化层并以一次前向传播完成推理与不确定性估计,显著降低延迟和内存开销且提升精度。

摘要:

人工智能(AI)应用正在快速发展,并普遍用于自动驾驶和医疗诊断等功能安全至关重要的安全关键领域。在 AI 驱动的系统中,不确定性估计使用户能够避免过度自信的预测并实现功能安全,从而提高模型预测的稳健性和可靠性。然而,传统的不确定性估计方法(如深度集成方法)由于需要存储和处理多个模型,会带来较高的计算量以及相应的硬件(延迟和能耗)开销。另一种 Monte Carlo dropout(MC-dropout)方法虽然内存开销较低,但需要大量(约 100 次)前向传播,导致较高的计算开销和延迟。因此,这些方法不适用于计算和内存资源有限、由电池供电的边缘设备。本文提出 Tiny-Deep Ensemble 方法,这是一种用于边缘设备不确定性估计的低成本方法。在该方法中,仅对归一化层进行 M 次集成,所有集成成员共享共同的权重和偏置,从而显著降低存储需求和延迟。此外,在允许批处理以进行推理和不确定性估计的硬件架构中,该方法只需要一次前向传播。而且,与单个模型相比,其内存开销大致相同。因此,延迟和内存开销最多可降低约 M 倍。尽管如此,该方法并未牺牲准确性:在各种基准数据集、任务和最先进架构中,推理准确率最高提升约 1%,RMSE 降低 17.17%。

英文摘要:

The applications of artificial intelligence (AI) are rapidly evolving, and they are also commonly used in safety-critical domains, such as autonomous driving and medical diagnosis, where functional safety is paramount. In AI-driven systems, uncertainty estimation allows the user to avoid overconfidence predictions and achieve functional safety. Therefore, the robustness and reliability of model predictions can be improved. However, conventional uncertainty estimation methods, such as the deep ensemble method, impose high computation and, accordingly, hardware (latency and energy) overhead because they require the storage and processing of multiple models. Alternatively, Monte Carlo dropout (MC-dropout) methods, although having low memory overhead, necessitate numerous ($\sim 100$) forward passes, leading to high computational overhead and latency. Thus, these approaches are not suitable for battery-powered edge devices with limited computing and memory resources. In this paper, we propose the Tiny-Deep Ensemble approach, a low-cost approach for uncertainty estimation on edge devices. In our approach, only normalization layers are ensembled $M$ times, with all ensemble members sharing common weights and biases, leading to a significant decrease in storage requirements and latency. Moreover, our approach requires only one forward pass in a hardware architecture that allows batch processing for inference and uncertainty estimation. Furthermore, it has approximately the same memory overhead compared to a single model. Therefore, latency and memory overhead are reduced by a factor of up to $\sim M\times$. Nevertheless, our method does not compromise accuracy, with an increase in inference accuracy of up to $\sim 1\%$ and a reduction in RMSE of $17.17\%$ in various benchmark datasets, tasks, and state-of-the-art architectures.

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

↑