A dedicated greedy pursuit algorithm for sparse spectral modelling of music sound

Laura Rebollo-Neira, Gagan AggarwalarXiv 2015

Abstract

This paper presents a highly efficient greedy pursuit algorithm, SPMPTrgFFT, designed for the sparse spectral representation of musical signals. By utilizing the Fast Fourier Transform (FFT) to implicitly handle overcomplete trigonometric dictionaries, the proposed method achieves the high sparsity characteristic of Orthogonal Matching Pursuit (OMP) while bypassing its significant memory and computational requirements. This approach enables high-quality audio compression and reconstruction on large signal partitions, significantly outperforming standard matching pursuit techniques in both sparsity and efficiency.

Introduction

In the field of audio signal processing and compression, the goal of sparse representation is to describe a signal using the minimum number of mathematical coefficients possible. Traditionally, this is achieved through orthogonal bases, such as the Short-Time Fourier Transform (STFT). While computationally efficient, orthogonal bases are limited in their ability to represent complex musical signals sparsely.

To achieve higher levels of sparsity, researchers often turn to "overcomplete dictionaries"—sets of basis vectors that are larger than the signal dimension itself. However, finding the optimal sparse combination of these vectors typically requires greedy algorithms like Orthogonal Matching Pursuit (OMP). For large audio segments, OMP becomes computationally prohibitive because it requires the explicit construction and storage of massive dictionary matrices. This paper addresses these hardware and memory bottlenecks by introducing a dedicated algorithm tailored for trigonometric dictionaries.

Methodology: The SPMPTrgFFT Algorithm

The authors develop a specialized version of the Self Projected Matching Pursuit (SPMP) algorithm, specifically optimized for trigonometric dictionaries, including Fourier, Cosine, Sine, and mixed Cosine-Sine variations.

Implicit Dictionary Handling

The core innovation of the SPMPTrgFFT algorithm is its use of implicit dictionary handling. Rather than generating and storing a massive overcomplete dictionary matrix in memory, the algorithm calculates necessary inner products on-the-fly. This is achieved by leveraging the Fast Fourier Transform (FFT) with zero-padding. By bypassing standard matrix multiplications, the algorithm drastically reduces both the memory footprint and computational complexity.

Iterative Refinement

The algorithm operates iteratively, selecting the best matching "atoms" (specific frequencies) and projecting the signal residual orthogonally to the selected atoms. This ensures optimal convergence and high-quality reconstruction. Because of these efficiencies, the algorithm can process much larger partition units—up to 16,384 samples—compared to the much smaller blocks typically required by standard OMP implementations.

Experimental Setup

The efficacy of the SPMPTrgFFT algorithm was evaluated using a diverse dataset of 20 music clips, categorized into two main groups:

  1. Single-instrument recordings: Including flute, classical guitar, rock piano, oboe, marimba, and vibraphone.
  2. Multi-instrument ensembles: Including a classical sextet, a Piazzolla Tango quartet, male and female opera vocals, a Bach fugue, and a simple orchestra.

Audio samples were processed at various sampling rates (22.05 kHz, 44.1 kHz, and 48 kHz) and partitioned into disjoint blocks ranging from 512 to 16,384 samples to test the algorithm's performance across different temporal scales.

Key Insights and Results

Sparsity and Dictionary Performance

The research demonstrates that overcomplete dictionaries significantly outperform standard orthogonal bases. Specifically, a mixed Redundant Discrete Cosine-Sine (RDCS) dictionary with a redundancy factor of 4 yielded the best results for melodic music. The SPMP method achieved a mean relative gain in the Sparsity Ratio (SR) of 19.4% for single-instrument clips and 12.8% for multi-instrument clips compared to standard Matching Pursuit (MP).

Reconstruction Quality

The algorithm maintained high fidelity during reconstruction. Single-instrument clips achieved a Signal-to-Noise Ratio (SNR) of 35 dB, ensuring no perceptible loss in audio quality. Multi-instrument clips reached an SNR of 25 dB, which the authors found sufficient to avoid significant perceptual artifacts.

Adaptive Sparsity

An interesting observation from the study is how the algorithm naturally adapts to the signal's acoustic envelope. Transients, such as the sharp attack of a piano key, require a higher density of coefficients (lower local sparsity), whereas sustained notes are represented with very few coefficients. The algorithm effectively balances these requirements to maintain a highly sparse global representation.

Limitations and Future Work

While highly effective for melodic and harmonic content, the algorithm faces challenges with percussive sounds. Highly transient, non-melodic signals like drum loops require much smaller partition sizes to be modeled accurately, which diminishes the advantages of the large-block processing offered by SPMPTrgFFT.

Furthermore, the current implementation processes each audio block independently. Future research could explore methods to link the approximation of different partition blocks through a global sparsity constraint, which may improve results for speech or complex percussive signals. Finally, while the current MATLAB implementation serves as a robust proof-of-concept, transitioning the algorithm to lower-level languages like C++ or Rust would be necessary to fully realize its potential for real-time applications.

Summary updated

BibTeX
@misc{rebolloneira2015dedicated,
  author = {Laura Rebollo-Neira and Gagan Aggarwal},
  title = {{A dedicated greedy pursuit algorithm for sparse spectral modelling of music sound}},
  year = {2015},
  eprint = {1509.07659},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1509.07659},
}
Figure