Audio-visual Generalized Zero-shot Learning the Easy Way

Shentong Mo, Pedro Morgado

TL;DR

EZ-AVGZL simplifies audio-visual generalized zero-shot learning by ditching complex feature-reconstruction architectures in favor of a single supervised contrastive loss. By optimizing pre-trained text embeddings to maximize class separation while preserving their original semantic structure, the framework achieves new state-of-the-art performance across major video benchmarks.

What Problem Does This Paper Address?

Audio-visual Generalized Zero-shot Learning (AVGZSL) aims to classify video clips into categories that were never seen during training, leveraging both video frames and audio tracks. To bridge the gap between video features and unseen class labels, models typically rely on pre-trained text embeddings (like word2vec or CLIP) as a semantic bridge.

Prior approaches to this problem have been notoriously complex. They often rely on synchronized autoencoders and cross-attention transformers designed to reconstruct audio-visual attributes and text embeddings. This complexity makes it difficult to understand the actual interplay between cross-modal features and class labels.

Furthermore, the authors identify a fundamental bottleneck: while off-the-shelf text embeddings excel at capturing semantic relationships, they lack the class separability required for robust classification. For instance, the embeddings for "a person playing guitar" and "a person playing violin" sit too close together in the feature space, leading to high confusion rates when evaluating unseen classes.

Methods

The authors introduce EZ-AVGZL (Easy Audio-Visual Generalized Zero-shot Learning), a streamlined framework consisting of two main components:

  1. Class Embedding Optimization (CEO): Instead of using raw text embeddings, EZ-AVGZL optimizes a new set of class embeddings ($w$) using differential optimization. This optimization balances two competing constraints:
  2. Class Separability: A loss term ($\mathcal{L}_{sep}$) that maximizes the distance between each class embedding and its nearest neighbor.
  3. Semantic Preservation: A margin ranking loss ($\mathcal{L}_{sem}^{rank}$) that ensures the optimized embeddings retain the original relative similarity rankings from the pre-trained language space (e.g., ensuring "guitar" stays closer to "violin" than to "dog barking").
  4. Supervised Audio-Visual Language Alignment (AVLA): The framework fuses audio and visual features using a standard cross-attention transformer. It then aligns these joint representations with the optimized text embeddings using a single supervised contrastive loss ($\mathcal{L}_{AVLA}$), completely bypassing the need for generative reconstruction.

Instead of standard cosine similarity, the authors employ a non-linear similarity operator powered by a multi-head cross-attention layer (treating class embeddings as queries and audio-visual features as keys/values) to compute final classification scores.

EZ-AVGZL Framework Overview

Datasets

The model was evaluated on three standard AVGZSL benchmarks:

  • VGGSound-GZSL: 93,752 videos across 276 classes.
  • UCF-GZSL: 6,816 videos across 51 classes (derived from UCF101).
  • ActivityNet-GZSL: 20,000 videos across 200 classes.

Evaluation metrics include top-1 accuracy on Seen (S) and Unseen (U) classes, along with their Harmonic Mean (HM), which serves as the primary metric for generalized zero-shot performance.

Key Insights and Ideas

  • Simplicity Beats Complexity: You don't need heavy generative autoencoders to align modalities. A clean contrastive alignment strategy works better, provided the target text space is well-conditioned for classification.
  • The Geometry of Zero-Shot Spaces: Maximizing class separation blindly results in a "Tammes problem" configuration where all classes become equidistant, destroying semantic meaning. The introduction of a ranking-based semantic loss preserves the topology of the language space while stretching the boundaries between classes.
  • Ditching Cosine Similarity: Linear or cosine similarity metrics are too rigid for complex cross-modal matching. Using a transformer attention block as a trainable, non-linear similarity operator yields significantly better alignment.

Key Results

EZ-AVGZL achieved state-of-the-art performance across all three datasets, outperforming much more complex baseline models.

Performance comparison across benchmarks
  • VGGSound-GZSL: Achieved a Harmonic Mean of 11.55%, outperforming the previous best baseline (TCaF at 8.77% and Hyper-multiple at 8.67%).
  • UCF-GZSL: Reached an HM of 58.24%, a substantial jump over TCaF's 50.78%.
  • ActivityNet-GZSL: Posted an HM of 19.27% compared to Hyper-multiple's 15.25%.

Ablation studies confirmed that combining both Class Embedding Optimization (CEO) and the non-linear similarity operator was vital to these gains. Furthermore, the method proved highly robust when paired with various modern foundation models, including LLaMa, CLAP, and ImageBind.

Limitations and Future Work

The primary limitation noted in the paper involves the computational complexity of the ranking loss function ($\mathcal{L}_{sem}^{rank}$), which grows cubically ($O(|\mathcal{T}|^3)$) with the number of classes. While manageable for standard datasets, it becomes impractical for massive vocabularies. The authors suggest sampling a fixed number of class triplets per iteration as a viable workaround for scaling up.

Summary updated

BibTeX
@inproceedings{mo2024audio,
  author = {Shentong Mo and Pedro Morgado},
  title = {{Audio-visual Generalized Zero-shot Learning the Easy Way}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-73209-6\_22},
}
Figure