TL;DR
Prompt learning effectively tunes Audio-Language Models (ALMs) for seen ("base") classes but often severely degrades their performance on unseen ("novel") classes. To bridge this gap, ZEBRA introduces a plug-and-play, zero-parameter framework that fuses zero-shot logits with prompt-learned logits and applies self-entropy regularization, boosting novel-class accuracy by over 9% without sacrificing base-class performance.
What Problem Does This Paper Address?
Audio-Language Models (ALMs) excel at zero-shot audio classification by aligning audio features with textual descriptions. However, relying purely on hand-crafted text prompts can be sub-optimal. To fix this, researchers use prompt learning (like CoOp and CoCoOp), which replaces static text templates with learnable context tokens optimized via a few labeled examples.
While prompt learning significantly boosts accuracy on the classes seen during training (base classes), it introduces a critical trade-off: it often tanks performance on unseen categories (novel classes), sometimes dropping below the original zero-shot baseline. This happens because optimizing prompts solely on base-class data causes the model to overfit to seen categories, distorting the robust semantic space learned during large-scale pre-training. ZEBRA tackles this "base-to-novel generalization gap."
Methods
ZEBRA (Zero-shot Entropy-Regularized Prompt Learning for Base-to-Novel Generalization) is a lightweight framework designed to sit on top of existing prompt learning methods. It introduces two complementary, parameter-free mechanisms:
- Zero-shot Logit Fusion: Instead of relying exclusively on the specialized logits generated by prompt learning ($f_{pr}$), ZEBRA linearly combines them with the original, frozen zero-shot logits ($f_{zs}$). This anchors the model's predictions to the well-generalized, pre-trained decision space.
- Self-Entropy Regularization: To prevent the model from becoming overconfident on base classes during few-shot training, ZEBRA adds a self-entropy regularization term to the loss function. By maximizing the entropy of the fused logits, the model is discouraged from drawing overly sharp decision boundaries around base classes, preserving semantic flexibility for unseen categories.
Because the zero-shot logits only need to be computed once and can be cached, ZEBRA introduces no additional learnable parameters and incurs virtually zero computational overhead.
Datasets
The authors evaluated ZEBRA across 12 diverse speech and audio classification datasets to ensure robust evaluation:
- Instrument Classification: Beijing Opera, NS-Instruments
- Sound Event Classification: ESC-50, ESC50-Actions, UrbanSound8K
- Emotion Recognition: CREMA-D, RAVDESS
- Vocal Sound Classification: VocalSound
- Surveillance Sound Event Classification: SESA
- Acoustic Scene Classification: TUT2017
- Music Analysis: GT-Music-Genre
Key Insights and Ideas
- The Overfitting Paradox: Standard prompt learning acts as a double-edged sword. The very mechanism that specializes the text encoder for base classes actively harms its ability to generalize to novel concepts.
- Anchoring via Fusion: Merely adding a fraction of the original zero-shot knowledge back into the logit space acts as a powerful regularizer, preventing the model from wandering too far into task-specific overfitting.
- Entropy as a Buffer: Maximizing self-entropy during training forces the model to maintain a degree of uncertainty. This uncertainty prevents the decision boundaries from collapsing solely around seen classes, leaving room for novel audio concepts.
Key Results
Across all 12 datasets, ZEBRA consistently mitigated the base-to-novel generalization gap:
- Novel Class Boost: Vanilla CoOp dropped novel-class accuracy to an average of 48.04% (below the 55.18% zero-shot baseline). Integrating ZEBRA brought CoOp's novel accuracy up to 59.37% (a +11.33% absolute improvement). Similarly, CoCoOp + ZEBRA improved novel accuracy from 50.44% to 59.50%.
- Preserved Base Accuracy: Crucially, these gains did not come at the expense of base classes. For instance, CoOp + ZEBRA achieved 80.17% on base classes compared to vanilla CoOp's 79.82%.
- Negligible Overhead: Training and testing times remained nearly identical. For example, CoOp took 19m 36s to train, while CoOp + ZEBRA took 19m 45s.
- Improved Calibration: ZEBRA consistently lowered the Expected Calibration Error (ECE) on novel classes, meaning the model's confidence scores became much more reliable indicators of actual accuracy.
Limitations and Future Work
While ZEBRA provides a simple and effective fix, a few limitations remain:
- Hyperparameter Sensitivity: The contribution weights for logit fusion ($\lambda_{zs}$ and $\lambda_{pr}$) and the entropy scaling factor are fixed empirical constants (set to 0.5 and 0.05, respectively). Future work could explore dynamically or adaptively tuning these weights per dataset.
- Backbone Dependency: ZEBRA relies heavily on the quality of the underlying pre-trained ALM (in this case, PENGI). If the base model's zero-shot alignment is weak, anchoring to it via logit fusion may yield diminishing returns.
Summary updated