A closer look inside a model that identifies animal sounds
From birds to whales
In August 2025, Google DeepMind released Perch 2.0, a model for identifying animals by their sounds. It learned almost entirely from birds and other animals that live on land. Its training data contained no underwater audio at all.
Then researchers got curious about what would happen if they fed it recordings from the ocean. Perch turned each clip of whale song into a list of numbers, and a classifier trained on those numbers was able to distinguish the whale calls. A model that had only ever heard the sounds of forests, fields and wetlands managed to build a description of sound that worked underwater.
How is this possible? What does a model like this really know, and how would we go about finding out?
These questions matter more and more each year. Ecology increasingly runs on large pretrained models: Perch and BirdNET for sound, BioCLIP for photos of organisms, general vision models for aerial and satellite imagery. They work very well, and for the most part we aren’t totally sure why that is. This post walks through three ideas that help: inductive bias, superposition, and sparse autoencoders. At the end, I try the method myself on Perch, to find out what it hears in whale song.
What a model brings to the data
A deep learning model like Perch comes with assumptions that shape what it learns. Machine learning calls these its inductive bias: the preferences, set by its design and its training process, that make it learn some patterns more readily than others.
Some biases come from the model’s architecture. A convolutional network assumes that pixels close together belong together. That is usually true of photographs, and it’s also Tobler’s first law of geography: near things are more related than distant things. Others come from the task at hand. Perch was trained to separate thousands of bird species, many with near-identical calls. To do that effectively, it had to get very good at dissecting the fine structure of animal sound: how pitch rises and falls, how harmonics stack together, how notes repeat in rhythm.
That is a plausible explanation for how the model carries over to identifying whale calls. Whale calls are made of the same sonic ingredients: pitch contours, harmonics, repetition. A model focused on describing birdsong ended up with a vocabulary general enough to describe sounds well beyond birdsong. This idea is what pulled me into the topic.
But plausible is all it really is. To say “the model learned general features of animal sounds” provides an answer without showing it. To check, we need to look inside the model and find the features that make this transfer possible. That turns out to be harder than it sounds (no pun intended).
Why looking inside is not enough
One way to inspect a neural network is to look at its neurons one at a time. If one neuron fired for “rising whistle” and another for “harmonic stack”, we could read the model like a list of ingredients. Sometimes networks are this tidy. More often, though, a single neuron fires for a bunch of unrelated things, and the clean concepts seem to be spread across many neurons.
In 2022, researchers at Anthropic offered an explanation for this phenomenon: superposition. It starts with a picture of what a layer of neurons does. A layer with 100 neurons describes its input with 100 numbers, which you can think of as a point in a 100-dimensional space. Each concept the model tracks corresponds to a direction in that space. When the concept is present, the layer’s output moves along that direction.
The tidy route gives every concept its own direction, at right angles to all the others. Each direction then stands for one clear idea that can be interpreted on its own. In other words, directions at right angles don’t interfere with one another: moving along one leaves the others untouched, so the model can always tell which concepts are present. But a space has only as many right-angled directions as it has dimensions. A layer of 100 neurons could cleanly track 100 concepts. To track more concepts this way, you would need more neurons, thus a bigger model. You can infer why this is a losing battle.
But the world holds far more things worth tracking than any model has neurons. Superposition emerges as models work to compress reality. Each concept still gets its own direction, but the model lets those directions lean slightly towards each other, so they are only almost at right angles.
That sounds like a small change, but it makes an enormous difference once there are many dimensions. On a flat page, with two dimensions, there is room for exactly two arrows at right angles. Squeeze in a third and at least two of them end up a long way from square. Add dimensions, though, and the room grows remarkably fast. In a space with 1,000 dimensions, two directions picked completely at random will almost always sit within a few degrees of a right angle. The number of nearly perpendicular directions grows exponentially with the number of dimensions. So a layer can hold far more concepts than it has neurons, with each concept spread across many neurons and each neuron shared among many concepts.
The price is interference. Because the directions overlap slightly, an active concept leaves a faint echo on every concept it overlaps with, as if they were weakly present too. If several overlapping concepts fire at once, those echoes add up and the model starts to “confuse” them.
Now this is where rarity comes in. Most concepts are switched off most of the time. A recording might contain one or two calls out of the thousands of sounds a model knows, so nearly everything else is silent. Picture two concepts that each turn up in 1 clip out of every 100. They will turn up in the same clip only about once in every 10,000. So almost always, only one of the pair is active, and the echo it leaves on the other is faint. The model can clean that up by ignoring anything below a small threshold, which is the job of a simple component called a ReLU. The model accepts the odd mix-up in exchange for room to store many more concepts, and the rarer the concepts, the better that deal gets.
Think of an office where nobody has a fixed desk. People come in once or twice a week, on whatever days suit them, and grab a free desk when they arrive. Ten people can share four desks this way, because on most days only two or three turn up. Now and then a fifth person walks in and has to squeeze in at the end of someone’s desk. If everyone starts coming in every day, those clashes happen constantly, and it makes more sense to give everyone their own desk. Neural networks show the same switch: with common concepts they keep dedicated directions, and with rare ones they share.
This also explains the puzzle from the start of this section: why a single neuron so often fires for a bunch of unrelated things. Since every neuron is shared among many concepts, looking at one neuron on its own shows a mixture. Researchers call these neurons polysemantic, meaning they carry many meanings at once.
You can watch this happen in a tiny model. Imagine a network that has to keep track of five things, say five different bird calls, but only has two numbers to describe each sound. Two numbers is a flat page: room for just two arrows at right angles. So what does it do with five?
It depends on how often the calls turn up. If all five are common and often heard together, the model can’t afford any overlap. It gives the two most useful calls their own arrows and simply ignores the other three. If the calls are rare, so it almost never hears two at once, it accepts the overlap: all five get an arrow, spread evenly around a circle like the points of a pentagon. Each arrow leans a little towards its neighbours, but because they rarely fire together, the model can still tell them apart.
Try it below. The slider sets how often each feature is active, and the model retrains as you move it. Each arrow is one feature. An arrow shrunk to the middle has been dropped. Slide towards rare and watch the arrows open out into a pentagon.
Scroll here to start training.
Five features, two dimensions. Each arrow is one feature’s direction in the model’s hidden space; an arrow near the centre means the feature was dropped. Every change retrains the model live in your browser, after Elhage et al. (2022).
Models of the natural world are particularly likely to rely on superposition. The world is full of rare things: a particular bird’s alarm call, a single species of orchid, one type of landform. A model has a limited number of neurons, and nature offers an enormous number of these rare sounds, species and shapes to keep track of. So the knowledge we are looking for is in there somewhere, but tangled together in overlapping directions. Researchers borrow a term from astronomy for this: dark matter. We know it’s there because of what the model can do, but we can’t yet see it directly.
Untangling with a sparse autoencoder
If concepts are packed into overlapping directions, the objective is to find those directions. A sparse autoencoder, or SAE, is a small extra network trained to do just that.
First, you pick one layer of the model you want to study. Then you run a large collection of examples through the model, often millions of image patches or audio clips, and record what that layer outputs for each one. For a vision model, that output is a list of numbers describing each small patch of an image. DINOv3, a widely used vision model, describes every patch with 1,024 numbers. Perch does the same for sound, describing each small slice of time and pitch with 1,536 numbers. Those numbers capture what the model “sees”, but they’re tangled together and impossible to interpret on their own.
The SAE learns to rewrite each list as a combination of entries from a much larger dictionary, say 8,192 features. Each feature is a direction in the model’s 1,024-dimensional space: the high-dimensional version of an arrow in the pentagon picture above. The SAE has one hard rule. Only a handful of features, let’s say 32, can be switched on for any patch. Everything else is set to zero.
Training then has one goal: rebuild the original numbers as accurately as possible, using only those few active features.
\hat{x} = b + \sum_{i \in \text{active}} f_i \, d_i
Here x is the model’s original description of a patch, each d_i is a dictionary direction, and f_i is how strongly that feature fires. The sparsity rule is what makes the result readable. With only a few features allowed per patch, each one is pushed to stand for a single recognizable thing.
To find out what a feature means, you look at where it fires most strongly. Gather the hundred patches or audio clips that switch it on hardest and see what they share. In large language models, this approach has turned up features for the Golden Gate Bridge, bugs in code, and many other concepts. The open question is what it finds in models of the natural world.
What SAEs have found in nature so far
The work is still in its early days, but the results are strong, especially for images.
Images. In 2025, Samuel Stevens and colleagues at Ohio State trained SAEs on patch-level features from DINOv3. On a standard scene-segmentation benchmark, the SAE features rediscovered the benchmark’s object classes and their spatial relationships, without ever seeing a label. Applied to photos of organisms, the same procedure picked out fine anatomical structure, again without any part labels.
A follow-up study in 2026 built a more practical approach. Trait ecology depends on measurements like wing patterns or leaf margins, which experts usually record by hand, so most specimen images in museum collections don’t have any. The team used SAE features as automatic part detectors: they picked features that fire strongly on one species and weakly on its relatives, highlighted those regions, then asked a vision-language model to describe just that part. Pointing the language model at a single highlighted part made it far less likely to make things up. They then used the trait descriptions to further train BioCLIP, a model that matches photos of organisms to species names. On one insect benchmark, its accuracy at naming species it had no specific training examples for rose from about 35% to 40%.
Biology more broadly. The same approach has spread through computational biology. SAEs on protein language models have found thousands of features that line up with concepts biologists have already catalogued in protein databases, such as binding sites, where other molecules attach, and structural motifs, recurring shapes in the folded protein. Researchers have done the same with models of gene activity in individual cells, and with models of RNA, finding features tied to known biological processes. The hope is that some features will turn out to track a biological process or pattern that scientists haven’t yet discovered, giving them a new lead to test out.
Sound. Here the picture is thinner. SAEs have been trained on general audio models such as Whisper, OpenAI’s speech recognition model, and HuBERT, which learns representations of speech from raw audio. When the researchers trained the SAE several times from different random starting points, more than half the features came out the same each time. That is a good sign: a feature that keeps reappearing is likely to reflect real structure in the model, since a fluke of one training run wouldn’t. But as far as I can find, nobody has yet published a serious SAE study of a bioacoustic model like Perch or BirdNET. So the whale question from the start of this post is still open.
The common thread is that SAEs recover categories people already use, like object classes, body parts and protein motifs, without being told them, which is encouraging. Whether they can show us categories we don’t yet have is a harder question.
My investigation
I gathered about 28,700 five-second clips of songs and calls from 169 bird species, along with some frogs, insects and land mammals, and humpback whale song and plain ocean noise from a hydrophone in Monterey Bay. I ran every clip through Perch 2.0 and trained a sparse autoencoder on what it produced: a dictionary of 8,192 features, with at most 32 allowed to switch on for any small slice of sound. (The full recipe is summarized at the end.)
Then I explored three questions. Does Perch treat whale song as its own thing, or as a kind of birdsong? What is whale song made of, as far as Perch is concerned? And does Perch actually rely on those ingredients to recognize a whale?
How to interpret the images below
When Perch listens to a five-second clip, it doesn’t output words like “owl” or “whale” right away. First it turns the clip into a list of 1,536 numbers, called an embedding. That is Perch’s whole description of the sound. Everything it knows about the clip is condensed into that list of numbers.
Just like earlier in this post, you can think of each list as a point in space, just with 1,536 directions instead of three. Two clips that Perch hears as similar get similar lists and are closer to each other in the embedding space. Two clips it hears as different end up further apart.
It is not possible to picture 1,536 dimensions, so the maps below compact that space down to three using a method that tries to keep close things close. The exact positions don’t really mean much, and neither does the distance between two far-apart groups. What matters is the neighborhoods: who ends up next to whom. Drag to turn the map, scroll to zoom, and hover over a dot to see what it is.
Whale island
Let’s start with the big picture. Each dot below is one clip, placed by its embedding and colored by what’s in it.
Humpback song forms its own sort of island in the embedding space. If you take any whale clip and look at the ten clips Perch considers most similar to it, nearly all of them are other whale clips, and almost none are birds. Perch had never heard a whale, and it still determines that they are something different. This is half the answer to the puzzle at the start of this post. The classifier the researchers trained on Perch’s numbers didn’t need to learn much about whales. It only had to learn where the whale island is. Part of that separation comes from the recording itself, though: plain ocean noise from the same hydrophone, with no whale in it, sits right at the island’s edge, so the island reflects where a sound was recorded as well as what made it.
The few outsiders that do end up on the whale island are revealing: red deer, leopards, lions, forest elephants. Big land animals with low, droning calls end up next to humpbacks.
Hearing it
A shared feature should mean a shared sound. For each whale feature, I found the bird clip where the same feature fired most strongly and listened to the pair. Below are three of them, picked by ear from the pairs whose clips Perch rates as most alike overall.
Each pair comes with two spectrograms, pictures of sound. Time runs left to right across the five seconds. Pitch runs bottom to top, from low rumbles at the bottom to high whistles at the top (up to 8 kHz here). Brighter color means louder. A whistle that rises shows up as a line climbing to the right, a steady hum is a flat band, a series of clicks is a row of thin vertical streaks. The cyan box marks the moment where the shared feature fires most strongly.
Whale song is much lower than most birdsong, so the whale’s spectrogram usually sits near the bottom. Don’t expect the two pictures to look identical. Look for the same shape, and take a listen.
Pair 1: humpback and rock pigeon

Humpback:
Rock pigeon:
Both are a soft coo with a little rumble or stutter running through it. The pigeon’s is much higher, but the sonic texture is similar.
Pigeon recording: Arjun Dutta, XC927921, CC BY-NC-SA 4.0. Humpback: MBARI.
Pair 2: humpback and yellow-billed cuckoo

Humpback:
Yellow-billed cuckoo:
Both are a run of short calls repeated at a steady pace.
Cuckoo recording: Marcelo da Rocha, XC684511, CC BY-NC-SA 4.0. Humpback: MBARI.
Pair 3: humpback and boreal owl
Humpback:
Boreal owl:
Both calls rise in pitch at a similar rate, sweeping a long way up in a single note.
Owl recording: Mateusz Gutowski, XC800982, CC BY-NC-SA 4.0. Humpback: MBARI.
Not every pair sounds alike to my ears. One of the closest matches on paper, a humpback and a mute swan, didn’t sound much alike at all, so I left it out. But many share something you can hear: the texture of a call, like a coo with a stutter in it; the rhythm of short calls repeated at a steady pace; or a note whose pitch rises at the same rate. These are the ingredients from the start of this post (pitch contours, harmonics, rhythm), showing up on both sides of the waterline.
The background hum
One more region of the feature map warrants a mention: the streak sitting off to one side. Those roughly 400 features aren’t about any animal in particular. They switch on for most clips, underwater or in air, and carry almost half of everything Perch says about a typical recording. They seem to describe the recording itself: how loud it is, how noisy, how the energy spreads across pitch.
Before Perch hears an animal, it hears the environment in which the recording is taking place. The animal-specific detail sits on top of that.
Testing it
Everything so far shows that whale song and birdsong share features. It doesn’t show that Perch actually relies on those shared features to recognize a whale. To test that, I switched some features off.
First I trained a simple whale detector on Perch’s embeddings, the same kind of classifier the researchers used. On clips it had never seen, it catches 95% of the humpback song. Then, for those unseen clips, I used the sparse autoencoder to remove groups of features from Perch’s description, and asked the same detector again.

Removing the 1,090 features that whales share with birds drops the detector from 95% to 55%. Removing 1,090 features at random barely impacts it (93%). And what about the 57 features that fire on whales but almost never on birds? Removing all of them changes nothing. This means whale detection runs on the bird vocabulary.
No one feature does the job on its own. The strongest one, removed alone, barely moves the detector. The whale is spread across hundreds of shared features at once, which is also why the results hold up even though individual features are unstable.
So what can we take from this? First, the whales don’t become invisible. They still score higher than any other sound, they just fall below the detector’s cut-off. So what the shared features carry is most of the detector’s confidence. Second, the background hum actually matters just as much. Removing it also cuts detection roughly in half, while bird detection gets slightly better. Every whale clip came from the same hydrophone, so the detector has partly learned what that recording sounds like, not just what a humpback sounds like. The lesson here is that what a model learns always includes the data it was given.
What this does and doesn’t show
- Features aren’t facts. I trained the sparse autoencoder twice from different random starting points, and only about 6% of features came out nearly the same both times (12% of the whale features). Published work on speech models gets more than half. So any single feature here is something that needs to be examined more closely, not an exact finding. The broad patterns (the whale island, the shared vocabulary, the background hum) hold across the whole dictionary rather than resting on any one feature.
- The whale labels are rough. I separated humpback song from ocean noise with a simple loudness-and-tone rule, not a trained detector. Some “song” clips will be something else.
- Small scale. 28,700 clips is very few compared to what Perch was trained on. A bigger run would give a sharper, more stable dictionary.
Conclusion
So how does a model that has only heard birds make sense of a whale? To summarize, it doesn’t need anything new. It does keep whale song apart from birdsong, but it describes it with the vocabulary it already built for birds, and that vocabulary turns out to be general enough to carry it. Take those shared words away and whale detection drops from 95% to 55%. Part of what Perch picks up is the recording itself, not only the whale, which is a reminder to be careful about what we read into it. A coo with a stutter in it is a coo with a stutter in it whether it comes from a pigeon on a rooftop or a humpback in Monterey Bay. The details are provisional, for the reasons above, but the shape of the answer is clear. The model’s knowledge is still mostly dark matter. A sparse autoencoder lets in a little light so the model can be explored and interpreted.
Where I want to take this next
This was a small first attempt, and almost every result raises an interesting question.
- Features I can trust. Train on more audio, from several random starting points, and keep only the features that come back every time. Those are the ones worth studying one by one.
- Looking further inside. Switching features off showed what Perch’s final description depends on, not how the model builds those features in the first place. Doing the same at earlier layers would show where the bird vocabulary comes from, and when in the network a whale starts to look like a whale.
- Sounds further from birds. Humpbacks sing in tones and sweeps, which birds do too. Blue and fin whales rumble below what most birds can produce, and dolphins and sperm whales communicate in clicks. Does the shared vocabulary stretch that far, or does it run out of room?
- Song over time. Humpback song changes from year to year, and new themes spread between populations like a cultural trend. If the features track song units, they could follow that change across seasons of hydrophone data.
- The background hum as a signal. The features that describe the recording itself might be useful in their own right, for example for picking out ship noise, which is one of the biggest pressures on whales in busy waters.
- Features nobody has named. Plenty of features fire on sounds that don’t line up neatly with any species or call type in my data. Some will be noise. Some might be call types, or parts of calls, that people haven’t catalogued yet.
Why this matters
Ecology is starting to run on models like Perch. Hydrophones and field recorders now collect more audio than we can listen to, and these models are what turns it into counts of species, maps of where animals are and alarms when something changes. They work very well, and we largely don’t really know why. That’s important to acknowledge when the results feed into decisions about what to protect.
It’s still early days in terms of looking closely inside these bioacoustic models. And that is what made me want to explore these ideas and to start to learn more about them. The questions are big, the field is young, and the answers involve incredible animals we share the planet with but rarely get to hear. A model trained to tell birds apart turned out to know something about whales. Wouldn’t it be neat to find out what else it knows?
Appendix: how I did it
Audio. About 24,000 five-second clips from Xeno-canto: 169 bird species across many families (quality A or B; song, call and alarm call; at most six clips per recording), plus about 1,800 clips of frogs, grasshoppers and land mammals. From MBARI’s Monterey Bay hydrophone, December 2021 to February 2022: 5,406 windows of humpback song and 2,114 of ocean background.
Making birds and whales comparable. The hydrophone records at 16 kHz, so it has no sound above 8 kHz. I pushed every bird clip through 16 kHz too, so the model can’t tell the sources apart just because only birds have high frequencies. Everything was then resampled to the 32 kHz Perch expects. 28,692 clips made it through.
Perch. Perch 2.0 describes each clip as a grid of 16 time steps (about 0.3 seconds each) by 4 frequency bands, with 1,536 numbers per cell. The sparse autoencoder learns from those 64 cells per clip, about 1.8 million in all.
Sparse autoencoder. A TopK sparse autoencoder (Gao et al., 2024): 8,192 features, 32 active per cell, trained for 20 epochs with 10% of recordings held out. On held-out recordings it reconstructs about 82% of the variance in Perch’s representation. About a third of the features never fire on held-out data, which is why the feature map shows 5,615.
Testing it. A logistic-regression detector (humpback song vs. everything else) trained on the average of each clip’s 64 grid cells, which matches Perch’s own clip embedding exactly. For held-out clips, I computed each cell’s sparse-autoencoder code and subtracted the chosen features’ contribution (activation × direction), keeping the autoencoder’s reconstruction error, then re-averaged the cells and re-scored them. “Bird-shared” features fire on at least 5% of humpback clips and 5% of bird clips; “whale-only” features fire on at least 1% of humpback clips and under 1% of bird clips; random controls are five draws of the same size. 2,446 held-out clips, 332 of them humpback song.
The maps. Both maps are 3D UMAP projections using cosine distance: of each clip’s Perch embedding, and of each feature’s pattern of firing across 8,000 clips. Only neighborhoods in these maps are meaningful; distances between far-apart groups aren’t.
Whale audio: MBARI, Pacific Ocean Sound Recordings, CC BY 4.0. Bird and other animal audio: Xeno-canto recordists, credited with each excerpt above.