Skip to main content
QUICK REVIEW

[Paper Review] Exploring XAI for the Arts: Explaining Latent Space in Generative Music

Nick Bryan–Kinns, Berker Banar|arXiv (Cornell University)|Aug 10, 2023
Music and Audio ProcessingComputer Science10 citations
TL;DR

The paper shows how to make a latent-space generative music model (MeasureVAE) more explainable via latent-space regularisation, a real-time UI, and visualisations, enabling interactive debugging and co-creative use.

ABSTRACT

Explainable AI has the potential to support more interactive and fluid co-creative AI systems which can creatively collaborate with people. To do this, creative AI models need to be amenable to debugging by offering eXplainable AI (XAI) features which are inspectable, understandable, and modifiable. However, currently there is very little XAI for the arts. In this work, we demonstrate how a latent variable model for music generation can be made more explainable; specifically we extend MeasureVAE which generates measures of music. We increase the explainability of the model by: i) using latent space regularisation to force some specific dimensions of the latent space to map to meaningful musical attributes, ii) providing a user interface feedback loop to allow people to adjust dimensions of the latent space and observe the results of these changes in real-time, iii) providing a visualisation of the musical attributes in the latent space to help people understand and predict the effect of changes to latent space dimensions. We suggest that in doing so we bridge the gap between the latent space and the generated musical outcomes in a meaningful way which makes the model and its outputs more explainable and more debuggable.

Motivation & Objective

  • Demonstrate how XAI can be applied to generative music to aid understanding and debugging.
  • Increase explainability by mapping latent dimensions to meaningful musical attributes.
  • Provide a real-time, user-friendly interface for exploring latent-space manipulations.
  • Visualise latent-space structures to help users predict how changes affect outputs.

Proposed method

  • Extend MeasureVAE with latent space regularisation to align first four latent dimensions with musical attributes (rhythmic complexity, note range, note density, average interval jump).
  • Train using 20,000 monophonic Irish folk melodies and optimise with an attribute-specific regularisation loss added to the VAE objective.
  • Develop two web UIs (with and without LSR) to manipulate latent dimensions and generate 10,000 decoded variants for visualization and playback.
  • Provide visualizations: training-data contribution plots and two surface maps per 2D latent pad to show attribute mappings and output predictions.
  • Evaluate interpretability via dimension-wise predictability of attributes (interpretability scores).
  • Demonstrate real-time feedback loops where changing latent dimensions immediately updates generated music.
Figure 1 : The simplified MeasureVAE
Figure 1 : The simplified MeasureVAE

Experimental results

Research questions

  • RQ1How can latent-space regularisation align latent dimensions with meaningful musical attributes in a generative music model?
  • RQ2Can a real-time UI and visualisations improve user understanding and debugging of latent-space manipulations in MeasureVAE?
  • RQ3What impact does exposing and aligning latent dimensions have on explainability and co-creative interaction in AI music systems?

Key findings

  • LSR forces the first four latent dimensions to monotonically map to rhythmic complexity, note range, note density, and average interval jump.
  • LSR achieves interpretable dimensions with interpretability scores averaging 0.92 across the four attributes (rhythmic complexity 0.80, note range 0.99, note density 0.99, average interval jump 0.91).
  • Reconstruction accuracy for LSR: 99.87% on training, 99.68% on validation (non-LSR: 99.84% and 99.77%).
  • Two web UIs enable real-time navigation of latent-space pads and playback of input vs. generated measures.
  • Surface maps and training-data contribution plots provide intuitive visual grounding for how latent-space changes affect outputs.
  • The approach supports a feedback loop and higher grounding, enabling more effective debugging and co-creative interaction.
Figure 2 : The simplified MeasureVAE with LSR
Figure 2 : The simplified MeasureVAE with LSR

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.