What Do Language Models Hear? Probing for Auditory Representations in Language Models

Jerry Ngo, Yoon KimACL 2024

Introduction

Language models (LMs) such as GPT-4 and LLaMA are trained exclusively on massive corpora of text—surface-form strings devoid of direct sensory input. This raises a fundamental question in artificial intelligence: do these models merely act as "stochastic parrots," or do they develop internal representations of the physical world? While previous studies have identified internal maps for visual concepts like color and shape, this research investigates the auditory dimension. Specifically, it asks whether the latent representation of a word like "harmonica" corresponds structurally to the actual acoustic signature of that instrument.

Methodology: Probing the Latent Space

To investigate this "structural isomorphism" between text and sound, the researchers employed a technique known as Probing. The goal was to determine if a simple linear transformation could align the embedding space of a text-only LM with that of a pretrained audio model.

The contrastive probing framework used to align audio and text embeddings into a shared latent space.

The process involved four key steps:

  1. Embedding Extraction: Text embeddings for specific sound-producing objects (e.g., "the sound of a cat") were extracted from various LMs, while corresponding audio embeddings were taken from models like AudioMAE or PaSST.
  2. Contrastive Probe Training: A simple linear probe was trained to project both modalities into a shared space. The objective was to minimize the distance between a text representation and its corresponding audio representation while maximizing the distance from unrelated sounds.
  3. Zero-Shot Generalization: The probe's true test lay in its ability to map sounds it had never encountered during training. If a probe trained on "dog" and "cat" could successfully map a "vacuum cleaner" sound to the word "vacuum," it would indicate a fundamental alignment between the underlying latent spaces.

Experimental Setup

The study utilized the FSD50K dataset, focusing on the 100 most frequent sound classes, including musical instruments, human voices, and domestic sounds. A diverse array of models was tested:

  • Audio Models: AudioMAE (self-supervised), PaSST (supervised), and PANN (supervised).
  • Language Models: Ranging from classic word embeddings like word2vec and GloVe to modern transformers like BERT, T5, GPT-2, and LLaMA-7B.

Results and Analysis

The experiments revealed that LMs encode auditory knowledge significantly above chance levels. Even without direct exposure to sound, the relational structure of language—how we describe and categorize sounds—mirrors physical acoustic reality.

Zero-shot generalization performance (Accuracy@3) across different language models and audio backends. The blue bars represent the language embeddings, while green bars show the performance drop when embeddings are permuted.

Several key insights emerged:

  • Supervision in Audio is Crucial: Alignment was strongest with audio models like PaSST, which are trained on human-labeled events. This suggests LMs capture auditory categories that are meaningful enough for humans to document in text, rather than raw physical acoustics.
  • Model Scaling and Architecture: While larger models like GPT-2 XL generally performed best, simpler models like GloVe were surprisingly effective. This suggests that basic distributional semantics are a powerful source of auditory grounding.
  • Human-Centric Alignment: Sounds related to human speech and music showed the highest generalization, likely due to the rich vocabulary humans use to describe these specific domains.

Conclusion and Future Work

The study demonstrates that text-only LMs possess a grounded understanding of the auditory world through structural isomorphism. However, this grounding is likely "human-centric," filtered through the labels and descriptions we provide. Future research may explore whether LMs can align with purely physical acoustic models or encode lower-level properties like material resonance (e.g., the difference between a "clink" of glass and a "thud" of wood). While LMs can learn these structures from text alone, the process is inherently less efficient than multimodal training.

Reference: Ngo, J., & Kim, Y. (2024). What Do Language Models Hear? Probing for Auditory Representations in Language Models. Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (ACL).

Summary updated

BibTeX
@inproceedings{ngo2024what,
  author = {Jerry Ngo and Yoon Kim},
  title = {{What Do Language Models Hear? Probing for Auditory Representations in Language Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.acl-long.297},
}
Figure