Audio-Visual Synchronisation in the wild

Triantafyllos Afouras, Honglie Chen, Weidi Xie, Arsha Nagrani, Andrea Vedaldi, Andrew Zisserman

Abstract

While audio-visual synchronisation is a well-established field for human speech, "in-the-wild" videos present unique challenges due to diverse sound classes and complex spatial dynamics. This paper introduces AVST (Audio-Visual Synchronisation with Transformers) and the VGG-Sound Sync benchmark to address these challenges. By leveraging Transformer architectures, the authors achieve state-of-the-art results on speech datasets and establish a robust baseline for general open-domain synchronisation.

Introduction: Beyond Lip-Syncing

Most research in audio-visual synchronisation has historically focused on human speech, specifically the "lip-syncing" problem. However, synchronising general sounds—such as a dog barking, a hammer hitting a nail, or a helicopter rotor spinning—is significantly more difficult.

Audio-visual misalignment in a general 'in-the-wild' video.

The authors identify three primary hurdles in the general domain:

  1. Fleeting Evidence: Unlike speech, where mouth movements are continuous, general sounds like a "woof" or a "click" may last only a fraction of a second.
  2. Spatial Complexity: In speech, the sound source is always the mouth. In general videos, the source can be anywhere in the frame, requiring the model to process the entire scene to find relevant visual cues.
  3. Ambient Noise: Many real-world videos contain uniform sounds (e.g., wind, engine hums) that lack distinct visual correlations, making temporal alignment nearly impossible for certain clips.

Methods: AVST Architecture

To tackle these issues, the authors propose AVST (Audio-Visual Synchronisation with Transformers). The framework uses CNN backbones to extract features from audio spectrograms and video frames. These features are then fed into a Transformer to model the cross-modal relationships.

The AVST architecture and its encoder/decoder variants.

The paper explores three architectural variants to balance performance and computational efficiency:

  • Encoder variant ($AVST_{enc}$): This model treats dense visual features as a sequence of tokens. While powerful, it is computationally expensive due to the quadratic cost of self-attention on long sequences.
  • Max-pooled Encoder ($AVST_{enc-mp}$): By applying Global Max Pooling to each frame, this variant reduces sequence length, making it memory-efficient. It performs exceptionally well on speech where spatial details are less critical.
  • Decoder variant ($AVST_{dec}$): This version keeps dense visual features fixed as Keys and Values, while audio features act as the Query. This allows the model to "probe" the visual scene for specific sound-producing regions without the memory overhead of full self-attention.

The models are trained using a self-supervised InfoNCE loss (contrastive learning) with a two-stage curriculum: first distinguishing audio from different videos, then detecting subtle temporal offsets within the same video.

Datasets and Benchmarks

The research utilizes both established speech benchmarks and a new general-purpose dataset:

  • LRS2 & LRS3: Standard lip-reading benchmarks used to validate the model's effectiveness on speech.
  • VGG-Sound Sync: A new benchmark curated from the VGG-Sound dataset. The authors filtered the original 300 classes down to over 160 categories with high audio-visual correlation (e.g., "chopping food" vs. "ambient wind"). It consists of 95k training videos and a 5k video test set.

Key Insights

  • Temporal Context: Longer input sequences (up to 6 seconds) significantly improve performance. A wider window increases the likelihood of capturing "fleeting" cues, such as a single drum beat, within the sample.
  • Spatial Attention: While max-pooling suffices for speech, the Decoder variant is superior for general classes. This suggests that for complex scenes, the model must attend to specific regions—like a player's hands on a guitar—rather than the entire object.
  • Human Perception: User studies revealed that humans are more tolerant of sync errors in general videos than in speech. The authors defined a "correct" sync for general classes as being within $\pm 0.2$ seconds (5 frames), compared to the $\pm 0.04$ seconds required for speech.

Results

  • Speech SOTA: On LRS2, $AVST_{enc-mp}$ achieved 99.9% accuracy with 15 frames of input, outperforming previous baselines like SyncNet (96.1%) and PM (99.1%).
  • General Domain: On the VGG-Sound Sync dataset, $AVST_{dec}$ outperformed the previous state-of-the-art (AVObjects) across all sequence lengths. For 6-second clips, it reached 52.7% accuracy (vs. 49.4% for AVObjects).
  • Class-Specific Performance: Success is highly dependent on the sound class. "Child singing" was the most accurately synchronised (75.7%), while stationary sounds or complex backgrounds remain challenging.

Limitations and Future Work

Synchronisation remains difficult when information is missing from one modality. For instance, if a sound source moves off-camera or if a visual action occurs without a corresponding sound (or vice versa), the model's confidence drops. Future research will explore even longer input sequences and improved methods for handling sparse or intermittent audio-visual evidence.

Summary updated

BibTeX
@inproceedings{afouras2021audio,
  author = {Triantafyllos Afouras and Honglie Chen and Weidi Xie and Arsha Nagrani and Andrea Vedaldi and Andrew Zisserman},
  title = {{Audio-Visual Synchronisation in the wild}},
  booktitle = {BMVC},
  year = {2021},
}
Figure