deep learning techniques for music generation recurrent 5
play

Deep Learning Techniques for Music Generation Recurrent (5) - PowerPoint PPT Presentation

Deep Learning Techniques for Music Generation Recurrent (5) Jean-Pierre Briot Jean-Pierre.Briot@lip6.fr Laboratoire dInformatique de Paris 6 (LIP6) Sorbonne Universit CNRS Programa de Ps-Graduao em Informtica (PPGI) UNIRIO


  1. Deep Learning Techniques for Music Generation Recurrent (5) Jean-Pierre Briot Jean-Pierre.Briot@lip6.fr Laboratoire d’Informatique de Paris 6 (LIP6) Sorbonne Université – CNRS Programa de Pós-Graduação em Informática (PPGI) UNIRIO Deep Learning – Music Generation – 2018 Jean-Pierre Briot

  2. Recurrent Deep Learning – Music Generation – 2018 2 Jean-Pierre Briot

  3. #1 Limitation – Generation and #2 Limitation – Fixed Length • Works OK But: • Fixed input (and output) length Deep Learning – Music Generation – 2018 3 Jean-Pierre Briot

  4. #1 Limitation – Generation and #2 Limitation – Fixed Length Solution: Recurrent Network (RNN) • Works OK But: • Fixed input (and output) length Solution: • Recurrent Network (RNN) • Variable length • Memorizes previous steps • Predicts next step Deep Learning – Music Generation – 2018 4 Jean-Pierre Briot

  5. Recurrent Network (RNN) • Memorizes previous steps • Can learn from previous step • Predicts next step • Can learn sequences Recurrent connexions Deep Learning – Music Generation – 2018 5 Jean-Pierre Briot

  6. Recurrent Connexions Deep Learning – Music Generation – 2018 6 Jean-Pierre Briot

  7. Alternative (More Common) Notation Deep Learning – Music Generation – 2018 7 Jean-Pierre Briot

  8. RNN Prediction Deep Learning – Music Generation – 2018 8 Jean-Pierre Briot

  9. Training a RNN y = Expected next note(x) Training with • One example (x, y) = one note Or • One example (x, y) = one melody with x = y translated 1 step back Deep Learning – Music Generation – 2018 9 Jean-Pierre Briot

  10. RNN Generation • Iterated generation • Note by Note • Reinject Next Note to Produce Next Next Note • Arbitrary Length input layer hidden layer output layer Deep Learning – Music Generation – 2018 10 Jean-Pierre Briot

  11. RNNMelody Input layer Hidden layer Output layer Current Next Note Slice Note Slice … Deep Learning – Music Generation – 2018 11 Jean-Pierre Briot

  12. RNN – Iterative Feedforward – #1 Example LSTM blocks Corpus: Soprano parts of Bach Chorales input layer hidden layer output layer Deep Learning – Music Generation – 2018 12 Jean-Pierre Briot

  13. Gradient Vanishing/Explosion Deep Learning – Music Generation – 2018 13 Jean-Pierre Briot

  14. LSTM (Long Short-Term Memory) [Hochreiter and Schmidhuber, 1997] • Protection of Memory by Gates • Gates are controlled by differentiable functions • Thus subject to Training • Training of the Meta-Level (Control) Deep Learning – Music Generation – 2018 14 Jean-Pierre Briot

  15. RNN – Iterative Feedforward – #2 Example • Ex: Celtic melody generation [Sturm et al., 2016] • Celtic Folk Music Corpus (Melodies) • Text Encoding (ABC Notation) X: 1 T: A Cup Of Tea R: reel M: 4/4 L: 1/8 K: Amix |:eA (3AAA g2 fg|eA (3AAA BGGf|eA (3AAA g2 fg|1afge d2 gf:|2afge d2 cd|| |:eaag efgf|eaag edBd|eaag efge|afge dgfg:| Deep Learning – Music Generation – 2018 15 Jean-Pierre Briot

  16. RNN Celtic Melody Generation • Iterated generation – Note by Note – Arbitrary Length • Ex: Celtic melody generation [Sturm et al., 2016] • Celtic Folk Music Corpus (Melodies) • Text Encoding (ABC Notation) • Ex. of Melody Generated Played by a human accordeonist Deep Learning – Music Generation – 2018 16 Jean-Pierre Briot

  17. #3 Limitation – Variability • No Variability in the Generation • Because Neural Networks are Deterministic – Same Input -> Same Output – Same First Note -> Same Whole Melody Generated • Solution: – Sampling Deep Learning – Music Generation – 2018 17 Jean-Pierre Briot

  18. #3 Limitation – Variability – Solution: Sampling • Input Representation: One-Hot Encoding – Corresponds to a Piano Roll Representation • Softmax Ouput Layer • Classification Task (between possible Notes) Deep Learning – Music Generation – 2018 18 Jean-Pierre Briot

  19. Sampling • Deterministic Strategy: – Choose the Class (Note/Pitch) with the Highest Probability • Sampling (Variability) – Sample within Possible Notes (Classes) (following the Probability Distribution) np.random.multinomial(1, note_one_hot_encoding) Deep Learning – Music Generation – 2018 19 Jean-Pierre Briot

  20. RNN Can Have Ouput Different Than Input Bach Chorale Counterpoint Generation – RNN Version Input layer Hidden layer Output layer Alto Voice Soprano Tenor Voice Voice … Bass Voice Deep Learning – Music Generation – 2018 20 Jean-Pierre Briot

  21. RNN Encoder-Decoder Deep Learning – Music Generation – 2018 21 Jean-Pierre Briot

  22. RNN Autoencoder : RNN Encoder-Decoder Deep Learning – Music Generation – 2018 22 Jean-Pierre Briot

  23. From Speech to Text [Chung et al., 2016] Deep Learning – Music Generation – 2018 23 Jean-Pierre Briot

  24. Translation Sequence to Sequence Deep Learning – Music Generation – 2018 24 Jean-Pierre Briot

  25. Translation Deep Learning – Music Generation – 2018 25 Jean-Pierre Briot

  26. Variational RNN Encoder-Decoder VRAE [Fabius and van Amersfoort, 2015] Deep Learning – Music Generation – 2018 26 Jean-Pierre Briot

  27. MusicVAE [Roberts et al., 2018] Deep Learning – Music Generation – 2018 27 Jean-Pierre Briot

  28. MusicVAE [Roberts et al., 2018] • Hierarchical – Conductor RNN – Bottom RNN • Longer term generation • Structure • Translation • Interpolation (morphing) • Averaging of some points • Addition or subtraction of an attribute vector capturing a given characteristic – This attribute vector is computed as the average latent vector for a collection of examples sharing that attribute (characteristic) Deep Learning – Music Generation – 2018 28 Jean-Pierre Briot

  29. MusicVAE [Roberts et al., 2018] • Averaging the latent space Deep Learning – Music Generation – 2018 29 Jean-Pierre Briot

  30. MusicVAE [Roberts et al., 2018] data space latent space • Comparing Interpolation – In the data space (melodies) – In the latent space Deep Learning – Music Generation – 2018 30 Jean-Pierre Briot

  31. MusicVAE [Roberts et al., 2018] • Comparing Interpolation – In the data space (melodies) – In the latent space Deep Learning – Music Generation – 2018 31 Jean-Pierre Briot

  32. MusicVAE [Roberts et al., 2018] https://www.youtube.com/watch?v=G5JT16flZwM Deep Learning – Music Generation – 2018 32 Jean-Pierre Briot

  33. MusicVAE [Roberts et al., 2018] • Adding a high note density attribute vector Deep Learning – Music Generation – 2018 33 Jean-Pierre Briot

  34. BeatBlender in TensorFlow.js MusicVAE [Roberts et al., 2018] https://experiments.withgoogle.com/ai/beat-blender/view/ Deep Learning – Music Generation – 2018 34 Jean-Pierre Briot

  35. LatentLoops in TensorFlow.js MusicVAE [Roberts et al., 2018] https://teampieshop.github.io/latent-loops/ Deep Learning – Music Generation – 2018 35 Jean-Pierre Briot

Recommend


More recommend