Compressing audio CNNs with graph centrality based filter pruning

James A. King, Arshdeep Singh, Mark D. Plumbley · DOI

Introduction

Deep learning models for audio tasks, such as acoustic scene classification and audio tagging, have become increasingly powerful but at a significant computational cost. Modern architectures often contain millions of parameters and require billions of Multiply-Accumulate operations (MACs) per second of audio. This "heaviness" presents three critical challenges: deployment on resource-constrained IoT devices, high power consumption, and environmental sustainability. For instance, training a modern GPU for just 48 hours can emit as much $CO_2$ as driving a car for 13 miles.

To address these issues, researchers have turned to model pruning. However, existing "active" pruning methods require passing large datasets through the network to evaluate filter importance, which is both slow and memory-intensive. Conversely, traditional "passive" (data-free) methods often rely on simple metrics like the $l_1$-norm, which may inadvertently delete unique information while retaining redundant filters. This paper introduces a novel passive method that treats filters as nodes in a graph to identify and prune redundancy based on graph centrality.

Methodology: Graph-Based Pruning

The authors propose a layer-wise pruning framework that leverages graph-theoretic measures to identify redundant filters without requiring input data. The workflow consists of five key stages:

  1. Filter Representation: Each 3D filter in a convolutional layer is flattened and simplified using Singular Value Decomposition (SVD) to extract its most significant "representative" vector.
  2. Graph Construction: A graph is constructed where each filter is a node. The edges between these nodes are weighted based on the cosine similarity between their representative vectors.
  3. Centrality Scoring: The framework identifies "central" nodes using two specific measures:
  4. Weighted Degree Centrality (WDC): This identifies filters that are highly similar to many others in the layer.
  5. Betweenness Centrality (BC): This identifies filters that act as "bridges" or common points within the similarity network.
  6. Pruning: Filters with the highest centrality scores—those representing the most "commonality" or redundancy—are removed.
  7. Fine-tuning: A brief retraining period follows the pruning to allow the remaining filters to compensate for the removed parameters.

This approach is considered "passive" because it analyzes the weights of the filters themselves rather than the feature maps generated by data flowing through the network.

Experimental Setup

The method was evaluated across two distinct scales of audio processing:

  • DCASE 2021 Task 1A: Focused on Acoustic Scene Classification (10 classes) using the DCASE21_Net baseline. This is a relatively small model with approximately 46k parameters.
  • AudioSet: A large-scale dataset of over 2 million sound events. The researchers used the PANNs CNN14 model, a massive pre-trained network featuring 81M parameters and 21G MACs.

Key Insights and Results

The core hypothesis of the paper is that high centrality equates to redundancy. If a filter is highly central, its "knowledge" is likely distributed across its neighbors in the graph, making it a prime candidate for removal.

Performance Metrics

  • DCASE21_Net: The WDC method reduced computations (MACs) by 71% and parameters by 50% with less than a 2% drop in accuracy.
  • PANNs CNN14: For this large-scale model, the method achieved a 24% reduction in MACs and 41% fewer parameters. Notably, the model saw a slight improvement in mean Average Precision (mAP), suggesting that pruning can act as a form of regularization by removing "noisy" or overly redundant filters.
  • Efficiency: Compared to active methods like HRank, the WDC approach achieved comparable accuracy without the massive memory overhead. For example, it required only 0.15MB of storage for the pruning process compared to the 1.26GB required by feature-map-based methods.

Centrality Comparison

Weighted Degree Centrality (WDC) generally outperformed Betweenness Centrality and other standard passive metrics. WDC provides a more global view of redundancy than simple pairwise similarity, making it more effective at identifying filters whose information is already well-represented elsewhere in the layer.

Limitations and Future Work

While the pruning process itself is data-free and highly efficient, the model still requires a fine-tuning phase to recover its full performance. In the case of the PANNs model, this involved 180k iterations. Additionally, the researchers found that layer sensitivity varies; the first convolutional layer is highly sensitive to pruning, whereas deeper layers (C7-C12) exhibit much higher levels of redundancy.

Future research directions include exploring more sophisticated centrality measures and developing techniques to reduce the computational overhead of the fine-tuning phase. This work demonstrates that graph-theoretic approaches offer a scalable, efficient path toward deploying state-of-the-art audio models on edge devices.

Summary updated

BibTeX
@inproceedings{king2023compressing,
  author = {James A. King and Arshdeep Singh and Mark D. Plumbley},
  title = {{Compressing audio CNNs with graph centrality based filter pruning}},
  booktitle = {WASPAA},
  year = {2023},
  doi = {10.1109/waspaa58266.2023.10248103},
}
Figure