Audiorepinceptionnext: A Lightweight Single-Stream Architecture for Efficient Audio Recognition

Kin Wai Lau, Yasar Abbas Ur Rehman, Lai-Man Po

TL;DR

This paper introduces AudioRepInceptionNeXt, a novel single-stream CNN architecture for audio recognition that significantly reduces computational cost and memory footprint compared to existing methods. By employing a parallel multi-scale kernel design during training and reparameterization during inference, it achieves competitive accuracy with substantial improvements in speed and efficiency, making it suitable for edge devices.

What Problem Does This Paper Address?

Deep learning models, particularly Convolutional Neural Networks (CNNs), have shown great success in audio recognition tasks by processing Mel-spectrograms. However, many of these architectures, especially those with multi-stream or complex multi-branch designs, are computationally expensive and memory-intensive. This limits their deployment on resource-constrained edge devices like smartphones, hindering real-time, on-device audio understanding applications. The paper aims to bridge this gap by proposing a lightweight and efficient architecture that maintains high performance while drastically reducing computational demands.

Methods

The core innovation lies in the AudioRepInceptionNeXt block, which deviates from traditional multi-stream or complex single-stream designs.

  • Parallel Multi-Scale Kernel Design: During training, the architecture uses parallel multi-scale depthwise separable convolutional kernels (e.g., 1x21, 1x11, 1x3) to capture both global frequency information and local temporal details simultaneously within a single stream. This is inspired by InceptionNet but adapted for audio and uses depthwise separable convolutions to manage computational cost.
  • Depthwise Separable Kernels: To further reduce computational load and memory footprint, the 2D kernels are decomposed into 1xk and kx1 separable kernels. This approach is motivated by the non-homogeneous nature of spectrograms, allowing for independent processing of temporal and frequency features.
  • Inverted Bottleneck: Similar to ConvNeXt, an inverted bottleneck design is used to expand channel dimensions, enhancing representation capacity.
  • Reparameterization for Inference: A key technique is model reparameterization. During inference, the multi-branch structure is converted into a single-branch equivalent by merging the convolutional kernels and batch normalization layers. This eliminates the overhead of multiple branches, significantly speeding up inference and reducing memory access without sacrificing accuracy.

Datasets

The paper utilizes several datasets for training and evaluation:

  • Pretraining: VGG-Sound [39] - a large-scale dataset extracted from YouTube videos for general audio pretraining.
  • Downstream Tasks:
    • EPIC-KITCHENS-100 [55] - egocentric audio-visual dataset for action recognition.
  • EPIC-Sound [56] - audio event classification dataset derived from EPIC-KITCHENS-100.
  • Speech Commands V2 (KS2) [57] - dataset for automatic speech command recognition.
  • UrbanSound8K (Urban8K) [58] - urban sound event classification dataset.
  • NSynth [4] - dataset of musical notes from various instruments.

Key Insights and Ideas

  • Single- Stream Efficiency: The paper demonstrates that a well-designed single-stream architecture can achieve performance comparable to or better than multi-stream or more complex single-stream models, while being significantly more efficient.
  • Reparameterization for Inference Speed: The reparameterization technique is crucial. It allows for the benefits of a complex multi-branch structure during training (rich feature learning) without the inference-time penalty, effectively transforming it into a simple, fast model.
  • Separable Kernels for Audio: The use of depthwise separable kernels, decomposed into 1xk and kx1, is shown to be effective for audio spectrograms, leveraging their unique statistical properties.
  • Large Kernels with Efficiency: By combining large kernels (e.g., 21x21) with depthwise separability and reparameterization, the model captures global context without prohibitive computational costs.
  • Edge Device Viability: The significant reduction in parameters, GFLOPS, and inference time makes AudioRepInceptionNeXt a strong candidate for deployment on mobile and edge devices.

Key Results

  • Parameter and GFLOPS Reduction: AudioRepInceptionNeXt-B1 achieves a 56% reduction in parameters and 54% reduction in GFLOPS compared to the Slow-Fast baseline, while maintaining comparable accuracy.
  • Inference Speed Improvement:
    • On GPU, it achieves 1.28x faster inference than the Slow-Fast model.
  • On mobile devices, it demonstrates superior inference speed and smaller model size compared to other state-of-the-art CNNs, with AudioRepInceptionNeXt-B0 being 2.3x faster than Slow-Fast and AudioRepInceptionNeXt-B1 being 3.4x faster than Slow-Fast on a Redmi Note 9 Pro.
  • Accuracy: The model achieves comparable or superior accuracy across various downstream tasks, including EPIC-KITCHENS-100, EPIC-Sound, KS2, Urban8K, and NSynth. For example, it outperforms Slow-Fast by 1.61% on Urban8K.
  • Ablation Studies: Removing any of the multi-scale branches or the identity shortcut degrades performance, highlighting the importance of each component.

Limitations and Future Work

  • Limitations:
    • The paper notes that while reparameterization significantly boosts inference speed, the multi-branch design itself can still lead to higher memory access and synchronization times compared to simpler architectures, even with fewer parameters.
  • Ablation studies suggest that extremely large kernels (e.g., 31x31) might lead to performance degradation, possibly due to overlooking local details.
  • Future Work:
    • The authors suggest that their work provides valuable insights for researchers and practitioners seeking to enhance the computational efficiency of audio classification models.
  • The proposed architecture and techniques are well-suited for further exploration in various audio understanding applications on resource-constrained devices.

Summary updated

BibTeX
@article{lau2024audiorepinceptionnext,
  author = {Kin Wai Lau and Yasar Abbas Ur Rehman and Lai-Man Po},
  title = {{Audiorepinceptionnext: A Lightweight Single-Stream Architecture for Efficient Audio Recognition}},
  journal = {Neurocomputing},
  year = {2024},
  doi = {10.1016/j.neucom.2024.127432},
}
Figure