TL;DR
SonicWeave is a unified flow-matching model capable of generating complex, multi-layered audio scenes (combining speech, music, singing, and sound effects) using a single set of weights. Its core innovation, a Chunk-Routed Mixture-of-Experts (CPE-MoE) mechanism, dynamically balances global text instructions with local acoustic evidence to route contiguous audio chunks to specialized experts. This approach significantly improves compositional fidelity and semantic control in complex audio generation without sacrificing perceptual quality.
What Problem Does This Paper Address?
AI audio generation has made massive strides, but most models remain specialized silos—generating only speech, only music, or only sound effects. True general audio generation requires a single model to synthesize complete, unified audio scenes (e.g., a narrator speaking over ambient coffee shop noise while jazz music plays softly in the background).
This presents two major challenges:
- Conflicting Structural Requirements: Speech requires fine-grained linguistic precision, music demands harmonic and rhythmic structure, and environmental sounds require a mix of steady textures and sudden transient events.
- Routing Granularity Dilemmas: Existing Mixture-of-Experts (MoE) architectures route computation either at the entire clip level (too coarse to handle overlapping, changing sounds) or token-by-token. Token-wise routing destroys local acoustic continuity and suffers from instability, especially during early, noisy diffusion/flow-matching steps where local acoustic states are unreliable.
Methods
SonicWeave addresses these challenges through a combination of structured conditioning and a novel routing architecture:
- Structured Text Conditioning: Instead of relying on free-form natural language prompts, SonicWeave uses an automated pipeline to convert prompts into structured, XML-like captions (separating
<speech>,<music>,<sfx>, and<ambience>). This gives the model explicit hooks for different components of a scene. - Joint Audio-Text DiT Backbone: The model uses a Diffusion Transformer (DiT) optimized via flow matching to jointly process time, text, and audio tokens. It incorporates a Modality-Decoupled RoPE (Rotary Position Embedding) system to maintain independent position axes for text and audio.
- Conflict-Gated Prior-Evidence MoE (CPE-MoE): Replacing standard feed-forward networks in the final layers, this module introduces two key concepts:
- Chunk-Level Routing: Tokens are grouped into small, contiguous acoustic chunks (e.g., 4 frames). The routing decision is made per chunk, preserving short-range temporal continuity while allowing the model to adapt mid-clip.
- Prior-Evidence Fusion & Conflict Gate: For each chunk, the router looks at a Global Prior (derived from the text prompt and the current diffusion time step) and Local Evidence (the actual evolving acoustic state). A learned Conflict Gate ($g_j$) dynamically balances the two. Early in the generation process when the audio is mostly noise, the gate favors the text prior. As the audio structure forms, it shifts toward local evidence to capture fine-grained acoustic details or unexpected local departures from the text prompt.
Datasets
- Training Data: A massive internal dataset of approximately 5 million 10–15 second clips (exceeding 20,000 hours total). The data distribution consists of roughly 20% speech, 5% singing, 10% music, 10% sound effects, and 55% mixed recordings.
- Public Benchmarks: Evaluated on standard tasks including SeedTTS-eval and LibriSpeech-PC (for Text-to-Speech), AudioCaps (for Text-to-Audio), and MusicCaps & Song Describer (for Text-to-Music).
- Complex-Scene Suite: Because standard benchmarks evaluate isolated audio types, the authors curated a new evaluation set of 100 complex-scene prompts spanning speech-with-background, singing-with-background, clean dialogues, and multi-speaker dialogues with background noise.
Key Insights and Ideas
- Chunking is the Sweet Spot: Moving from token-level routing to chunk-level routing (4 frames) acts as an effective regularizer for audio. It prevents the model from fragmenting locally coherent structures (like a single phonetic unit or musical texture) while retaining the agility to flip between experts as a scene changes.
- Dynamic Trust over Time: The conflict gate's behavior changes non-monotonically across generation phases. It relies heavily on the text prior at step 0, peaks its reliance on local acoustic evidence during the middle "structure formation" phase, and returns to a balanced regime during late-stage "acoustic refinement."
- Spontaneous Expert Specialization: Without explicit domain-driven initialization, the experts naturally specialized. Deeper layers showed starkly different routing distributions for speech versus music or singing, proving that conditional computation effectively mitigates task conflict in unified models.
Key Results
SonicWeave consistently outperformed both dense baselines and standard token-routed MoE models across all tasks:
- Text-to-Speech (TTS): Achieved a Word Error Rate (WER) of 1.0% on SeedTTS-en and a Character Error Rate (CER) of 0.8% on SeedTTS-zh, matching or beating highly specialized state-of-the-art TTS models like F5-TTS and CosyVoice 2.
- Text-to-Audio (TTA): On AudioCaps, it achieved a Frechet Audio Distance (FAD) of 2.75, significantly outperforming its own parameter-matched Dense baseline (3.98) and token-routed Base-MoE baseline (3.10).
- Complex Scene Generation: In human evaluation metrics measuring "request realization" (MOS-R)—whether all elements of a complex prompt were successfully generated together—SonicWeave scored 4.49/5.0. This vastly outpaced prominent general audio models like Dasheng AudioGen (3.25) and UniFlow-Audio (1.87).
Limitations and Future Work
While SonicWeave represents a major step toward unified audio generation, the authors note a few limitations:
- Duration: The current model is optimized for short-form audio generation (typically around 10–15 seconds).
- Dialogue Complexity: The structured text interface is currently capped at handling a maximum of two speakers.
- Lack of Explicit Timeline Control: The model infers when events happen implicitly based on the text and evolving audio, rather than following an explicit, user-defined temporal timeline plan.
Future directions include scaling the architecture to support longer audio tracks, richer multi-speaker interactions, and integrating explicit temporal planning mechanisms.
Summary updated