不要重复思考:利用平移不变性实现 CNN 的高效在线流式推理
Don't Think It Twice: Exploit Shift Invariance for Efficient Online Streaming Inference of CNNs
AI总结:
本文提出 StreamiNNC 策略,通过利用卷积平移不变性并解决零填充与池化对齐问题,实现重叠窗口 CNN 在线流式推理的线性加速,并在生物医学信号任务中验证了低偏差效果。
摘要:
深度学习时间序列处理通常依赖具有重叠窗口的卷积神经网络。这种重叠使网络能够以比窗口长度更快的速度产生输出,但同时也引入了额外的计算。本文探索了在推理过程中利用卷积的平移不变性特性来跳过连续重叠窗口之间层激活计算,从而优化计算效率的潜力。尽管卷积具有平移不变性,但在此类网络中被广泛使用的零填充和池化操作并不高效,并使高效的流式推理变得复杂。我们提出了 StreamiNNC,一种用于在线流式推理部署卷积神经网络的策略。我们探讨了零填充和池化对流式推理精度的不利影响,并为流式过程中的池化推导了理论误差上界。我们通过提出信号填充和池化对齐来解决这些限制,并为设计和部署用于 StreamiNNC 的模型提供了指导。我们在模拟数据以及三个真实世界的生物医学信号处理应用上验证了我们的方法。StreamiNNC 在三个网络上均实现了流式输出与常规推理之间的低偏差(2.03 - 3.55% NRMSE)。这项工作表明,可以线性加速处理重叠窗口的流式 CNN 推理,从而消除重叠窗口通常带来的额外计算。
英文摘要:
Deep learning time-series processing often relies on convolutional neural networks with overlapping windows. This overlap allows the network to produce an output faster than the window length. However, it introduces additional computations. This work explores the potential to optimize computational efficiency during inference by exploiting convolution's shift-invariance properties to skip the calculation of layer activations between successive overlapping windows. Although convolutions are shift-invariant, zero-padding and pooling operations, widely used in such networks, are not efficient and complicate efficient streaming inference. We introduce StreamiNNC, a strategy to deploy Convolutional Neural Networks for online streaming inference. We explore the adverse effects of zero padding and pooling on the accuracy of streaming inference, deriving theoretical error upper bounds for pooling during streaming. We address these limitations by proposing signal padding and pooling alignment and provide guidelines for designing and deploying models for StreamiNNC. We validate our method in simulated data and on three real-world biomedical signal processing applications. StreamiNNC achieves a low deviation between streaming output and normal inference for all three networks (2.03 - 3.55% NRMSE). This work demonstrates that it is possible to linearly speed up the inference of streaming CNNs processing overlapping windows, negating the additional computation typically incurred by overlapping windows.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。