Sounding that Object: Interactive Object-Aware Image to Audio Generation

Tingle Li, Baihe Huang, Xiaobin Zhuang, Dongya Jia, Jiawei Chen, Yuping Wang, Zhuo Chen, Gopala Anumanchipalli, Yuxuan Wang

Abstract

Recent advancements in image-to-audio generation have primarily focused on "holistic" scene analysis, where a single audio track is synthesized to represent an entire visual field. However, these methods often suffer from "forgetting" subtle sound sources or "binding" distinct audio events into a generic texture. We present a novel framework for interactive, object-aware image-to-audio generation that allows users to generate specific sounds by selecting individual objects within an image. By bridging cross-modal attention during training with segmentation masks at inference, our model achieves superior alignment between visual objects and their corresponding audio. Experimental results on AudioCaps and AudioSet demonstrate that our approach outperforms existing baselines in both objective metrics (FAD, ACC) and subjective human evaluations of controllability.

1. Introduction

Generating audio from visual cues is a fundamental task in multi-modal AI, with applications ranging from automated foley for film to assistive technologies. Current state-of-the-art models typically process an entire image to produce a global soundtrack. This holistic approach introduces two significant challenges: forgetting, where the model overlooks smaller but acoustically important objects (e.g., footsteps in a crowded street), and binding, where the features of multiple objects are conflated into an inaccurate audio "hum."

To address these limitations, we introduce a system that provides object-level specificity. By allowing users to interactively select objects—such as a specific car or a bird—the model can generate audio that is precisely grounded in the selected visual region while remaining contextually aware of the surrounding environment.

2. Methodology

Our framework is built upon a Conditional Latent Diffusion Model (LDM), specifically extending the AudioLDM architecture. The core innovation lies in how the model associates visual regions with audio signals.

2.1 Multi-Modal Grounding

During the training phase, the model employs a scaled dot-product attention mechanism. It learns to associate text descriptions (encoded via CLAP embeddings) with specific image patches (encoded via CLIP embeddings). This self-supervised approach allows the model to internalize which visual features correspond to specific sounds without requiring manual pixel-level annotations.

2.2 The Attention-to-Mask Swap

At inference time, we introduce an "Attention-to-Mask" swap. Instead of relying on the model's learned attention weights, we allow the user to provide a hard segmentation mask—generated via the Segment Anything Model (SAM)—to define the region of interest.

We provide theoretical validation (Theorem 3.1) showing that the contrastive loss used during training makes the internal attention maps functionally equivalent to these test-time masks. This ensures that the model generalizes effectively to user-defined regions despite being trained on soft attention maps. Furthermore, the model maintains "contextual blending"; it processes the entire image but focuses its generative capacity on the masked area, ensuring that a car engine sound correctly incorporates environmental textures like rain or wind present in the background.

3. Experiments and Data

3.1 Datasets

The model was trained on a refined subset of AudioSet, totaling 748 hours of high-correspondence audio-visual data. To improve the quality of training signals, we utilized Llama-augmented captions, rephrasing original metadata to focus specifically on visible, sounding objects. Evaluation was conducted using AudioCaps, VGG-Sound Sync, and ImageHear to test robustness across diverse, real-world scenarios.

3.2 Key Insights

  • Attention Architecture: We found that single-head attention outperformed multi-head attention. While multi-head systems are more expressive, they often reduced controllability by focusing on irrelevant image regions, thereby muddying the grounding.
  • Texture Adaptation: The model demonstrates a sophisticated understanding of visual materials. For instance, if the visual texture of a floor is changed from grass to water, the model shifts the generated sound from a "crunch" to a "splash" automatically.

4. Results

Our model was benchmarked against high-profile baselines, including AudioLDM 2, Diff-Foley, and FoleyCrafter.

  • Quantitative Performance: On the AudioCaps dataset, our model achieved a state-of-the-art Fréchet Audio Distance (FAD) of 1.271 and a Sound Event Accuracy (ACC) of 0.859, indicating superior audio quality and visual alignment.
  • User Efficiency: In human trials, users required significantly fewer attempts (1.60 vs. 3.20) to generate a satisfactory sound compared to text-based baselines. Subjective scores for Relevance to Selected Object (REO) were also significantly higher than competing models.

5. Conclusion and Future Work

This paper demonstrates that object-aware grounding significantly improves the controllability and accuracy of image-to-audio generation. By allowing users to "point" at what they want to hear, we solve the common issues of sound forgetting and binding. While currently limited by the static nature of images—which can lead to ambiguity in temporal events (e.g., a car idling vs. revving)—future work will extend this framework to video sequences to capture complex physical interactions and temporal synchronization.

Summary updated

BibTeX
@inproceedings{li2025sounding,
  author = {Tingle Li and Baihe Huang and Xiaobin Zhuang and Dongya Jia and Jiawei Chen and Yuping Wang and Zhuo Chen and Gopala Anumanchipalli and Yuxuan Wang},
  title = {{Sounding that Object: Interactive Object-Aware Image to Audio Generation}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=6KeALGcu2j},
}
Figure