When deep learning models process audio, they rarely work with raw waveforms. Instead, they typically convert sound into a two-dimensional, image-like representation called a spectrogram via the Short-Time Fourier Transform (STFT).
This transformation produces complex numbers containing two distinct pieces of information: magnitude (the amplitude or loudness of each frequency) and phase (the alignment or timing of the underlying sine waves). Because magnitude maps cleanly to human perception and mirrors the structure of natural images, models frequently discard the phase entirely, operating on "phaseless" magnitude spectrograms.
However, this convenience comes at a steep cost. When it is time to convert the spectrogram back into an audible waveform—a process known as spectrogram inversion—the missing phase information must be recovered. Failing to do so accurately introduces severe, unnatural distortions that limit the fidelity of synthesized audio.
The Cost of Going Phaseless
Sound waves are inherently additive. If two waves align perfectly peak-to-peak, they reinforce each other; if they align peak-to-trough, they cancel each other out. This interaction is dictated entirely by phase.
When a neural network modifies or generates a magnitude spectrogram without tracking phase, it creates a geometric puzzle with missing pieces. As Achan et al. observe, magnitude spectrograms lack the explicit phase data required to map spectral representations back into valid, playable time-domain waveforms. Traditional mathematical workarounds, such as the iterative Griffin-Lim algorithm, attempt to guess the phase by enforcing consistency across overlapping frames, but these methods are computationally slow and prone to errors.
When phase estimation fails, the resulting audio suffers from distinct acoustic artifacts. Pascual et al. note that manipulating frequency magnitudes while ignoring the temporal structure and phase alignment introduces unnatural "metallic" or "watery" sounds. Similarly, Donahue et al. highlight that relying on lossy frequency-domain reconstruction algorithms yields lower perceived audio quality and robotic artifacts compared to direct time-domain synthesis.
Why Phase is Hard to Predict
To understand why phase is so difficult for neural networks to learn, consider how magnitude and phase behave across time:
- Magnitude changes relatively smoothly. If a singer holds a steady note, the energy in that frequency band remains stable from one millisecond to the next.
- Phase wraps rapidly around a circle between $-\pi$ and $\pi$. A microscopic shift in time completely scrambles the phase values, making it look like random noise to a standard convolutional network.
Furthermore, audio synthesis typically happens frame-by-frame. To reconstruct a continuous waveform, these frames must be blended together using an "overlap-add" process. If a model optimizes purely for magnitude, it has no mechanism to ensure that the phase of a wave at the end of Frame $A$ matches the phase at the beginning of Frame $B$. As Défossez et al. point out, magnitude-based spectral losses lack mechanisms to enforce phase coherence, leading to audible phase jumps and discontinuities at frame boundaries.
Frame A: ~~~~~~~\
\ <- Phase Mismatch (Discontinuity)
Frame B: /~~~~~~~
Strategies for Phase Coherence
To bypass the spectrogram inversion bottleneck, researchers have developed three primary paradigms that preserve or directly predict phase information.
1. Phase-Preserving Representations
Instead of discarding phase, models can treat it as an explicit feature. Nistal et al. demonstrated that training generative models on complex-valued STFTs or Magnitude plus Instantaneous Frequency (Mag-IF) representations yields significantly higher quality results. By keeping the phase information intact throughout the learning process, the model avoids the need for lossy post-hoc inversion algorithms entirely.
2. Joint Time-Frequency Losses
Another approach forces the model to respect both domains simultaneously during training. In text-to-speech synthesis, Liu et al. introduced a joint optimization scheme that pairs standard spectral magnitude losses with a time-domain waveform loss (such as scale-invariant signal-to-distortion ratio). This dual constraint penalizes the model if its predicted spectrogram implies a phase-scrambled, unnatural waveform.
3. Direct Time-Domain Generation
The most radical solution is to abandon the frequency domain altogether. By designing architectures that operate directly on raw, 1D waveforms, models can learn temporal structures and phase alignments inherently. This approach, pioneered for speech enhancement by Pascual et al. and for unsupervised audio generation by Donahue et al., completely sidesteps the phase reconstruction problem, paving the way for artifact-free audio synthesis.
Key Foundational Work
Probabilistic Inference of Speech Signals from Phaseless Spectrograms (2003) — contributed 1 concept elements to this direction.
Neuromimetic Sound Representation for Percept Detection and Manipulation (2005) — contributed 1 concept elements to this direction.