What Do Language Models Hear? Probing for Auditory Representations in Language Models
Jerry Ngo, Yoon Kim
TL;DR
The paper investigates whether text-only language models encode perceptual auditory representations by introducing a contrastive probing framework that learns linear projections to align LM text embeddings with audio embeddings from pretrained models. The probe, evaluated with a loss $L_C = \sum_{c \in \mathcal{C}} \left( - s(text(c), sound(c)) / \tau + \log \left( \sum_{c' \in N(c)} \exp( s(text(c'), sound(c)) / \tau ) \right) \right)$, is trained on a train set and tested zero-shot on unseen classes using accuracy@K. Across six language models and three audio models on FSD50K, the probe achieves above-chance generalization, with supervised audio representations and larger models providing stronger alignment. These findings suggest that grounded auditory knowledge can emerge from text-only training and underscore the importance of the quality and priors of audio representations for cross-modal grounding applications.
Abstract
This work explores whether language models encode meaningfully grounded representations of sounds of objects. We learn a linear probe that retrieves the correct text representation of an object given a snippet of audio related to that object, where the sound representation is given by a pretrained audio model. This probe is trained via a contrastive loss that pushes the language representations and sound representations of an object to be close to one another. After training, the probe is tested on its ability to generalize to objects that were not seen during training. Across different language models and audio models, we find that the probe generalization is above chance in many cases, indicating that despite being trained only on raw text, language models encode grounded knowledge of sounds for some objects.
