Vector Quantized Contrastive Predictive Coding for Template-based Music Generation
Not on the map. Why?
Abstract (arXiv)
In this work, we propose a flexible method for generating variations of discrete sequences in which tokens can be grouped into basic units, like sentences in a text or bars in music. More precisely, given a template sequence, we aim at producing novel sequences sharing perceptible similarities with the original template without relying on any annotation; so our problem of generating variations is intimately linked to the problem of learning relevant high-level representations without supervision. Our contribution is two-fold: First, we propose a self-supervised encoding technique, named Vector Quantized Contrastive Predictive Coding which allows to learn a meaningful assignment of the basic units over a discrete set of codes, together with mechanisms allowing to control the information content of these learnt discrete representations. Secondly, we show how these compressed representations can be used to generate variations of a template sequence by using an appropriate attention pattern in the Transformer architecture. We illustrate our approach on the corpus of J.S. Bach chorales where we discuss the musical meaning of the learnt discrete codes and show that our proposed method allows to generate coherent and high-quality variations of a given template.
Key facts. Cited by 10 papers in the map (data through 14 Oct 2026). First posted on arXiv 21 Apr 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 4; 2022: 2; 2023: 1; 2024: 1; 2025: 1; 2026: 1.
10 papers.
- 2021Variable-rate discrete representation learningcited by 24
- 2021The Piano Inpainting Applicationcited by 23
- 2023ERNIE-Music: Text-to-Waveform Music Generation with Diffusion Modelscited by 15
- 2022Learning long-term music representations via hierarchical contextual constraintscited by 5
- 2021VQCPC-GAN: Variable-Length Adversarial Audio Synthesis Using Vector-Quantized Contrastive Predictive Codingcited by 3
- 2026VQ-Style: Disentangling Style and Content in Motion with Residual Quantized Representationscited by 3
- 2024Music Proofreading with RefinPaint: Where and How to Modify Compositions given Contextcited by 1
- 2021Spectrogram Inpainting for Interactive Generation of Instrument Soundscited by 0
- 2022Relating Human Perception of Musicality to Prediction in a Predictive Coding Modelcited by 0
- 2025Pushing Toward the Simplex Vertices: A Simple Remedy for Code Collapse in Smoothed Vector Quantizationcited by 0
- 2026VQ-Style: Disentangling Style and Content in Motion with Residual Quantized Representations2 Feb 2026
- 2025Pushing Toward the Simplex Vertices: A Simple Remedy for Code Collapse in Smoothed Vector Quantization26 Sep 2025
- 2024Music Proofreading with RefinPaint: Where and How to Modify Compositions given Context12 Jul 2024
- 2023ERNIE-Music: Text-to-Waveform Music Generation with Diffusion Models9 Feb 2023
- 2022Relating Human Perception of Musicality to Prediction in a Predictive Coding Model29 Oct 2022
- 2022Learning long-term music representations via hierarchical contextual constraints13 Feb 2022
- 2021The Piano Inpainting Application13 Jul 2021
- 2021VQCPC-GAN: Variable-Length Adversarial Audio Synthesis Using Vector-Quantized Contrastive Predictive Coding4 May 2021
- 2021Spectrogram Inpainting for Interactive Generation of Instrument Sounds15 Apr 2021
- 2021Variable-rate discrete representation learning10 Mar 2021