NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

MFlowAudio: Efficient Text-to-Audio Synthesis via Mamba-based Stateful Flow Matching

Hao Dai, Panyu Chen, Jagmohan ChauhanNeurIPS 2026

TL;DR

Generating high-fidelity, long-form audio is notoriously sluggish because standard Transformer backbones choke on the massive sequence lengths of CD-quality sound. MFlowAudio swaps self-attention for a custom, linear-time Mamba architecture paired with a "stateful" Flow Matching paradigm. The result? You can stream continuous, CD-quality audio in real-time with a constant 1.8-second initial wait—and even change the text prompt mid-stream without jarring audio glitches.

What Problem Does This Paper Address?

Imagine trying to generate a continuous soundscape for a video game or a virtual reality environment. High-fidelity audio requires high sampling rates (44.1 kHz), meaning each sample holds very little semantic meaning, and sequence lengths explode as duration grows.

Today's leading Text-to-Audio (T2A) models borrow Transformer-based diffusion backbones originally built for images. That creates two headaches for long audio:

  1. The Quadratic Bottleneck: Self-attention compares every token to every other token, scaling quadratically ($\mathcal{O}(L^2)$) in memory and compute with sequence length $L$.
  2. Monolithic Generation: Standard diffusion and Flow Matching models generate the entire clip in one massive pass. You cannot easily stream the audio as it generates, nor can you steer the sound dynamically mid-flight. Meanwhile, autoregressive models can stream, but their audio quality typically lags behind continuous-time diffusion approaches.

The authors ask: Can we build a continuous-time generative model that scales linearly, streams effortlessly in chunks, and lets us change prompts on the fly?

Methods

MFlowAudio keeps the standard outer shell of latent audio generation—encoding 44.1 kHz audio into a 2D latent space (Time $\times$ Channels) via a pretrained VAE, and conditioning on T5 text embeddings using Optimal Transport Flow Matching (which learns straight-line paths from noise to data). Everything inside the engine, however, is new:

Figure 1: The key components of MFlowAudio: (left) the workflow of MFlowAudio, audio is encoded and decoded into latent using VAE and vocoder; (middle) the architecture of the TCMamba block; and (right) the dual-scanning mechanism of Mamba.
  • Time-Channel Mamba (TCMamba): State Space Models (SSMs) like Mamba process 1D sequences in linear time ($\mathcal{O}(L)$) using a recurrent hidden state. However, audio latents are 2D: they have both temporal flow and cross-channel harmonic structures. TCMamba introduces a dual-scan mechanism: TimeMamba scans left-to-right across time to capture causal dynamics, while ChannelMamba scans across the channel axis over shorter temporal chunks to capture harmonic resonances.
  • Stateful Flow Matching (SFM): Because Mamba is recurrent, MFlowAudio doesn't need to generate a 30-second track all at once. SFM slices audio into chunks, passing only the final hidden state $h_i$ from one chunk to initialize the next. This enables chunk-wise training and streaming generation with constant $\mathcal{O}(1)$ state-caching memory and zero extra compute.
Chunked generation passing hidden states across ODE blocks
  • State-Decoupled Conditional Guidance (SDCG): What happens if you switch the prompt at 3 seconds from "rainstorm" to "heavy metal guitar"? The historical state pulls the audio trajectory one way while the new prompt pulls it another—a "vector field collision" that ruins quality. SDCG mathematically isolates the pure prompt direction from the state's "historical inertia" and projects it orthogonally. This lets the new prompt take the wheel cleanly while keeping background acoustics (like room reverb and phase) smooth across the boundary.

Datasets

  • Training: AudioCaps and the AudioSet-SL subset of WavCaps (all resampled to 44.1 kHz), plus a synthetic dataset generated by baseline TangoFlux for fine-tuning comparisons.
  • Evaluation: AudioCaps full test set (4,352 samples) and the Clotho dataset.
  • New Benchmark Subset: To test mid-stream prompt switching, the authors curated 1,267 multi-event prompts from standard benchmarks containing temporal cues (e.g., "followed by", "then"), splitting them into sequential sub-prompts anchored at 0s, 3s, and 6s.

Key Insights and Ideas

  • Audio latents are temporally separable: Unlike an image—where slicing it in half ruins the whole picture—a 2D audio latent sliced along the time axis still decodes into coherent audio clips. Exploiting this property is what makes chunked Flow Matching possible.
  • Historical state acts as acoustic glue: In standard memoryless models, stitching two generated clips together causes audible clicks and phase jumps. In SFM, Mamba's hidden state carries "historical inertia," naturally smoothing out reverb and amplitude across chunk boundaries even when prompts change.
  • Adapt compute to duration: Popular baselines like Stable Audio Open and TangoFlux always denoise a fixed, maximum-length latent buffer and trim the excess afterward. MFlowAudio scales its compute directly to the target duration, yielding massive speedups on shorter clips.

Key Results

On a near-equivalent parameter budget (581M parameters), MFlowAudio matches or beats top Transformer baselines (like TangoFlux at 516M and Stable Audio Open at 1B):

  • Audio Fidelity: On 10s and 30s AudioCaps benchmarks, MFlowAudio achieves superior distribution match and acoustic quality on Fréchet Distance (FD of 11.86 vs. TangoFlux's 15.84 on 10s; 17.54 vs. 20.19 on 30s), while remaining neck-and-neck on text alignment (CLAP score of 0.4957 vs. 0.4990).
  • Speedup & Streaming: On a single RTX-5080 GPU, MFlowAudio is 81.8% faster for 10s audio (1.93s vs. 3.51s) and 14.5% faster for 30s audio. In streaming mode (~3s chunks), the Time-To-First-Chunk is a constant 1.8 seconds. Since 1.8s is faster than the 3s playback duration, users get uninterrupted, real-time streaming for arbitrary lengths.
  • Smooth Transitions: Using a new Boundary-to-Background spectral flux ratio (BBR, lower is smoother), MFlowAudio scores 4.33 during dynamic prompt switches compared to 11.64 for TangoFlux, confirming virtually artifact-free semantic transitions.

Limitations and Future Work

  • Zero-shot transitions: Dynamic prompt control currently happens purely via math at inference time. Because it wasn't explicitly trained on multi-prompt transition data, it blends sounds via state inertia rather than truly understanding musical or acoustic composition. Training on richly annotated sequential datasets is a key next step.
  • Metric and human evaluation gaps: The proposed BBR metric only measures spectral jumps at chunk boundaries and can miss subtler perceptual artifacts. Furthermore, the authors note the need for broader human A/B listening tests to thoroughly compare single-pass vs. chunked streaming and dynamic prompt switching.

Summary updated

BibTeX
@inproceedings{dai2026mflowaudio,
  author = {Hao Dai and Panyu Chen and Jagmohan Chauhan},
  title = {{MFlowAudio: Efficient Text-to-Audio Synthesis via Mamba-based Stateful Flow Matching}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=TZhAYHK2IA},
}
Figure