WhAM: Towards A Translative Model of Sperm Whale Vocalization

Orr Paradise, Pranav Muralikrishnan, Liangyuan Chen, Hugo Flores García, Bryan Pardo, Roee Diamant, David F. Gruber, Shane Gero, Shafi Goldwasser

TL;DR

WhAM (Whale Acoustics Model) is the first transformer-based generative model for sperm whale communication, capable of translating arbitrary audio prompts into high-fidelity synthetic whale "codas" (short click sequences). By finetuning a masked acoustic token model pretrained on human music, the researchers demonstrate that generative training naturally produces rich representations capable of both acoustic style transfer and downstream bioacoustic classification.

What Problem Does This Paper Address?

Sperm whales communicate using short, rhythmic sequences of broadband clicks called codas. Understanding these vocalizations is critical for marine biology and conservation, yet modeling them presents significant computational hurdles.

Prior approaches generally suffer from two limitations:

  1. GAN-based models can generate realistic coda-like audio but lack the ability to condition on a specific context or audio prompt.
  2. Timing-based models capture the temporal intervals between clicks (inter-click intervals) but completely discard the raw acoustic and spectral features of individual clicks, such as recently discovered vowel-like patterns.

Furthermore, the bioacoustics field has traditionally separated models into two distinct tracks: those built for generation and those built for classification. WhAM bridges this gap by providing a unified transformer framework capable of acoustic translation, novel generation, and feature representation.

Methods

WhAM is built on top of VampNet, a bidirectional transformer architecture designed for masked acoustic token modeling.

Figure 1: Left: WhAM is trained by finetuning VampNet [García et al., 2023], an audio-to-audio transformer pretrained on a large music dataset (a). Namely, we perform domain adaptation (b) on animal vocalizations followed by species-specific finetuning (c) on a novel sperm whale coda dataset. Right: WhAM synthesizes context-aware variations (d) of input codas and acoustically translates (e) natural and (f) artificial audio into coda-like audio. Illustration © Alex Boersma 2025.

The pipeline operates as follows:

  • Tokenization: Raw audio is compressed into discrete acoustic tokens using a pretrained neural audio codec (Descript Audio Codec), which uses residual vector quantization to capture hierarchical audio features.
  • Masked Acoustic Token Modeling: The transformer is trained on a cloze task—predicting randomly masked acoustic tokens based on unmasked context tokens.
  • Two-Phase Finetuning: To adapt the music-pretrained VampNet to whale acoustics, the authors employ a two-stage transfer learning strategy using Low-Rank Adaptation (LoRA):
  • Domain Adaptation: Finetuning on a broad mixture of general animal vocalizations.
  • Species-Specific Finetuning: Finetuning exclusively on sperm whale codas.
  • Generation: At inference time, the model uses parallel iterative decoding to gradually unmask tokens, allowing it to perform context-aware variations or cross-domain style transfer.
Figure 1: Left: WhAM is trained by finetuning VampNet [García et al., 2023], an audio-to-audio transformer pretrained on a large music dataset (a). Namely, we perform domain adaptation (b) on animal vocalizations followed by species-specific finetuning (c) on a novel sperm whale coda dataset. Right: WhAM synthesizes context-aware variations (d) of input codas and acoustically translates (e) natural and (f) artificial audio into coda-like audio. Illustration © Alex Boersma 2025.

Datasets

The authors leveraged a diverse set of audio sources across the two training phases:

  • Domain Adaptation: The Freesound Dataset (FSD; ~7.75 hours), AudioSet (~5 hours), and the Watkins Marine Mammal Sound Database (WMMS; ~4.1 hours), supplemented by a 110-hour dense vocalization subset of BirdSet.
  • Species-Specific Finetuning: Two massive, real-world repositories of sperm whale recordings collected off the coast of Dominica: the Dominica Sperm Whale Project (DSWP; 2,507 annotated codas) and Project CETI (7,653 annotated codas).

Key Insights and Ideas

  • Acoustic Style Transfer in Bioacoustics: WhAM can ingest non-whale audio prompts (e.g., walrus vocalizations or artificial digital beeps) and "translate" them into the acoustic style of sperm whale codas while preserving the underlying temporal structure.
  • Emergent Representations from Generation: Even though WhAM is trained purely as a generative model without explicit supervision for classification, its internal embeddings capture highly structured biological features. This proves that learning to generate raw bioacoustic signals forces a network to learn meaningful semantic properties.
  • Music as a Pretraining Foundation: Intriguingly, a model pretrained on human music provides an excellent structural foundation for processing the highly rhythmic, impulse-driven communication patterns of marine mammals.

Key Results

Quantitative Evaluation via FAD

The authors evaluated acoustic similarity using a normalized Fréchet Audio Distance (FAD) calibrated with a BirdNET embedding model. WhAM consistently minimized the acoustic distance between diverse animal inputs and natural whale codas. Remarkably, translated outputs from four distinct marine mammal species and even artificial digital beeps became "FAD-indistinguishable" from genuine sperm whale recordings.

Figure 3: Normalized Fréchet Audio Distance between sperm whale codas and various audio sources, before and after translation through WhAM. Lower FAD indicates greater acoustic similarity to natural codas. The horizontal line at 0.21 represents the baseline FAD between disjoint sets of natural codas. Full names of animals along with the number of samples from each can be found in Table 3.

Expert Perceptual Study

Five expert marine biologists and underwater acousticians participated in a rigorous listening and spectrogram-discrimination study:

  • In an audio-only forced-choice test, experts achieved 81% accuracy in distinguishing real codas from WhAM-generated ones. This rose only marginally to 83% when given access to spectrograms, indicating a lack of glaring visual artifacts in the synthetic audio.
  • In a mixed classification test, experts mistakenly flagged genuine whale codas as synthetic 36% of the time, highlighting the high fidelity of the model's generations.

Downstream Classification Performance

WhAM's frozen embeddings were evaluated against specialized, state-of-the-art non-generative bioacoustic models (like AVES and BirdNET) across four tasks:

Task WhAM Accuracy Baseline (Majority)
Coda Detection 91.3% ± 0.2% 60.9%
Rhythm Classification 87.4% ± 1.6% 60.9%
Social SU Unit Classification 70.5% ± 5.6% 35.1%
Vowel Classification 85.2% ± 2.5% 66.3%

While specialized encoder-only models still form the performance ceiling, WhAM significantly outperformed naive baselines, validating its utility as a dual-purpose generative and analytical tool.

Limitations and Future Work

  • Fixed Audio Codec: The Descript Audio Codec was kept frozen and was originally trained on human music and speech. This likely limits its capacity to capture highly subtle, species-specific acoustic nuances, such as the exact spectral boundaries of whale "vowels." Finetuning the codec or building a bioacoustic-specific tokenizer is a clear next step.
  • Click Generation Artifacts: Domain experts noted minor anomalies in synthetic clicks, such as unnatural onset/decay envelopes and background noise oscillations.
  • Dataset Contamination: The authors discovered that existing communication datasets occasionally contain echolocation clicks (used for navigation rather than social interaction), pointing to a broader need for cleaner, automated data-filtering pipelines in bioacoustics.

Summary updated

BibTeX
@inproceedings{paradise2025wham,
  author = {Orr Paradise and Pranav Muralikrishnan and Liangyuan Chen and Hugo Flores García and Bryan Pardo and Roee Diamant and David F. Gruber and Shane Gero and Shafi Goldwasser},
  title = {{WhAM: Towards A Translative Model of Sperm Whale Vocalization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=IL1wvzOgqD},
}
Figure