Generative Adversarial Post-Training Mitigates Reward Hacking in Live Human-AI Music Interaction

Yusong Wu, Stephen Brade, Teng Ma, Tia-Jane Fowler, Enning Yang, Berker Banar, Aaron Courville, Natasha Jaques, Cheng-Zhi Anna Huang

TL;DR

Researchers have developed Generative Adversarial Post-Training (GAPT) to stop AI musicians from becoming "boring" during live performances. By using a co-evolving discriminator to reward "natural-sounding" music, GAPT prevents the common Reinforcement Learning (RL) pitfall of reward hacking—where an AI repeats the same simple chords to get a high score. This results in an accompanist that expert musicians find more responsive, diverse, and engaging.

What Problem Does This Paper Address?

Most generative AI follows a "prompt and wait" pattern. However, live music jamming is a high-stakes, real-time collaboration. An AI accompanist must adapt to a human’s melody on the fly without knowing what notes are coming next.

While Reinforcement Learning (RL) is great for teaching models to adapt, it often leads to a phenomenon called reward hacking. In music, if you reward an AI for "harmonic coherence" (making sure the chords match the melody), the AI quickly learns a "cheat code": it plays the simplest, safest chords (like a repetitive C-major) over and over. This maximizes the reward but kills the creative "flow," making the AI a predictable and uninspiring partner. Standard fixes, like penalizing the model for straying too far from its original training (KL-divergence), often fail to solve this diversity collapse in musical settings.

Methods

The authors introduce Generative Adversarial Post-Training (GAPT). Inspired by Generative Adversarial Networks (GANs), they add a second model—a discriminator—into the RL loop.

Comparison of standard RL post-training and the proposed GAPT method.
  1. The Discriminator: A Transformer encoder trained to distinguish between "real" human-composed chord progressions and the "fake" progressions generated by the AI.
  2. The Adversarial Reward: The AI accompanist (the policy) receives a reward not just for being harmonically coherent, but for "tricking" the discriminator into thinking its music is human-made.
  3. Two-Phase Adaptive Schedule: To prevent the discriminator from becoming too powerful too quickly (which would leave the AI with no clear way to improve), the authors use a gated update system. The discriminator only "levels up" when the AI gets good enough to consistently challenge it.

This setup creates a "Pareto frontier" where the model must balance being musically correct (task reward) with being musically interesting and natural (adversarial reward).

Datasets

The models were trained and evaluated on several major symbolic music collections:

  • Hooktheory, Nottingham, and POP909: These provided the core monophonic melodies and chord pairings for pop and folk music.
  • Wikifonia: Used as an "out-of-distribution" test set to see how well the AI handles musical styles it has never seen before.
  • Real-time Human Input: The ultimate "dataset" was the live performance data generated during a user study with 12 expert musicians.

Key Insights and Ideas

  • The "Boredom" Threshold: The paper quantifies why RL-tuned models feel "dumb" to musicians. Without adversarial pressure, the models exploit the reward function by reducing their vocabulary to a handful of "safe" chords.
  • KL-Constraints are Insufficient: A major takeaway for RL researchers is that the standard KL-penalty (used in models like ChatGPT to keep them on track) isn't enough to maintain diversity in creative, sequence-heavy tasks like music.
  • Real-time Agency: The study found that when the AI was more diverse (thanks to GAPT), human musicians felt they had more control and agency. This is counter-intuitive; one might think a more "predictable" AI would be easier to control, but musicians felt a diverse AI was "listening" and "responding" better.

Key Results

  • Pareto Superiority: In simulations, GAPT achieved significantly higher diversity (measured by the Vendi Score) than previous RL methods while maintaining high harmonic accuracy.
  • Expert Validation: In a blind study with 12 professional musicians, GAPT outperformed the baseline (ReaLchords) across three categories: Adaptation Quality, Adaptation Speed, and Perceived Control/Agency.
User study results showing GAPT outperforming baselines in adaptation quality, speed, and user agency.
  • Qualitative Feedback: Musicians noted that GAPT "catches my key and chord changes faster" and "prompts the right chord to resolve the suspension," whereas previous models were described as "really dumb... it just keeps giving me the same two chords."

Limitations and Future Work

The current system primarily focuses on a one-way relationship: the human leads, and the AI follows. The authors acknowledge that true jamming is multi-agent, where both players influence each other simultaneously.

Future work aims to:

  • Extend GAPT to multi-agent settings where the AI can also "lead" and influence the human.
  • Incorporate personalized preference models, allowing the AI to learn the specific "vibe" or style of an individual musician over a long session.
  • Address the "cold-start" problem, where the AI has no prior knowledge of the human's style at the beginning of a jam.

Summary updated

BibTeX
@inproceedings{wu2026generative,
  author = {Yusong Wu and Stephen Brade and Teng Ma and Tia-Jane Fowler and Enning Yang and Berker Banar and Aaron Courville and Natasha Jaques and Cheng-Zhi Anna Huang},
  title = {{Generative Adversarial Post-Training Mitigates Reward Hacking in Live Human-AI Music Interaction}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=FXm5U16vxD},
}
Figure