MetaPerch: Learning from metadata for bioacoustics foundation models


Abstract

Bioacoustic foundation models rely on large-scale citizen science platforms like Xeno-Canto for geographically and ecologically diverse data. Recent work has shown that supervision alone can produce SotA species detection models when trained on this large-scale data—however, there remains unutilized potential in the form of recording metadata readily available within these community-driven data hubs. In this work, we explore the use of metadata—such as location and time—as auxiliary supervision signals, allowing the model to leverage species-metadata correlations in its learned representation. Auxiliary metadata losses provide additional information beyond vocalizations alone that can encourage a richer, more robust representation that generalizes better to species distribution and acoustic domain shifts—important challenges for deployment in real-world passive acoustic monitoring (PAM) settings. We introduce MetaPerch, a new foundation model that achieves strong species identification performance across multiple challenging domains and present an extensive empirical study of the effects of 9 diverse metadata sources on 17 bioacoustic datasets.

1 Introduction↩︎

Bioacoustics is an interdisciplinary field that aims to understand the natural world through sound. Advanced machine learning (ML) techniques have been increasingly used in bioacoustics [1], particularly for species identification. ML and AI models help scale biodiversity monitoring by automating species identification and saving significant manual effort. Fine-grained differences in species sounds, limited data, and long-tailed distributions present unique challenges for AI research. Recent progress has been catalyzed by new datasets and evaluation benchmarks [2][4], giving rise to bioacoustic foundation models [5], [6].

Model development in this field is supported by large-scale global platforms such as Xeno-Canto [7] and iNaturalist [8]. By allowing citizen scientists to upload and annotate recordings from everyday devices like mobile phones, these platforms have facilitated the collection of sounds of diverse taxa from around the world. Citizen science recordings tend to be curated, focal recordings, often clustered around human population centers, and often featuring popular species. In contrast, biodiversity monitoring applications tend to use soundscapes that are collected from continuous, passive acoustic monitoring (PAM) devices and have much more background noise and species overlap. Such efforts also typically target ecologically important or endangered zones such as tropical rainforests or wetlands and give considerable importance to rare species. This disparity between the training data and deployment targets means that bioacoustics models must be robust to challenging domain shifts: acoustic, species presence/distribution, and geographic (1).

Figure 1: Problem setup. Bioacoustics training and evaluation settings differ significantly. This figure illustrates substantial acoustic (focal \rightarrow soundscape) and species (observed \rightarrow novel) domain shifts in our setup. In this work, we explore the use of metadata as auxiliary supervision to learn robust, generalizable features and help bridge the domain gap.

Despite the drawbacks, the sheer volume of annotated data provided by these platforms is an essential component of recent bioacoustic foundation models. Furthermore, citizen science websites include a wealth of auxiliary information such as recording location, date, and quality; individual call type, sex, and life stage; free-form notes left by the recordist as well as certain background species and recording device characteristics. Global taxonomic patterns in these metadata sources could be utilized to learn useful correlations that help bridge the domain gaps. While recent work has demonstrated the utility of supervised learning [6], it often uses species annotations as the only source of supervision. In this work, we employ a multi-task learning approach, jointly training our model with the different metadata prediction tasks alongside the primary species identification task, and quantify the effects of learning from metadata in this setting.

Multi-task learning with metadata presents several key challenges. First, complete coverage of all metadata is often not practical and models must appropriately handle missing metadata. Second, popular data augmentations such as mixup [9] require care when mixing recordings with varying metadata availabilities. Third, as we include more metadata, the number of training losses increases and the multi-objective optimization problem becomes more complex. Lastly, some metadata sources may encourage spurious correlations not grounded in ecological interpretation, potentially worsening the domain gap. In this work, we tackle these challenges to build metadata-aware species identification models.

We summarize our main contributions below:

  1. We propose MetaPerch1, a new bioacoustic foundation model that uses metadata as auxiliary targets.

  2. We demonstrate that learning with metadata improves species identification with extensive experiments across a wide range of datasets and tasks covering diverse taxa and geographical regions.

  3. We present a comprehensive empirical study of the disentangled importance of different metadata modalities and the effects of various loss formulations and other design choices in our training paradigm.

2 Related work↩︎

Conditioning on metadata. At test-time, metadata can provide additional context for species identification. Apps such as Merlin Sound ID use location to help disambiguate between acoustically similar species. [4] use species range estimation models [10] to construct geographic priors [11] and constrain the set of possible species at each location. [12] use location and week-of-year to train their own species range model for similar test-time species filtering. [13] also explore the benefits of location and time as inputs or priors. [14] explore the inclusion of location and recordist notes as free form text for zero-shot captioning. A key assumption here is the availability of metadata at test-time. In contrast, our work uses metadata solely during training, making it easier to handle missing metadata and facilitating broader downstream applicability.

Figure 2: Dataset statistics. Geographical distribution of the training (log scale) and evaluation (rough locations) datasets.

Training with metadata. The use of metadata as auxiliary targets is largely underexplored in bioacoustics. [15] used sound descriptions, functional traits [16] and life-history [17] as metadata for zero-shot species ID. While these per-species metadata sources give additional context about the species itself, our work explores per-recording metadata that often provide complementary information. NatureLM-audio [14] and AnimalSpeak [18] use various recording metadata to construct templated text captions that are used to train audio-language models. In contrast, our work explores each metadata source with a dedicated prediction task, disentangling their effect and enabling more detailed analyses. [19] and [14] also explore the prediction of metadata such as location and vocalization call type as primary tasks for bioacoustic applications beyond species identification. In this work, we focus solely on species identification, comparing its performance with and without metadata.

Species-only learning. A large fraction of bioacoustics is devoted to species identification, and methods tend to rely on species labels as the only source of supervision. Prior work has focused on birds [12], [20][25] and broader terrestrial [4], [14], [26][32] and marine [33][35] taxonomic groups, leading to foundation models for bioacoustics. Recent work has shown the promise of increasing supervision and including general sound sources [6], [26]. We build on this progress and address the question of whether metadata can be useful sources to provide even more supervised signal and facilitate better transfer under challenging domain shifts.

General multitask and multimodal learning. Training with multiple tasks can be challenging because of differing loss and optimization semantics. Prior work has explored dynamic loss weighting [36], [37], gradient manipulations [38], [39], and multi-objective optimization [40] techniques. Strategies for handling missing modalities [41] are useful references when handling missing metadata. In this work, we address these challenges in the context of bioacoustics and present training recipes for metadata-aware species identification.

Metadata outside bioacoustics. The use of metadata, particularly location, has received significant interest in other fields as well. Soundscape mapping [42] aims to understand the acoustic signatures of different geographic locations. Remote sensing approaches also often rely on reconstruction of environmental metadata such as altitude and temperature to learn robust geospatial embeddings [43], [44]. Similar to bioacoustics, conditioning on location to form geographic priors has been explored in visual species identification [11]. Directly predicting metadata such as location has also received recent attention with images [45], [46] as well as audio [19]. While the use of metadata has seen some success in these fields, it remains under-explored in bioacoustics, and whether the successes transfer to this challenging domain is an open question that we aim to address in this work.

3 Methodology↩︎

Our primary goal with this work is to investigate the impact of a wide range of metadata sources on model performance when used to construct auxiliary supervision targets. We borrow elements of the base architecture design from the current SotA bioacoustics foundation model, Perch 2.0 [6], and modify key elements to enable faster iteration and better visibility of metadata influence, to establish a strong baseline for comparison which we refer to as BioBaseline. We build upon this baseline architecture and introduce auxiliary metadata prediction tasks. After careful model selection among models co-trained with metadata supervision signals, we compare the best-performing model, called MetaPerch, against BioBaseline and other recent bioacoustics foundation models on a wide range of evaluation tasks.

The following subsections describe BioBaseline and MetaPerch in more detail. We focus on the specific design choices behind MetaPerch in this section and present a large-scale study of these considerations and ablations in 4.4 and the Appendix.

3.1 Training datasets↩︎

l crr Dataset & Type & Classes & Hours
& species & 12,308 & 13,555
& species & 8,382 & 3,077
& species & 2,375 & 1,462
& general & 198 & 80
Total & & 14,795 & 18,174

Following [6], we train BioBaseline and MetaPerch on four labeled audio datasets, using the same class mappings and spectrogram configurations: Xeno-Canto [47], iNaturalist [48], the Tierstimmenarchiv [49] and FSD50K [50]. The first three predominantly feature animal vocalizations while the last contains a variety of anthropogenic and environmental sounds. In total, this collection of datasets constitutes over 18,000 hours of audio from 1.55M recordings, with 1.62M annotations across 14,597 animal species and 198 general sound event classes. Refer to ¿tbl:tab:data95summary? for summary datasets statistics and 2 for geographical distributions of the training and evaluation datasets. Additional details are included 6.1.

3.2 BioBaseline↩︎

In terms of architecture and training, we broadly follow [6] for BioBaseline. We use random window sampling with 5s windows and mixup augmentation [6], [9]. The 2D spectrogram of this mixed window is treated as a single-channel image and embedded using EfficientNet-B3 [51], a lightweight vision model with \(\sim\)​12M parameters. Activations of the penultimate layer, before pooling, are extracted as the spatial embeddings. The model includes a prototype learning classifier [52], [53] with these spatial embeddings and a linear classifier with spatially-aggregated embeddings to predict the class. Both heads are trained with a cross-entropy loss, but the embedding model receives gradients back-propagated from the linear head only.

Two components we do not include which differentiate BioBaseline and MetaPerch from Perch 2.0 are source prediction and self-distillation. Source prediction—predicting which recording a window was sampled from—requires the embeddings of each window to encode information to identify the original audio recording. We posit that this task may involve implicitly learning information that is encoded in various metadata sources, which can obfuscate the influences of different metadata on the resulting model. Additionally, the output head is the dimension of the number of recordings, which substantially increases the number of model parameters given our training corpus. Self-distillation involves a two-stage training regime—first training a “noisy student” model, then using that to learn a fine-tuned model—where hyperparameter tuning is required at each training stage. This process is computationally expensive and reduces scalability.

Figure 3: Method diagram. Overview of BioBaseline and MetaPerch.

3.3 MetaPerch↩︎

What differentiates MetaPerch from other biacoustics foundation models is the addition of auxiliary losses during training. In conjunction with species detection, the model receives supervised signals by predicting corresponding metadata values from the input audio. We construct additional metadata prediction heads as small multilayer perceptrons (MLPs) each project the spatially-aggregated embedding into a dimension appropriate for the given metadata. The specific architecture details for each MLP—number of hidden layers, hidden dimension, and activation function—are treated as hyperparameters.

From our large-scale empirical study, we find that location, season, and background species as auxiliary prediction tasks yield a strong model. These metadata are also intuitively correlated with species identification. Predicting location incentivizes the model to also attend to ambient and background sounds for potential geographic cues, which should be helpful in soundscapes. As in [54], we group neighboring locations into S2 cells [55] and treat location prediction as a classification task. In conjunction with location, the season can add useful context for migratory species. A fraction of the recordings also include annotations for the background species, and attending to these could further facilitate better transfer to soundscapes. For an overview of the methodology, please refer to 3. The other metadata sources considered, but not used after model selection, such as recording characteristics (quality, sampling rate), and species individual attributes (vocalization call type, individual life stage) are also included in 3 4, and detailed in 6.4. Our model, and the general multi-task learning paradigm is formalized in 6.10.

3.3.1 Learning from metadata↩︎

Multi-loss training. Appropriate loss balancing is important for effective optimization in multi-task learning. We frame most metadata prediction tasks as classification problems and use the (softmax) cross-entropy loss—we find empirically that this provides useful training signal, and also yields similar loss landscapes and orders of magnitude across the tasks. For simplicity, we use a constant loss weighting strategy and include the weight of each metadata loss as a hyperparameter.

Missing metadata. While metadata such as location are available for most recordings, others such as background species or recording notes are missing for significant fractions of recordings, some for entire datasets (4). To fully utilize the metadata that is available, it becomes important to appropriately handle cases of missing metadata. Following prior work in multimodal learning with missing modalitites [41], we assign placeholder values for recordings that are missing a particular metadata and then zero-out their loss contributions.

Figure 4: Metadata availability. Percentage of recordings across the full training dataset which have each metadata type.

Mixup with metadata. Metadata requires more care than species labels when mixup is involved. When mixing two recordings with distinct species, it is reasonable to define the target as the union of species present in both recordings. However, defining the location metadata targets as the average of the two recordings’ latitude and longitude may result in nonsensical targets, for example. In practice, the metadata prediction tasks used in MetaPerch are all framed as classification tasks, and we found that naively constructing a multihot target with all individual classes worked well.

Another edge case to consider is how to handle metadata that is only available in some but not all of the mixed recordings. In such cases, we still mix the audio from all recordings, but only mix metadata that is present. Although this design leads to potential mislabeling for cases with missing metadata, in practice, we observe that it works better than the other alternatives we explored.

Adversarial learning. Some species-metadata correlations may reflect training biases rather than ecologically grounded relationships. Using such metadata for auxiliary training may actually make the model more brittle to domain shift. In such cases, we can encourage embeddings to be agnostic to—rather than predictive of—such “spurious” metadata by leveraging an idea introduced in domain adversarial networks [56] and using a gradient reversal layer [57] between the backbone and the metadata prediction heads. By maintaining the forward pass while negating the backward pass, this layer ensures that the metadata head is trained with the usual gradients while incentivizing the model to learn embeddings that worsen metadata prediction. Our model selection procedure is allowed to explore both standard and adversarial training for each metadata source.

3.4 Validation datasets and model selection↩︎

In alignment with the model selection procedure presented in [6], we validate on tasks that mirror some aspects of the evaluation setup while ensuring that there is no test set leakage. We perform model selection based on three tasks categories:

  1. observed-species classification (Powdermill [58] and Caples [58])

  2. one-shot embedding retrieval (training sets of BEANS detection tasks, Weldy calltype [59], and Powdermill and Caples)

  3. novel species linear probing (training sets of BEANS classification tasks, DCLDE [60], NOAA [61], ReefSet [33], and some other tasks from [20])

We average the ROC-AUCs in each validation task category and then compute a geometric average over the three categories, which we use for model selection. To tune hyperparameters, we use Vizier [62], a black-box optimization algorithm. Refer to 6.6 for an overview of our hyperparameter optimization search spaces and selected values.

4 Results and discussion↩︎

We investigate the impacts of metadata through the performance of MetaPerch on an extensive evaluation suite consisting of 17 species identification datasets. For each benchmark, we describe the evaluation setup, then discuss our performance on it. For hyperparameter tuning, we use Vizier [62], Python-based service for black-box optimization, with identical numbers of trials to perform model selection for both MetaPerch and BioBaseline. The selected hyperparameters are then used to retrain models 5 times with different random seeds to compute the mean and standard deviation on each metric. We report the mean performance in the tables below, and include additional results with standard deviations in 6.7.

l ccccccc cc Method & PER & NES & UHH & HSN & NBP & SSW & SNE &
(lr)2-8 (lr)9-10 & & ROC-AUC & cmAP
Perch 1.0 & 0.700 & 0.900 & 0.760 & 0.860 & 0.910 & 0.910 & 0.830 & 0.839 & 0.356
Audio ProtoPNet-5 & 0.790 & 0.930 & 0.870 & 0.920 & 0.930 & 0.970 & 0.860 & 0.896 & 0.424
BirdMAE-L & 0.820 & 0.910 & 0.820 & 0.900 & 0.940 & 0.930 & 0.880 & 0.886 & 0.440
[2] & 0.720 & 0.880 & 0.790 & 0.890 & 0.920 & 0.930 & 0.830 & 0.851 & 0.360
Perch 2.0 & 0.786 & 0.953 & 0.912 & 0.915 & 0.933 & 0.973 & 0.883 & 0.908 & 0.431
& 0.756 & 0.942 & 0.874 & 0.893 & 0.935 & 0.971 & 0.868 & 0.891 & 0.432
& 0.801 & 0.948 & 0.900 & 0.909 & 0.937 & 0.971 & 0.874 & 0.906 & 0.438
& (+0.045) & (+0.006) & (+0.026) & (+0.016) & (+0.002) & (+0.000) & (+0.006) & (+0.015) & (+0.006)

l cccc ccccc cc Method & Watkins & Bats & Dogs & Humbug & DCASE & ENA & Hiceas & RFCX & Gibbon &
(lr)2-5 (lr)6-10 (lr)11-12 & & & Acc & cmAP
AVES-Bio & 0.879 & 0.748 & 0.950 & 0.810 & 0.392 & 0.555 & 0.629 & 0.130 & 0.284 & 0.847 & 0.398
Perch 1.0 & 0.855 & 0.718 & 0.942 & 0.739 & 0.283 & 0.603 & 0.502 & 0.232 & 0.146 & 0.814 & 0.353
BirdNet & 0.897 & 0.706 & 0.885 & 0.782 & 0.455 & 0.648 & 0.431 & 0.148 & 0.279 & 0.818 & 0.392
BioLingual (FT) & 0.894 & 0.766 & 0.971 & 0.817 & 0.475 & 0.688 & 0.677 & 0.178 & 0.376 & 0.862 & 0.479
NatureLM-Audio & 0.788 & – & – & 0.114 & 0.058 & 0.314 & 0.336 & 0.025 & 0.005 & – & 0.148
[26] & 0.914 & 0.681 & 0.906 & 0.789 & 0.465 & 0.566 & 0.527 & 0.118 & 0.366 & 0.823 & 0.408
Perch 2.0 & 0.870 & 0.804 & 0.942 & 0.770 & 0.469 & 0.751 & 0.575 & 0.200 & 0.515 & 0.847 & 0.502
& 0.884 & 0.804 & 0.944 & 0.786 & 0.477 & 0.778 & 0.563 & 0.196 & 0.519 & 0.854 & 0.506
& 0.905 & 0.816 & 0.961 & 0.798 & 0.496 & 0.787 & 0.568 & 0.209 & 0.500 & 0.870 & 0.512
& (+0.021) & (+0.012) & (+0.017) & (+0.012) & (+0.019) & (+0.009) & (+0.005) & (+0.013) & (-0.019) & (+0.016) & (+0.006)

4.1 BirdSet benchmark↩︎

We present our results on BirdSet [2] in ¿tbl:tab:birdset95results? and 5. The benchmark includes seven avian datasets from North and South America, the Hawai’ian islands, and Europe. Each PAM recording is accompanied with dense species annotations (bounding boxes), which we treat as a detection problem. Since all species in these datasets are present in our training corpus, we use the trained prototype learning head directly for species prediction and compute ROC-AUC scores.

Metadata improves transfer to soundscapes for known species. BirdSet captures model performance under the acoustic (focal \(\rightarrow\) soundscape) distribution shift. We see consistent improvements for MetaPerch over BioBaseline across datasets, with an increase of 0.015 in ROC-AUC on average. This improvement could be partly attributed to learning embeddings that attend to and are predictive of background species. MetaPerch also performs favorably in comparison to recent approaches: its ROC-AUC is 0.002 below the SotA, Perch 2.0, a more complex model.

Metadata helps more in underrepresented regions. The geographic distribution of our training datasets (2) is highly imbalanced: South America and Hawai’i, among others, are underrepresented compared to North America and Western Europe. In BirdSet, we observe strong performance for PER (Peru) [63], UHH (Hawaiʻi) [64], and NES (Colombia, Costa Rica), with an improvement of 0.025 ROC-AUC points on average. On the other hand, the North American and Western European datasets (HSN [65], NBP [66], SSW [67], SNE [68]) have relatively smaller improvements, averaging at 0.006 ROC-AUC points. These results suggest that metadata auxiliary training signal—particularly from location and season—encodes additional information that may help bridge the data gap for underrepresented regions.

Figure 5: Performance on bioacoustic benchmarks. Visualization of our performance relative to the baseline. For each dataset, we present the same metric used in ¿tbl:tab:beans95results? ¿tbl:tab:birdset95results? (ROC-AUC for BirdSet, Accuracy & cmAP for BEANS). We highlight the domain shifts (species, acoustic, geographic) in each dataset to better illustrate scenarios where metadata is beneficial.

4.2 BEANS benchmark↩︎

The BEnchmark of Animal Sounds, BEANS [3], includes 12 bioacoustic and miscellaneous audio datasets. For each dataset, a train split is included, which we use to train prototype learning probes on the model’s frozen embeddings. We treat datasets with focal recordings as classification tasks and report accuracy, and those consisting of PAM soundscapes (with dense labels) as detection tasks and report cmAP. Our results are presented in ¿tbl:tab:beans95results? and 5. Among the datasets presented in BEANS, we include only the bioacoustic tasks, and exclude CBI [69] because of potential overlap with our training set.

Metadata helps transfer to novel species for focal recordings. BEANS classification tasks include focal recordings with species and classes either completely unobserved or relatively rare in our training corpus. We observe consistent benefit on all classification tasks, with an improvement of 0.016 on average accuracy. Notably, on Watkins [70] and Bats [71] accuracy improves by 0.021 and 0.012, respectively, even though aquatic and very high frequency bat sounds differ greatly from the predominantly avian sounds in our training data. HumbugDB [72] contains mosquito data from different parts of the world, and encoded location information may explain MetaPerch’s better performance. MetaPerch also seems to better capture intra-species variations in the Dogs dataset [73].

Metadata helps transfer to soundscapes for novel species. Performance on the BEANS detection tasks captures model performance under both acoustic and species shift. MetaPerch also generally outperforms BioBaseline here, with an improvement of 0.006 on Mean cmAP. We observe strong improvements of 0.009 and 0.019 ROC-AUC on the avian datasets ENABirds [74] and DCASE [75], respectively. In contrast, metadata has limited benefit for the other datasets Hiceas [76], RFCX [77], and Hainan Gibbons [78], which feature marine mammals, anurans, and primates, respectively. We suspect that while MetaPerch improves transfer under species and acoustic shifts on their own, the benefits diminish when both shifts are present in conjunction.

Overall, MetaPerch achieves SotA performance on BEANS classification and detection tasks, outperforming the next best model by 0.008 accuracy and 0.006 cmAP points.

4.3 WABAD↩︎

WABAD [79] is a soundscape dataset consisting of 1,192 bird species from around the world. It is geographically diverse, particularly with recordings from Africa, Asia, and New Zealand—regions that are less prominent in the other evaluation datasets. Similar to BirdSet, we use the trained classifier heads (linear and prototype learning) directly to compute ROC-AUC. We also report a one-shot retrieval metric, similar to the validation tasks. Our results are presented in ¿tbl:tab:wabad95results?.

Metadata helps in globally distributed tasks. While the other benchmarks include datasets from different parts of the world, most tasks are geographically limited on their own, and the model is tasked with differentiating recordings within a task only. For tasks with species from different parts of the world, correlations with metadata such as location can be incredibly useful. In WABAD, MetaPerch improves over the baseline by 0.070 and 0.018 (ROC-AUC) for linear and prototype learning probes, respectively. ¿tbl:tab:beans95results? shows similar results with the other globally distributed tasks in BEANS: Watkins and HumbugDB.

Metadata benefits vary across biomes. We evaluate the performance of models on recordings from different biomes in WABAD. The Tropical and Sub-tropical biome has the highest improvements of 0.023, while for deserts, we see a marked drop of 0.024 ROC-AUC. These results suggest that the benefits for metadata are not uniform, and that recording environment may be correlated to the benefit of metadata for species identification.

Metadata allows embeddings to encode habitat information. In 6, we also visualize our and baseline embeddings, colored by the biomes. Our embeddings appear more separable by biome, albeit still fragmented, with distinct sub-clusters forming within each biome. This structure is also visible in the visualizations colored by species in 6.8. Since this is a multi-species detection dataset, we suspect that these sub-clusters correspond to species combinations that co-occur frequently.

Figure 6: Embedding visualizations. 2D UMAP projections of BioBaseline(left) and MetaPerch(right) embeddings of WABAD windows, colored by biome.

4.4 Ablations↩︎

MetaPerch design choices. First, we study the effects of different design choices in MetaPerch. For the multi-loss training strategy (¿tbl:tab:weighting?), our validation performance suggests that treating the weights of each metadata loss as hyperparameters to be optimized works better than more involved strategies such as dynamic equalization or gradient surgery [39]. This is likely because all of our losses are softmax cross entropies, have similar gradient landscapes and are in similar orders of magnitudes. For mixup ([tbl:tab:mixup]), we observe that our mixing of any present metadata attains better validation performance than the stricter choice of mixing a metadata if and only if (iff) it is present for all. Using a weighted mean also leads to similar drops, and all 3 are better than no mixup at all.

In these experiments, we note a disconnect between the validation and WABAD performance: for example, after sorting the Vizier trials by their validation performance, the median trial actually performs better on WABAD than the best one. Since our design choices are driven by the validation performance, we may miss out on some test performance improvements, and these results highlight the challenges of choosing appropriate validation tasks.

BIRB. We analyze the performance of MetaPerch under controlled distribution shift experiments, similar to those proposed in BIRB [80]. Focusing on the Hawaiʻi [64] and Coffee Farms [81] datasets from BirdSet, we exclude all species present in these datasets from our training data and retrain BioBaseline and MetaPerch. The task is framed as few shot classification, where a few iNaturalist windows of each species are used to train a linear probe, which is then evaluated on 1) the Xeno-Canto subset containing held-out species and 2) the PAM datasets themselves. While the latter contains both species distribution and acoustic shifts, the former allows us to study species distribution shift in isolation.

These results are presented in 7. For lower shots, we observe that MetaPerch outperforms BioBaseline for both Xeno-Canto held-out and the soundscape datasets. This trend reverses for higher shots in the Xeno-Canto held-out set, suggesting potential shortcomings of MetaPerch. The Xeno-Canto held-out set reflects an artificial setting designed to disentangle the effects of acoustic and species shifts, whereas PAM soundscape experiments are more representative of natural deployment conditions. We report on both to provide a holistic picture of MetaPerch, but we expect PAM soundscape results to be more reflective of actual metadata benefits in practice.

Figure 7: Ablations.For (a), we report few-shot linear probe performance on BIRB [80]. For (b-d), we report ROC-AUC achieved by prototype learning head on WABAD.

0.51

Ablations.We report ROC-AUC of prototype learning head on WABAD as well as the model-selection validation metric.
Method WABAD Val
Best Vizier 0.946 0.880
Median Vizier 0.952 0.870
Gradient Surgery 0.944 0.874
Dynamic equalize 0.905 0.875

0.48

Ablations.We report ROC-AUC of prototype learning head on WABAD as well as the model-selection validation metric.
Method WABAD Val
0.946 0.880
Mix iff all 0.945 0.874
Weighted mean 0.947 0.876
No mixup 0.941 0.869

Effects of missing metadata. We expect the benefits offered by a particular metadata to increase as more of this metadata is available. To better understand the sensitivity of model performance to metadata availability, we observe performance with location prediction when fractions of the metadata are artificially marked as missing. The results, presented in [fig:missing], show that while the performance decreases as lesser metadata is present, there are still noticeable improvements over baseline for as low as 1% availability. This further highlights the strong potential of metadata, and supports our choice of including metadata even if they are available for only a fraction of the training data.

Individual metadata performance. We observe improvements by encouraging features to be predictive of most metadata on their own, with boosts ranging from 0.008 for Day-Part to 0.019 ROC-AUC points for Background Species ([fig:individual]). Adversarial training is better for day-part and text embeddings. Interestingly, we observe similar performance for both standard and adversarial training with sampling rate and quality. Background species and location have the most improvement with standard training, and the most drops with adversarial training, highlighting their importance for robust bioacoustic features.

Location prediction formulations. Each metadata prediction task can be formulated in a number of ways, with corresponding prediction heads and losses. We explore some formulations of location prediction in [fig:location95losses] (additional details in 6.4). Strong WABAD performance across different formulations (regression, classification, and distillation) underscores the potential of location prediction. S2 cell classification at level 7 (average cell area is roughly 50,000km\(^2\)) performs best, followed closely by Cartesian regression. Finding a suitable loss formulation involves a tradeoff between learnability and specificity. For example, a coarser-grained S2 cell mapping may be easier to predict, but misses finer geographical context.

5 Conclusion and future work↩︎

Metadata offers a rich source of auxiliary supervision for bioacoustics foundation models: learning with metadata improves species identification by leveraging species–metadata correlation. Global patterns in readily available metadata such as location and time can help species identification and increase robustness to various domain shifts. Our study demonstrates the potential of using such metadata as auxiliary losses, highlights the most beneficial metadata sources, and explores the effects of different design choices in this paradigm. Strong performance benefits with our simple approach presents a lower bound for metadata benefits and lays the groundwork for future research in metadata-aware species identification.

An interesting future direction is in the design of alternative paradigms such as pre-training or test-time conditioning. Extending our method to other relevant metadata and base foundation models would make for meaningful follow-up work. Metadata could also guide data sampling in an effort to alleviate some spatiotemporal biases or construct training curricula. We hope the evidence presented in this work motivates researchers to consider incorporating diverse metadata and auxiliary supervision signals when constructing datasets and benchmarks.

Acknowledgements↩︎

We thank Bart van Merrienboer, Tom Denton and Lauren Harrell for their perspectives around this work. We thank Richard Song for guidance on deploying large-scale Vizier hyperparameter tuning.

Impact statement↩︎

Potential misuse: wildlife disruption or harm. An important goal of bioacoustics research in general is to aid conservation efforts and biodiversity monitoring by automating and scaling species identification. However, these models could also be used to harm species of interest. For example, species of interest could be identified using bioacoustic monitoring setups with species identification to locate species of interest, and this information could be used to harass, trap, or poach species.

For MetaPerch in particular, metadata such as location can be another cause for concern. While we do not release metadata prediction heads, our embeddings may still be used to train geolocalization models to locate species of interest. However, the S2 cell level used (L7) is coarse enough (average cell area of around 50,000 square kilometers) that predicting the S2 cell at that level would not be useful for poaching purposes.

Personally identifiable information. Human voice or other personally identifiable content may be present in the citizen science platforms such as iNaturalist and Xeno-Canto, and consequently, our training data. Since the recordings are openly available and licensed for research use, we do not obfuscate or modify the data for training.

6 Appendix↩︎

6.1 Additional dataset details↩︎

We enumerate all datasets used in our experiments in ¿tbl:tab:supp95data95stats?. The species in the different training datasets partially overlap. In total, we have more than 18,000 hours of audio from 1.55M recordings with 1.62M annotations across 14,597 species and 198 general sound event classes. Following [6], the Xeno-Canto data was obtained from the public API and the iNaturalist data was obtained by collecting the ‘research-grade’ audio examples reported to the Global Biodiversity Information Facility (GBIF). Since Xeno-Canto, iNaturalist and the Tierstimmenarchiv use different taxonomies (species names) the classes from Xeno-Canto and Tierstimmenarchiv were mapped into the iNaturalist classes. All bat recordings are removed from the datasets.

We visualize the geographical distributions of individual training datasets in 8, and their class frequency distributions in 9. These demonstrate both the geographical and ecological skew in the training datasets. The long-tailed distributions make species identification particularly challenging for underrepresented regions and rare species. We include addition statistics of metadata availability in 10.

ll rr Dataset & & Classes & Size (hours)

& 12308 & 13555
& 8382 & 3077
& 2375 & 1462
& 200 & 80

& &
& &
&
& &
& &
& &
& &
& &

BirdSet & PER [63] & 132 & 21
& NES [81] & 89 & 34
& UHH [64] & 25 & 50
& HSN [65] & 21 & 16
& NBP [66] & 51 & 0.8
& SSW [67] & 81 & 285
& SNE [68] & 56 & 33
BEANS-classification & Watkins [70] & 31 & 1.1
& Bats [71] & 10 & 1
& Dogs [73] & 10 & 0.5
& HumbugDB [72] & 14 & 6.7
BEANS-detection & DCASE [75] & 20 & 3.9
& ENABirds [74] & 34 & 1.3
& Hiceas [76] & 1 & 2.2
& RFCX [77] & 24 & 15.7
& Gibbons [78] & 3 & 10.6
& 1192 & 84

a
b
c

Figure 8: Geographical distribution of data in each training dataset. This demonstrates a high-level view into the geographical skew within and across the datasets.. a — XenoCanto, b — iNaturalist, c — Tierstimmenarchiv

a
b
c
d

Figure 9: Species (or other classes) frequency across the training datasets. Some species (or in the case of FSD50K, other audio classes) are very prevalent in the dataset, while others are much less represented. These plots reflect the nontrivial class distribution skew across each dataset.. a — XenoCanto, b — iNaturalist, c — Tierstimmenarchiv, d — FSD50K

Figure 10: Metadata availability per dataset. Metadata coverage varies across training datasets.

6.2 Additional metric details↩︎

Let the labels for an evaluation task of \(N\) audio windows across \(C\) species be \(y \in \mathbb{R}^{N \times C}\) and the predictions made be \(\hat{y} \in \mathbb{R}^{N \times C}\).

ROC-AUC. This metric computes the probability of ranking a random positive above a random negative. It captures a model’s ability to distinguish between classes in a threshold-independent manner. ROC-AUC is computed for each class in a one-vs-rest fashion, and then averaged over all classes. \[\begin{align} \mathrm{ROC-AUC} = \frac{1}{C} \sum_{c=1}^{C} \mathbb{P}\big( \hat{y}_{i,c} > \hat{y}_{j,c} \mid y_{i,c}=1,\; y_{j,c}=0 \big) \end{align}\]

Accuracy. We report accuracy for BEANS classification tasks, which are single-label window-level prediction tasks on focal recordings. This is a simple top-1 accuracy, and may be brittle for class-imbalanced data in general. \[\begin{align} \mathrm{ACC} = \frac{1}{N} \sum_{i=1}^{N}\sum_{c=1}^{C} \mathbf{1}\big\{ \hat{y}_{i,c} = y_{i,c}\big\} \end{align}\]

cmAP. We report cmAP for BirdSet and for BEANS detection tasks. This metric measures the ranking ability of a model. Average precision is computed for each class in a one-vs-rest fashion, and then averaged over all classes. \[\begin{align} \mathrm{cmAP} &= \frac{1}{C} \sum_{c=1}^{C} \mathrm{AP}_c \end{align}\]

6.3 Additional baseline details↩︎

Preprocessing and augmentation. For each training datum, we sample a group of 5 second windows at random from distinct training recordings, also sampled at random. Since annotations do not include time bounds, we assign all labels of a recording to each of its windows. The audio windows are mixed [6], [9] with each other and converted into a spectrogram via STFT, visualizing the frequency (\(F\)) composition over time (\(T\)). The number of windows mixed in each datum and the weights used while mixing audio are themselves sampled from beta-binomial and symmetric Dirichlet distributions, respectively. An aggregate of the labels of each original window is used as the label for this mixed window.

Modeling. The 2D spectrogram (\(T \times F\)) is treated as an single-channel image and embedded using EfficientNet-B3 [51], a lightweight vision model with \(\sim\)​12M parameters. Activations of the penultimate layer, before pooling, are extracted as the spatial embeddings (\(T' \times F' \times dim\)). We use a prototype learning classifier [52], [53] with these spatial embeddings and a linear classifier with aggregate embeddings (\(dim\)) to predict the species.

Learning. Multihot class target vectors are scaled to sum to one and used as soft labels in a softmax cross-entropy loss to train the prototype learning and linear classifiers. For the prototype learning head, we include an orthogonality loss [53], [82] that maximizes prototype diversity. The embedding model receives gradients backpropagated from the linear classifier, but not the prototype learning classifier. This design promotes linear separability of learned features while retaining benefits of the stronger prototypical classifier. The model is trained with an Adam [83] optimizer for 500K training steps with a batch size of 256. Please refer to 6.6 for other hyperparameters.

6.4 Additional method details↩︎

Location. Species are inherently tied to their geographic ranges and knowing the location of a recording can be informative of the type of species one could expect in it. Predicting location may incentivize our models to also attend to ambient and background sounds for potential geographic cues, which may be helpful in soundscapes. As in [54], we group neighboring locations into S2 cells [55] and treat location prediction as a classification task. The S2 cells can be constructed at different resolutions and the number of classes changes accordingly. We also explore other regression and distillation based approaches in 4.4. We explore the following different loss formulations and prediction heads for location:

  1. Regression. Perhaps the most intuitive approach is to regress the location coordinates directly. We use either a simple L2 loss between the spherical coordinates, their projections on a 3D Cartesian sphere, or the Haversine distance as the loss.

  2. Classification. Similar to [54], we group neighboring locations into S2 cells2 and predict the cell a particular recording would belong to. The S2 cells can be constructed at different resolutions (levels): lower resolution cells would likely make the learning task easier while higher resolution cells can allow learning finer geospatial patterns. Our training dataset has significant geographic skew and the resulting S2 class distribution is long-tailed. To remedy this, we also explore hierarchical S2 cells where higher resolution cells are used for regions with higher density of recordings (or species) and vice versa. We visualize the S2 cells for different levels and hierarchical S2 cells in 11 and 12, respectively.

  3. Distillation. Following prior work in geo-localization [19], [45], we also explore the use of dense location embeddings as distillation targets. Approaches like GeoCLIP [45] and SatCLIP [44] learn location embeddings with the help of paired ground-level or satellite images. We distill that information into the model by learning to predict the corresponding location embeddings from the model’s embeddings (trained on bioacoustic data as inputs only). We use the Cosine similarity between predicted and true location embeddings as the training loss.

Season. Species’ vocal activity often varies according to the season. In conjunction with location, season can add useful context for migratory species. We use the date and location (specifically the hemisphere) of a recording to determine the season as one of Spring, Summer, Fall or Winter and frame this as a classification task.

Part of day. The local time of day could potentially provide a prior over the expected species. For example, audio recorded around dawn is likely to capture a chorus of birds [84], while another recorded after dusk may feature more insects. To account for global time zone differences, we use broad boundaries to determine the part of day as one of dawn, dusk, day, and night. This task is also treated as a classification problem.

We explore the following different loss formulations for learning with season or day part:

  1. Classification. Each of the season or day-part categories are treated as independent classes and the model is trained with cross-entropy.

  2. Unit circle. Both season and day-part have cyclic temporal relationships between the different categories. To better capture these, we represent the category as a point on the unit circle and task the model to predict the angle or cartesian coordinates. The full circle is divided into equal sectors for each category, so that the last category is followed by the first, capturing the cyclicity of season and day-part. The loss is now the angle between the predicted and true points.

Background species. Our training data consists of primarily focal recordings, each accompanied with annotations for the foreground species. A fraction of the recordings also include annotations for the background species, and attending to these could facilitate better transfer to soundscapes. Absence of background annotations does not imply absence of background species. Incorporating them directly into the main prediction task would incorrectly assume otherwise, so we treat background species prediction as metadata and handle missing cases accordingly. We use a loss similar to foreground species prediction.

Audio characteristics. Some recordings have additional fields where recordists can include audio quality as categorical grades (A-E or A-C). While this is somewhat subjective, it often captures some measure of the signal-to-noise ratio of the recording. The original sampling rate could also be a useful signal that could allow the model to better address any spectrogram artifacts introduced by resampling. We use the original sampling rate to assign a binary class of whether the recording was up or down-sampled during preprocessing (all resampled to 32kHz).

Miscellaneous. Some recordings have the stage of life (juvenile, adult etc) and gender of the species being recorded. FSD50K recordings have textual description and tags while a number of recordings on the bioacoustic platforms have notes left by the recordist. There are also more free-form metadata that hint at different characteristics of the audio such as the microphone type and recording method (field recording, in enclosure etc.). We combine these metadata sources together with the actual foreground label to construct textual prompts and use their text embeddings from the Gemini API as the supervisory targets. We use the negative cosine similarity for training.

Derived metadata. We also explore a few artificially constructed metadata. Based on the training species distribution, we categorize each species based on its abundance or rarity and use this as a classification target. We also explore the source of a recording (Xeno-Canto vs iNaturalist, for example) as another metadata.

a
b
c
d

Figure 11: S2 cells. S2 cell coverage over landmass at different levels. The lower the level, the lower the granularity of each cell.. a — Level 3, b — Level 5, c — Level 6, d — Level7

a
b

Figure 12: Hierarchical S2 cells. S2 cell coverage over landmass at levels corresponding to the number of different species present, such that each cell level is thresholded to create a uniform concentration of coverage for each cell across the spatial mapping.. a — Hierarchy constructed by recordings, b — Hierarchy constructed by species

6.5 Spectrogram construction↩︎

Each audio recording is resampled to 32kHz. We take in audio windows of length 5s (160,000 samples) and construct a log mel-spectrogram using STFT with a hop and window length of 10 and 20ms respectively, outputting a total of 500 frames with 128 mel-scaled frequency bins ranging from 60 Hz to 16 kHz. We use an uncentered Hann window with FFT size of 1024 samples. We calculate the energy (magnitude) spectrogram (so not a power spectrogram) and the output is scaled by the reciprocal of the sum of the window values. After the calculation of the mel-spectrogram we apply a logarithm with a floor of 10\(^{-5}\) and then multiply the output by 0.1.

6.6 Hyperparameters↩︎

We enumerate the hyperparameters for MetaPerch in 6.6. For each, we mention the search space, defined by the minimum and maximum values in case of continuous parameters and the set of possible values in the case of categorical parameters. For the former, we also include the type of steps taken within the search space (one of linear or logarithmic). Finally, we list the optimal value of each hyperparameter found by Vizier [62].

6.7 Additional results: BEANS, BirdSet, & WABAD↩︎

We include the mean and standard deviations for the 5 runs of MetaPerch and BioBaseline for BEANS (¿tbl:tab:supp95beans951? ¿tbl:tab:supp95beans952?), BirdSet (¿tbl:tab:supp95birdset?), and WABAD (¿tbl:tab:supp95wabad951? ¿tbl:tab:supp95wabad952?). For BEANS, we also include other datasets that we excluded from the main tables. These datasets were ESC-50, Speech Cmds, and CBI. We also see an improvement over baseline on the average of the full set of datasets, but the ones included in the main paper are more appropriate to our explorations.

6.8 WABAD additional embedding visualizations↩︎

We visualize the embeddings of WABAD, colored by location in 13 and by species in 15. In 16, we visualize the embeddings colored semantically (similar colors indicate similar features) on the world map. Each coordinate is colored by the mean embeddings of all recording windows from the location closest to that coordinate.

6.9 Additional ablation discussions↩︎

Multi-loss training. We explore the effects of the multi-loss training strategy in ¿tbl:tab:weighting?. Simply treating the weights of each metadata loss as a hyperparameter to be optimized works better than more involved strategies such as dynamic equalization or gradient surgery [39]. The likely reason is that since most of our losses are softmax cross entropies, they have similar gradient landscapes and are in similar orders of magnitudes, making the loss weighing problem easier. This is further supported by the relatively small difference in the best and median validation performances we observe during our vizier hyperparameter search. Interestingly, hyperparameters with the median validation score actually performs better on WABAD than the best validation score, highlighting a potential gap between our validation tasks and the evaluation setup.

Mixup variants. In MetaPerch, we mix any metadata present for a recording. We could be more strict, and mark a mixed metadata present if and only if (iff) it is present for all original recordings. This leads to a drop in validation performance ([tbl:tab:mixup]), suggesting that noisy-but-more metadata supervision may be better then clean-but-less. Using the sampled audio-mixup weights to get a weighted mean of the metadata instead of a simple mean leads to a small drop. We observe marginal differences in WABAD performance, suggesting it is less sensitive to this design choice. We see significant drops in performance if we remove mixup altogether.

Location loss formulations. Each metadata prediction task can be formulated in a number of ways. We explore some formulations of location prediction in [fig:location95losses]. Finding a suitable loss formulation involves a tradeoff between learnability and specificity. For example, coarser S2 cells may be easier to predict, but would likely miss fine-grained geographical context. However, we observe strong WABAD performance across different formulations: regression, classification, and distillation. This is likely an artifact of these formulations capturing the same underlying information, and further underscores the potential benefits of location prediction.

Table 1: Earth embedding models. Ablation on the use of AlphaEarth [43], a strong Earth embedding model, as an alternative formulation of the location prediction task.
Model WABAD
0.928
+ classification (level 7) 0.946
+ AlphaEarth 0.942

Following a similar procedure as our GeoCLIP and SatCLIP experiments, we use AlphaEarth [43] embeddings corresponding to the location and time (year) of our recordings as distillation targets and train our decoder with cosine loss. Results on WABAD are reported in 1. While the inclusion of AlphaEarth improves performance over the baseline, it falls short of classification with level 7, the formulation used in MetaPerch.

Table 2: Hyperparameters. Search spaces and selected values.
Hyperparameter Optimal Search Space Steps
Optimization
Learning Rate 0.00029784742888791223 (1e-5, 1e-2) Logarithmic
Dropout 0.38900657468779043 (0.1, 1.0) Linear
Metadata mix if any present True {True, False} Categorical
Dirichlet Concentration 5.7296725458626 (1, 100) Logarithmic
Maximum signals to mix 5 {2, 3, 4, 5} Categorical
beta_binomial_0 15.085589497260358 (1, 100) Logarithmic
beta_binomial_1 12.839225337610824 (1, 100) Logarithmic
Background Species
Loss Weight 1.0419281708242019 (0, 1.5) Linear
Prediction head activation relu {"relu", "swish", "gelu"} Categorical
Prediction head hidden dimension 512 {64, 128, 265, 512} Categorical
Prediction head hidden layers 1 {0, 1, 2, 3} Categorical
Adversarial Training False {True, False} Categorical
Location
Loss Weight 1.0062746756429837 (0, 1.5) Linear
Prediction head activation swish {"relu", "swish", "gelu"} Categorical
Prediction head hidden dimension 265 {64, 128, 265, 512} Categorical
Prediction head hidden layers 1 {0, 1, 2, 3} Categorical
Adversarial Training False {True, False} Categorical
Season
Loss Weight 0.9552523645401945 (0, 1.5) Linear
Prediction head activation relu {"relu", "swish", "gelu"} Categorical
Prediction head hidden dimension 512 {64, 128, 265, 512} Categorical
Prediction head hidden layers 2 {0, 1, 2, 3} Categorical
Adversarial Training False {True, False} Categorical

4pt

l ccccccc c Method & ESC50 & Watkins & Bats & CBI & Dogs & Humbug & Speech Cmds & Mean
(lr)2-9 &
& 0.856 \(\pm\) 0.02 & 0.884 \(\pm\) 0.017 & 0.804 \(\pm\) 0.023 & 0.777 \(\pm\) 0.005 & 0.944 \(\pm\) 0.025 & 0.786 \(\pm\) 0.005 & 0.773 \(\pm\) 0.028 & 0.832 \(\pm\) 0.012
& 0.879 \(\pm\) 0.011 & 0.905 \(\pm\) 0.003 & 0.816 \(\pm\) 0.003 & 0.771 \(\pm\) 0.004 & 0.961 \(\pm\) 0.009 & 0.798 \(\pm\) 0.006 & 0.778 \(\pm\) 0.007 & 0.844 \(\pm\) 0.002

l ccccc c Method & DCASE & ENA & Hiceas & RFCX & Gibbons & Mean
(lr)2-7 &
& 0.477 \(\pm\) 0.010 & 0.778 \(\pm\) 0.012 & 0.563 \(\pm\) 0.020 & 0.196 \(\pm\) 0.012 & 0.519 \(\pm\) 0.030 & 0.506 \(\pm\) 0.011
& 0.496 \(\pm\) 0.005 & 0.787 \(\pm\) 0.003 & 0.568 \(\pm\) 0.023 & 0.209 \(\pm\) 0.009 & 0.500 \(\pm\) 0.020 & 0.512 \(\pm\) 0.008

l ccccccc Method & PER & NES & UHH & HSN & NBP & SSW & SNE
&
& 0.756\(\pm\).009 & 0.942\(\pm\).004 & 0.874\(\pm\).013 & 0.893\(\pm\).017 & 0.935\(\pm\).002 & 0.971\(\pm\).002 & 0.868\(\pm\).008
& 0.801\(\pm\).007 & 0.948\(\pm\).003 & 0.900\(\pm\).008 & 0.909\(\pm\).017 & 0.937\(\pm\).005 & 0.971\(\pm\).001 & 0.874\(\pm\).005
&
& 0.217\(\pm\).008 & 0.412\(\pm\).003 & 0.344\(\pm\).003 & 0.538\(\pm\).012 & 0.692\(\pm\).007 & 0.472\(\pm\).014 & 0.349\(\pm\).002
& 0.261\(\pm\).007 & 0.396\(\pm\).003 & 0.356\(\pm\).006 & 0.531\(\pm\).017 & 0.698\(\pm\).009 & 0.473\(\pm\).004 & 0.353\(\pm\).003
&
& 0.500\(\pm\).013 & 0.558\(\pm\).014 & 0.651\(\pm\).013 & 0.625\(\pm\).022 & 0.717\(\pm\).009 & 0.784\(\pm\).005 & 0.792\(\pm\).012
& 0.559\(\pm\).016 & 0.545\(\pm\).005 & 0.550\(\pm\).016 & 0.58\(\pm\).014 & 0.679\(\pm\).025 & 0.795\(\pm\).004 & 0.778\(\pm\).005

l ccc Method & 1-shot ROC-AUC & supervised & Proto ROC-AUC
& 0.912 \(\pm\) 0.003 & 0.741 \(\pm\) 0.027 & 0.928 \(\pm\) 0.002
& 0.917 \(\pm\) 0.003 & 0.811 \(\pm\) 0.015 & 0.946 \(\pm\) 0.001

l cccc Method & Boreal Forests/Taiga & Deserts / Xeric Shrublands & Wetlands & Mediterranean
& 0.892 \(\pm\) 0.004 & 0.936 \(\pm\) 0.004 & 0.887 \(\pm\) 0.006 & 0.917 \(\pm\) 0.006
& 0.910 \(\pm\) 0.004 & 0.912 \(\pm\) 0.007 & 0.899 \(\pm\) 0.003 & 0.929 \(\pm\) 0.002
Method & Temperate & (sub) Tropical & Montane And Savannas & Unspecified
& 0.921 \(\pm\) 0.007 & 0.916 \(\pm\) 0.001 & 0.879 \(\pm\) 0.011 & 0.793 \(\pm\) 0.007
& 0.926 \(\pm\) 0.003 & 0.939 \(\pm\) 0.001 & 0.906 \(\pm\) 0.007 & 0.810 \(\pm\) 0.004

a
b

Figure 13: WABAD UMAP plots—location. Embeddings of windows are colored by recording site (there are 72 recording sites in total).. a — BioBaseline, b — MetaPerch

Figure 14: WABAD UMAP plots—select species. Embeddings of windows are colored by the species, for a few specific species Left: BioBaseline. Right: MetaPerch.
a
b

Figure 15: WABAD UMAP plots—all species. Embeddings of windows are colored by the species in alphabetical order of their scientific names (so sibling species may have similar colors). The windows are filtered to those that only have a single species.. a — BioBaseline, b — MetaPerch

a
b

Figure 16: WABAD UMAP plots. Color mappings between BioBaseline and MetaPerch are independent of one another (but are normalized using the same normalization constants). There is semantic meaning with respect to the colors in each plot: similar colors reflect embedding similarity.. a — BioBaseline, b — MetaPerch

6.10 Multitask learning formalism↩︎

Let \(\mathcal{D} = \{(x_i, y_i, \{m_i^{k}\}_{k=1}^{K})\}_{i=1}^{N}\) denote the training dataset (post mixup), where \(x_i\) is an input audio spectrogram (window), \(y_i \in \mathcal{Y}\) is the primary target label corresponding to the annotated focal species, \(m_i^{k}\) is the target for metadata source \(k\) out of total \(K\) metadata sources. If a particular metadata \(k\) is absent for the datapoint \(i\), we set its target to a placeholder value \(m_i^{k} = \phi\).

We encode the audio spectrogram with a shared encoder \(f_{\theta}(\cdot)\). The species prediction head \(g_{\phi}\) then predicts the focal species as \[\begin{align} \hat{y}_i = g_{\psi}(f_\theta(x_i)), \end{align}\] where \(\psi\) are the species decoder parameters. Similarly, each metadata \(k \in \{1, \dots, K\}\) is associated with a decoder \[\begin{align} \hat{m}_i^{k} = h_{\psi_k}^{k}(f_\theta(x_i)), \end{align}\] with task-specific parameters \(\psi_k\).

The overall multi-task objective combines the species identification loss used in Perch 2.0 [6] along with metadata-specific loss formulations \(\{\mathcal{L}^{m}_k\}_{k=1}^K\) as: \[\begin{align} \mathcal{L}_{\text{total}} = \mathcal{L}_{\text{Perch}}(\hat{y}_i, y_i) + \sum_{k=1}^{K} \lambda_k \mathbb{1}[m_i^{k}\neq \phi]\mathcal{L}_k^m(\hat{m}_i^{k}, m_i^{k}), \end{align}\] where \(\{\lambda_k\}_{k=1}^K\) control the relative importance of the different metadata, and are treated as hyperparameters to be optimized by Vizier. Metadata specific preprocessing such as conversion to S2Cell [55] as well as other design choices such as the decision between standard or adversarial training is abstracted away in the loss functions \(\{\mathcal{L}^{m}_k\}_{k=1}^K\).

References↩︎

[1]
D. Stowell, “Computational bioacoustics with deep learning: A review and roadmap,” PeerJ, vol. 10, p. e13152, 2022.
[2]
L. Rauch et al., “BirdSet: A large-scale dataset for audio classification in avian bioacoustics,” in The thirteenth international conference on learning representations, 2025.
[3]
M. Hagiwara, B. Hoffman, J.-Y. Liu, M. Cusimano, F. Effenberger, and K. Zacarian, “Beans: The benchmark of animal sounds,” in ICASSP 2023-2023 IEEE international conference on acoustics, speech and signal processing (ICASSP), 2023, pp. 1–5.
[4]
M. Chasmai, A. Shepard, S. Maji, and G. Van Horn, “The iNaturalist sounds dataset,” Advances in Neural Information Processing Systems, vol. 37, pp. 132524–132544, 2024.
[5]
R. Schwinger et al., “Foundation models for bioacoustics—a comparative review,” arXiv preprint arXiv:2508.01277, 2025.
[6]
B. van Merriënboer, V. Dumoulin, J. Hamer, L. Harrell, A. Burns, and T. Denton, “Perch 2.0: The bittern lesson for bioacoustics,” arXiv preprint arXiv:2508.04665, 2025.
[7]
Accessed on Nov 1, 2025https://www.xeno-canto.org, 2024.
[8]
Accessed on Nov 1, 2025https://www.inaturalist.org, 2024.
[9]
H. Zhang, M. Cisse, Y. N. Dauphin, and D. Lopez-Paz, “Mixup: Beyond empirical risk minimization,” in International conference on learning representations, 2018.
[10]
E. Cole et al., “Spatial implicit neural representations for global-scale species mapping,” in International conference on machine learning, 2023, pp. 6320–6342.
[11]
O. Mac Aodha, E. Cole, and P. Perona, “Presence-only geographical priors for fine-grained image classification,” in Proceedings of the IEEE/CVF international conference on computer vision, 2019, pp. 9596–9606.
[12]
S. Kahl, C. M. Wood, M. Eibl, and H. Klinck, BirdNET: A deep learning solution for avian diversity monitoring,” Ecological Informatics, vol. 61, p. 101236, 2021.
[13]
L. Jeantet and E. Dufourq, “Improving deep learning acoustic classifiers with contextual information for wildlife monitoring,” Ecological Informatics, vol. 77, p. 102256, 2023.
[14]
D. Robinson et al., “Naturelm-audio: An audio-language foundation model for bioacoustics,” arXiv preprint arXiv:2411.07186, 2024.
[15]
A. Gebhard, A. Triantafyllopoulos, T. Bez, L. Christ, A. Kathan, and B. W. Schuller, “Exploring meta information for audio-based zero-shot bird classification,” in ICASSP 2024-2024 IEEE international conference on acoustics, speech and signal processing (ICASSP), 2024, pp. 1211–1215.
[16]
J. A. Tobias et al., “AVONET: Morphological, ecological and geographical data for all birds,” Ecology letters, vol. 25, no. 3, pp. 581–597, 2022.
[17]
L. Storchová and D. Hořák, “Life-history characteristics of european birds,” Global ecology and biogeography, vol. 27, no. 4, pp. 400–406, 2018.
[18]
D. Robinson, A. Robinson, and L. Akrapongpisak, “Transferable models for bioacoustics with human language supervision,” in ICASSP 2024-2024 IEEE international conference on acoustics, speech and signal processing (ICASSP), 2024, pp. 1316–1320.
[19]
M. Chasmai, W. Liu, S. Maji, and G. Van Horn, “Bioacoustic geolocation: Species sounds as geographic signals,” in Forty-third international conference on machine learning, 2026, [Online]. Available: https://openreview.net/forum?id=okWAqiCEQD.
[20]
B. Ghani, T. Denton, S. Kahl, and H. Klinck, “Global birdsong embeddings enable superior transfer learning for bioacoustic classification,” Scientific Reports, vol. 13, no. 1, p. 22876, 2023.
[21]
I. Tolkova, B. Chu, M. Hedman, S. Kahl, and H. Klinck, “Parsing birdsong with deep audio embeddings,” arXiv preprint arXiv:2108.09203, 2021.
[22]
Y. Cohen, D. Nicholson, A. Sanchioni, E. K. Mallaber, V. Skidanova, and T. J. Gardner, “TweetyNet: A neural network that enables high-throughput, automated annotation of birdsong,” BioRxiv, pp. 2020–08, 2020.
[23]
L. Rauch, R. Heinrich, I. Moummad, A. Joly, B. Sick, and C. Scholz, “Can masked autoencoders also listen to birds?” arXiv preprint arXiv:2504.12880, 2025.
[24]
I. Moummad, R. Serizel, E. Benetos, and N. Farrugia, “Domain-invariant representation learning of bird sounds,” arXiv preprint arXiv:2409.08589, 2024.
[25]
F. Michaud, J. Sueur, M. Le Cesne, and S. Haupert, “Unsupervised classification to improve the quality of a bird song recording dataset,” Ecological Informatics, vol. 74, p. 101952, 2023.
[26]
M. Miron et al., “What matters for bioacoustic encoding,” arXiv preprint arXiv:2508.11845, 2025.
[27]
J. Cauzinille, B. Favre, R. Marxer, D. Clink, A. H. Ahmad, and A. Rey, “Investigating self-supervised speech models’ ability to classify animal vocalizations: The case of gibbon’s vocal signatures,” in Interspeech 2024, 2024, pp. 132–136.
[28]
I. Nolasco, I. Moummad, D. Stowell, and E. Benetos, “Acoustic identification of individual animals with hierarchical contrastive learning,” in ICASSP 2025-2025 IEEE international conference on acoustics, speech and signal processing (ICASSP), 2025, pp. 1–5.
[29]
E. Sarkar and M. M.-. Doss, “Comparing self-supervised learning models pre-trained on human speech and animal vocalizations for bioacoustics processing,” in ICASSP 2025-2025 IEEE international conference on acoustics, speech and signal processing (ICASSP), 2025, pp. 1–5.
[30]
K. Wierucka et al., “Same data, different results? Machine learning approaches in bioacoustics,” Methods in Ecology and Evolution, vol. 16, no. 8, pp. 1574–1586, 2025.
[31]
H. Kath, T. S. Gouvêa, and D. Sonntag, “Active and transfer learning for efficient identification of species in multi-label bioacoustic datasets,” in Proceedings of the 2024 international conference on information technology for social good, 2024, pp. 22–25.
[32]
W. Liu, M. Chasmai, S. Maji, and G. Van Horn, “Masked autoencoders with limited data: Does it work? A fine-grained bioacoustics case study,” arXiv preprint arXiv:2605.14031, 2026.
[33]
B. Williams et al., “Using tropical reef, bird and unrelated sounds for superior transfer learning in marine bioacoustics,” Philosophical Transactions B, vol. 380, no. 1928, p. 20240280, 2025.
[34]
M. Irfan, Z. Jiangbin, S. Ali, M. Iqbal, Z. Masood, and U. Hamid, “DeepShip: An underwater acoustic benchmark dataset and a separable convolution based autoencoder for classification,” Expert Systems with Applications, vol. 183, p. 115270, 2021.
[35]
A. Burns, L. Harrell, B. van Merriënboer, V. Dumoulin, J. Hamer, and tom denton, “Perch 2.0 transfers ’whale’ to underwater tasks,” in The thirty-ninth annual conference on neural information processing systems workshop: AI for non-human animal communication, 2025, [Online]. Available: https://openreview.net/forum?id=xmZpX2ZWn2.
[36]
R. Groenendijk, S. Karaoglu, T. Gevers, and T. Mensink, “Multi-loss weighting with coefficient of variations,” in Proceedings of the IEEE/CVF winter conference on applications of computer vision, 2021, pp. 1469–1478.
[37]
A. Kendall, Y. Gal, and R. Cipolla, “Multi-task learning using uncertainty to weigh losses for scene geometry and semantics,” in Proceedings of the IEEE conference on computer vision and pattern recognition, 2018, pp. 7482–7491.
[38]
Z. Wang and Y. Tsvetkov, “Gradient vaccine: Investigating and improving multi-task optimization in massively multilingual models,” in Proceedings of the international conference on learning representations (ICLR), 2021.
[39]
T. Yu, S. Kumar, A. Gupta, S. Levine, K. Hausman, and C. Finn, “Gradient surgery for multi-task learning,” Advances in neural information processing systems, vol. 33, pp. 5824–5836, 2020.
[40]
O. Sener and V. Koltun, “Multi-task learning as multi-objective optimization,” Advances in neural information processing systems, vol. 31, 2018.
[41]
R. Wu, H. Wang, H.-T. Chen, and G. Carneiro, “Deep multimodal learning with missing modality: A survey,” arXiv preprint arXiv:2409.07825, 2024.
[42]
S. Khanal et al., “Psm: Learning probabilistic embeddings for multi-scale zero-shot soundscape mapping,” in Proceedings of the 32nd ACM international conference on multimedia, 2024, pp. 1361–1369.
[43]
C. F. Brown et al., “Alphaearth foundations: An embedding field model for accurate and efficient global mapping from sparse label data,” arXiv preprint arXiv:2507.22291, 2025.
[44]
K. Klemmer, E. Rolf, C. Robinson, L. Mackey, and M. Rußwurm, “Satclip: Global, general-purpose location embeddings with satellite imagery,” in Proceedings of the AAAI conference on artificial intelligence, 2025, vol. 39, pp. 4347–4355.
[45]
V. Vivanco Cepeda, G. K. Nayak, and M. Shah, “Geoclip: Clip-inspired alignment between locations and images for effective worldwide geo-localization,” Advances in Neural Information Processing Systems, vol. 36, pp. 8690–8701, 2023.
[46]
L. Haas, M. Skreta, S. Alberti, and C. Finn, “Pigeon: Predicting image geolocations,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2024, pp. 12893–12902.
[47]
W.-P. Vellinga and B. Planqué, Accessed: 2025-8-4“Xeno-canto.” https://xeno-canto.org/, May 2005.
[48]
iNaturalist contributors, iNaturalist research-grade observations.” iNaturalist.org, 2025.
[49]
K.-H. Frommolt, “The archive of animal sounds at the humboldt-university of berlin,” Bioacoustics, vol. 6, no. 4, pp. 293–296, Jan. 1996.
[50]
E. Fonseca, X. Favory, J. Pons, F. Font, and X. Serra, FSD50K: An open dataset of human-labeled sound events,” IEEE/ACM Transactions on Audio, Speech, and Language Processing, vol. 30, pp. 829–852, 2022.
[51]
M. Tan and Q. Le, EfficientNet: Rethinking model scaling for convolutional neural networks,” in International conference on machine learning, May 2019, pp. 6105–6114.
[52]
C. Chen, O. Li, D. Tao, A. Barnett, C. Rudin, and J. K. Su, “This looks like that: Deep learning for interpretable image recognition,” Advances in neural information processing systems, vol. 32, 2019.
[53]
R. Heinrich, L. Rauch, B. Sick, and C. Scholz, “AudioProtoPNet: An interpretable deep learning model for bird sound classification,” Ecological Informatics, vol. 87, p. 103081, 2025.
[54]
T. Weyand, I. Kostrikov, and J. Philbin, “Planet-photo geolocation with convolutional neural networks,” in European conference on computer vision, 2016, pp. 37–55.
[55]
Google, Accessed: 2025-12-06“S2 geometry library.”
urlhttps://github.com/google/s2geometry, 2025.
[56]
Y. Ganin et al., “Domain-adversarial training of neural networks,” Journal of machine learning research, vol. 17, no. 59, pp. 1–35, 2016.
[57]
K. Osumi, T. Yamashita, and H. Fujiyoshi, “Domain adaptation using a gradient reversal layer with instance weighting,” in 2019 16th international conference on machine vision applications (MVA), 2019, pp. 1–5.
[58]
T. Denton, S. Wisdom, and J. R. Hershey, “Improving bird classification with unsupervised sound separation,” in ICASSP 2022-2022 IEEE international conference on acoustics, speech and signal processing (ICASSP), 2022, pp. 636–640.
[59]
M. J. Weldy et al., “Audio tagging of avian dawn chorus recordings in california, oregon, and washington,” Zenodo, Mar. 2024, doi: 10.5281/zenodo.10895837.
[60]
K. Palmer et al., “A public dataset of annotated orcinus orca acoustic signals for detection and ecotype classification,” Scientific Data, vol. 12, no. 1, p. 1137, 2025.
[61]
NOAA Pacific Islands Fisheries Science Center, “Pacific islands passive acoustic network (PIPAN) 10kHz data.” 2021.
[62]
D. Golovin, B. Solnik, S. Moitra, G. Kochanski, J. Karro, and D. Sculley, “Google vizier: A service for black-box optimization,” in Proceedings of the 23rd ACM SIGKDD international conference on knowledge discovery and data mining, 2017, pp. 1487–1495.
[63]
W. A. Hopping, S. Kahl, and H. Klinck, “A collection of fully-annotated soundscape recordings from the southwestern amazon basin,” Zenodo, Sep. 2022, doi: 10.5281/zenodo.7079124.
[64]
A. Navine, S. Kahl, A. Tanimoto-Johnson, H. Klinck, and P. Hart, “A collection of fully-annotated soundscape recordings from the island of Hawaiʻi,” Zenodo, Sep. 2022, doi: 10.5281/zenodo.7078499.
[65]
M. Clapp, S. Kahl, E. Meyer, M. McKenna, H. Klinck, and G. Patricelli, “A collection of fully-annotated soundscape recordings from the southern sierra nevada mountain range,” Zenodo, 2023, doi: 10.5281/zenodo.7525805.
[66]
V. Morfi, Y. Bas, H. Pamuła, H. Glotin, and D. Stowell, “NIPS4Bplus: A richly annotated birdsong audio dataset,” PeerJ Computer Science, vol. 5, p. e223, 2019.
[67]
S. Kahl, R. Charif, and H. Klinck, “A collection of fully-annotated soundscape recordings from the northeastern united states,” Zenodo, Aug. 2022, doi: 10.5281/zenodo.7018484.
[68]
S. Kahl, C. M. Wood, P. Chaon, M. Z. Peery, and H. Klinck, “A collection of fully-annotated soundscape recordings from the western united states,” Zenodo, Sep. 2022, doi: 10.5281/zenodo.7050014.
[69]
A. Howard, H. Klinck, S. Dane, S. Kahl, tom denton, and T. Denton, Kaggle“Cornell birdcall identification.” https://kaggle.com/competitions/birdsong-recognition, 2020.
[70]
L. Sayigh et al., “The watkins marine mammal sound database: An online, freely accessible resource,” in Proceedings of meetings on acoustics, 2016, vol. 27, p. 040013.
[71]
Y. Prat, M. Taub, E. Pratt, and Y. Yovel, “An annotated dataset of egyptian fruit bat vocalizations across varying contexts and during vocal ontogeny,” Scientific data, vol. 4, no. 1, pp. 1–7, 2017.
[72]
I. Kiskin et al., “HumBugDB: A large-scale acoustic mosquito dataset,” in Thirty-fifth conference on neural information processing systems datasets and benchmarks track (round 2), 2021.
[73]
S. Yin and B. McCowan, “Barking in domestic dogs: Context specificity and individual identification,” Animal behaviour, vol. 68, no. 2, pp. 343–355, 2004.
[74]
L. Chronister, T. Rhinehart, A. Place, and J. Kitzes, “An annotated set of audio recordings of eastern north american birds containing frequency, time, and species information.” Ecology, vol. 102, no. 6, pp. e03329–e03329, 2021.
[75]
V. Morfi et al., “Few-shot bioacoustic event detection: A new task at the DCASE 2021 challenge.” in DCASE, 2021, pp. 145–149.
[76]
NOAA Pacific Islands Fisheries Science Center, Accessed May 16, 2026“Hawaiian islands cetacean and ecosystem assessment survey (HICEAS) towed array data. Edited and annotated for the 9th international workshop on detection, classification, localization, and density estimation of marine mammals using passive acoustics (DCLDE 2022).” NOAA National Centers for Environmental Information Honolulu, HI, 2022.
[77]
J. LeBien et al., “A pipeline for identification of bird and frog species in tropical soundscape recordings using a convolutional neural network,” Ecological Informatics, vol. 59, p. 101113, 2020.
[78]
E. Dufuorq et al., “Automated detection of hainan gibbon calls for passive acoustic monitoring,” Remote Sensing in Ecology and Conservation, 2021.
[79]
C. Pérez-Granados et al., “WABAD: A world annotated bird acoustic dataset for passive acoustic monitoring.” Zenodo, Jun. 2025, doi: 10.5281/zenodo.15629388.
[80]
J. Hamer et al., BIRB: A generalization benchmark for information retrieval in bioacoustics,” arXiv preprint arXiv:2312.07439, 2023.
[81]
Á. Vega-Hidalgo et al., “A collection of fully-annotated soundscape recordings from neotropical coffee farms in colombia and costa rica,” Zenodo, Jan. 2023, doi: 10.5281/zenodo.7525349.
[82]
J. Donnelly, A. J. Barnett, and C. Chen, “Deformable protopnet: An interpretable image classifier using deformable prototypes,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2022, pp. 10265–10275.
[83]
D. P. Kingma and J. Ba, “Adam: A method for stochastic optimization,” International Conference on Learning Representations, 2015.
[84]
D. Gil and D. Llusia, “The bird dawn chorus revisited,” Coding strategies in vertebrate acoustic communication, pp. 45–90, 2020.

  1. Model released at github:google-research/perch/metaperch.↩︎

  2. https://code.google.com/archive/p/s2-geometry-library/↩︎