A Flexible Online Framework for Projection-Based STFT Phase Retrieval

Tal Peer, Simon Welker, Johannes Kolhoff, Timo Gerkmann

TL;DR

This paper introduces a flexible framework to transform any offline, projection-based phase retrieval algorithm into a real-time, frame-by-frame version. By generalizing the popular Real-Time Iterative Spectrogram Inversion (RTISI) method, the authors enable advanced algorithms like RAAR and DM to significantly outperform standard online Griffin-Lim in speech reconstruction quality, often with fewer iterations.

What Problem Does This Paper Address?

In digital audio processing, we often work with the Short-Time Fourier Transform (STFT), which breaks a signal into a complex-valued "spectrogram" containing both magnitude and phase. Many systems, like those for speech enhancement or source separation, only estimate the magnitude. To turn that magnitude back into a listenable time-domain signal, we need to reconstruct the missing phase—a process called phase retrieval or spectrogram inversion.

The classic solution is the Griffin-Lim Algorithm (GLA), which iteratively projects a signal between the magnitude domain and a "consistent" STFT domain. While newer, faster, and more accurate offline algorithms have emerged (like FGLA, RAAR, and DM), most real-world applications (like telecommunications) require online, real-time processing.

Until now, the standard online approach was RTISI, which is essentially a real-time adaptation specifically for GLA. There was no general way to easily port other, more advanced iterative algorithms to an online setting. This paper fills that gap.

Methods

The authors propose a generalized online framework by reformulating the consistency projection. The core idea is the Partial Consistency Projection ($P'_C$).

Instead of needing the whole signal, the framework maintains two buffers:

  1. Frozen Buffer: Contains past frames that have already been estimated and "committed."
  2. Fluid Buffer: Contains the current frame and a few "look-ahead" frames currently being estimated.

The framework works by splitting the standard inverse STFT into "frozen" and "fluid" parts. It uses the redundancy from the committed past frames to constrain the estimation of the current fluid frames.

Extracted figure from page 3 of A Flexible Online Framework for Projection-Based STFT Phase Retrieval

By replacing the standard consistency projection with this partial version, the authors show that any algorithm based on iterative projections (like RAAR, DM, or even deep-learning-based iterations like DeGLI) can be converted into an online version simply by swapping blocks.

Fig. 1: Schematic overview of the RTISI algorithm, showing how frame m is processed based on the known magnitude A[m] and the windowed past estimate bxm−1. Each frame is processed for I iterations and then committed by overlap-adding to the past estimate.

Datasets

The framework was evaluated using:

  • TIMIT Corpus: A standard dataset of 100 gender-balanced spoken utterances.
  • Audio Specs: Signals sampled at 16 kHz, using a 32 ms frame length and 8 ms frameshift (hop size) with a Hann window.

Key Insights and Ideas

  • Generalization is Key: Rather than designing a specific online version for every new algorithm, the authors created a "plug-and-play" framework. If an algorithm uses projections $P_A$ and $P_C$, it can now run online.
  • The Power of Look-Ahead ($B$): Introducing even a small number of look-ahead frames (e.g., $B=3$) dramatically improves reconstruction quality. While this adds a small amount of latency, it allows the algorithm to use "future" redundancy to better estimate the current phase.
  • RAAR is a High-Performer: The Relaxed Averaged Alternating Reflections (RAAR) algorithm, originally from the optics domain, proved exceptionally efficient. It achieved high perceptual quality with just a single iteration per frame, making it computationally comparable to GLA but much more effective.

Key Results

The authors used PESQ (Perceptual Evaluation of Speech Quality) and Spectral Convergence (SC) to measure performance.

  • Superior Quality: All advanced algorithms (FGLA, AGLA, RAAR, DM) outperformed the standard RTISI (online GLA) when given enough iterations.
  • Efficiency at Low Iterations: With look-ahead frames ($B=3$), RAAR and DM achieved excellent reconstruction quality (PESQ ~3.5) with just one iteration. In contrast, standard GLA (RTISI) required many more iterations to reach similar quality.
  • Parameter Sensitivity: The Difference Map (DM) algorithm showed high sensitivity to its tuning parameter $\beta$, whereas FGLA was more robust across different settings.
Fig. 4: Mean PESQ and SC as a function of the number of iterations. Note how RAAR and DM (purple and red lines) jump to high quality much faster than GLA (blue line) in the B=3 case.

Limitations and Future Work

  • Latency Trade-off: Using look-ahead frames ($B > 0$) improves quality but introduces algorithmic delay. For ultra-low-latency applications, users must stick to $B=0$, where the performance gains of some advanced algorithms are less pronounced at very low iteration counts.
  • Hyperparameter Tuning: Algorithms like AGLA and DM require careful tuning of multiple parameters, which might vary depending on the specific STFT settings or signal types.
  • Future Directions: The authors suggest this framework can be used to implement online versions of novel projection-based algorithms as they are developed, including those incorporating deep learning.

Summary updated

BibTeX
@inproceedings{peer2024flexible,
  author = {Tal Peer and Simon Welker and Johannes Kolhoff and Timo Gerkmann},
  title = {{A Flexible Online Framework for Projection-Based STFT Phase Retrieval}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2024},
  url = {https://openreview.net/forum?id=JwbduUi5hx},
}
Figure