Editor’s introduction
The study introduces SmartDJ, a framework that uses audio language models to interpret high-level instructions—like ‘add a car engine sound to the left’—and converts them into precise, atomic audio edits such as adding, removing, or relocating sound events in stereo space. These operations are then executed by a latent diffusion model trained on stereo audio. The evaluation includes human perceptual studies and demonstrates improved semantic alignment and spatial fidelity. Findings are attributed to the framework’s ability to decompose natural language commands into actionable edits, executed through a diffusion-based audio manipulation pipeline.
Introduction
Imagine you recorded a forest on a rainy day and wanted to transform it into the soundscape of a sunny forest. Achieving this transformation requires many edits: removing mismatched elements like rainfall and adding new effects such as bright leaf rustling. Traditionally, audio editing is a procedural process: the user specifies how to achieve the goal, step by step, by removing rain, layering new samples, adjusting gain, and so on. Yet in practice, users would prefer just to issue a single, high-level instruction, e.g., “make this sound like a sunny day”, and rely on an intelligent audio editor to decide what edits are needed. We call this declarative editing: the user declares what the desired outcome should be, while leaving the how, i.e., the sequence of operations, to the system. Such a declarative paradigm would unlock a wide range of applications in VR/AR, gaming, cinematic post-production, and beyond, where designing and modifying audio scenes is central to immersive experiences.
Recent advances in deep generative models have opened exciting possibilities for text-to-audio generation and language-driven editing. However, existing audio editors remain limited in two key aspects. First, they rely on templated instructions such as “add the sound of birds” or “remove the sound of rain”, which restricts their ability to handle high-level or abstract user instructions. Second, they operate only on monaural (single-channel) audio, discarding spatial features such as interaural time and level differences, which are primary cues for spatial hearing. Without these cues, even semantically correct edits sound flat and fail to deliver immersive experiences.
In contrast, declarative editing requires an editor to bridge from high-level goals to detailed operations automatically. When a user issues instructions such as “place me in a concert hall” or “have this audio in a library”, the system must reason about which sounds to remove, which to preserve, how to adjust loudness, when to introduce new events, and how to shift spatial position. Current audio editors based on diffusion models cannot achieve this, as they lack the reasoning capacity to interpret these high-level instructions. On the other hand, language models alone are also insufficient: while they can parse the user’s request, they lack grounding in the audio itself, making it impossible to decide which sound elements should be suppressed, emphasized, or retained. This gap highlights the need for a framework that jointly reasons over language and audio, combining natural-language instruction understanding with audio-aware analysis and editing.
Related work
Audio generation and editing. With the current advances in deep generative models, lots of methods have achieved high-quality audio generation from text and multi-modal conditions. Recently, spatial audio generation has attracted more attention, providing more realistic and immersive listening experiences. Parallel to these generation efforts, text-guided audio editing also emerged as a powerful tool for modifying existing audio recordings. Audit introduced an end-to-end diffusion model conditioned on both the input audio and simple, structured text commands, but its reliance on fixed editing templates limits flexibility to interpret high-level user prompts. WavCraft leverages GPT-api to parse user instructions, yet it expects fully specified prompts (e.g., “extract baby crying from the audio” or “apply a low-pass filter to the wave crashing sound and add it back”). Some recent work adapts image-editing techniques (e.g., DDPM inversion, Null-text inversions, attention map manipulation) to monaural audio. They require precise token-level swapping or deletion to complete the edit, struggle with high-level instructions. Besides, they offer no support for stereo audio editing that are important in many applications. To summarize, none of the existing work can interpret high-level user input to complete the audio editing. Besides, existing frameworks remain confined to monaural outputs and are ill-suited for immersive spatial scenarios.
Multimodal Large Language Model. Large language models (LLMs) are remarkable in natural language processing tasks. Provided with multimodal inputs, such as images and audio, multimodal LLMs (MLLMs) demonstrate exceptional performance across a wide range of downstream visual-language and audio-language tasks. In the vision domain, LLaVA enables LLMs to achieve general-purpose visual and language understanding by fine-tuning on a multimodal instruction-following dataset. In the audio domain, LTU and Audio Flamingo enhance LLMs with the ability to process non-speech sounds and non-verbal speech. With strong capabilities of MLLMs, researchers introduced them into the field of content generation, grounding, world modeling, and embodied AI. In image generation and editing, various works use VLM to guide diffusion models. However, in the audio domain, existing methods have not exploited the reasoning capabilities of audio language models.
Diffusion-based Image Editing. In contrast to text-to-image generation, image editing focuses on altering specific elements or attributes within an image while preserving the contents of the remaining image. Diffusion models have been widely used in image editing tasks by altering the inversion process, which produces a latent representation that can reconstruct the image through the generative process. SDEdit first adds noise to the source image, and then subsequently denoises the image through the SDE to produce the target image. P2P adjusts the cross-attention features according to the difference between the source and target captions to generate the target images. Based on this, IP2P finetuned a diffusion model on edit image triplets to enable image editing with simple natural language instructions. Following works further scale up the dataset to support more capable and generalized models. Furthermore, use vision-language models to guide diffusion models for image editing tasks.
Method
In this section, we first define the task and notations. We then introduce our proposed framework SmartDJ that combines an Audio Language Model for interpreting high-level editing instructions with a diffusion model for executing sequential audio edits. Finally, we describe a scalable data generation pipeline powered by LLMs to support supervised training and evaluation.
Audio Language Model for Atomic Editing Steps Generation
Separate training. We train the ALM and LDM as independent modules rather than end-to-end. This enables human-in-the-loop editing, where users can easily intervene at the level of generated natural-language-based atomic steps before LDM editor inference. Besides, it makes training and computation more efficient and promotes modularity. This design allows for different ALMs or LDMs to be swapped in or out with minimal re-training effort, making it both practical and extensible for diverse editing scenarios.
Setup
Metrics. To evaluate edit quality and diversity, we use common metrics in audio generation and editing, including Fréchet Distance (FD), Kullback-Leibler divergence (KL), Fréchet Audio Distance (FAD), Inception Score (IS), and Log-Spectral Distance (LSD). We use CLAP score to measure the semantic similarities between the edited audio and the text prompt. For spatial audio, we calculate GCC MSE (GCC) based on Generalized Cross-Correlation with Phase Transform (GCC-PHAT), and use StereoCRW to produce stereo audio features to evaluate CRW MSE (CRW) and Fréchet Stereo Audio Distance (FSAD).
Implementation details. SmartDJ ALM is initialized from Audio Flamingo 2 with 3B parameters. During training, we freeze the AF-CLAP module and fine-tune the adapter layers and LLM with a LoRA module for 20 epochs with a batch size of 24. For LDM, it uses velocity prediction with Zero-SNR, and CFG rescaling technique to adjust the magnitude of the predicted velocity and avoid over-exposure. It is trained on single-step editing data with a batch size of 256 of 500k iterations. 10% text is replaced with empty strings to enable unconditional modeling. The learning rates for the ALM and LDM training are 1e-5 and 5e-5 with AdamW. All experiments are conducted with four NVIDIA L40S GPUs. More details available in Appx. B.2.
Results
We present the results of the high-level instruction audio editing task in Tab. 1. The first row is the end-to-end Audit baseline, which iss directly trained on high-level instructions and the final target audio, showing the worst performance overall. Since no prior method can interpret the high-level instructions, we use the same set of ALM-generated atomic steps to guide all audio editing models in the multi-step evaluation, including the baselines and our method. We compare the edited audios from each method with 1k reference audios. Our method achieves the lowest metric in FD, FAD, LSD, and comparably low in KL, indicating the smallest discrepancy from the reference audios. It also delivers a high IS metric, showing strong audio quality and diversity. In addition, the highest CLAP score demonstrates the best semantic alignment between the edited audio and instruction.
Inference time. We also provide inference speed analysis in Tab. 1. The inference speed reported outside the brackets denote the total time to complete the entire high-level instruction edit, while the values inside indicate the per-round inference time of LDM. On average, SmartDJ’s ALM requires 4.8s to generate one set of atomic editing instructions. With multi-round reasoning, SmartDJ completes a full edit in 13.1s, which is significantly faster than training-free baselines. Our approach is slower compared with end-to-end Audit (2.07s) or Audit with ALM (11.6s), but this trade-off yields substantially better editing quality and alignment with target instructions.
Single-step audio editing. We present the results of single-step audio editing operations. Tab. 2(a) shows results on add. Our method consistently outperforms baseline methods in the edited audio, including better similarities to the ideal target audio (lowest FD, FAD and KL), and higher quality and diversity shown by the highest IS. Furthermore, stronger spatial metrics also indicate that the stereo audio characteristics are preserved better by SmartDJ.
Ablation studies
Effectiveness of ALM. We conduct an ablation by removing the ALM module and training a variant of the LDM end-to-end. As shown in Tab. 3, SmartDJ performs significantly worse without ALM, showing the importance of ALM’s intermediate reasoning capabilities. ALM enables the model to produce semantically coherent edits aligned with the high-level instruction and the original audio.
Compare with sound separation model. We compare SmartDJ with a recent sound separation model AudioSep on the Extract operation. Ours achieves comparable or slightly better performance (Tab. 3). This suggests that while our model is designed for general-purpose audio editing, it is competitive on target sound separation tasks.
Discussion
Conclusion. We presented SmartDJ, the first framework for high-level instruction guided stereo audio editing that utilizes the reasoning capability of audio language models and strong editing capabilities of the latent diffusion model. Our approach produces atomic editing steps and executes them sequentially to achieve perceptually realistic stereo audio transformations. Extensive evaluations on both subjective audio metrics and human perceptual studies demonstrate that SmartDJ outperforms prior methods, and preserves spatial fidelity in complex scenes.
Limitations. Supporting a new task-specific editing operation on the LDM requires retraining the diffusion model. However, these edits can usually be achieved through a combination of our proposed atomic steps. Besides, a future direction is to implement an end-to-end joint training strategy of ALM and LDM that combines reasoning with audio editing.
Dataset preparation
We construct our training corpus by merging several publicly-available audio dataset, including VGG-Sound, AudioCaps, WavCaps, ESC-50, and FSD50K. Since some of these sets provide audio captions rather than discrete audio label, we first convert every caption to audio labels with GPT-4o-mini API. We only retain single-labeled audio clip and any clip whose caption maps to multiple events is discarded. A CLAP model scores the semantic correspondence between the audio and its new label. Samples with a similarity score below 0.3 are filtered out. The remaining clips from all sources are finally mixed into one large dataset that we use for subsequent data curation.
Complex audio editing dataset curation
In the dataset curation process, we first sample 2-5 audio labels in the database, with LLM randomly assigned volume and sound directions. We then call the GPT-4o batch API with sound sources and attributions. For each API call, we provide 15 sets of sound sources. Through API call, each set of sound sources will return a single data pair containing high-level editing instruction and the corresponding atomic editing steps. We follow these atomic editing steps to manually generate the step-by-step target edited audio with the rules in A.2. We generate 50K data pairs for complex audio editing for training. We generate 1K data pairs from AudioCaps test/validation set for evaluation.
Baselines implementation
We present the following baseline methods to evaluate the complex audio editing task. One of the baselines is an end-to-end version of Audit without using ALM. All other baseline methods perform multi-step sequential editing with ALM’s atomic editing step outputs.
SDEdit. SDEdit is a zero-shot method that does not require training a new audio editing model. It uses an off-the-shelf text-to-audio (TTA) generation model, which we use Stable-Audio-Open, as it supports binaural audio generation. We use the default 200 total diffusion steps and start the reverse process from a timestep of 100. We use a classifier-free-guidance (CFG) scale of 7.5. The target caption is composed by concatenating the individual event captions after each editing step.
DDIM Inversion. Similar to SDEdit, we also use Stable-Audio-Open as the TTA generation model. We use the default 200 total diffusion steps and start the reverse process from a timestep of 100. We use a CFG scale of 7.5 for both the target and the source. The source text prompt and the target text prompt are composed by concatenating the individual event captions before and after each editing step, respectively.
SmartDJ implementation
DiT architecture We conduct experiments at 24KHz audio sample rate. The waveform latent representation operates at 50Hz and consists of 128 channels. Our DiT model has 24 blocks, each with a channel of 1024, 16 attention heads, and an FFN (Feed-Forward Network) dimension of 4096, resulting in total of 597M parameters. During training, we begin with a 50K linear warm-up phase and the result is training with a cosine learning rate decay. In the inference, we use 100 diffusion steps and a guidance scale of 4, with guidance rescale of 0.8.
Results on ALM-inferenced atomic editing steps
We show multiple examples on ALM-inferenced atomic editing steps. In each example, the “audio labels” are the ground truth audio labels for reference and they are not provided to the ALM module. Only the corresponding audios are provided to the ALM. We then input the high level instruction to the ALM and it output the atomic editing steps.
Results on atomic editing steps
We provide more atomic editing results on add in Fig 9. As shown by the comparison with the original audio and the edited one, while baseline method tends to replace the original clips and completely generate a new audio clip, SmartDJ can successfully keep the original contents and add new sound events into it.
We show more editing examples on remove and extract in Fig 10 and 11. Compared with baseline method, SmartDJ can effectively either remove unwanted or extract wanted audio contents. The edited results show good alignment with the ground truth edited audios.
Human Subjective Studies Details
Across all tasks, SmartDJ is consistently preferred over all baseline methods. For complex audio editing task, SmartDJ receives at least 80% of user votes over the baselines for audio quality, and at least 87% for alignment with the high-level editing instruction and original audio. This shows that SmartDJ faithfully performs the requested scene transformation while preserving the key elements of the original audio. In the single-step editing task, our method receives more than 77% of user votes for audio quality, and 84% for alignment with the single-step editing text prompt, spatial description, and original or reference audio (when applicable). These results demonstrate that SmartDJ achieves the highest user preference across both quality and alignment metrics, outperforming all competing methods.


