NatureLM-audio is the first audio-language foundation model specifically designed for bioacoustics. It is trained on a diverse dataset of text-audio pairs spanning bioacoustics, speech, and music, enabling it to perform tasks such as species classification, detection, captioning, and lifestage classification. The model demonstrates strong generalization to unseen taxa and tasks, setting a new state-of-the-art on several bioacoustics benchmarks.
NatureLM-audio is an audio-language model designed to address bioacoustic tasks such as species classification, detection, and captioning. It leverages a combination of bioacoustic, speech, and music data to learn robust representations that generalize across domains.
NatureLM-audio can be used directly for bioacoustic tasks such as species classification, detection, and captioning. It is particularly useful for biodiversity monitoring, conservation, and animal behavior studies.
Example prompts:
Prompt: What is the common name for the focal species in the audio?
Answer: Humpback Whale
Prompt: Which of these, if any, are present in the audio recording? Single pulse gibbon call, Multiple pulse gibbon call, Gibbon duet, None.
Answer: Gibbon duet
Prompt: What is the common name for the focal species in the audio?
Answer: Spectacled Tetraka
Prompt: What is the life stage of the focal species in the audio?
Answer: Juvenile
Prompt: What type of vocalization is heard from the focal species in the audio?
Answer with either 'call' or 'song'.
Prompt: Caption the audio, using the common name for any animal species.
The model can be used to structure audio for ethology research, be integrated into larger ecological monitoring systems, or be fine-tuned for specific bioacoustic tasks.
The model is not designed for tasks outside of bioacoustics. It was not tested for tasks such as individual-id, and call-type and lifestage classification tasks have only been tested on birds Tasks beyond those evaluated in the paper may require in-context learning or fine-tuning. The model does not currently perform fine-grained detection with exact time stamps.
Users should be aware of the risks, biases, and limitations of the model. It is recommended to use the model in conjunction with other ecological monitoring tools and to validate its predictions in real-world settings.
Instantiating the model:
from NatureLM.models import NatureLM
# Download the model from HuggingFace
model = NatureLM.from_pretrained("EarthSpeciesProject/NatureLM-audio")
model = model.eval().to("cuda")
Using the model:
from NatureLM.infer import Pipeline
audio_paths = ["assets/nri-GreenTreeFrogEvergladesNP.mp3"]
queries = ["What is the common name for the focal species in the audio? Answer:"]
pipeline = Pipeline(model=model)
# Run the model over the audio in sliding windows of 10 seconds with a hop length of 10 seconds
results = pipeline(audio_paths, queries, window_length_seconds=10.0, hop_length_seconds=10.0)
print(results)
# ['#0.00s - 10.00s#: Green Treefrog\n']
Refer to the GitHub repository for more details.
The model is trained on a diverse dataset of text-audio pairs, including bioacoustic recordings, general audio, speech, and music datasets. The training data includes datasets such as Xeno-canto, iNaturalist, and Watkins. We have released the training dataset on Hugging Face.
The model is trained in two stages:
For the full list of hyperparameters consult the NatureLM-audio repository.
The model is evaluated on the BEANS-Zero benchmark, which includes tasks such as species classification, detection, and captioning.
The model achieves state-of-the-art performance on several bioacoustics tasks, including zero-shot classification of unseen species.
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
The model uses a BEATs audio encoder, Q-Former for connecting audio embeddings to the LLM, and Llama-3.1-8B-Instruct as the text generator.
BibTeX:
@inproceedings{naturelm-audio,
title={NatureLM-audio: An Audio-Language Foundation Model for Bioacoustics},
author={Robinson, David and Miron, Marius and Hagiwara, Masato and Pietquin, Olivier},
booktitle={Proceedings of the International Conference on Learning Representations},
year={2025}
}
APA:
Robinson, D., Miron, M., Hagiwara, M., & Pietquin, O. (2025). NatureLM-audio: An Audio-Language Foundation Model for Bioacoustics. ICLR 2025
For more information, please visit the project page.
Contact: info@earthspecies.org
NatureLM-audio is the first audio-language foundation model specifically designed for bioacoustics. It is trained on a diverse dataset of text-audio pairs spanning bioacoustics, speech, and music, enabling it to perform tasks such as species classification, detection, captioning, and lifestage classification. The model demonstrates strong generalization to unseen taxa and tasks, setting a new state-of-the-art on several bioacoustics benchmarks.
NatureLM-audio is an audio-language model designed to address bioacoustic tasks such as species classification, detection, and captioning. It leverages a combination of bioacoustic, speech, and music data to learn robust representations that generalize across domains.
NatureLM-audio can be used directly for bioacoustic tasks such as species classification, detection, and captioning. It is particularly useful for biodiversity monitoring, conservation, and animal behavior studies.
Example prompts:
Prompt: What is the common name for the focal species in the audio?
Answer: Humpback Whale
Prompt: Which of these, if any, are present in the audio recording? Single pulse gibbon call, Multiple pulse gibbon call, Gibbon duet, None.
Answer: Gibbon duet
Prompt: What is the common name for the focal species in the audio?
Answer: Spectacled Tetraka
Prompt: What is the life stage of the focal species in the audio?
Answer: Juvenile
Prompt: What type of vocalization is heard from the focal species in the audio?
Answer with either 'call' or 'song'.
Prompt: Caption the audio, using the common name for any animal species.
The model can be used to structure audio for ethology research, be integrated into larger ecological monitoring systems, or be fine-tuned for specific bioacoustic tasks.
The model is not designed for tasks outside of bioacoustics. It was not tested for tasks such as individual-id, and call-type and lifestage classification tasks have only been tested on birds Tasks beyond those evaluated in the paper may require in-context learning or fine-tuning. The model does not currently perform fine-grained detection with exact time stamps.
Users should be aware of the risks, biases, and limitations of the model. It is recommended to use the model in conjunction with other ecological monitoring tools and to validate its predictions in real-world settings.
Instantiating the model:
from NatureLM.models import NatureLM
# Download the model from HuggingFace
model = NatureLM.from_pretrained("EarthSpeciesProject/NatureLM-audio")
model = model.eval().to("cuda")
Using the model:
from NatureLM.infer import Pipeline
audio_paths = ["assets/nri-GreenTreeFrogEvergladesNP.mp3"]
queries = ["What is the common name for the focal species in the audio? Answer:"]
pipeline = Pipeline(model=model)
# Run the model over the audio in sliding windows of 10 seconds with a hop length of 10 seconds
results = pipeline(audio_paths, queries, window_length_seconds=10.0, hop_length_seconds=10.0)
print(results)
# ['#0.00s - 10.00s#: Green Treefrog\n']
Refer to the GitHub repository for more details.
The model is trained on a diverse dataset of text-audio pairs, including bioacoustic recordings, general audio, speech, and music datasets. The training data includes datasets such as Xeno-canto, iNaturalist, and Watkins. We have released the training dataset on Hugging Face.
The model is trained in two stages:
For the full list of hyperparameters consult the NatureLM-audio repository.
The model is evaluated on the BEANS-Zero benchmark, which includes tasks such as species classification, detection, and captioning.
The model achieves state-of-the-art performance on several bioacoustics tasks, including zero-shot classification of unseen species.
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
The model uses a BEATs audio encoder, Q-Former for connecting audio embeddings to the LLM, and Llama-3.1-8B-Instruct as the text generator.
BibTeX:
@inproceedings{naturelm-audio,
title={NatureLM-audio: An Audio-Language Foundation Model for Bioacoustics},
author={Robinson, David and Miron, Marius and Hagiwara, Masato and Pietquin, Olivier},
booktitle={Proceedings of the International Conference on Learning Representations},
year={2025}
}
APA:
Robinson, D., Miron, M., Hagiwara, M., & Pietquin, O. (2025). NatureLM-audio: An Audio-Language Foundation Model for Bioacoustics. ICLR 2025
For more information, please visit the project page.
Contact: info@earthspecies.org