Manuscript Offprint

arXiv:2610.41852

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

Hao Dai, Panyu Chen, Jagmohan Chauhan

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Recent advancements in audio generation have been largely driven by Transformer-based diffusion models. However, these models suffer from quadratic complexity of self-attention, severely bottlenecking the long-form audio synthesis. To overcome this limitation, we propose MFlowAudio, a novel latent audio generation framework that synergizes the continuous-time dynamics of Flow Matching with a custom-designed TCMamba backbone. TCMamba uses an innovative dual-scan mechanism: a TimeMamba module to capture long-range causal dependencies with linear complexity, and a ChannelMamba module to model cross-channel correlations such as harmonic structures. Exploiting this structural foundation, we formulate the Stateful Flow Matching (SFM) paradigm. This framework inherently enables chunk-wise training and streaming generation, maintaining an O(1)\mathcal{O}(1) caching complexity without incurring extra computational overhead. To enable fine-grained controllable synthesis, we devise a novel guidance mechanism that neutralizes vector field collisions precipitated by on-the-fly semantic transitions of prompts. Comprehensive empirical evaluations confirm that MFlowAudio yields generative fidelity on par with state-of-the-art baselines while establishing significant computational efficiency, achieving above 14.5% acceleration in generation and facilitating perceptually seamless streaming synthesis with a constant latency of 1.8 seconds. Demo:https://huggingface.co/spaces/mflowaudio/MFlowAudio

1 Introduction

Recent years have witnessed unprecedented advancements in generative artificial intelligence, revolutionizing domains such as text, image, video, and speech synthesis. A key driver of this progress has been the rapid evolution of diffusion models [Ho et al., 2020, Lu et al., 2022, Lipman et al., 2023, Tong et al., 2024]. While these models obtain remarkable achievements in image generation, audio generation has concurrently emerged as a field of increasing research interest and substantial practical impact [Kong et al., 2021, Ghosal et al., 2023, Huang et al., 2023a, Liu et al., 2023].

In practice, many contemporary Text-to-Audio (T2A) models leverage generative architectures originally conceived for the Text-to-Image (T2I) domain, such as U-Net [Ronneberger et al., 2015] / Transformers [Vaswani et al., 2017, Dosovitskiy et al., 2021, Peebles and Xie, 2023]-based diffusion backbones. While early models (e.g., AudioLDM [Liu et al., 2023, 2024], Make-an-Audio [Huang et al., 2023b,a], and Tango [Ghosal et al., 2023]) achieved success at 16kHz, recent works like Stable-Audio-Open [Evans et al., 2024], TangoFlux [Hung et al., 2024], and SoundCTM [Saito et al., 2025] have shifted to full-band (44.1kHz) synthesis. As the synthesis of short-form 16kHz audio matures, the research frontier is naturally advancing toward a far more demanding objective: generating extended, continuous full-band audio, such as long-form narratives.

*Corresponding author.

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

However, modeling long-form, high-fidelity audio presents unique challenges. Continuous audio signals strictly adhere to temporal causality and exhibit notoriously low semantic density per sample. Therefore, preserving acoustic fidelity necessitates extremely high sampling rates, which causes the sequence length to explode as the audio duration scales. This inherent characteristic imposes a high computational burden when attempting to capture long-range dependencies. Therefore, the Transformer, which is dominant in current generation paradigms, encounters a severe bottleneck, facing two fundamental constraints: (1) it lacks a strong temporal inductive bias, relying instead on injected positional encodings [Dosovitskiy et al., 2021, Su et al., 2024, Kazemnejad et al., 2023] to discern sequence order; (2) the self-attention mechanism exhibits computational and memory complexity that scales quadratically (O(L2)\mathcal{O}(L^2)) with the sequence length LL.

Meanwhile, existing diffusion and flow-matching methods inherently operate on a monolithic, single-pass generation paradigm. This structure exacerbates the memory explosion bottleneck during both training and the generation of long audio sequences, while simultaneously restricting dynamic controllability during generation. Although autoregressive (AR) models theoretically can generate sequences of arbitrary length, their empirical performance and perceptual fidelity fall short of those of their continuous-time generative counterparts. This dilemma motivates a critical inquiry: Is it possible to design an efficient and controllable architecture within the prevailing diffusion/flow-matching paradigm to fulfill the rapidly foreseeable demands of long-form generation?

To surmount the challenges of computational efficiency and length extrapolation, we propose MFlowAudio, a novel T2A architecture. It integrates the efficient State Space Models (SSMs) [Gu et al., 2022] into a continuous-time generative framework for T2A. Specifically, we introduce the Mamba [Gu and Dao, 2024, Dao and Gu, 2024]-based TCMamba block, a core module designed to jointly model the temporal and channel domains, which is optimized via a flow-matching objective. We demonstrate that this architectural design facilitates chunk-wise training and generation, and explore its capability for real-time streaming generation and dynamic prompt switching, which potentially enhances the practical viability of long-form T2A applications, e.g., interactive agents, real-time game soundscapes and controlled VR audios. Our core contributions are as follows:

  • We propose Time-Channel Mamba, which unifies temporal causality and cross-channel correlation modeling via a novel dual-scan mechanism. It achieves linear complexity with respect to sequence length, eradicating the quadratic memory bottlenecks inherent in Transformer-based continuous-time generative models.
  • We introduce the Stateful Flow Matching (SFM) algorithm, which natively empowers efficient streaming generation and chunked training with a O(1)\mathcal{O}(1) caching complexity and negligible computational overhead. Furthermore, to enable controllable synthesis, we propose a State-Decoupled Conditional Guidance (SDCG) mechanism that mitigates vector field interference during prompt switching.
  • Extensive experiments demonstrate that MFlowAudio achieves generation fidelity highly competitive with state-of-the-art baselines. Furthermore, our framework exhibits system-level advantages, delivering above 14.5% generation speedup and achieving a perceptually seamless real-time streaming generation with a constant low latency of 1.8 seconds.

References (42)