What Does a Network Layer Hear? Analyzing Hidden Representations of End-to-End ASR Through Speech Synthesis

Chung-Yi Li, Pei-Chieh Yuan, Hung-yi Lee

TL;DR

Researchers from National Taiwan University have developed a "probing model" that reconstructs speech from the hidden layers of end-to-end Automatic Speech Recognition (ASR) systems. Their findings reveal that as speech moves deeper into the network, the model progressively "filters out" speaker identity and background noise, eventually leaving only a normalized linguistic representation.

What Problem Does This Paper Address?

End-to-end ASR systems have revolutionized speech-to-text, but they remain "black boxes." While we can see the final transcript, it is difficult to understand the complex transformations happening between layers. Specifically, researchers want to know: At what stage does the network perform denoising? When does it stop caring about who is speaking and start focusing only on what is being said?

While computer vision researchers can visualize filters in CNNs to see what a model "sees," interpreting audio representations is less intuitive. This paper proposes "audifying" these hidden states—turning them back into sound so we can hear exactly what information the network preserves at each step.

Methods

The authors propose a Probing Model architecture to dissect a pre-trained ASR system:

  1. The Target: They analyze two ASR architectures: a VGG-LSTM (CNN layers followed by LSTMs) and a pure-LSTM model.
  2. The Probe: They attach a 4-layered "Highway Network" to specific hidden layers ($h_k$) of the ASR. This probe is trained to reconstruct the original input mel-spectrogram from that layer's hidden representation.
  3. Synthesis: To make the results "audible," they use the Griffin-Lim algorithm to convert the reconstructed spectrograms back into raw audio waveforms.
  4. Evaluation: They don't just listen; they use objective tools. They employ speaker verification models (ThinResNet and d-vector) to measure how much "speaker info" remains and use the STOI (Short-Time Objective Intelligibility) metric to measure noise removal.

Datasets

  • LibriSpeech (train-clean-100): The primary dataset for training the ASR and probing models.
  • MUSAN: A corpus of music, speech, and noise used to augment the training data, creating "noise-robust" versions of the ASR models.
  • VoxCeleb2: Used to train the external speaker verification models used for evaluation.

Key Insights and Ideas

  • Hierarchical Filtering: The ASR network acts as a series of increasingly aggressive filters. Early layers (CNNs) retain almost all acoustic details, including background noise and the unique "color" of a person's voice.
  • Speaker Erasure: The transition from CNN layers to LSTM layers marks a dramatic shift. By the final LSTM layer, the Equal Error Rate (EER) for speaker identification hits nearly 50%—meaning the representation has become so normalized that it is impossible to tell who is speaking.
  • Intentional Denoising: In models trained on noisy data ("noise-robust"), the first few LSTM layers are responsible for "wiping out" background interference. The probing model shows that these layers successfully learn to ignore noise (like piano music) while preserving the speech signal.
  • Linguistic Normalization: The deeper the layer, the more "robotic" and uniform the reconstructed speech sounds. This suggests the network is successfully mapping diverse acoustic inputs (different accents, pitches, environments) into a singular, canonical linguistic space.

Key Results

  • Speaker Verification: For the VGG-LSTM model, the EER (Equal Error Rate) starts at a low 4.38% at the first CNN layer (meaning the speaker is easily identified) but climbs to 48.07% by the final LSTM layer (meaning speaker identity is effectively lost).
  • Human Evaluation: Human subjects were asked to identify speakers from the reconstructed audio. Their error rate (HER) stayed low through the CNN layers but spiked significantly after the first BLSTM layer, confirming the objective findings.
  • Visual Evidence: Figure 3 in the paper clearly shows that for noise-robust models, the blstm1 layer effectively removes background "corruptions" (like piano music) that were clearly visible in the input spectrogram.

Limitations and Future Work

  • Reconstruction Quality: The authors used a simple, non-contextual probing model to ensure they weren't "hallucinating" information. However, this results in lower audio quality. Future work could use more sophisticated decoders (like Tacotron) while being careful not to introduce external information.
  • Architecture Scope: The study focused on LSTM-based architectures. As the field moves toward Transformers and Conformers, applying this "audification" technique to self-attention mechanisms would be a logical next step.
  • Griffin-Lim: The use of the Griffin-Lim algorithm for waveform synthesis is a classic approach but often introduces artifacts. Using a neural vocoder might produce clearer results for human listening tests.

Summary updated

BibTeX
@inproceedings{li2020what,
  author = {Chung-Yi Li and Pei-Chieh Yuan and Hung-yi Lee},
  title = {{What Does a Network Layer Hear? Analyzing Hidden Representations of End-to-End ASR Through Speech Synthesis}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2020},
  url = {https://openreview.net/forum?id=bLksBRPivZ3},
}

Loading related content...

Figure