Editor’s introduction
The study introduces AudioWeave, a unified model that handles both text-to-audio generation and instruction-based audio editing using a single shared architecture. The model uses a hybrid diffusion transformer backbone with dual-stream and single-stream blocks to balance performance and efficiency. Training is conducted via a progressive multistage strategy to reduce interference between tasks and prevent performance degradation.
Introduction
Audio plays a crucial role in multimedia, serving not only as a modality for information delivery, but also as a medium for perceptual engagement. In diverse applications such as film, video games, and interactive media, audio significantly enriches user engagement and facilitates more impactful content communication, making audio generation a prominent topic of research in the field of AI-Generated Content (AIGC) and AI Flow.
With the demonstrated reliability of diffusion models in generative tasks, a growing number of text-to-audio (TTA) generation models have emerged. These approaches have achieved remarkable performance on the TTA task, which aims to generate audio conditioned on text prompts. Generative audio editing has also become a highly focused direction within audio generation. Building on the capabilities of TTA generation models, several studies perform audio editing via training-free approaches. Nevertheless, these methods lack support for instruction-based editing, thereby limiting their applicability. Some other approaches train dedicated instruction-based editing models, enabling flexible audio editing based on textual instructions. Since audio editing tasks require additional reference audio input, these corresponding methods are typically built with task-specific modules to handle it.
Due to the advancement of task-specific audio generation models, there has been an increasing interest in multifunctional AI tools capable of both audio generation and editing, in order to meet the growing demands of audio content creation. Audio-Agent leverages a pretrained TTA model as a generation agent and employs a large language model (LLM) to decompose instructions, enabling audio generation and editing. However, relying only on instructions decomposed by an LLM to guide a single TTA model in handling multiple tasks can introduce inaccuracies and inconsistencies. Similarly, WavCraft utilizes an LLM to decompose user instructions, coordinating different models and audio processing functions for diverse audio generation and editing requirements. In these systems, each capability corresponds to a task-specific model or function, leading to increased system complexity and inefficiency. Moreover, they overlook the potential benefits that arise from interactions between tasks, which could further improve overall performance.
The pursuit of general and flexible AI systems for multiple audio generation tasks has motivated researchers to explore unified models that can perform all tasks using a single architecture and a shared set of parameters. Such models aim to eliminate the need for task-specific architectures, reduce system complexity, and avoid developing elaborate workflows to support diverse functionalities. For example, UniAudio proposes an LLM-based model that unifies multiple audio generation tasks. However, the audio generation capability of autoregressive models based on discrete tokens does not match the performance of advanced latent diffusion models (LDMs). Works such as Audiobox and Fugatto utilize flow matching models to unify diverse audio generation tasks, such as text-to-speech (TTS) and TTA, in a continuous representation space. Despite these advances, there is still a lack of sufficient research specifically dedicated to unified models for high-quality text-to-audio generation and faithful instruction-based audio editing.
Moreover, rather than adopting a joint training strategy, we propose a progressive multistage training strategy, which initially trains a base model on the TTA task, followed by a mix training on both TTA and audio editing with a task-specific attention mask. This training strategy facilitates achieving unified audio generation and editing capabilities while mitigating task competition and catastrophic forgetting caused by interference among multiple tasks.
Text-to-Audio Generation
The Text-to-Audio (TTA) generation task aims to synthesize audio from textual descriptions. With the rise of LDMs, many outstanding approaches have emerged in the field of TTA. AudioLDM utilize a U-Net as the diffusion backbone and leverage contrastive language-audio pretraining (CLAP) model as the pretrained encoder for conditioning. Similarly to AudioLDM, Make-An-Audio and TANGO both employ U-Net as their backbone. Unlike AudioLDM, which integrates conditional information via linear modulation layers, they interact with the text modality through a cross-attention mechanism.
AudioLCM and ConsistencyTTA explore the application of consistency models to audio generation, aiming to achieve competitive generative performance with fewer sampling steps. SoundCTM is built upon the consistency trajectory model framework, where a teacher model is distilled to obtain a corresponding one-step or few-step audio generation model. IMPACT proposes a mask-based audio generation model that operates in a continuous latent space and incorporates a diffusion head to enable iterative parallel decoding. GenAu investigates the challenges of scaling data and models in audio generation. It proposes a scalable transformer architecture that is specially designed for the audio domain and additionally constructs a large-scale audio–text paired dataset.
As Diffusion Transformers (DiT) have demonstrated outstanding generative capabilities, works such as Stable Audio Open (SAO) and EzAudio adapt DiT architectures in the TTA scenario. Instead of relying solely on adaptive layer norm blocks for text conditioning, they perform cross-attention with text embedding extracted by pretrained text encoders. Inspired by FLUX, TangoFlux adopts a similar architecture that combines multimodal diffusion transformer (MMDiT) blocks and DiT blocks to enhance multimodal interactions, while incorporating flow matching to improve both the efficiency and quality of generation. Recent research such as MeanAudio has further optimized the generation efficiency on diffusion transformer architectures using methods such as MeanFlow, further exploring the architectures and optimization strategies of TTA models. Drawing on these previous studies, we adopt a diffusion transformer trained with flow matching as the backbone of our model.
Audio Editing
With the advancement of generative models for audio, researchers have increasingly turned their attention to their editing capabilities. For training-free methods, ZETA and ZEUS are built on edit-friendly DDPM inversion. ZETA implements text-based prompt-to-prompt editing while ZEUS provides unsupervised editing via perturbation control. AudioEditor employs DDIM inversion, combined with Null-text Optimization and end of tokens (EOT) suppression to achieve reliable audio editing while maintaining similarity to the origin signal. AudioMorphix integrates energy functions with attention manipulation, leveraging additional reference audio to enable fine-grained editing. However, these training-free methods primarily rely on the pretrained TTA models and full audio captions, which limits their ability to perform flexible instruction-based editing and consequently restricts their applicability.
Training-based audio editing models are capable of performing instruction-based audio editing. AUDIT adopts a U-Net backbone with a cross-attention mechanism to enable instruction-based control. For the additional reference audio input, AUDIT extends the input channels for LDMs. This setup is commonly used in instruction-based audio editing models for reference audio conditioning. RFM-Editing leverages rectified flow matching to achieve more efficient and higher-quality editing performance. SAO-Instruct introduces a data construction pipeline for instruction-based audio editing, which combines three methodologies: Prompt-to-Prompt, DDPM inversion, and manual editing. SmartDJ employs an audio language model as a planner to decompose user instructions to guide a stereo audio editing LDM. MMEdit utilizes the cross-modal understanding capabilities of a large audio language model to generate the semantic conditioning context. These training-based methods design dedicated modules specially tailored for audio editing tasks. Instead, our approach performs reference audio conditioning without modifying the existing model architecture.
Joint Condition Modeling
A primary challenge of building a unified model for TTA and audio editing lies in the different forms of their input conditions. Expanding the input channels or introducing additional modules for the reference audio condition fails to yield a unified model.
Multistage Training Strategy
Stage 2: Mix training. Building on the base model in the first training stage, we conduct mix training in this stage. To mitigate catastrophic forgetting, we mix the training datasets of TTA and audio editing. For TTA training samples without reference audio, a fixed value is used to represent the empty audio token. This empty audio token is applied to construct an empty reference audio sequence to ensure that all training samples share the same format and sequence length.
Text-to-audio datasets
For the base model training, we utilize multiple audio datasets, including AudioCaps, AudioSet, WavCaps and YouTube-8M. Each training sample consists of a 10-second audio clip paired with its corresponding textual caption. For audio segments shorter than 10 seconds, we discard them. For audio recordings longer than 10 seconds, we extract up to two non-overlapping 10-second segments.
AudioSet. AudioSet is a large-scale, manually annotated dataset of audio events, consisting of an ontology of 632 audio classes and over 2 million audio clips collected from YouTube videos. We selected a subset of approximately 254K audio clips that maintains the balance of the audio classes as much as possible for training.
WavCaps. The WavCaps dataset contains approximately 400K audio clips of varying durations, each paired with captions generated by LLMs. Since some audio clips in WavCaps can be segmented into two 10-second segments, we assign the original caption to one segment, while for the other segment, we generate a caption using Gemini 2.5. We ultimately obtained about 400K audio-text pairs.
We evaluate the performance of TTA generation using the AudioCaps test split which contains 975 audio clips, each paired with five distinct captions. As in previous work, we randomly select one caption for each audio clip as the text instruction during evaluation. Information on training and test sets for the TTA task is summarized in Table I.
Objective Metrics
For text-to-audio generation, the evaluation is conducted using standard objective metrics: Fréchet Distance (FD), Kullback-Leibler (KL) divergence, Inception Score (IS), and CLAP score. FD evaluates the fidelity and diversity by measuring the distance between feature distributions of generated and real audio. KL is used to quantify the difference between the probability distributions of synthesized and real audio. IS reflects both audio quality and diversity using a pretrained classifier. CLAP score measures semantic alignment between audio and text by computing the cosine similarity between text and audio embeddings.
Subjective Metrics
For text-to-audio, MOS-Q evaluates the general audio quality, such as whether the generated audio sounds natural, without considering semantic alignment with text. In contrast, MOS-R measures the semantic alignment between the generated audio and the textual prompt. We randomly select 100 audio samples from the AudioCaps test set and have them rated by 18 researchers in audio signal processing.
For audio editing, similar to TTA, MOS-Q is used to evaluate the perceptual quality of audio, including whether the unedited parts are faithfully preserved and the generation quality of the edited regions. MOS-R measures the degree to which the editing adheres to the given textual instructions. We randomly select 15 audio samples from the test set for each task, and subjective evaluations were conducted by the same group of 18 researchers.
Text-to-audio
We consider eight representative and recent SOTA TTA models as our baselines, including AudioLDM 2, Tango 2, Make-An-Audio 2, Stable Audio Open, EzAudio, GenAu, TangoFlux and MeanAudio. Detailed information for each baseline is provided in Table III. For all baselines, inference is performed using the official implementations and checkpoints from their publicly released code repositories.
Audio editing
Since our model focuses on instruction-based audio editing, whereas training-free methods require paired original and target captions, we do not consider them as baselines. We select two recent SOTA instruction-based audio editing models, SAO-Instruct and MMEdit as baselines. We adopt the publicly available official implementations and checkpoints for both baselines; further details are provided in Table III. Following the commonly adopted setting from previous works, where the input channel is extended for reference audio input, we additionally train a baseline named DiT-Edit, utilizing an input projection module specialized for audio editing tasks.
Implementation Details
We set the audio sampling rate to 44.1 kHz. We adopt the pretrained audio VAE for 44.1kHz audio from MMAudio. Its latent representation has 40 channels and the overall temporal downsampling rate is 1024. For the vocoder, we adopt BigVGAN-v2, which supports a sampling rate of 44.1 kHz. For text conditioning, we use the text encoder of T5Gemma, with an embedding dimension of 1024 and a standardized sequence length of 77 tokens. The DiT model consists of 8 MMDiT blocks and 16 DiT blocks. The number of attention heads is set to 14, and the total dimension of the hidden states is 896. The entire DiT backbone comprises approximately 672M parameters.
Text-to-Audio Generation
Compared with Ours-TTA-only, Ours-Full achieves better FD, while its performance on other objective metrics declines. In contrast, both subjective evaluation metrics show improvements. We attribute this phenomenon to a shift in the data distribution induced by the introduction of audio editing data. Although this leads to a decrease in most objective metrics, from the perspective of human experience, the quality of the generated audio remains unaffected and even shows improved instruction following.
In summary, these experimental results demonstrate that our model achieves competitive performance on the TTA task. In addition, our multistage training strategy enables the model to acquire audio editing capabilities while preserving or even improving the TTA performance.
Audio Editing
In this section, we evaluate the performance of our model on six audio editing tasks and compare two approaches for reference audio conditioning. Furthermore, we study the effect of the fundamental generative capability of the model on its performance in editing tasks.
Ours-Full attains the best performance across all metrics except LSD on the inpainting task, indicating that the audio generation capability learned by the base model can benefit other generative tasks. In other tasks, Ours-Full also achieves competitive results, demonstrating that its audio editing capability is comparable to task-specific models.
Effectiveness of position embedding
The comparison between the proposed factorized position embedding and the standard Rotary Position Embedding (RoPE) is also presented in Table VI. On the TTA task, our position embedding achieves superior performance across all metrics except KL divergence. For editing tasks, our position embedding consistently outperforms standard RoPE across all metrics. These results suggest that our factorized position embedding is more capable of capturing both inter-sequence dependencies and intra-sequence positional relationships simultaneously.
Conclusion
In this paper, we propose AudioWeave, a unified model for audio generation and editing that operates with shared model architecture and parameters without requiring additional task-specific components. We employ a hybrid diffusion transformer backbone composed of dual-stream MMDiT blocks and single-stream DiT blocks to achieve a balance between model performance and parameter efficiency. Through the proposed joint condition modeling with factorized position embedding, our model enables comprehensive interactions among text, target audio, and optional reference audio. Due to the varying input conditions and data distributions across different tasks, we introduce a progressive multistage training strategy. Experimental results demonstrate that our model achieves performance comparable to that of task-specific models on both TTA and audio editing tasks. In future work, we will extend our model to incorporate a broader range of generative tasks and enable it to handle multiple reference audio inputs simultaneously.


