Few-Shot Audio-Visual Learning of Environment Acoustics

Sagnik Majumder, Changan Chen, Ziad Al-Halah, Kristen Grauman

TL;DR

FEW-SHOTRIR is a novel transformer-based framework that infers the acoustic properties (Room Impulse Responses) of an entire 3D environment using only a handful of sparse images and echoes. Unlike prior scene-specific models, it generalizes to completely unseen environments without retraining, paving the way for highly realistic audio spatialization in AR/VR and enhanced acoustic awareness in robotics.

What Problem Does This Paper Address?

When sound travels through a room, it bounces off walls, furniture, and floors before reaching our ears. This transformation is mathematically captured by a Room Impulse Response (RIR) function, which dictates how direct sound, early reflections, and late reverberations shape our auditory experience. Accurate RIRs are crucial for immersive AR/VR experiences and for helping mobile robots localize sounds or navigate environments.

Traditionally, calculating RIRs required either a complete, dense 3D mesh of the environment to simulate sound propagation or thousands of physical acoustic measurements across the space. Recent deep learning approaches like Neural Acoustic Fields (NAF) improved on this but suffered from a major flaw: they are scene-specific, requiring hours of retraining from scratch for every single new room.

This paper introduces few-shot learning of environment acoustics, aiming to predict the RIR for any arbitrary source-receiver pair in a novel environment using fewer than 20 sparse audio-visual observations.

Figure 1: Given few-shot audio-visual observations from a 3D scene (blue boxes), we aim to learn an acoustic model for the entire environment such that we can generate a Room Impulse Response (RIR) for any arbitrary query of source (S) and receiver (R) locations in the scene—without observing images/echoes at those locations.

Methods

The authors present FEW-SHOTRIR, a architecture consisting of two primary components:

  1. Audio-Visual Context Encoder: An agent moves through an unmapped environment and collects a sparse set of observations ($N \le 20$). Each observation includes an egocentric RGB-D image, a binaural echo response (obtained via a brief sine-wave chirp), and the camera pose. These inputs are processed via visual and acoustic ResNet-18 embedders, combined with learned modality tokens (to help the network distinguish between sight and sound), and fed into a multi-layer Transformer Encoder to build an implicit acoustic representation of the scene.
  2. Conditional RIR Predictor: Given a query consisting solely of an arbitrary source location and receiver pose, a Transformer Decoder uses cross-attention over the implicit scene context to generate a target representation. This representation is upsampled via a transpose convolution network to predict the log magnitude spectrogram of the RIR.

A Novel Training Objective

Standard RIR synthesis models often struggle to capture high-level acoustic parameters like reverberation time ($RT_{60}$). While past works tried to optimize for $RT_{60}$ directly, the function is non-differentiable. To solve this, the authors introduce a differentiable Energy Decay Matching Loss ($L_D$). It directly measures the absolute error between the Schroeder energy decay curves of the predicted and ground-truth RIRs, forcing the model to accurately capture reverberation qualities.

Datasets

The model was evaluated using the SoundSpaces audio-visual simulator integrated with Matterport3D, which contains dense 3D meshes and pre-computed RIRs of real-world houses.

  • Splits: 83 total scenes were split into 56 seen environments (used for training/validation) and 27 unseen environments (reserved exclusively for testing few-shot generalization).

Key Insights and Ideas

  • The Synergy of Sight and Sound: Ablation studies revealed that removing either the visual or acoustic modality significantly degraded performance. Vision excels at mapping local, immediate geometry and surface materials, while egocentric echoes provide long-range, global context about structures outside the camera's field of view.
  • Context-Dependent Modality Prioritization: Qualitatively, the model dynamically shifts its focus depending on the environment. In highly reverberant, narrow corridors, it relies more heavily on vision because echoes become distorted. In open, low-reverberation spaces, it prioritizes long-range acoustic echoes.
  • Generalization Over Memorization: By framing RIR prediction as a contextual few-shot problem rather than an implicit optimization task, the model learns the underlying physics of how geometry maps to sound, allowing it to work instantly in new homes without scene-specific optimization.

Key Results

  • State-of-the-Art Accuracy: FEW-SHOTRIR significantly outperformed competitive baselines (such as Fast-RIR++ and NAF) across all metrics, including STFT error, $RT_{60}$ error, and Mean Opinion Score Error (MOSE), which measures perceptual realism for human speech.
  • 50x Training Speedup: While NAF requires 20 hours of training per environment, FEW-SHOTRIR trains jointly across all 56 training scenes in 32 hours. This reduces the amortized training cost to just 0.6 hours per scene, requiring zero retraining time for novel testing environments.
  • Downstream Utility: RIRs generated by FEW-SHOTRIR led to massive improvements in downstream tasks. For instance, in unseen environments, it reduced sound source localization error by 74% and depth prediction error by 25% compared to the strongest baseline.

Limitations and Future Work

  • Far-Field Queries: The model's accuracy degrades when the query source and receiver are exceptionally far apart or separated by major structural obstacles (like multiple thick walls), as modeling late reverberations under extreme sparsity remains highly challenging.
  • Dataset Bias: The Matterport3D dataset primarily features indoor spaces with Western architectural designs and object distributions, which may introduce cultural biases into the learned acoustic priors.
  • Future Directions: The authors plan to investigate optimal strategies for active observation placement (i.e., where the agent should look/listen to maximize acoustic understanding) and explore sim-to-real transfer techniques.

Summary updated

Abstract

Room impulse response (RIR) functions capture how the surrounding physical environment transforms the sounds heard by a listener, with implications for various applications in AR, VR, and robotics. Whereas traditional methods to estimate RIRs assume dense geometry and/or sound measurements throughout the environment, we explore how to infer RIRs based on a sparse set of images and echoes observed in the space. Towards that goal, we introduce a transformer-based method that uses self-attention to build a rich acoustic context, then predicts RIRs of arbitrary query source-receiver locations through cross-attention. Additionally, we design a novel training objective that improves the match in the acoustic signature between the RIR predictions and the targets. In experiments using a state-of-the-art audio-visual simulator for 3D environments, we demonstrate that our method successfully generates arbitrary RIRs, outperforming state-of-the-art methods and -- in a major departure from traditional methods -- generalizing to novel environments in a few-shot manner. Project: http://vision.cs.utexas.edu/projects/fs_rir.
BibTeX
@inproceedings{majumder2022few,
  author = {Sagnik Majumder and Changan Chen and Ziad Al-Halah and Kristen Grauman},
  title = {{Few-Shot Audio-Visual Learning of Environment Acoustics}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=Ku4A6p3Glr},
}
Figure