Feature-Rich Audio Model Inversion for Data-Free Knowledge Distillation Towards General Sound Classification

Zuheng Kang, Yayun He, Jianzong Wang, Junqing Peng, Xiaoyang Qu, Jing Xiao

Introduction

Knowledge Distillation (KD) is a widely used technique for transferring knowledge from a large, complex "teacher" model to a smaller, more efficient "student" model. However, standard KD requires access to the original training data, which is often restricted in sensitive domains such as healthcare or smart home monitoring due to privacy and copyright concerns. Data-Free Knowledge Distillation (DFKD) addresses this by "inverting" the teacher model to generate synthetic training data.

While DFKD has seen success in computer vision, applying it to audio presents unique challenges. First, traditional inversion methods often result in sparse spectrograms where relevant features are concentrated in short bursts, leaving much of the temporal dimension empty. Second, audio models typically employ "Statistics Pooling" (SP) to handle variable-length inputs, a process that collapses temporal information and leads to significant information loss during distillation.

The FRAMI Framework

To overcome these hurdles, we propose Feature-Rich Audio Model Inversion (FRAMI). This framework introduces two key innovations designed to generate more informative synthetic audio features and improve knowledge transfer.

Overview of the FRAMI framework, illustrating the synthesis process and the feature-invariant contrastive loss.

1. Feature Invariance Contrastive Inversion

Environmental sounds, such as rain or mechanical noise, are often Time-Independent (TID), meaning their core characteristics are consistent throughout the recording. FRAMI leverages this property by dividing generated audio samples into multiple chunks and applying a feature-invariant contrastive loss. This loss ensures that all segments of a synthetic sample share similar latent features, forcing the generator to populate the entire time-spectrogram with relevant information rather than isolated "blips."

2. Reused Teacher Backend KD

Rather than relying solely on final classification logits, FRAMI supervises the student model using the teacher's internal representations. This occurs at two levels:

  • Frame-Level: Comparing hidden states before the statistics pooling layer to preserve temporal "rhythm."
  • Utterance-Level: Comparing states after pooling to capture global characteristics. Simple affine transformations are used to align the feature dimensions between the student and teacher models.

Experimental Results

The FRAMI framework was evaluated on three standard benchmarks: UrbanSound8k (US8k), ESC-50, and audioMNIST (AMnst).

Performance comparison of FRAMI against data-driven and data-free baselines across three benchmarks.

As shown in the results table, FRAMI significantly outperforms existing data-free baselines like ADI. On the US8k dataset, FRAMI achieved an accuracy of 79.93%, compared to 66.67% for ADI. Remarkably, in several instances, the FRAMI-trained student model outperformed students trained on the original raw data, and even surpassed its own teacher model in specific configurations. This suggests that the synthetic data generated by FRAMI acts as a potent form of regularization and data augmentation.

Discussion and Insights

A core insight of this work is the "TID Advantage." By enforcing feature invariance, the generator is compelled to create "feature-rich" data that often blends characteristics from multiple real-world samples of the same class. This results in synthetic audio that is not only effective for training but also recognizable to the human ear.

However, the effectiveness of the feature-invariant loss is tied to the nature of the audio. It is highly effective for stationary environmental sounds but shows a smaller impact on highly Time-Dependent (TD) audio, such as speech, where temporal transitions are critical to meaning.

Conclusion

FRAMI represents a significant step forward for data-free knowledge distillation in the audio domain. By addressing the specific structural properties of audio data and model architectures, it enables the creation of high-performing student models without compromising data privacy. Future work will explore extending these techniques to more complex tasks such as sound event detection and audio tagging in diverse acoustic environments.

Summary updated

BibTeX
@inproceedings{kang2023feature,
  author = {Zuheng Kang and Yayun He and Jianzong Wang and Junqing Peng and Xiaoyang Qu and Jing Xiao},
  title = {{Feature-Rich Audio Model Inversion for Data-Free Knowledge Distillation Towards General Sound Classification}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2023},
  url = {https://openreview.net/forum?id=7qtFyk8S-I},
}
Figure