A Passive Similarity based CNN Filter Pruning for Efficient Acoustic Scene Classification

Arshdeep Singh, Mark D. Plumbley

Abstract

As Convolutional Neural Networks (CNNs) become increasingly prevalent in Acoustic Scene Classification (ASC), the demand for deploying these models on resource-constrained IoT and mobile devices has grown. This paper presents a novel "passive" pruning framework that identifies and removes redundant filters based on their structural similarity rather than their weight magnitude. By employing Singular Value Decomposition (SVD) for filter representation and cosine similarity for redundancy detection, the proposed method achieves significant compression—reducing Multiply-Accumulate operations (MACs) by 27% and parameters by 25%—while maintaining high classification accuracy.

Introduction

Acoustic Scene Classification (ASC) enables devices to interpret their environments, such as identifying a "busy street" or a "quiet office." While CNNs provide state-of-the-art performance in these tasks, their high computational and memory requirements often preclude deployment on edge hardware. Model pruning is a common strategy to mitigate this, typically categorized into active methods (requiring data to determine importance) or passive methods (relying on weight properties like the $l_1$-norm).

This research addresses a critical flaw in magnitude-based pruning: a filter with small weights may capture a unique, essential feature, while two filters with large weights may be functionally redundant. By focusing on similarity rather than size, the authors propose a more nuanced approach to network compression.

Methodology

The proposed framework utilizes a four-step process to streamline CNNs without the need for data-driven importance metrics during the pruning phase.

1. Filter Representation and SVD

To compare 3D convolutional filters, the authors first transform them into 2D matrices. They then apply Singular Value Decomposition (SVD) to obtain a "Rank-1 approximation." This step distills the most significant characteristics of each filter into a single representative vector, simplifying the comparison process while preserving the filter's core features.

2. Similarity Measurement

The similarity between filters is quantified using cosine distance. By calculating the pairwise distance between the representative vectors of all filters within a specific layer, the system generates a similarity matrix ($W$). High similarity indicates that two filters are likely extracting nearly identical features from the input audio signal.

3. Greedy Pruning Algorithm

Unlike many pruning techniques that require a manually defined "pruning ratio," this paper introduces a greedy algorithm to automate selection. The algorithm identifies the closest pairs of filters in the similarity matrix; for each pair, one filter is retained as "important" while the other is marked as "redundant." This allows the network to naturally determine the optimal number of filters to prune based on the inherent redundancy of the layer.

4. Fine-tuning

Once the redundant filters are removed, the resulting compact model undergoes a brief fine-tuning phase. This step is essential to recalibrate the remaining weights and recover any minor accuracy loss incurred during pruning.

Experimental Setup

The method was evaluated using the TAU Urban Acoustic Scenes 2020 Mobile dataset, a standard benchmark from the DCASE 2021 Task 1A challenge. This dataset is particularly relevant for real-world applications as it includes audio recorded across diverse cities and various mobile devices, testing the model's ability to generalize across hardware variations.

Key Results and Insights

Efficiency and Accuracy

The similarity-based pruning was applied to a baseline CNN featuring three convolutional layers. The results demonstrate a highly favorable trade-off between model size and performance:

  • Compression: The pruned model achieved a 27% reduction in MACs and a 25% reduction in total parameters.
  • Performance Retention: Accuracy dropped by less than 1% (from 48.58% to approximately 47.6%).
  • Comparison to Norm-based Pruning: When compared to standard $l_1$-norm pruning at equivalent compression levels, the similarity-based approach consistently yielded 1.0% to 1.5% higher accuracy, validating the hypothesis that redundancy is a better metric for pruning than magnitude.

Layer Sensitivity and Fine-tuning

The researchers observed that the final convolutional layer (C3) was the most sensitive to pruning. Significant initial accuracy drops occurred when C3 was pruned, suggesting it serves as a bottleneck where high-level decision boundaries are formed. Additionally, the study found that fine-tuning is highly efficient; using only 75% of the training data during the recovery phase produced results nearly identical to using the full dataset, further reducing the computational overhead of the optimization pipeline.

Conclusion

This paper demonstrates that passive, similarity-based pruning is a robust and efficient alternative to traditional magnitude-based methods for ASC. By identifying "twin" filters that contribute redundant information, the proposed method achieves substantial hardware-friendly compression with minimal impact on accuracy. Future work will explore more complex distance metrics beyond cosine similarity and investigate dimensionality reduction techniques that could further refine filter representation.

Summary updated

BibTeX
@inproceedings{singh2022passive,
  author = {Arshdeep Singh and Mark D. Plumbley},
  title = {{A Passive Similarity based CNN Filter Pruning for Efficient Acoustic Scene Classification}},
  booktitle = {Interspeech},
  year = {2022},
  doi = {10.21437/interspeech.2022-10714},
}
Figure