Deepjazz: AI-generated 'jazz'
This is really neat! But I think it&#x27;s a stretch to call it AI-generated jazz music.<p>As I understand it, the author has trained an LSTM on a single MIDI file -- &quot;And Then I Knew&quot; by Pat Metheny. The network is then asked to generate MIDI notes in sequence.<p>What this network has been asked to do is to produce an output stream that is statistically similar to the single MIDI input file it has been trained on. It would be more accurate to call this an &quot;And Then I Knew&quot; generator. Its &quot;cost function&quot; -- the function the network is trying to minimize during training -- is exactly how well it reproduced the target song.<p>Neural networks are &quot;universal function approximators&quot;. It&#x27;s not surprising that given a single input, a network can produce outputs that are statistically similar to it.<p>A network that could compose novel MIDI jazz would look like this:<p>* Train a network on a corpus of thousands to hundreds of thousands of MIDI jazz files.<p>* Add significant regularization and model capacity limits to prevent the network from &quot;memorizing&quot; its inputs.<p>* Generate music somehow -- the char-RNN approach described here is fine. There are other methods.<p>You want the network to build representations that capture the patterns of jazz music necessary to pastiche them but not high-level enough representations that the network is exactly humming the tune &quot;And Then I Knew&quot;. This is so much of a problem that any paper presenting a novel result in generative modeling pretty much must include a section presenting evidence their model is not memorizing its inputs.<p>I can hum a few classic jazz tunes from memory but that mental process is not jazz music composition -- it&#x27;s reproducing something from memory. If we&#x27;re going to call a model &quot;AI-generated jazz&quot; you need some way to tell the network to not hum a tune it knows and instead compose a new tune with the principles&#x2F;patterns it knows. Since we can&#x27;t speak to our models and tell them to think one way and not the other, part of the trick in this field is to come up with models that can only do one thing and not the other.