AAAI 2027

SpurAudio A Benchmark for Studying Shortcut Learning in Few-Shot Audio Classification

Few-shot audio classifiers can be right for the wrong reason. SpurAudio mixes foreground events with controlled backgrounds, then breaks that pairing at test time to measure how much of the accuracy was a shortcut.

Loay Mualem†

University of Stuttgart · IMPRS-IS

loaym.github.ioScholar

*Equal contribution  ·  †Corresponding author

The shortcut

Right answer, wrong reason.

Audio is additive. A cough is never recorded alone: it is summed, in time and frequency, with the vacuum cleaner or the storm around it. When a class keeps arriving with the same background, a few-shot model can tell classes apart by their context and still look accurate.

Standard benchmarks cannot see this, because support and query share the same conditions. Move the same sound to a different room and the shortcut stops working, even though nothing about the sound itself has changed.

What the model hears coughing + thunderstorm
The foreground decides the label. The background is unrelated context, 8 dB quieter. The model only ever receives their sum, and nothing in it says which part is the label.

Listen: one sound, four rooms

These are real clips from the SpurAudio test split, drawn as the log-mel spectrograms a model receives. Keep the foreground fixed and change the background: the label never moves.

Foreground · the label
Background · the context
8 kHz · 128 mel bands

The benchmark

Built to pull signal and context apart.

SpurAudio draws clips from five public datasets, pairs every foreground class with four unrelated backgrounds, mixes them at a realistic level, and keeps only the mixtures that human annotators judged clean.

38
foreground classes
25 train · 5 validation · 8 test
no class shared between splits
29
background contexts
four per foreground
shared across all splits
16,378
curated sound events
kept from 50,116 generated mixtures after manual review
5
source datasets
ESC-50 · UrbanSound8K · VocalSound · WILD DESED · USM

Foreground & Background Pairing

Wiring
  • test class
  • validation
  • train
Foreground · label
    Background · context

      The protocol

      Same episode. Swap the background.

      Evaluation uses the standard N-way K-shot episode: a few labelled support clips per class, then unlabelled queries to classify. SpurAudio samples every test episode two ways and reports the difference.

      IID

      Queries share the background pairings of their class's support clips. This is what a standard benchmark measures.

      OOD

      Queries arrive with backgrounds that also appear next to other classes. N, K and the number of queries stay the same.

      Δ

      Δ = AccIID − AccOOD
      The share of accuracy that depended on the background.

      Episode sampling
      Support set · labelledQuery · to classify
      coughing
      pig

      A 2-way 2-shot episode built from real test clips. Click any clip to hear it.

      Feature space · schematic
      Schematic feature space with support prototypes and queries for two classes
      • support clip
      • class prototype
      • query
      • decision boundary

      The feature-space diagram is a two-dimensional sketch of the effect reported in Appendix H of the paper, not a plot of real embeddings. Reported numbers use 5-way episodes with 1 or 5 shots, 10 queries per class, 1,000 test episodes and three seeds.

      Results

      Break the pairing and every method drops.

      The gap shows up in every family, at every backbone size and at every shot count.

      Explore every table in the paper

      Backbone
      Shots
      Order
      View

      • IID accuracy
      • OOD accuracy
      • gap Δ

      Accuracy in %, 5-way episodes; hover or focus a row for the spread reported in the paper. Δ is printed exactly as in the paper. CNN backbones are trained on SpurAudio's base classes and averaged over three seeds; large encoders are frozen and paired with heads that need no backbone training. * marks a variant with an extra attention module.

      Citation

      BibTeX
      @inproceedings{ayoub2027spuraudio,
        title={SpurAudio: A Benchmark for Studying Shortcut Learning in Few-Shot Audio Classification},
        author={Ayoub, Giries Abu and Tukan, Morad and Mualem, Loay},
        booktitle={Proceedings of the AAAI Conference on Artificial Intelligence},
        year={2027}
      }