Audio Inpainting via $\ell_{1}$-Minimization and Dictionary Learning

Shristi Rajbamshi, Georg Tauböck, Nicki Holighaus, Péter Balázs

TL;DR

This paper introduces CP-LEARNED, a novel audio inpainting method that combines dictionary learning with weighted $\ell_1$-minimization. By learning a signal-specific dictionary from the audio surrounding a gap, the authors significantly reduce the "energy drop" common in traditional restoration, achieving state-of-the-art performance for gaps up to 85ms.

What Problem Does This Paper Address?

Imagine a digital recording with a scratch, a dropped packet in a VoIP call, or a click from impulsive noise. These result in "gaps"—consecutive missing samples in the audio stream. Audio inpainting is the signal processing equivalent of Photoshop’s "Content-Aware Fill," aiming to restore these missing sections so the repair is imperceptible to the human ear.

While existing methods based on sparse representations (assuming audio can be built from a few basic "building blocks") work well for very short gaps, they often fail as gaps get longer. Specifically, they suffer from an energy loss phenomenon: the restored section sounds quieter or "muffled" compared to the original. The authors aim to bridge this gap by making the underlying mathematical model more flexible and adaptive to the specific audio signal being repaired.

Methods

The authors build upon the Chambolle-Pock (CP) proximal algorithm, a standard tool for solving complex optimization problems. Their approach, CP-LEARNED, introduces two key innovations:

  1. Local Dictionary Learning: Instead of using a generic, fixed Gabor dictionary (a standard set of time-frequency building blocks), the algorithm analyzes the "reliable" audio samples immediately surrounding the gap. It learns a unitary deformation matrix that transforms the standard dictionary into one that represents that specific audio segment even more sparsely.
  2. Energy-Based Weighting: To combat the energy drop, the authors apply weights to the $\ell_1$-minimization process. Atoms in the dictionary that overlap heavily with the missing gap are assigned smaller weights. This ensures they are less penalized during the optimization process, allowing the algorithm to "invest" more energy into the restored section.

Additionally, the authors exploit the fact that audio signals are real-valued (not complex). By utilizing conjugate symmetry in the frequency domain, they effectively halve the number of coefficients needed, significantly reducing the computational burden.

The Gabor parameters used in the study's experiments.

Datasets

The researchers evaluated their method using a collection of ten music recordings from the EBU SQAM (Sound Quality Assessment Material) dataset. This dataset is a standard benchmark in the field, containing high-quality recordings with varying degrees of inherent sparsity (e.g., solo instruments vs. complex orchestral pieces).

Key Insights and Ideas

  • Adaptivity is Key: A "one-size-fits-all" dictionary is suboptimal. By learning the dictionary from the gap's neighborhood, the model captures the specific harmonic and temporal structure of the signal, leading to a much more accurate "fill."
  • Counteracting the $\ell_1$ Bias: Standard $\ell_1$-minimization tends to favor "smaller" solutions, which manifests as energy loss in inpainting. The energy-based weighting acts as a corrective force, telling the algorithm: "Don't be afraid to put energy into the gap."
  • Efficiency through Symmetry: Signal processing often defaults to complex-valued math. By explicitly designing the dictionary learning to respect the real-valued nature of audio, the authors achieve a "free" speedup without sacrificing quality.

Key Results

The authors compared CP-LEARNED against several established methods, including the original weighted $\ell_1$ approach (CP), auto-regressive modeling (JANSSEN), and the previous state-of-the-art (A-SPAIN-LEARNED).

Performance was measured using two metrics:

  • Signal-to-Distortion Ratio (SDR): A mathematical measure of reconstruction accuracy.
  • Objective Difference Grade (ODG): A psychoacoustic metric that predicts how audible the artifacts are to a human listener (0 is imperceptible, -4 is very annoying).

As shown in the figures below, CP-LEARNED (the solid red line) consistently outperforms the original CP method. Notably, for gap lengths greater than 45ms, it matches or even slightly exceeds the performance of A-SPAIN-LEARNED, which was previously considered the top-performing algorithm in this category.

Performance comparison in terms of (a) SDR and (b) ODG for varying gap lengths.

Limitations and Future Work

While the paper demonstrates excellent results for gaps up to 85ms, the authors note that different classes of algorithms (like similarity graphs or deep neural networks) typically take over for "long" gaps (over 100ms).

The current work focuses on the analysis model of sparsity. A potential future direction would be to explore how these dictionary learning techniques could be applied to synthesis models, or how to further optimize the computational speed for real-time applications. Additionally, while the energy-based weighting is effective, exploring more sophisticated perceptual weighting based on human hearing models could further improve the ODG scores.

Summary updated

BibTeX
@inproceedings{rajbamshi2021audio,
  author = {Shristi Rajbamshi and Georg Tauböck and Nicki Holighaus and Péter Balázs},
  title = {{Audio Inpainting via $\textbackslash\{\}ell\_\{1\}$-Minimization and Dictionary Learning}},
  booktitle = {2021},
  year = {2021},
  doi = {10.23919/eusipco54536.2021.9616132},
}
Figure