TL;DR
This paper introduces GACELA, a novel Generative Adversarial Network (GAN) designed to fill in missing segments (gaps) in music audio that are hundreds of milliseconds to a few seconds long. GACELA tackles the inherent multi-modality of such "long-gap" inpainting by considering multiple time scales and using a latent variable for user-defined outputs, showing promising results in reducing artifact severity.
What Problem Does This Paper Address?
Audio signals can suffer from localized corruptions due to recording issues, transmission errors, or storage damage. "Audio inpainting" refers to the task of restoring these missing segments. While previous methods have been effective for very short gaps (milliseconds), restoring longer gaps (hundreds of milliseconds to seconds) is significantly more challenging. This is especially true for music, which has complex, long-range dependencies and inherent multi-modality (multiple plausible ways to fill a gap). Existing approaches either struggle with longer gaps, rely on copying existing segments (which can alter song structure), or fail to generalize beyond very short durations. GACELA aims to address this gap by generating new, coherent musical information for these longer missing segments.
Methods
GACELA is a conditional Generative Adversarial Network (GAN) specifically designed for long-gap audio inpainting. Its key innovations lie in how it handles the complexity of long audio segments:
- Multi-Scale Discriminators: Instead of a single discriminator, GACELA employs five discriminators with increasing receptive fields. This allows the model to consider audio information at various time scales, from fine details to broader structures, crucial for coherent inpainting.
- Conditional Generation with Latent Variable: The generator is conditioned not only on the surrounding audio context (the "context encoder" aspect) but also on a latent variable. This latent variable introduces stochasticity, allowing the GAN to generate diverse and plausible inpainting solutions for a given gap, addressing the multi-modal nature of music. This also opens the door for user-defined inpainting.
- Time-Frequency Representation: The audio is processed using mel-scale spectrograms and log-magnitude Short-Time Fourier Transforms (STFTs) to capture relevant spectral and temporal information.
- Phase Reconstruction: A technique called Phase Gradient Heap Integration (PGHI) is used for reconstructing the phase of the generated spectrogram, which is crucial for synthesizing the final audio waveform.
Datasets
The paper utilizes several datasets for training and evaluation:
- Lakh MIDI Dataset: Used for generating synthetic MIDI data with varying complexity.
- Million Song Dataset: Used in conjunction with the Lakh MIDI dataset for alignment.
- MAESTRO Dataset: Contains paired audio and MIDI recordings of piano performances, used for training with human performance complexity.
- Free Music Archive (FMA) Dataset: A subset of rock and electronic music samples used for training with more complex, multi-instrument audio.
No new datasets were introduced; instead, existing datasets were curated and utilized to create different complexity levels for evaluation.
Key Insights and Ideas
- Multi-modality is Key for Music: For longer gaps in music, there isn't a single "correct" way to fill the silence. GACELA's use of a latent variable acknowledges this and allows for generating multiple plausible musical continuations, which is a significant step beyond methods that aim for exact reconstruction.
- Time Scales Matter: Audio signals have dependencies across vastly different time scales. The multi-scale discriminators are crucial for capturing these, ensuring that the generated audio is coherent both locally and globally.
- Complexity Affects Detectability: The complexity of the music significantly impacts how easily listeners can detect inpainting artifacts. More complex music (e.g., multiple instruments) makes artifacts more noticeable.
- Gap Duration is Less Critical (within limits): Within the tested range (375ms to 1500ms), the duration of the gap had a less significant impact on artifact severity than music complexity. This suggests the model is robust to moderate variations in gap length.
Key Results
- Artifact Severity Reduced: While listeners could often detect the inpainted segments, the severity of the artifacts was consistently rated between "not disturbing" and "mildly disturbing," a significant improvement over "unacceptable."
- Complexity Impact: Inpainting artifacts were more detectable in more complex musical pieces. However, the simplest MIDI-based piano music also showed high detection rates, possibly due to listeners being highly sensitive to any deviation in such structured material.
- Gap Duration Robustness: The inpainting quality did not significantly change for gap durations between 375 ms and 1500 ms.
- PGHI's Minor Impact: The objective evaluation (ODG) suggested that PGHI's phase reconstruction had a minimal, often imperceptible, impact on the overall quality, especially compared to the audibility of a simple click artifact.
Limitations and Future Work
- Detection Rate: The primary limitation acknowledged is the detectability of the inpainting. The authors aim for a future system where an attentive listener cannot distinguish between real and inpainted audio.
- Training Time: As gap and context durations increase, training time also increases, potentially limiting the application to even longer gaps.
- Auditory Features: The current system relies on mel-spectrograms. Future work could explore incorporating more explicit auditory features and musical structures (like beat and chord tracking) for improved inpainting quality.
- Generalization: The model's performance is dependent on the type of music it was trained on, suggesting a need for more generalized models or efficient retraining strategies.
Summary updated