Fluxion delivers fast real-time audio processing with machine learning links
Fluxion: A Differentiable DSP Runtime from Training GPU to Real-Time Edge
Sound
Summary
Audio software that plays sound in real-time often struggles to work well with machine learning systems, which usually process audio slower and in batches. The authors created Fluxion, a new software that combines the speed of real-time audio processing with the ability to train on GPUs for machine learning tasks. Fluxion checks that audio filters remain stable and can switch from training on powerful computers to running smoothly on small devices. Compared to other systems, Fluxion runs faster on many CPUs and GPUs while supporting exact audio computations.
What this means in practice
- •For audio software developers: Build audio effects that can be trained on GPUs and deployed reliably in real-time on edge devices with stability guarantees.
- •For embedded systems engineers: Deploy trained differentiable DSP graphs with guaranteed stability on resource-constrained devices without runtime memory allocation.
Authors
Matteo Spanio, Antonio Rodà
Abstract
Native real-time audio engines meet audio deadlines but are hard to connect to machine-learning workflows, while tensor frameworks integrate with machine learning but process audio as offline batches without timing guarantees; runtime layers built on them inherit the host's scheduling and deployment footprint. This paper presents Fluxion, a Rust audio DSP runtime for cascaded second-order sections, FIR filters, and delay-line effects. Fluxion implements the parts that are specific to DSP: closed-form filter design, forward kernels, analytic adjoints for the recursion, and stability checks. It relies on existing libraries for the autodiff graph, GPU code generation (tested here on CUDA), and array interchange. One graph algebra is lowered to a differentiable training engine and to an allocation-free real-time engine; between them, a trained graph is checked for stability and frozen into a versioned artifact that an edge device checks again before playback. We compare Fluxion with six framework-hosted and native baselines under one float32 protocol. Among the systems that compute the exact recursion, Fluxion has the highest GPU throughput when data stays on the device and the highest throughput on most CPU workloads, while its CPU training step is slower than those of torchaudio and GRAFX. Its test suite checks the audio thread for allocations with an instrumented allocator, and we report measured latency tails. Fluxion is open source at \url{https://github.com/matteospanio/fluxion}.