Explainable by-design Audio Segmentation through Non-Negative Matrix Factorization and Probing

Martin Lebourdais, Théo Mariotte, Antonio Almudévar, Marie Tahon, Alfonso OrtegaarXiv 2024

Abstract

Audio segmentation is a key task for many speech technologies, most of which are based on neural networks, usually considered as black boxes, with high-level performances. However, in many domains, among which health or forensics, there is not only a need for good performance but also for explanations about the output decision. Explanations derived directly from latent representations need to satisfy "good" properties, such as informativeness, compactness, or modularity, to be interpretable. In this article, we propose an explainable-by-design audio segmentation model based on non-negative matrix factorization (NMF) which is a good candidate for the design of interpretable representations. This paper shows that our model reaches good segmentation performances, and presents deep analyses of the latent representation extracted from the non-negative matrix. The proposed approach opens new perspectives toward the evaluation of interpretable representations according to "good" properties.

Introduction

Most state-of-the-art audio segmentation systems rely on deep neural networks. While high-performing, these models are typically "black boxes"—it is nearly impossible to understand why a model decided a specific segment contains overlapping speech or background noise. In sensitive fields like forensics or healthcare, this lack of transparency is a significant barrier. This research addresses the need for explainable-by-design AI. Instead of attempting to explain a black box post-hoc, the authors build a model where the internal latent representation is forced to satisfy properties like informativeness, compactness, and modularity.

Methodology: The 3MAS-NMF Architecture

The proposed 3MAS-NMF architecture combines self-supervised feature extraction with traditional matrix factorization to ensure interpretability.

Architecture of the 3MAS-NMF model, showing the flow from raw audio to segmentation and NMF reconstruction.

The model follows a four-step process:

  1. Feature Extraction: Raw audio is processed by WavLM-base, a pre-trained self-supervised model, to extract rich acoustic features.
  2. The Encoder ($\Psi$): A Temporal Convolutional Network (TCN) processes these features to produce a non-negative embedding matrix, $H$.
  3. The Explainable Core (NMF): The matrix $H$ is constrained to serve two purposes:
  4. Classification: A simple linear layer ($\Theta$) uses $H$ to predict four classes: Speech, Overlap, Music, and Noise.
  5. Reconstruction: $H$ must also reconstruct the original audio spectrogram when multiplied by a pre-trained NMF dictionary ($W$).
  6. Multi-task Loss: The training objective balances classification accuracy (BCE loss), spectrogram reconstruction (NMF loss), and sparsity ($L_1$ regularization). This forces the model to find a sparse, meaningful set of "activations" in $H$ that explain the audio.

Performance and Interpretability

The model was evaluated on major benchmarks including DiHard III, Albayzín, and ALLIES. On the AragonRadio (Albayzín) dataset, the model achieved an F1-score of 97.5% for Speech Activity Detection and 93.3% for Music Detection, performing on par with or better than existing "black box" teacher models.

Informativeness through Probing

A key insight is that the $H$ matrix naturally captures fine-grained acoustic information even without explicit training for those tasks. By "probing" $H$ with simple linear classifiers, the researchers achieved high accuracy on tasks like gender detection (92.4%) and phoneme classification.

Visualization of latent components in matrix H, demonstrating how specific dimensions specialize in features like phonemes (e.g., /k/) or music styles (e.g., hip-hop).

Visual evidence shows that specific components in the $H$ matrix correspond to physical realities. For example, component 8 activates specifically for the /k/ phoneme, while component 22 is dedicated to hip-hop music. This modularity—where components are dedicated to specific sound types—is a hallmark of an interpretable representation.

The Interpretability Trade-off

The study identifies a slight "tax" on performance when forcing the model to be interpretable. Increasing the weight of the reconstruction loss ($\beta$) makes the internal representation more meaningful but can slightly degrade the F1-score for difficult tasks like Overlap Speech Detection (OSD). When the reconstruction constraint was relaxed, the model reached a 61.1% F1-score on DiHard III for OSD, matching specialized NMF-based student models.

Conclusion and Future Work

The 3MAS-NMF model demonstrates that audio segmentation can be both accurate and explainable-by-design. While the $H$ matrix is a strong candidate for interpretability, future work will focus on exploring temporal information—how the timing of activations contributes to decisions—and identifying even more "atomic" explanatory factors to provide deeper transparency.

Summary updated

BibTeX
@misc{lebourdais2024explainable,
  author = {Martin Lebourdais and Théo Mariotte and Antonio Almudévar and Marie Tahon and Alfonso Ortega},
  title = {{Explainable by-design Audio Segmentation through Non-Negative Matrix Factorization and Probing}},
  year = {2024},
  eprint = {2406.13385},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.13385},
}
Figure