Solving Audio Inverse Problems with a Diffusion Model

Eloi Moliner, Jaakko Lehtinen, Vesa Välimäki

This paper, presented at ICASSP 2023, introduces CQT-Diff, a general-purpose framework for solving audio inverse problems using diffusion models. By moving away from task-specific architectures and leveraging the unique properties of the Constant-Q Transform (CQT), the authors demonstrate a single model that can restore audio across three distinct tasks—bandwidth extension, inpainting, and declipping—without needing to be retrained for each one.

TL;DR

CQT-Diff is a generative diffusion model that solves various audio restoration tasks in a problem-agnostic way. By using the Constant-Q Transform to exploit the pitch-equivariant symmetries of music, it achieves state-of-the-art results in bandwidth extension and competitive performance in inpainting and declipping using a single pre-trained model.

What Problem Does This Paper Address?

Audio restoration tasks—like filling in missing segments (inpainting), restoring high frequencies (bandwidth extension), or fixing distorted peaks (declipping)—are "inverse problems." Traditionally, these require specialized algorithms designed for one specific type of degradation.

While deep learning has improved these tasks, most existing models are "discriminative," meaning they are trained on specific pairs of degraded and clean audio. If the degradation changes slightly (e.g., a different low-pass filter), these models often fail. Diffusion models offer a "generative" alternative: they learn what clean audio sounds like (the "prior") and can then be guided to find a clean version that matches a degraded observation. However, applying diffusion to music is hard because standard representations like raw waveforms or linear-frequency spectrograms (STFT) don't easily capture the harmonic and pitch-based structures inherent in music.

Methods

The authors propose two major innovations to make diffusion work for general audio restoration:

  1. CQT Preconditioning: Instead of raw audio, the model operates in the Constant-Q Transform (CQT) domain. In CQT, frequency bins are logarithmically spaced. This is crucial for music because a pitch shift (like moving up an octave) becomes a simple vertical translation. Since standard convolutional neural networks (CNNs) are "translation-equivariant," they are naturally better at processing musical structures in the CQT domain than in the linear-frequency STFT domain.
  2. Flexible Inference (DC and RG): To solve inverse problems without retraining, the authors use two strategies during the sampling process:
  3. Data Consistency (DC): For linear problems (like bandwidth extension), they simply replace the known parts of the generated signal with the original observations at each step.
  4. Reconstruction Guidance (RG): For more complex or non-linear problems (like declipping), they use the gradient of the degradation function to "nudge" the diffusion process toward a solution that is consistent with the observed data.

The architecture itself is a U-Net variant optimized for the CQT domain, utilizing dilated convolutions to capture long-range frequency dependencies and FiLM modulations for conditioning.

Datasets

The model was trained and evaluated on the MAESTRO dataset, which contains approximately 200 hours of high-quality classical solo piano performances. Evaluation was performed on a held-out test set of 53 recordings (~6 hours of audio).

Key Insights and Ideas

  • The "Pitch-Equivariance" Advantage: The core "aha moment" is that the CQT makes musical patterns geometrically consistent. By using CQT, the model doesn't have to relearn the relationship between harmonics at every different pitch; the CNN can recognize the same "shape" of a piano note regardless of where it sits on the keyboard.
  • Generative Priors vs. Task-Specific Training: Because the model learns the distribution of clean piano music, it acts as a powerful "prior." At inference time, you only need to know the mathematical description of the damage (the degradation function) to fix it.
  • Guidance is Task-Dependent: The authors found that while simple data replacement (DC) works for bandwidth extension, "Reconstruction Guidance" (RG) is essential for tasks like inpainting to ensure the generated audio remains coherent over long time gaps.

Key Results

  • Bandwidth Extension: CQT-Diff outperformed baselines like BEHM-GAN and other diffusion variants (STFT-based and raw-audio-based) in both objective metrics (LSD, FAD) and subjective MUSHRA listening tests.
  • Audio Inpainting: The model delivered performance comparable to or better than specialized baselines like GACELA, even for long gaps of nearly 1.5 seconds.
  • Audio Declipping: In severe clipping scenarios (SDR = 1 dB), CQT-Diff significantly outperformed traditional sparsity-based methods (A-SPADE and SS-PEW), proving that the generative prior can "re-imagine" lost peaks better than purely mathematical interpolation.

Limitations and Future Work

  • Inference Speed: Like most diffusion models, CQT-Diff is slow. Processing a 3-second clip takes between 17 and 84 seconds on an NVIDIA A100, depending on whether Reconstruction Guidance is used.
  • Domain Specificity: The current model is only trained on solo piano. While it excels there, its performance on complex multi-instrumental music or speech remains to be seen.
  • CQT Redundancy: Using a "rasterized" CQT (to keep time resolution constant for the CNN) adds significant data redundancy, which increases the computational load. Future work could explore more efficient non-uniform sampling grids.

Summary updated

BibTeX
@inproceedings{moliner2023solving,
  author = {Eloi Moliner and Jaakko Lehtinen and Vesa Välimäki},
  title = {{Solving Audio Inverse Problems with a Diffusion Model}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2023},
  doi = {10.1109/icassp49357.2023.10095637},
}
Figure