M3Net: Efficient Time-Frequency Integration Network with Mirror Attention for Audio Classification on Edge

Xuanming Jiang, Baoyi An, Guoshuai Zhao, Xueming QianAAAI 2025

Introduction

Deploying deep learning for audio classification on resource-constrained edge devices, such as microcontrollers (MCUs), presents a significant challenge. High-accuracy models like Transformers or large Convolutional Neural Networks (CNNs) often exceed the memory and computational limits of these devices. Conversely, existing lightweight models frequently sacrifice accuracy to fit within hardware constraints. Furthermore, standard CNNs, originally designed for image processing, often fail to efficiently capture the unique, reversible relationships between the time and frequency axes in audio Mel-spectrograms.

To address these issues, this paper introduces M3Net, an ultra-lightweight neural network specifically tailored for the "multi-view" nature of audio data. By rethinking feature extraction through a novel "Mirror Attention" mechanism, M3Net achieves state-of-the-art (SOTA) performance with a fraction of the parameters required by existing models.

Methodology

The core innovation of M3Net is the Mirror Attention (MA) mechanism, which processes Mel-spectrogram features through two parallel branches to extract rich, multi-perspective information.

Overview of the M3Net architecture and the Mirror Attention mechanism.

Mirror Attention (MA)

The MA mechanism operates on the principle of symmetry, integrating flipping operations directly into the network architecture rather than using them solely for data augmentation. It consists of two primary components:

  1. Diagonal Feature Processing (DFP): This branch performs Center Symmetric Flipping (CSF), flipping the spectrogram across both time and frequency axes simultaneously. It utilizes a Convolutional Block and Efficient Channel Attention (ECA) to capture global features that are "opposite" to the original input.
  2. Mirror Feature Processing (MFP): This branch employs a Mirror Block (MB) to perform horizontal (time-domain) and vertical (frequency-domain) flipping. This allows the model to learn robust local and global features while maintaining a skip connection to preserve original data characteristics.
Detailed block diagram of M3Net, including the Mirror Block, Conv Block, and ECA Block.

The outputs of these two branches are integrated using a Hadamard product (element-wise multiplication). This "multi-view" approach enables the network to perceive the audio signal from different spatial perspectives, significantly enhancing feature extraction efficiency.

Experimental Evaluation

M3Net was evaluated on two benchmark datasets:

  • UrbanSound8K (US8K): 8,732 environmental sounds characterized by high irregularity and complexity.
  • SpeechCommandsV2 (SCV2): Approximately 105,000 vocal commands representing structured audio.

Notably, M3Net achieves its results without the need for data augmentation or pre-training, demonstrating the inherent robustness of its architecture.

Results and Discussion

M3Net demonstrates extreme parameter efficiency, utilizing only 0.03 million parameters. Despite its small size, it achieves 97.44% accuracy on the US8K dataset, outperforming the SE-TCAM model (94.04% accuracy) which has approximately 28 times more parameters.

Ablation studies confirmed the criticality of the Mirror Attention mechanism; removing it resulted in an accuracy drop of over 20% on both datasets. The model's performance on the complex US8K dataset suggests that the multi-view approach is particularly effective at mining critical information from noisy, irregular environments where traditional CNNs struggle.

Conclusion

M3Net provides a highly efficient solution for audio classification on the edge. By embedding symmetry-based feature processing into the network design, it achieves high accuracy with minimal memory footprint. Future work will involve real-world testing on physical edge devices to evaluate power consumption and latency, as well as exploring the architecture's scalability to more complex audio tasks.

Summary updated

BibTeX
@inproceedings{jiang2025m,
  author = {Xuanming Jiang and Baoyi An and Guoshuai Zhao and Xueming Qian},
  title = {{M3Net: Efficient Time-Frequency Integration Network with Mirror Attention for Audio Classification on Edge}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i17.33940},
}
Figure