arXiv(opens in a new tab)Computer ScienceOct 2022

Manuscript Offprint

arXiv:2210.07055

Sparse in Space and Time: Audio-visual Synchronisation with Trainable Selectors

Vladimir E. Iashin, Weidi Xie, Esa Rahtu, Andrew Zisserman

Abstract

The objective of this paper is audio-visual synchronisation of general videos ‘in the wild’. For such videos, the events that may be harnessed for synchronisation cues may be spatially small and may occur only infrequently during a many seconds-long video clip, i.ethe synchronisation signal is ‘sparse in space and time’. This contrasts with the case of synchronising videos of talking heads, where audio-visual correspondence is dense in both time and space.

We make four contributions: (i) in order to handle longer temporal sequences required for sparse synchronisation signals, we design a multi-modal transformer model that employs ‘selectors’ to distil the long audio and visual streams into small sequences that are then used to predict the temporal offset between streams. (ii) We identify artefacts that can arise from the compression codecs used for audio and video and can be used by audio-visual models in training to artificially solve the synchronisation task. (iii) We curate a dataset with only sparse in time and space synchronisation signals; and (iv) the effectiveness of the proposed model is shown on both dense and sparse datasets quantitatively and qualitatively. Project page: \colorblue v-iashin.github.io/SparseSync

1 Introduction

Audio-visual synchronisation is the task of determining the temporal offset between the audio (sound) and visual (image) streams in a video. In recent literature, this task has been explored by exploiting strong correlations between the audio and visual streams, e.gin human speech [Chung and Zisserman(2016a), Chung et al.(2019)Chung, Chung, and Kang, Afouras et al.(2020)Afouras, Owens, Chung, and Zisserman] and playing instruments [Arandjelovic and Zisserman(2018), Owens and Efros(2018)], to provide a training signal for deep neural networks. In such scenarios, effective signals for synchronisation can be discovered between the lip or body movements and audio at almost every second. Despite the tremendous success achieved by these methods, for the most part, existing models are still limited to specialised domains, and not directly applicable to general (non-face, non-music) classes.

Figure

Figure 1: Audio-visual synchronisation requires a model to relate changes in the visual and audio streams. Open-domain videos often have a small visual indication, i.esparse in space. Moreover, cues may be intermittent and scattered, i.esparse across time, e.ga lion only roars once during a video clip. This differs from a tight face crop of a speaker where cues are dense in space and time.

Our goal in this paper is to develop the next-generation audio-visual (AV) synchroniser. Rather than focusing on a specialised domain, such as human speech, we explore architectures for AV synchronisation for videos of general thematic content, e.g. daily videos [Korbar et al.(2018)Korbar, Tran, and Torresani, Khosravan et al.(2019)Khosravan, Ardeshir, and Puri, Chen et al.(2020)Chen, Xie, Vedaldi, and Zisserman] and live sports [Ebeneze et al.(2021)Ebeneze, Wu, Wei, Sethuraman, and Liu]. A solution for this task would be extremely useful for a number of applications that improve a user’s viewing experience – in order to avoid or at least automatically detect AV synchronisation offsets. Applications such as video conferencing, television broadcasts, and video editing, are currently largely done by ‘off-line’ measurements or heavy manual processing [Shrestha et al.(2010)Shrestha, Barbieri, Weda, and Sekulovski, Staelens et al.(2012)Staelens, De Meulenaere, Bleumers, Van Wallendael, De Cock, Geeraert, Vercammen, Van den Broeck, Vermeulen, Van de Walle, et al., Dassani et al.(2019)Dassani, Bird, and Cliff].

However, upgrading the existing audio-visual synchronisation systems to general videos is not straightforward, due to the following challenges: (i), in general videos, the synchronisation signal is often sparse and instantaneous in time, (a lion roaring or a tennis volley), rather than dense in time (a recorded monologue); (ii), objects that emit sounds can vary in size or appear in the distance making their presence on the frame small or sparse in space (a ball being hit in tennis), whereas synchronisation of a talking-head video may rely on visual cues from the localised mouth region, i.edense in space; (iii), some sound sources do not have a useful visual signal for synchronisation, e.g stationary sounds (a car engine or electric trimmer), ambient sounds (wind, water, crowds, or traffic), and off-screen distractors (commentary track or advertisements); (iv), video encoding algorithms compress unperceived redundancy of a signal, this, however, can introduce artefacts that may lead to a trivial solution when training for audio-visual synchronisation; lastly, (v) due to its challenging nature, a public benchmark to measure progress has not yet been established.

In this paper, (i) we introduce a novel multi-modal transformer architecture, SparseSelector, that can digest long videos with linear scaling complexity with respect to the number of input tokens, and predict the temporal offset between the audio and visual streams. We achieve this by using a set of learnable queries to select informative signals from the ‘sparse’ video events across a wide time span. (ii) We show that for specific common audio and visual coding standards, a model can detect compression artefacts during training. We present a few simple indicators to determine if a model has learnt using these artefacts, as well as suggest several ways to mitigate the problem. Specifically, for the RGB stream, we recommend avoiding the MPEG-4 Part 2 codec, as well as reducing the sampling rate for audio. (iii) Additionally, to measure the progress of audio-visual synchronisation on general thematic content, we curate a subset of VGGSound with ‘sparse’ audio-visual correspondence called VGGSound-Sparse. We validate the effectiveness of the new model with thorough experiments on the existing lip reading benchmark (LRS3) and natural videos from VGGSound-Sparse and demonstrate state-of-the-art performance.

References (34)