Downloads · 30 days
0
EarthSpeciesProject/esp-aves2-naturelm-audio-v1-beats
esp-aves2-naturelm-audio-v1-beats 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-naturelm-audio-v1-beats is the BEATs audio encoder extracted from NatureLM-audio v1 and evaluated as a bioacoustic encoder baseline in What Matters for Bioacoustic Encoding. It represents an unorthodox'' pos…
Downloads · 30 days
0
Access
Public
Updated Feb 2, 2026
Repo size
1.1 GB
Likes
0
Public
Click a slice to open those files.
.safetensors363 MB · 100%
From the Hugging Face model README
esp-aves2-naturelm-audio-v1-beats is the BEATs audio encoder extracted from NatureLM-audio v1 and evaluated as a bioacoustic encoder baseline in What Matters for Bioacoustic Encoding. It represents an ``unorthodox'' post-trained encoder derived from an audio-language model where the BEATs encoder was unfrozen during large-scale training.
https://www.earthspecies.org/about-us#supporthttps://github.com/earthspecies/avexhttps://github.com/microsoft/unilm/tree/master/beatsesp-aves2-naturelm-audio-v1-beats can be used as an embedding model for bioacoustic tasks (species classification/detection, retrieval/clustering, individual ID, repertoire analysis), as in the paper’s evaluation.
Use frozen embeddings with linear probes, or fine-tune on target datasets.
Not a generative model; does not output text.
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 = load_model("esp_aves2_naturelm_audio_v1_beats", device="cuda")
import torch
from avex import load_model
model = load_model("esp_aves2_naturelm_audio_v1_beats", device="cuda")
with torch.no_grad():
embeddings = model(audio_tensor)
# Shape: (batch, time_steps, 768) for BEATs
# Pool to get fixed-size embedding
embedding = embeddings.mean(dim=1) # Shape: (batch, 768)
from avex.models.probes import build_probe_from_config
from avex.configs import ProbeConfig
# Load backbone for feature extraction
base = load_model("esp_aves2_naturelm_audio_v1_beats", 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",
)
esp-aves2-naturelm-audio-v1-beats is derived from NatureLM-audio training. The provided excerpt does not enumerate NatureLM-audio training data; see the NatureLM-audio release and the What Matters for Bioacoustic Encoding paper for context.
The paper evaluates on:
https://github.com/earthspecies/beanshttps://huggingface.co/datasets/DBD-research-group/BirdSetAggregate results for linear probing (frozen base model) with esp-aves2-naturelm-audio-v1-beats (from the provided LaTeX table):
| Benchmark | Task | Metric | Score |
|---|---|---|---|
| BEANS Classification | Probe | Accuracy | 0.804 |
| BEANS Classification | Retrieval | ROC AUC | 0.774 |
| BEANS Classification | Clustering | NMI | 0.560 |
| BEANS Detection | Probe | mAP | 0.385 |
| BEANS Detection | Retrieval | ROC AUC | 0.724 |
| BirdSet | Probe | mAP | 0.223 |
| BirdSet | Retrieval | ROC AUC | 0.723 |
| Individual ID | Probe | Accuracy | 0.410 |
| Individual ID | Retrieval | ROC AUC | 0.645 |
| Vocal Repertoire | Retrieval | ROC AUC | 0.811 |
| Vocal Repertoire | Clustering | NMI | 0.552 |
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}
}
Contact: [email protected], [email protected], [email protected], [email protected]