Description of Chord Progressions by Minimal Transport Graphs ...

43
Introduction to the S&C model Computational approach Experiments Conclusion Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model LOUBOUTIN Corentin, BIMBOT Fr´ ed´ eric ICMC 2016 ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 1/27

Transcript of Description of Chord Progressions by Minimal Transport Graphs ...

Page 1: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

Description of Chord Progressions by Minimal Transport Graphs

Using the System & Contrast Model

LOUBOUTIN Corentin, BIMBOT Frederic

ICMC 2016

ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 1/27

Page 2: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

Outline of the work

1 Introduction to the S&C model

2 Computational approachChords relation descriptionS&C Description estimation

3 ExperimentsAlgorithm designEvaluation using perplexity measure

4 Conclusion

ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 2/27

Page 3: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

Understand musical structure

Various points of view:

Structure music as a succession of events ?(for instance Tymoczko 2008)Structure music using formal language theory ?(for instance De Haas 2011)Structure music considering the simplest explanation usingminimum description length principle ?(for instance Meredith 2013)

Our view ? ⇒ Music structure also depends on anexpectation process. (Narmour 2000)

Introduction to the S&C model ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 3/27

Page 4: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

Let’s guess

1 2 3 ?_

?_

Relations⇒ Expectation

Introduction to the S&C model ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 4/27

Page 5: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

System as an extentsion of progressions

The expectation is induced by the systemformed by the first three elements.

f

g f go1 2 3f f

virtualelement

virtualelement

Progressions also form square systems.

Introduction to the S&C model ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 5/27

Page 6: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

System as an extension of progressions

The expectation is induced by the systemformed by the first three elements.

f

g f go1 2

3

f

g f go

Progressions also form square systems.

Introduction to the S&C model ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 5/27

Page 7: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

The contrast

Modeling the difference betweenthe expectation and the observation.

f

gf go

ϒ

1 2

3

f

gf go

Denial⇒ Contrast (creates some closure to the system)

Introduction to the S&C model ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 6/27

Page 8: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

S&C in music

Recent formalization and exploration of the modelThe S&C model has been formalized to analyse structuresfrom 3 to 6 motifs. (Bimbot ISMIR 2012)It generalizes the Narmour’s Implication Realization model.(Bimbot Music Perception 2016)It is found in music from different types. (Bimbot ISMIR2012, Deruty Master Thesis 2013)

Introduction to the S&C model ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 7/27

Page 9: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

A very “popular” music example

Have you ever analyzed the Macarena ?

... Macare

na

System

?... Macare

na

ContrastHey,Ma c

a re na !

... cosa buena

Introduction to the S&C model ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 8/27

Page 10: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

Multi-scale principle

The first element of the chorus of the Macarena can also bemodelized as an S&C.

The S&C model works at multiple scales.Introduction to the S&C model ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 9/27

Page 11: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

Multi-scale description

Just another way of organizing information.

Introduction to the S&C model ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 10/27

Page 12: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

Multi-scale description

Just another way of organizing information.

Introduction to the S&C model ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 10/27

Page 13: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

From theory to application

Two more steps to go1 A need to explicitely describe the relations between

elements.2 A need to design and evaluate an algorithmic

implementation of the model.

Introduction to the S&C model ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 11/27

Page 14: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

Computational approach

1 Introduction to the S&C model

2 Computational approachChords relation descriptionS&C Description estimation

3 ExperimentsAlgorithm designEvaluation using perplexity measure

4 Conclusion

Computational approach ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 12/27

Page 15: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

Formalisation of the S&C model

NotationsThe System and Contrast model in its square form defines theorganisation of a sequence of four elements as:

X =

[x0 x1x2 x3

]with• x0 the primer of the system• x1 = f (x0) and x2 = g(x0)• x3 = γ(x3)where x3 = f (g(x0)) is the virtual element

Objective : modeling f , g, and γ.

Computational approach ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 13/27

Page 16: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

Describing relations between chords

The relations between chords are described in terms of

minimal transport.DefinitionA transport between two chords P = (pi)0≤i≤mp andQ = (qj)0≤j≤mq is a set :

T = {(pk ,qk )|p,q ∈ J0;11K, k ∈ J0;nK}

The cost of a transport is determined by the taxicab norm (L1).

Computational approach ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 14/27

Page 17: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

Minimal transport with S&C model

Minimal transport is used to describe relations in the S&Crepresentation.

Example: Cm − Fm −G − Cm chord progression

Computational approach ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 15/27

Page 18: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

Minimal transport with S&C model

Minimal transport is used to describe relations in the S&Crepresentation.

Example: Cm − Fm −G − Cm chord progression

Computational approach ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 15/27

Page 19: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

Minimal transport with S&C model

Minimal transport is used to describe relations in the S&Crepresentation.

Example: Cm − Fm −G − Cm chord progression

Computational approach ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 15/27

Page 20: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

Minimal transport with S&C model

Minimal transport is used to describe relations in the S&Crepresentation.

Example: Cm − Fm −G − Cm chord progression

Computational approach ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 15/27

Page 21: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

Minimal transport with S&C model

Minimal transport is used to describe relations in the S&Crepresentation.

Example: Cm − Fm −G − Cm chord progression

Computational approach ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 15/27

Page 22: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

Biscale description for chord sequences

A sequence of 16 chords can be described as 4 square S&Cslinked by an upper-scale S&C, resulting in a tensor structure.

Computational approach ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 16/27

Page 23: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

Biscale description for chord sequences

A sequence of 16 chords can be described as 4 square S&Cslinked by an upper-scale S&C, resulting in a tensor structure.

Computational approach ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 16/27

Page 24: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

Biscale description for chord sequences

A sequence of 16 chords can be described as 4 square S&Cslinked by an upper-scale S&C, resulting in a tensor structure.

Computational approach ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 16/27

Page 25: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

Biscale description for chord sequences

A sequence of 16 chords can be described as 4 square S&Cslinked by an upper-scale S&C, resulting in a tensor structure.

Computational approach ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 16/27

Page 26: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

Biscale description for chord sequences

A sequence of 16 chords can be described as 4 square S&Cslinked by an upper-scale S&C, resulting in a tensor structure.

Computational approach ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 16/27

Page 27: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

Biscale description for chord sequences

A sequence of 16 chords can be described as 4 square S&Cslinked by an upper-scale S&C, resulting in a tensor structure.

Computational approach ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 16/27

Page 28: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

Biscale description for chord sequences

A sequence of 16 chords can be described as 4 square S&Cslinked by an upper-scale S&C, resulting in a tensor structure.

Computational approach ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 16/27

Page 29: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

Biscale description for chord sequences

A sequence of 16 chords can be described as 4 square S&Cslinked by an upper-scale S&C, resulting in a tensor structure.

Computational approach ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 16/27

Page 30: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

Biscale description for chord sequences

A sequence of 16 chords can be described as 4 square S&Cslinked by an upper-scale S&C, resulting in a tensor structure.

Computational approach ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 16/27

Page 31: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

Biscale description for chord sequences

A sequence of 16 chords can be described as 4 square S&Cslinked by an upper-scale S&C, resulting in a tensor structure.

Computational approach ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 16/27

Page 32: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

Biscale description for chord sequences

A sequence of 16 chords can be described as 4 square S&Cslinked by an upper-scale S&C, resulting in a tensor structure.

Computational approach ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 16/27

Page 33: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

Nested S&C description estimation

Optimization of an S&C: finding the set of transport {f ,g, γ}that minimizes the global transport cost S&C.{{{

0 1 2 3 12 13 14 15

{8 9 10 11

{4 5 6 77

{4 5 6 77

S&C 1 S&C 2 S&C 4

S&C U

S&C 3

Optimization in two steps:1 optimization of the S&C U2 optimization of the four sub-S&C.

Computational approach ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 17/27

Page 34: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

Multiple tensorial configurations

30 possible choices of combination of squares correspondingto the four sub-S&Cs in the tensor.

A choice of four sub-S&C is a permutation of the initialsequence.

Computational approach ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 18/27

Page 35: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

Tensorial permutations

Using permutations, the four sub-S&Cand the upper-scale S&C are different.{ {0 1 2 4 5 6 7 9 10 11 12 13 14 158833

equivalent to{{ { { {

0 1 8 9 2 3 10 11 4 5 12 13 6 7 14 15

Computational approach ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 19/27

Page 36: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

Experiments

1 Introduction to the S&C model

2 Computational approachChords relation descriptionS&C Description estimation

3 ExperimentsAlgorithm designEvaluation using perplexity measure

4 Conclusion

Experiments ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 20/27

Page 37: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

Experiments

1 Introduction to the S&C model

2 Computational approachChords relation descriptionS&C Description estimation

3 ExperimentsAlgorithm designEvaluation using perplexity measure

4 Conclusion

Experiments ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 21/27

Page 38: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

Evaluating with perplexity

What is Perplexity ?

Model prediction PPx = 2−log(Pmodel (data))

ability = 2Negative Log Likelihood (i.e. NLL)

model1 > model2 ⇔ PPx1 < PPx2

Calculating P(Y |X )

log P(Y |X ) = 1K∑K

i=1 log p(yτ(i)|xi)

Experiments ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 22/27

Page 39: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

Perplexity calculation process

Sequence : X0 X1 . . . Xn

Bigram model

NLLbigram = −1n[log p(X0) + log p(X1|X0) + · · ·+ log p(Xn|Xn−1)]

Tensorial model1 Estimate configuration φ that minimizes global minimal

transport.2 Compute perplexity given φ

NLLφ = −1n[log p(X0) + log p(X1|Xφ(1)) + · · ·+ log p(Xn|Xφ(n))]

Both are first order models.Experiments ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 23/27

Page 40: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

Experiment protocol

DataA corpus of 45 sections ofrecent pop songsrepresented as sequencesof 16 chords.

The probabilities areestimated usingleave-one-outcross-validation strategy.

Results

PerplexityBigram 3.84Best piece-specificpermutation

2.73

Best globalpermutation

3.17

Additional experiments showthe benefit from the virtualelement. (see paper)

Experiments ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 24/27

Page 41: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

Conclusions

These are only preliminary resultswhich indicate the potential following trends:

OutcomesIn our experiments the S&C model outperforms thesequential model on chord sequence prediction.Using minimal transport with S&C model appears as aneffective way to model chord progression.

Conclusion ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 25/27

Page 42: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

Perspectives

Future workImprove optimization complexity using crossing freeproperty (Tymokzco 2006)Constraint transports to comply with musicological rulesInvestigate the effectiveness of S&C model to othermusical dimensions (melody, rhythm)

Conclusion ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 26/27

Page 43: Description of Chord Progressions by Minimal Transport Graphs ...

Introduction to the S&C model Computational approach Experiments Conclusion

Thank you

Questions ?

Conclusion ICMC 2016-Description of Chord Progressions by Minimal Transport Graphs Using the System & Contrast Model 27/27