Downloads · 30 days
137
38% of all-time downloads
imageomics/bioclip-hc-hyperbolic
bioclip-hc-hyperbolic is a zero-shot image classification model from imageomics. Use it for the zero-shot image classification task on the model card, and read the license before you ship it in a product. It is set up for open_clip. The card lists the license as mit.
BioCLIP-HC-Hyperbolic is a hierarchical vision-language foundation model for fine-grained biological image classification in hyperbolic space. It is fine-tuned from BioCLIP on TreeOfLife-10M with level-restricted cont…
Downloads · 30 days
137
38% of all-time downloads
All-time downloads
360
Public
Repo size
1.2 GB
Likes
1
Public
Click a slice to open those files.
.bin599 MB · 50%
From the Hugging Face model README
BioCLIP-HC-Hyperbolic is a hierarchical vision-language foundation model for fine-grained biological image classification in hyperbolic space. It is fine-tuned from BioCLIP on TreeOfLife-10M with level-restricted contrastive learning, which aligns images and taxonomic text labels within each hierarchy level to reduce cross-level false negatives. The model improves zero-shot recognition across multiple taxonomic ranks and produces more hierarchically consistent predictions on biodiversity benchmarks such as iNaturalist21(iNat21), Rare Species, and CrypticBio.
This model is initialized from BioCLIP ViT-B/16 and fine-tuned on TreeOfLife-10M for hierarchical fine-grained biological image classification in hyperbolic space. It uses level-restricted contrastive learning, which compares image-text pairs within the same taxonomic level rather than across mixed hierarchy levels, reducing cross-level false negatives and improving hierarchical consistency. A group-balanced objective further ensures that coarse and fine taxonomic ranks receive balanced supervision.
The model is evaluated on iNat21, Rare Species, and CrypticBio, where it improves average accuracy and top-down hierarchical consistency over OpenCLIP, BioCLIP, and RCME. It also learns more structured taxonomic representations, with clearer hierarchical organization in the embedding space.
The model can be used for zero-shot hierarchical classification with provided taxonomic names at different levels, such as family, genus, or species. It can also support few-shot classification by using labeled biological images as a support set. In addition, the model can be used as a visual encoder for downstream biological vision tasks that benefit from taxonomy-aware representations, including biodiversity monitoring, rare species recognition, and fine-grained organism classification.
This model is fine-tuned on TreeOfLife-10M, which may contain imbalanced taxonomic coverage and long-tailed distributions across species and higher-level groups. As a result, predictions may be biased toward well-represented taxa and may be less reliable for rare, underrepresented, visually ambiguous, or out-of-distribution organisms.
Although the model improves hierarchical consistency, it may still make incorrect predictions, especially at fine-grained levels such as genus or species. Errors at higher taxonomic levels can also affect downstream top-down predictions. The model should therefore be used as an assistive tool rather than a definitive source for biological identification.
The model may support conservation-related applications such as biodiversity monitoring and recognition of rare or threatened species. However, improved species recognition could also be misused by bad actors. Since the model itself does not provide precise geolocation information, the primary risk to endangered species remains the disclosure or misuse of location data rather than classification capability alone.
BioCLIP-HC-Hyperbolic can be used with the open_clip library:
import open_clip
model, preprocess_train, preprocess_val = open_clip.create_model_and_transforms('hf-hub:imageomics/bioclip-hc-hyperbolic')
tokenizer = open_clip.get_tokenizer('hf-hub:imageomics/bioclip-hc-hyperbolic')
Training was performed on 8 NVIDIA A100-80GB GPUs distributed over 2 nodes on OSC's Ascend HPC Cluster with a global batch size of 32,768 for 36 hours.
Training uses a large-scale biological image dataset stored as WebDataset shards together with taxonomy-aware text annotations/prompts. The exact released training set, shard layout, and any additional filtering applied to the uploaded checkpoint should be documented here once finalized.
This model was trained on TreeOfLife-10M Revision ffa2a31, which is a compilation of images matched to Linnaean taxonomic rank from kingdom through species.
Training regime: fp16 mixed precision (AMP)
We resize images to 224 x 224 pixels. We use a maximum learning rate of 1e4 with 1000 linear warm-up steps, then use cosine decay to 0 over 100 epochs. We also use a weight decay of 0.2 and a batch size of 32K.
The codebase supports two main hierarchical evaluation protocols:
Coarse-to-fine evaluation Independent prediction at each taxonomy level.
Top-down evaluation Constrained prediction where the candidate set at each level is restricted to descendants of the predicted parent.
We evaluate the model on three biologically relevant hierarchical fine-grained classification benchmarks:
iNat21 provides broad taxonomic coverage across multiple biological groups and is used to evaluate recognition performance from coarse to fine taxonomy levels, including kingdom, phylum, class, order, family, genus, and species.
Rare Species focuses on rare and long-tailed species that are absent from the TreeOfLife-10M training set. It is used to test the model’s ability to generalize to underrepresented and conservation-relevant organisms.
CrypticBio contains visually ambiguous and easily confused species, making it suitable for evaluating fine-grained biological recognition under challenging visual conditions.
For all benchmarks, we report per-level top-1 accuracy across available taxonomic ranks, average accuracy across levels, and hierarchical consistency under top-down constrained inference where applicable.
Primary metrics supported by the current codebase include:
nLCA) for top-down evaluationWe evaluate the model on three hierarchical fine-grained biodiversity classification benchmarks: iNat21, Rare Species, and CrypticBio. We report per-level top-1 accuracy across available taxonomic ranks.
<h3>iNat21</h3> <table> <tr> <th>Method</th> <th>Space</th> <th>Kingdom</th> <th>Phylum</th> <th>Class</th> <th>Order</th> <th>Family</th> <th>Genus</th> <th>Species</th> </tr> <tr> <td>OpenCLIP</td> <td>Euclidean</td> <td>84.76</td> <td>35.37</td> <td>26.08</td> <td>19.25</td> <td>7.71</td> <td>6.80</td> <td>2.09</td> </tr> <tr> <td>BioCLIP</td> <td>Euclidean</td> <td>86.28</td> <td>56.14</td> <td>41.69</td> <td>26.95</td> <td>30.37</td> <td>47.21</td> <td>50.79</td> </tr> <tr> <td>RCME</td> <td>Euclidean</td> <td>86.26</td> <td>83.00</td> <td>70.79</td> <td>46.46</td> <td>44.74</td> <td>59.28</td> <td>50.50</td> </tr> <tr> <td rowspan="2"><strong>Ours</strong></td> <td>Euclidean</td> <td><strong>98.85</strong></td> <td><strong>98.39</strong></td> <td>67.23</td> <td><strong>78.22</strong></td> <td>78.69</td> <td>68.36</td> <td><strong>63.00</strong></td> </tr> <tr> <td>Hyperbolic</td> <td><strong>98.97</strong></td> <td><strong>98.48</strong></td> <td><strong>71.81</strong></td> <td>75.84</td> <td><strong>82.25</strong></td> <td><strong>73.96</strong></td> <td>51.35</td> </tr> </table> <h3>Rare Species</h3> <table> <tr> <th>Method</th> <th>Space</th> <th>Phylum</th> <th>Class</th> <th>Order</th> <th>Family</th> <th>Genus</th> <th>Species</th> </tr> <tr> <td>OpenCLIP</td> <td>Euclidean</td> <td>75.89</td> <td>60.87</td> <td>33.32</td> <td>13.31</td> <td>15.27</td> <td>10.62</td> </tr> <tr> <td>BioCLIP</td> <td>Euclidean</td> <td>68.35</td> <td>65.16</td> <td>54.63</td> <td>40.01</td> <td>47.43</td> <td>31.82</td> </tr> <tr> <td>RCME</td> <td>Euclidean</td> <td>82.38</td> <td>81.67</td> <td>69.01</td> <td>44.12</td> <td>50.95</td> <td>35.58</td> </tr> <tr> <td rowspan="2"><strong>Ours</strong></td> <td>Euclidean</td> <td><strong>98.19</strong></td> <td><strong>93.02</strong></td> <td>83.27</td> <td>67.41</td> <td>55.08</td> <td>40.68</td> </tr> <tr> <td>Hyperbolic</td> <td>97.99</td> <td>92.64</td> <td><strong>83.33</strong></td> <td><strong>69.06</strong></td> <td><strong>57.22</strong></td> <td><strong>43.20</strong></td> </tr> </table> <h3>CrypticBio</h3> <table> <tr> <th>Method</th> <th>Space</th> <th>Order</th> <th>Family</th> <th>Genus</th> <th>Species</th> </tr> <tr> <td>OpenCLIP</td> <td>Euclidean</td> <td>55.37</td> <td>15.92</td> <td>6.41</td> <td>6.17</td> </tr> <tr> <td>BioCLIP</td> <td>Euclidean</td> <td>81.34</td> <td>39.29</td> <td>37.71</td> <td>36.72</td> </tr> <tr> <td>RCME</td> <td>Euclidean</td> <td>90.11</td> <td>49.84</td> <td>39.45</td> <td>38.97</td> </tr> <tr> <td rowspan="2"><strong>Ours</strong></td> <td>Euclidean</td> <td><strong>97.98</strong></td> <td>72.65</td> <td>46.30</td> <td>40.37</td> </tr> <tr> <td>Hyperbolic</td> <td>96.80</td> <td><strong>78.01</strong></td> <td><strong>52.18</strong></td> <td><strong>49.98</strong></td> </tr> </table>Our model outperforms RCME, the previous state-of-the-art, by over 13% on average across three hierarchical biodiversity classification benchmarks.
We encourage readers to see the representation analysis in our paper. Our model learns embeddings that more clearly preserve the taxonomic hierarchy compared with BioCLIP and other baselines, with better separation among sibling taxa.
BibTeX:
Please also cite our paper:
Also consider citing OpenCLIP, BioCLIP, BioCLIP2:
@software{ilharco_gabriel_2021_5143773,
author={Ilharco, Gabriel and Wortsman, Mitchell and Wightman, Ross and Gordon, Cade and Carlini, Nicholas and Taori, Rohan and Dave, Achal and Shankar, Vaishaal and Namkoong, Hongseok and Miller, John and Hajishirzi, Hannaneh and Farhadi, Ali and Schmidt, Ludwig},
title={OpenCLIP},
year={2021},
doi={10.5281/zenodo.5143773},
}
Original BioCLIP Model:
@software{bioclip2023,
author = {Samuel Stevens and Jiaman Wu and Matthew J. Thompson and Elizabeth G. Campolongo and Chan Hee Song and David Edward Carlyn and Li Dong and Wasila M. Dahdul and Charles Stewart and Tanya Berger-Wolf and Wei-Lun Chao and Yu Su},
doi = {10.57967/hf/1511},
month = nov,
title = {BioCLIP},
version = {v0.1},
year = {2023}
}
Original BioCLIP Paper:
@inproceedings{stevens2024bioclip,
title = {{B}io{CLIP}: A Vision Foundation Model for the Tree of Life},
author = {Samuel Stevens and Jiaman Wu and Matthew J Thompson and Elizabeth G Campolongo and Chan Hee Song and David Edward Carlyn and Li Dong and Wasila M Dahdul and Charles Stewart and Tanya Berger-Wolf and Wei-Lun Chao and Yu Su},
booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
year = {2024},
pages = {19412-19424}
}
Original BioCLIP2 Model:
@software{Gu_BioCLIP_2_model,
author = {Jianyang Gu and Samuel Stevens and Elizabeth G Campolongo and Matthew J Thompson and Net Zhang and Jiaman Wu and Andrei Kopanev and Zheda Mai and Alexander E. White and James Balhoff and Wasila M Dahdul and Daniel Rubenstein and Hilmar Lapp and Tanya Berger-Wolf and Wei-Lun Chao and Yu Su},
license = {MIT},
title = {{BioCLIP 2}},
url = {https://huggingface.co/imageomics/bioclip-2},
version = {1.0.0},
doi = {10.57967/hf/5765},
publisher = {Hugging Face},
year = {2025}
}
Original BioCLIP2 Paper:
@inproceedings{NEURIPS2025_94da80cb,
author = {Gu, Jianyang and Stevens, Sam and Campolongo, Elizabeth and Thompson, Matthew and Zhang, Net and Wu, Jiaman and Kopanev, Andrei and Mai, Zheda and White, Alexander and Balhoff, James and Dahdul, Wasila and Rubenstein, Daniel and Lapp, Hilmar and Berger-Wolf, Tanya and Chao, Wei-Lun (Harry) and Su, Yu},
booktitle = {Advances in Neural Information Processing Systems},
editor = {D. Belgrave and C. Zhang and H. Lin and R. Pascanu and P. Koniusz and M. Ghassemi and N. Chen},
pages = {102778--102811},
publisher = {Curran Associates, Inc.},
title = {BioCLIP 2: Emergent Properties from Scaling Hierarchical Contrastive Learning},
url = {https://proceedings.neurips.cc/paper_files/paper/2025/file/94da80cbfe870c1db958c88a8a27018c-Paper-Conference.pdf},
volume = {38},
year = {2025}
}
This work was supported by the Imageomics Institute, which is funded by the US National Science Foundation's Harnessing the Data Revolution (HDR) program under Award #2118240 (Imageomics: A New Frontier of Biological Information Powered by Knowledge-Guided Machine Learning). Any opinions, findings and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.