One-Stage Multi-Task Instruction-Guided 3D Spatial Audio Editing

Ke Lei, Chenyuhao Wen, Yu Zhang, Wenxiang Guo, Changhao Pan, Sashuai Zhou, Yongshi Li, Ruiqi Li, Ruofan Hu, Haorui Xu, Xiang Yin, Zhou ZhaoarXiv 2026

TL;DR

SWANWEAVE is the first one-stage framework designed to edit 3D spatial audio (First-Order Ambisonic) using natural language instructions. By combining a specialized Mixture-of-Experts architecture with preference-based optimization, it can simultaneously handle complex tasks like moving sound sources, adding new events, and altering room acoustics—all while maintaining the integrity of the original scene.

What Problem Does This Paper Address?

Editing 3D spatial audio is significantly more difficult than editing standard mono or stereo tracks. In a 3D soundfield, audio events are tightly coupled with spatial information (azimuth, elevation, distance), dynamic motion, and environmental factors like reverberation.

Current language-guided audio editors typically suffer from two main flaws:

  1. Multi-stage Pipelines: They often decompose a complex request into sequential steps (e.g., "extract sound" then "re-localize sound"). This leads to error accumulation at every stage.
  2. Spatial Neglect: Most models treat 3D spatial variables as secondary or ignore them entirely, failing to provide precise control over a source's trajectory or the "feel" of the room.

The authors introduce SWANWEAVE to perform one-stage editing, where the model learns the joint acoustic consequences of a compound instruction (e.g., "move the crowd to the right and add a guitar on the left") in a single pass.

Figure 1: Overview of SWANWEAVE, which follows natural-language instructions to edit FOA audio, such as moving a crowd from the front to the right and adding a strum on the left while preserving unchanged events.

Methods

SWANWEAVE operates in a compact latent space using a Variational Autoencoder (VAE) and a Diffusion Transformer backbone trained with conditional flow matching. The core technical innovations include:

  • Spatial Edit Mixture-of-Experts (SE-MoE): To handle the heterogeneous nature of spatial edits, the model uses dual-level routing. "Task Experts" are selected based on the global instruction, while "Routed Experts" adapt to specific local frames. Crucially, it includes Null Experts that return zero tensors, effectively teaching the model to leave unedited regions of the audio untouched.
  • Spatial Preference Optimization (SPO): Borrowing from Direct Preference Optimization (DPO) in LLMs, the authors use SPO to align the model with human-like spatial reasoning. They construct "negative targets"—such as moving a sound in the wrong direction or failing to edit at all—to penalize common failure modes.
  • Staircase Classifier-Free Guidance (CFG): During inference, the model uses a multi-path guidance strategy. It first "anchors" the generation to the source scene and then applies the instruction as a residual edit, reducing the conflict between preserving the original audio and following the new command.
  • Staged Training: The model is trained in a curriculum: first learning to generate spatial audio from text, then mastering single-operation edits, and finally tackling complex compound instructions.
Figure 2: Overview of SWANWEAVE. The left panel shows the overall training and inference pipeline, and the right panel shows the SE-MoE module with instruction-level task routing and token-level routed/null experts.

Datasets

The researchers built a massive paired dataset for supervision using open-source speech and sound-effect corpora (AudioCaps, FSDKaggle2019, PicoAudio, and LibriSpeech).

They used PyRoomAcoustics for controllable room simulation, allowing them to synthesize precise 3D soundfields with specific directions, distances, and motion patterns. The dataset includes:

  • 125K triplets for each of the 10+ single-operation tasks (Add, Remove, Rotate, etc.).
  • 250K triplets for compound editing tasks.
  • Gemini 2.5 Pro was used to generate diverse, natural-language paraphrases for the editing instructions to ensure the model isn't brittle to specific phrasing.

Key Insights and Ideas

  • The Power of One-Stage: Moving from a pipeline to a one-stage model isn't just about speed; it's about accuracy. By predicting the final soundfield directly, the model captures how moving a source changes its energy, directionality, and masking effects simultaneously.
  • Preservation via "Nothingness": The use of a "Null Expert" in the MoE block is a brilliant architectural choice for editing. It provides a dedicated pathway for the model to decide that a specific part of the latent representation requires zero transformation, ensuring high fidelity for unedited background sounds.
  • Negative Samples Matter: Simply showing the model the right way to edit isn't enough. By explicitly showing it "bad" edits (like moving a sound to the left when the user said right), SPO significantly improves the model's spatial grounding.

Key Results

SWANWEAVE sets a new state-of-the-art for spatial audio editing across nearly every metric:

  • Efficiency: It processes samples in 1.17s, significantly faster than diffusion-based baselines like ZETA (56s) or AudioEditor (119s).
  • Spatial Fidelity: It achieved the lowest errors in GCC (Generalized Cross-Correlation) and CRW (Stereo Audio Features), indicating much more accurate 3D localization.
  • Human Preference: In blind tests, human annotators preferred SWANWEAVE over the strongest baseline, SmartDJ, by a significant margin (61.56% vs 38.44%).
  • Dynamic Motion: The model showed a massive advantage in handling moving sources (e.g., "a car driving from left to right"), where baselines often struggled to maintain a smooth trajectory.
Table 1: Objective evaluation results averaged over edit types. HP denotes the pairwise human preference split between each baseline and our method in terms of audio quality and instruction-audio alignment.

Limitations and Future Work

While impressive, the authors note a few hurdles for the future:

  • Simulation Gap: The training data relies on room simulations. While accurate for geometry, it may not fully capture the "messiness" of real-world recordings (background noise, microphone artifacts, complex occlusions).
  • Complexity Scaling: Most test samples are ~10 seconds long with a few sound events. Scaling this to minute-long, dense soundscapes (like a busy city street or a cinematic battle) will require even more robust long-context modeling.
  • Ethical Data Use: As the model uses human speech data, future work must navigate the complexities of consent and privacy, especially when moving toward real-world recorded datasets.

Summary updated

BibTeX
@misc{lei2026one,
  author = {Ke Lei and Chenyuhao Wen and Yu Zhang and Wenxiang Guo and Changhao Pan and Sashuai Zhou and Yongshi Li and Ruiqi Li and Ruofan Hu and Haorui Xu and Xiang Yin and Zhou Zhao},
  title = {{One-Stage Multi-Task Instruction-Guided 3D Spatial Audio Editing}},
  year = {2026},
  eprint = {2609.04975},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.04975},
}
Figure