Abstract
Sperm whales communicate through rhythmic sequences of clicks known as "codas," which serve as cultural markers for distinct clans. While machine learning has previously been applied to bioacoustic data, existing models often struggle to capture the full spectral complexity of these vocalizations or lack the ability to perform conditioned generation. This paper introduces WhAM (Whale Acoustics Model), a transformer-based generative model designed to synthesize and "translate" arbitrary audio into the acoustic style of sperm whale codas. By fine-tuning a masked acoustic token model on thousands of whale recordings, WhAM achieves high-fidelity generation and learns internal representations that correlate with biological features such as rhythm, social units, and vowel-like spectral patterns.
Introduction
Sperm whale communication is a complex, culturally transmitted system. These marine mammals utilize codas—short, rhythmic click patterns—to maintain social cohesion and identify clan membership. Decoding this system is a primary goal of behavioral biology, yet it remains a significant challenge due to the difficulty of capturing and analyzing raw acoustic data in the wild.
Recent advancements in machine learning have introduced tools for bioacoustic analysis, but they often fall short in two areas: flexibility and acoustic depth. Generative Adversarial Networks (GANs) can produce whale-like sounds but are difficult to condition on specific prompts. Conversely, models that focus solely on click timings ignore the rich spectral information, such as recently identified "vowel" structures in whale vocalizations. WhAM addresses these gaps by providing a unified framework for generation, acoustic style transfer, and feature representation.
Methodology
WhAM is built upon VampNet, a generative audio-to-audio model originally developed for human music. The architecture utilizes a Masked Acoustic Token Model (MATM), which converts raw audio into discrete tokens. During training, a bidirectional transformer is tasked with predicting masked tokens, allowing it to learn the underlying structure of the audio domain.
To transition from human music to marine bioacoustics, the researchers employed a two-stage fine-tuning pipeline:
- Domain Adaptation: The base model was first exposed to a diverse array of animal vocalizations, including birds and various marine mammals, to shift its focus away from human-centric musical structures.
- Species-Specific Fine-Tuning: The model was then refined exclusively on sperm whale codas to capture the specific nuances of their rhythmic and spectral signatures.
For inference, WhAM employs "iterative parallel decoding." By providing the model with a non-whale audio prompt (such as a walrus call or digital beeps) and masking portions of it, the model "fills in the blanks" using its learned knowledge of sperm whale acoustics. This process, termed acoustic translation, effectively transfers the "voice" of a sperm whale onto the structure of the input signal.
Data Sources
The model's training and evaluation relied on a combination of general and specialized datasets:
- General Bioacoustics: FSD50k, AudioSet, BirdSet, and the Watkins Marine Mammal Sound Database (WMMS).
- Sperm Whale Specifics: Two primary datasets collected off the coast of Dominica: the Dominica Sperm Whale Project (DSWP) containing 2,507 codas, and the CETI dataset containing 7,653 codas.
Key Findings
Acoustic Style Transfer
WhAM demonstrates a remarkable ability to perform cross-domain style transfer. It can take input from disparate sources—ranging from other marine species to synthetic digital tones—and morph them into the acoustic style of a sperm whale. It is important to note that this is a translative process in terms of acoustics, not semantics; the model changes the "voice" of the sound without necessarily translating the underlying meaning of the communication.
Biological Representation Learning
One of the most significant insights from WhAM is that the process of learning to generate audio leads to the emergence of biologically meaningful internal representations. Without explicit supervision, the model's embeddings were found to capture features essential for classification. When used as a foundation for simple downstream classifiers, WhAM's embeddings achieved:
- 91.3% accuracy for coda detection.
- 87.4% accuracy for rhythm type classification.
- 85.2% accuracy for vowel classification.
Expert Perceptual Evaluation
In a blind study involving five expert marine biologists, WhAM's synthetic outputs proved highly realistic. Experts correctly identified synthetic versus real codas 81% of the time via audio and 83% when viewing spectrograms. Notably, experts misclassified WhAM’s "walrus-to-coda" translations as natural whale sounds in 25% of cases, highlighting the model's ability to mimic authentic acoustic signatures.
Limitations and Ethical Considerations
Despite its success, WhAM faces technical limitations stemming from its underlying audio codec (Descript Audio Codec), which was pre-trained on human speech. This can result in the loss of high-frequency nuances and the complex multi-pulsed structures inherent to authentic whale clicks. Additionally, the model occasionally produces artifacts like oscillating background noise.
Crucially, the authors emphasize the ethical risks of this technology. Because the semantic meaning of sperm whale codas is not yet understood, using WhAM to generate audio for live playback experiments in the wild is strongly discouraged. Such actions could inadvertently disrupt whale social dynamics or cause harm to the populations being studied.
Conclusion
WhAM represents a significant step forward in the application of generative AI to bioacoustics. By successfully bridging the gap between audio generation and biological feature representation, it provides a powerful new tool for researchers seeking to understand the complex communication systems of the ocean's most enigmatic inhabitants.
Summary updated