Improvisation and Learning

Judy A. FranklinNeurIPS 2001

In Improvisation and Learning, Judy A. Franklin explores the intersection of neural networks and creative expression through CHIME (Computer Human Interacting Musical Entity). CHIME is an innovative system designed to "trade fours"—a jazz tradition where musicians take turns improvising for four bars—with a human partner in real-time.

The Challenge of Computational Jazz

Jazz improvisation presents a high-stakes computational challenge: it requires a system to be both technically proficient (adhering to complex harmonic structures) and creatively reactive (responding dynamically to a human partner).

Traditional rule-based AI systems often produce music that feels "stiff" and mechanical, while pure machine learning models can lack the structural grounding necessary to navigate jazz harmony. Franklin addresses this dichotomy by combining supervised mimicry with reinforcement learning (RL). The ultimate goal is to move beyond simple playback toward a machine that genuinely "understands" the rules of engagement in a live jam session.

Methodology: A Two-Phase Architecture

To achieve this balance of structure and spontaneity, the author employs a two-phase training architecture.

Phase 1: Supervised Learning (The Foundation)

The first phase focuses on building the machine's basic musical "memory" by teaching it the vocabulary of jazz.

  • Architecture: The system utilizes a Jordan recurrent neural network (RNN).
  • Inputs and Outputs: The network takes 12 units representing the current chord and "plan" units to distinguish between different songs. It outputs 26 units, which include two octaves of notes, a rest indicator, and a "new note" trigger.
  • Training: Using back-propagation and "teacher forcing," the network is trained to reproduce specific jazz melodies.
The Jordan recurrent neural network architecture used in CHIME, featuring context, plan, and chord inputs.

Phase 2: Reinforcement Learning (The Improvisation)

Once the foundational vocabulary is established, the system learns to improvise and interact.

  • Architecture Expansion: The network is expanded to include 26 additional inputs representing the human partner's notes.
  • Algorithm: It employs an Actor-Critic model using the Stochastic Real-valued Reinforcement (SSR) algorithm.
  • Efficiency: To reduce the computational load for real-time performance, the critic "piggy-backs" on the actor’s hidden layer, utilizing its learned features to predict future rewards.
  • The Reward Signal: Rewards are dictated by a "Rule Set" derived from jazz theory. The system is rewarded for playing "hip" notes (like the #9 or 13 on dominant chords) and punished for playing "avoid notes" (like the natural 4th).

Datasets

To train the model, Franklin utilized a mix of classic repertoire and human interaction data:

  • Training Melodies: Three classic 12-bar blues tunes by jazz legend Sonny Rollins: "Blue Seven," "Tenor Madness," and "Solid."
  • Human Interaction Data: A human solo consisting of 1,800 note events was used for off-line reinforcement training, helping the model learn how to respond to a partner's phrasing.
Sheet music for "Solid" by Sonny Rollins, one of the classic jazz tunes used to train the network's foundational vocabulary.

Key Insights and Results

The dual-phase approach yielded significant improvements in both technical accuracy and stylistic generation:

  • Mimicry as a Prerequisite: The research suggests that a model cannot improvise effectively without first learning the "language" of a specific artist. Phase 1 provides the essential "prior" knowledge that Phase 2 explores.
  • Stochasticity is Essential: Improvisation requires uncertainty. By using a Gaussian distribution for output selection, CHIME ensures it doesn't play the exact same note every time, even in identical harmonic contexts.
  • Quantitative Improvements: During Phase 1, when training on all three songs simultaneously, the squared error successfully dropped from 185 to 36. In Phase 2, the machine’s "improvisation" initially had an average reinforcement value of -0.37 (indicating it broke many jazz rules). After 30-100 presentations of human solo data, this value improved to 0.28.
  • Qualitative Success: The machine demonstrated "good" jazz behavior, such as starting phrases on high notes, descending through chord tones, and successfully using "hip" extensions over specific dominant chords.

Limitations and Future Work

While CHIME represents a significant step forward, it has limitations. The current model is somewhat "myopic," focusing largely on the current chord rather than broader harmonic progressions. Furthermore, while the system can follow rules about "hip" notes, it lacks a sophisticated sense of when to apply them, resulting in sporadic usage.

Future iterations of CHIME will aim to incorporate longer temporal contexts and enable the system to play "outside" the chord changes more pointedly, moving toward a holistic understanding of a song's overarching structure.

Summary updated

BibTeX
@inproceedings{franklin2001improvisation,
  author = {Judy A. Franklin},
  title = {{Improvisation and Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2001},
}
Figure