AudioEditor: A Training-Free Diffusion-Based Audio Editing Framework

Yuhang Jia, Yang Chen, Jinghua Zhao, Song Zhao, Wenjun Zeng, Chen Yong, Yong Qin · DOI

Abstract

Diffusion-based text-to-audio (TTA) generation has made substantial progress, leveraging latent diffusion models (LDM) to produce high-quality, diverse, and instruction-relevant audio. However, the task of audio editing remains equally important but has received comparatively little attention. Audio editing faces two primary challenges: executing precise edits and preserving unedited sections. While workflows based on LDMs have effectively addressed these challenges in image processing, similar approaches have been scarcely applied to audio. In this paper, we introduce AudioEditor, a training-free audio editing framework built on a pretrained diffusion-based TTA model. AudioEditor incorporates Null-text Inversion and EOT-suppression methods, enabling the model to preserve original audio features while executing accurate edits. Comprehensive objective and subjective experiments validate the effectiveness of AudioEditor in delivering high-quality audio edits.

Introduction

The field of AI audio has shifted from simple text-to-audio generation to the more complex task of audio editing. While generating a clip of a "dog barking in a park" is now straightforward, precisely changing that dog to a "cat meowing" while keeping the ambient environment intact remains a significant challenge. Existing methods often require massive supervised datasets or inflexible instruction formats. The core technical challenge lies in the balance between precision (making the requested change) and preservation (ensuring unedited parts remain unchanged).

Methodology

AudioEditor builds on Auffusion, a powerful pre-trained text-to-audio model. Instead of retraining, the framework guides the existing diffusion process using three key techniques:

AudioEditor Framework Architecture: Illustrating the integration of VAE, Null-text Optimization, and EOT-suppression within the diffusion process.
  • DDIM Inversion & Null-text Optimization: To edit a clip, the model reverses the audio into its starting noise state. To ensure perfect reconstruction, the authors use Null-text Optimization to fine-tune the "unconditioned" part of the model's input at every step, maintaining the original's texture and quality.
  • EOT-suppression (End-of-Token Suppression): Text encoders often place excessive weight on end-of-sentence tokens, which can interfere with editing. AudioEditor uses Singular Value Decomposition (SVD) to identify and suppress this noise in text embeddings, making edits more accurate.
  • Attention Loss: By extracting cross-attention maps, the model is forced to maintain focus on original audio features in regions that are not intended to be changed.

Experimental Setup

The researchers evaluated AudioEditor using the AudioCaps test set, manually selecting 300 samples for three types of edits: Addition (adding a sound), Deletion (removing a sound), and Replacement (swapping sounds). AudioEditor was compared against SDEdit (a common baseline) and "Regenerated" audio (creating a new clip from scratch using the target prompt).

Results and Discussion

AudioEditor demonstrated superior performance across both objective and subjective metrics. One of the primary insights is that the latent space of spectrogram-based audio models behaves similarly to image models, allowing for the adaptation of sophisticated image-editing techniques like Null-text Inversion.

Subjective Evaluation Metrics: Comparison of AudioEditor against baselines across Quality, Relevance, and Faithfulness.

Key findings include:

  • Better Alignment: AudioEditor achieved higher CLAP scores than the SDEdit baseline, indicating better alignment with user prompts.
  • Higher Fidelity: In similarity tests (FD and FAD), AudioEditor was significantly better at preserving original audio characteristics compared to full regeneration.
  • Human Preference: Subjective Mean Opinion Scores (MOS) showed that listeners rated AudioEditor higher for Faithfulness and Relevance compared to other training-free methods.

Conclusion and Future Work

AudioEditor represents a major step forward in training-free audio editing. However, limitations remain, including inference speed due to the optimization iterations required per diffusion step and a dependency on the underlying TTA model's capabilities. Future work may explore faster inference methods and more automated natural language grounding for localization.

Summary updated

BibTeX
@misc{jia2024audioeditor,
  author = {Yuhang Jia and Yang Chen and Jinghua Zhao and Song Zhao and Wenjun Zeng and Chen Yong and Yong Qin},
  title = {{AudioEditor: A Training-Free Diffusion-Based Audio Editing Framework}},
  year = {2024},
  eprint = {2409.12466},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.12466},
}
Figure