NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning Audio-Visual Source Localization via False Negative Aware Contrastive Learning

Weixuan Sun, Jiayi Zhang, Jianyuan Wang, Zheyuan Liu, Yiran Zhong, Tianpeng Feng, Yandong Guo, Yanhao Zhang, Nick Barnes

Abstract

Self-supervised audio-visual source localization aims to locate sound-source objects in video frames without extra annotations. Recent methods often approach this goal with the help of contrastive learning, which assumes only the audio and visual contents from the same video are positive samples for each other. However, this assumption would suffer from false negative samples in real-world training. For example, for an audio sample, treating the frames from the same audio class as negative samples may mislead the model and therefore harm the learned representations (e.g., the audio of a siren wailing may reasonably correspond to the ambulances in multiple images). Based on this observation, we propose a new learning strategy named False Negative Aware Contrastive (FNAC) to mitigate the problem of misleading the training with such false negative samples. Specifically, we utilize the intra-modal similarities to identify potentially similar samples and construct corresponding adjacency matrices to guide contrastive learning. Further, we propose to strengthen the role of true negative samples by explicitly leveraging the visual features of sound sources to facilitate the differentiation of authentic sounding source regions. FNAC achieves state-of-the-art performances on Flickr-SoundNet, VGG-Sound, and AVSBench, which demonstrates the effectiveness of our method in mitigating the false negative issue.

The False Negative Problem

The primary challenge in unsupervised audio-visual source localization is identifying where a sound originates in a video frame without manual labels. Most state-of-the-art models rely on contrastive learning (CL), which "pulls" paired audio and images from the same video together while "pushing" unpaired samples apart.

Standard contrastive learning mistakenly pushes apart semantically similar samples (false negatives).

However, standard CL assumes that every other video in a training batch is a "negative" sample. In real-world datasets, batches often contain multiple videos of the same category (e.g., two different videos of people playing drums). Standard CL tries to push these semantically similar samples apart, creating false negatives. Research shows that in a standard training setup (batch size of 128), roughly 40% of samples suffer from at least one false negative, which significantly degrades the model's ability to learn accurate representations.

The FNAC Framework

To address this, we introduce the False Negative Aware Contrastive (FNAC) framework. FNAC employs two main strategies to refine the learning process:

  1. False Negatives Suppression (FNS): This strategy identifies false negatives by calculating "intra-modal similarity." By comparing audio-to-audio and image-to-image features within a batch, the model constructs adjacency matrices. If two samples are highly similar within their own modality, the model assumes they may belong to the same category and "softens" the contrastive loss, preventing them from being pushed apart aggressively.
  2. True Negatives Enhancement (TNE): While FNS handles the "bad" negatives, TNE focuses on the "good" ones. It uses the model's current localization predictions to crop the "sounding region" of an image. It then ensures that if two audio clips are distinct (true negatives), their corresponding visual sounding regions are also mapped differently in the feature space, forcing the model to ignore background noise and focus on discriminative source features.
The FNAC architecture utilizes intra-modal adjacency matrices to guide contrastive learning.

Key Results and Insights

FNAC achieves a massive performance leap over previous state-of-the-art (SOTA) methods:

  • Flickr-SoundNet (10k): Achieved 84.33% CIoU, a staggering 22.09% improvement over the previous SOTA (EZ-VSL).
  • VGG-Sound: Outperformed previous methods by over 11% CIoU.
  • Generalization: On the "Unheard 110" test set, FNAC reached 42.91% CIoU, proving it learns the fundamental relationship between sound and appearance rather than just memorizing categories.

One critical insight is the Batch Size Paradox. While larger batches usually improve contrastive learning, they also increase the probability of encountering false negatives. FNAC effectively resolves this paradox, allowing the model to benefit from larger batch sizes without the performance penalty of increased false negatives.

Conclusion

By explicitly identifying and suppressing false negatives while enhancing true negatives, FNAC provides a more robust foundation for self-supervised audio-visual learning. This approach not only sets new benchmarks in source localization but also suggests a path forward for other multi-modal tasks where semantic overlap between "negative" samples is common.

Summary updated

BibTeX
@inproceedings{sun2023learning,
  author = {Weixuan Sun and Jiayi Zhang and Jianyuan Wang and Zheyuan Liu and Yiran Zhong and Tianpeng Feng and Yandong Guo and Yanhao Zhang and Nick Barnes},
  title = {{Learning Audio-Visual Source Localization via False Negative Aware Contrastive Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
  url = {https://openreview.net/forum?id=QDNgAwglto},
}
Figure