Downloads · 30 days
0
EarthSpeciesProject/esp-aves2-sl-beats-all
esp-aves2-sl-beats-all is a machine learning model from EarthSpeciesProject. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as cc-by-nc-sa-4.0.
esp-aves2-sl-beats-all is an audio representation learning model (bioacoustic encoder) designed to produce transferable embeddings for downstream bioacoustic tasks including species classification and detection, indiv…
Downloads · 30 days
0
Access
Public
Updated Feb 2, 2026
Repo size
1.8 GB
Likes
1
Public
Click a slice to open those files.
.safetensors401 MB · 100%
From the Hugging Face model README
esp-aves2-sl-beats-all is an audio representation learning model (bioacoustic encoder) designed to produce transferable embeddings for downstream bioacoustic tasks including species classification and detection, individual identification, and vocal repertoire discovery, as described in What Matters for Bioacoustic Encoding.
https://www.earthspecies.org/about-us#supporthttps://github.com/earthspecies/avexThis model is based on or fine-tuned from the following parent models:
https://github.com/microsoft/unilm/tree/master/beatsesp-aves2-sl-beats-all can be used directly for bioacoustic tasks such as species classification and detection, repertoire and individual classification, retrieval and clustering of audio.
The model can be used for linear probing, retrieval, and clustering of audio; it can also be fine-tuned for task- and domain-specific bioacoustic applications (taxon-, habitat-, or device-specific).
The model is not designed as a generative model, and it does not produce text outputs. Using it as a stand-alone classifier without training a probe or finetuning is out of scope.
Use esp-aves2-sl-beats-all as an encoder (feature extractor) and validate performance on your target domain. For sensitive deployments, apply access controls and follow conservation best practices.
Loading this model requires the AVEX (Animal Vocalization Encoder) library avex to be installed.
pip install avex
Or with uv:
uv add avex
For more details, see https://github.com/earthspecies/avex.
from avex import load_model
# Model config name depends on how the checkpoint is packaged for this repo.
# If/when an official config is provided, replace the string below accordingly.
model = load_model("esp_aves2_sl_beats_all", device="cuda")
# Case 1: embedding extraction (features only)
backbone = load_model("esp_aves2_sl_beats_all", device="cuda", return_features_only=True)
with torch.no_grad():
embeddings = backbone(audio_tensor)
# Shape: (batch, time_steps, 768) for BEATs
# Pool to get fixed-size embedding
embedding = embeddings.mean(dim=1) # Shape: (batch, 768)
# Case 2: supervised predictions (logits over label IDs; see label_map.json)
model = load_model("esp_aves2_sl_beats_all", device="cuda")
with torch.no_grad():
logits = model(audio_tensor)
predicted_class = logits.argmax(dim=-1).item()
from avex.models.probes import build_probe_from_config
from avex.configs import ProbeConfig
# Load backbone for feature extraction
base = load_model("esp_aves2_sl_beats_all", return_features_only=True, device="cuda")
# Define a probe head for your task
probe_config = ProbeConfig(
probe_type="linear",
target_layers=["last_layer"],
aggregation="mean",
freeze_backbone=True,
online_training=True,
)
probe = build_probe_from_config(
probe_config=probe_config,
base_model=base,
num_classes=10, # Your number of classes
device="cuda",
)
The class label mapping for this supervised learning model can be found at label_map.json in the Hugging Face repository.
From the paper, the model uses a two-stage recipe: a BEATs SSL backbone pretrained on AudioSet, followed by supervised post-training on an All mix (Bioacoustics mix + AudioSet).
| Dataset | Description | Source | License | Size |
|---|---|---|---|---|
| AudioSet | general audio | Link | See dataset terms | 5700 hours |
| Xeno-canto | birds | Link | CC (varies) | 10416 hours |
| iNaturalist | diverse taxa | Link | CC (varies) | 1539 hours |
| Watkins | marine mammals | Link | licensing agreement (paper) | 27 hours |
| Animal Sound Archive | diverse taxa | Link | See archive terms | 78 hours |
As described in the paper:
Training hyperparameters are specified in train_config.yaml.
The paper evaluates on a benchmark spanning:
https://github.com/earthspecies/beanshttps://huggingface.co/datasets/DBD-research-group/BirdSetThe paper reports:
Aggregate results for linear probing (frozen base model) with esp-aves2-sl-beats-all (from the provided LaTeX table):
| Benchmark | Task | Metric | Score |
|---|---|---|---|
| BEANS Classification | Probe | Accuracy | 0.832 |
| BEANS Classification | Retrieval | ROC AUC | 0.813 |
| BEANS Classification | Clustering | NMI | 0.604 |
| BEANS Detection | Probe | mAP | 0.408 |
| BEANS Detection | Retrieval | ROC AUC | 0.726 |
| BirdSet | Probe | mAP | 0.294 |
| BirdSet | Retrieval | ROC AUC | 0.732 |
| Individual ID | Probe | Accuracy | 0.511 |
| Individual ID | Retrieval | ROC AUC | 0.690 |
| Vocal Repertoire | Retrieval | ROC AUC | 0.798 |
| Vocal Repertoire | Clustering | NMI | 0.529 |
Not specified in the provided excerpt.
esp-aves2-sl-beats-all uses a BEATs transformer encoder trained with a self-supervised pretraining stage (AudioSet) followed by supervised post-training on All (Bio + AudioSet), to learn general-purpose bioacoustic representations.
Key components:
Not specified in the provided excerpt.
Model configuration is available in train_config.yaml.
BibTeX:
@inproceedings{miron2025matters,
title={What Matters for Bioacoustic Encoding},
author={Miron, Marius and Robinson, David and Alizadeh, Milad and Gilsenan-McMahon, Ellen and Narula, Gagan and Chemla, Emmanuel and Cusimano, Maddie and Effenberger, Felix and Hagiwara, Masato and Hoffman, Benjamin and Keen, Sara and Kim, Diane and Lawton, Jane K. and Liu, Jen-Yu and Raskin, Aza and Pietquin, Olivier and Geist, Matthieu},
booktitle={The Fourteenth International Conference on Learning Representations},
year={2026}
}
APA:
Miron, M., Robinson, D., Alizadeh, M., et al. (2025). What Matters for Bioacoustic Encoding. arXiv preprint arXiv:2508.11845.
TBATBAhttps://github.com/earthspecies/avex/issuesContact: [email protected], [email protected], [email protected], [email protected]