CED: Consistent Ensemble Distillation for Audio Tagging

Heinrich Dinkel, Yongqing Wang, Zhiyong Yan, Junbo Zhang, Yujun Wang

TL;DR

CED (Consistent Ensemble Distillation) is a new training framework that allows small audio tagging models to achieve state-of-the-art performance by learning from large teacher ensembles. By cleverly storing only the augmentation seeds and top-K logits, the authors enable "consistent teaching"—applying the exact same data augmentations to both teacher and student—while using only 0.3% of the storage typically required for offline distillation.

What Problem Does This Paper Address?

Audio Tagging (AT) is the task of identifying sound events (like a car horn or a bird chirping) in an audio clip. To deploy these systems on mobile or edge devices, we need models that are both small and accurate.

Researchers usually turn to Knowledge Distillation (KD), where a small "student" model learns from a large "teacher" model. However, there is a catch:

  1. Online KD (calculating teacher outputs on the fly) is painfully slow because you have to run the massive teacher model for every training step.
  2. Offline KD (pre-calculating and saving teacher outputs) is faster but usually ignores data augmentation. If you augment the student's input but the teacher's saved labels were based on the original, un-augmented clip, the student gets "inconsistent" signals, which hurts performance.
  3. Storing augmented data for offline KD is a storage nightmare—potentially requiring hundreds of gigabytes per epoch.

Methods

The authors propose CED, a framework that bridges the gap between speed and consistency.

The "Consistent Teaching" Trick

The core idea is to ensure the teacher and student see the exact same version of a sound. If the student hears a version of a "dog bark" that has been pitch-shifted and masked, the teacher's "labels" (logits) must also be based on that specific pitch-shifted and masked version.

The Storage Hack

To make this scalable, CED doesn't store the augmented audio. Instead, it stores:

  • The Random Seed ($\phi$): A tiny integer that allows the training script to perfectly recreate the exact same augmentation (wave-level and spectrogram-level) during the student's training.
  • Top-K Logits: Instead of saving all 527 class probabilities for AudioSet, they only save the top 20 ($K=20$). They assume the rest are zero.

This reduces the storage requirement for the massive AudioSet-2M dataset from 4 GB per epoch to just 80 MB—a 99.7% reduction in overhead.

The Architecture

  • Teacher: An ensemble of five Vision Transformers (two ViT-Base and three ViT-Large).
  • Students: A family of ViT-based models ranging from "Tiny" (5.5M parameters) to "Base" (86M parameters).

Datasets

  • AudioSet (AS-2M & AS-20K): The primary benchmark, containing over 2 million 10-second clips across 527 classes.
  • HEAR Benchmark: Used for downstream transferability testing, including FSD50K (sound events), ESC-50 (environmental sounds), and DCASE16 (acoustic scenes).

Key Insights and Ideas

  • Consistency is King: The researchers found that simply adding augmentation to the student without matching the teacher (inconsistent teaching) actually decreased performance. However, when the teacher and student were synchronized (consistent teaching), performance jumped by 5–7 mAP points.
  • Label-Free Learning: The student models were trained entirely on teacher logits, without ever looking at the original "hard" ground-truth labels. This suggests that the teacher's soft labels contain richer information for the student to digest.
  • Top-K is Sufficient: You don't need the full probability distribution. Saving just the top 20 classes provides enough signal for the student to reach near-teacher performance levels.

Key Results

The results are impressive for the model size:

  • The "Mini" Model: With only 10 million parameters, it achieved a 49.0 mAP on AudioSet. For context, this outperforms much larger models like the 86M parameter AST (45.9 mAP) and even the 90M parameter BEATs (48.6 mAP).
  • The "Base" Model: Reached 50.0 mAP, nearly matching the performance of the 5-model ensemble teacher (50.1 mAP).
  • Transferability: Models trained with CED aren't just good at AudioSet; they set new high-water marks on the HEAR benchmark tasks (FSD50K, ESC-50, DCASE16), proving the learned features are robust and generalizable.

Limitations and Future Work

  • Transformer Focus: While the paper focuses on Vision Transformers (ViTs), the authors note that CED is a general framework. However, they haven't yet demonstrated its effectiveness on other architectures like CNNs or EfficientNets in this specific study.
  • Fixed Augmentations: The current implementation relies on a specific set of augmentations (SpecAug, mixup, shifting). Exploring how more complex or learned augmentations interact with the "seed-saving" strategy could be a future direction.
  • Teacher Dependency: The student is ultimately capped by the teacher's performance. If the ensemble teacher has biases or errors, the student will likely inherit them.

Summary updated

BibTeX
@inproceedings{dinkel2024ced,
  author = {Heinrich Dinkel and Yongqing Wang and Zhiyong Yan and Junbo Zhang and Yujun Wang},
  title = {{CED: Consistent Ensemble Distillation for Audio Tagging}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2024},
  doi = {10.1109/icassp48485.2024.10446348},
}
Figure