AUDIT: Audio Editing by Following Instructions with Latent Diffusion Models

Yuancheng Wang, Zeqian Ju, Xu Tan, Lei He, Zhizheng Wu, Jiang Bian, Sheng Zhao

Introduction

While text-to-audio generation has seen significant advancements, precise audio editing remains a complex challenge. Traditional diffusion-based methods often rely on "zero-shot" editing, which repurposes models trained for generation to perform modifications. This approach frequently results in poor preservation of the original audio, requires overly detailed descriptions of the target output, and lacks the specificity needed for professional applications.

AUDIT (Audio Editing by Following Instructions) introduces a novel supervised learning paradigm using Latent Diffusion Models (LDMs). By training on a massive dataset of "triplet" pairs—comprising an instruction, input audio, and output audio—AUDIT enables users to modify audio through simple human commands like "add a car engine" or "replace guitar with piano," while automatically preserving the segments of the audio that should remain unchanged.

Methodology

AUDIT moves away from zero-shot attempts toward a supervised framework designed specifically for the "delta" between input and output audio. The system architecture consists of three primary components:

  1. Variational Autoencoder (VAE): Compresses mel-spectrograms into a low-dimensional latent space, significantly increasing the efficiency of the diffusion process.
  2. T5 Text Encoder: A pre-trained language model that converts natural language instructions into rich semantic embeddings, allowing the model to interpret complex human commands.
  3. Diffusion U-Net: The core editing engine. Unlike standard generation models, AUDIT’s U-Net takes the latent representation of the original audio ($z_{in}$) and concatenates it with the noisy latent ($z_t$) at the channel level. This provides a powerful inductive bias, allowing the model to "see" the original audio throughout the denoising process and naturally determine which parts to preserve.

Triplet Training Framework

The authors developed a framework to automatically generate approximately 0.6 million triplet samples for five specific editing tasks:

  • Adding: Mixing a new sound into an existing background.
  • Dropping: Removing a specific sound from an audio mix.
  • Replacement: Swapping one sound event for another.
  • Inpainting: Filling in missing or corrupted audio segments.
  • Super-resolution: Increasing the sampling rate and frequency detail of a low-quality clip.

These triplets were synthesized from foundational audio datasets, including AudioCaps (~44k pairs), AudioSet (filtered for quality), FSD50K (~50k clips), and ESC50 (2,000 recordings).

Key Insights

  • Supervised vs. Zero-Shot: Training specifically for the transformation (the edit) is far more effective than forcing a general generation model to perform editing tasks.
  • The Power of Concatenation: By feeding the original audio directly into the U-Net as a condition, the model learns to effectively "mask" its own edits, ensuring that only the relevant parts of the audio are modified.
  • Instruction-Based Control: The research demonstrates that simple edit instructions are not only more user-friendly but also provide a more efficient signal for the model to focus on the required transformation compared to full-scene descriptions.

Results and Performance

AUDIT achieved state-of-the-art (SOTA) results across both objective and subjective metrics. In the "Adding" task, AUDIT reduced the Frechet Distance (FD)—a measure of realism—from approximately 28 (SDEdit baseline) to 21.80. It also demonstrated superior Log Spectral Distance (LSD) across all five tasks.

Subjective evaluations by human raters showed significant improvements in both Quality (naturalness) and Relevance (adherence to instructions). For the "Dropping" task, the Quality score increased from 54.4 to 78.1 compared to the best existing baseline. Furthermore, even when used for pure text-to-audio generation, AUDIT's underlying diffusion model outperformed existing SOTA models like AudioLDM and AudioGen.

Limitations and Future Work

Despite its success, AUDIT has areas for further development. The model is currently optimized for five specific task types and may struggle with highly complex or "out-of-distribution" instructions that fall outside these templates. Additionally, while the model can add or remove sounds, it does not yet offer granular control over the exact timing or volume of those sounds beyond what is implied in the text. Future research will focus on expanding the diversity of editing tasks and refining the framework for even more precise, localized control over audio textures.

Summary updated

BibTeX
@inproceedings{wang2023audit,
  author = {Yuancheng Wang and Zeqian Ju and Xu Tan and Lei He and Zhizheng Wu and Jiang Bian and Sheng Zhao},
  title = {{AUDIT: Audio Editing by Following Instructions with Latent Diffusion Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=EO1KuHoR0V},
}
Figure