Siamese Vision Transformers are Scalable Audio-visual Learners

Yan-Bo Lin, Gedas Bertasius

TL;DR

AVSiam introduces a highly efficient audio-visual pretraining framework that replaces separate modality backbones with a single, shared Vision Transformer (ViT). By combining weight-sharing with a novel multi-ratio random masking scheme, it slashes pretraining compute costs by up to 28.9× while achieving state-of-the-art performance on audio-visual classification and retrieval tasks.

What Problem Does This Paper Address?

Multimodal learning, specifically audio-visual representation learning, typically relies on separate, specialized backbones for processing audio (e.g., Audio Spectrogram Transformers) and video (e.g., ViTs or CNNs). This dual-backbone approach is incredibly resource-heavy. For instance, recent state-of-the-art models like MAViL require over 5,000 V100 GPU hours for pretraining, and others demand massive GPU memory (48GB+), making them inaccessible to most research labs and difficult to scale.

Furthermore, separate backbones introduce handcrafted inductive biases and lack the flexibility to handle missing modalities seamlessly—such as robustly evaluating a model when only audio or only visual data is available at test time.

Methods

The authors propose AVSiam (Audio-Visual Siamese Network), which processes both audio and visual inputs using a single shared ViT backbone.

  • Modality Alignment: Visual inputs are standard RGB frames. Audio inputs are converted into 2D mel-spectrograms, which structurally resemble single-channel images. To feed the single-channel audio into the ViT's standard 3-channel linear projection layer, AVSiam averages the weights of the three channels.
  • Multi-Ratio Masking: Instead of using a fixed masking ratio (e.g., always masking 75% of tokens), AVSiam randomly assigns a masking ratio between 0% and 50% to each audio and visual instance during every training iteration. This forces the model to learn robust representations across a spectrum of available information while dramatically reducing the GPU memory footprint.
  • Pretraining Objectives: The model is optimized using a joint loss function: an audio-visual contrastive matching loss (aligning paired audio and video representations) and a masked token reconstruction loss (rebuilding the masked patches via a shared multimodal layer and decoder).
  • Mixed-Modality Finetuning: During downstream finetuning, the model randomly trains on audio-only, visual-only, or joint audio-visual inputs, ensuring high robustness to missing modalities.
Fig. 2: Our Pretraining Framework. Our AVSiam approach uses a single shared vision transformer backbone to process both audio and visual data. To train our model, we use a novel multi-ratio masking scheme, which randomly masks audio and visual tokens at various masking ratios. As our pretraining objectives, we employ audio-visual contrastive matching and audio-visual token reconstruction loss functions.

Datasets

  • AudioSet-2M / AudioSet-20K: A massive dataset of weakly labeled 10-second video clips. Pretraining was performed on a 1.7M subset due to expired YouTube links.
  • VGGSound: Over 200k video clips spanning 300+ sound categories, used for both classification and retrieval.
  • ACAV (2.4M): An automatic curation dataset used additionally for the scaled-up AVSiam-Base+ variant.
  • MSR-VTT: A large video description dataset used to evaluate zero-shot and finetuned video-to-audio and audio-to-video retrieval.

Key Insights and Ideas

  • Unified Latent Space: Because the exact same ViT weights process both audio and video, the model naturally projects both modalities into a highly unified latent space. This inherently boosts cross-modal retrieval tasks without needing complex alignment layers.
  • The Power of Variable Masking: Fixed-ratio masking can either discard too much information or save too little memory. Multi-ratio masking acts as a regularizer, training the network to handle varying levels of degradation and allowing efficient batching by selecting from a predefined set of discrete ratios.
  • ViT as a Universal Fabric: This work reinforces that ViTs are highly generalizable; a vision-pretrained ViT can seamlessly adapt to audio spectrograms simply by averaging its input projection weights.

Key Results

  • Massive Speedup: AVSiam-Base requires only 177 V100 GPU hours for pretraining compared to MAViL's 5,120 hours—a 28.9× reduction in compute cost while delivering comparable or superior performance.
  • Parameter & Memory Efficiency: By sharing weights, AVSiam-Base uses only 100M parameters (compared to 164M for CAV-MAE and 172M for MAViL) and cuts GPU memory usage nearly in half (10.9G vs 20.6G for a separate-encoder baseline).
  • State-of-the-Art Performance: The largest variant, AVSiam-Huge, achieves SOTA results across multiple benchmarks: 45.0 mAP on AudioSet-20K, 54.1 mAP on AudioSet-2M, and 68.0% accuracy on VGGSound.
  • High Throughput: AVSiam processes 75.4 samples/second, vastly outperforming CAV-MAE (22.5) and MAViL (3.84).
Fig. 1: Our Audio-visual Siamese network (AVSiam) uses a single shared backbone to process audio and visual data, which reduces its GPU memory footprint and allows us to scale our method to larger datasets and model sizes. Compared to prior audio-visual approaches [20,26,28], which are very costly, our model is both more efficient and also achieves higher accuracy on standard audio-visual classification benchmarks. 1

Limitations and Future Work

  • Simple Frame Aggregation: During finetuning, the model processes individual video frames and averages the predicted probabilities across 10 frames to make a video-level prediction. The authors note this temporal aggregation strategy might be less optimal than using dedicated video encoders that model space-time tokens natively.
  • Future Horizons: The authors plan to scale AVSiam to even larger datasets and explore its adaptability to more complex downstream audio-visual tasks, such as audio-visual question answering (AVQA), event localization, and semantic segmentation.

Summary updated

BibTeX
@inproceedings{lin2024siamese,
  author = {Yan-Bo Lin and Gedas Bertasius},
  title = {{Siamese Vision Transformers are Scalable Audio-visual Learners}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72630-9\_18},
}
Figure