CoolFace
Modelpublic

BIOMEDICA/BMC-LongCLIP

sourceHugging Facemitupdated 22d agoView on Hugging Face
4likes
Model Card

<div align="center"> <img src="https://raw.githubusercontent.com/minwoosun/biomedica-etl/refs/heads/main/media/Biomedica-Isologo-sin-espacio-2025.png" alt="Pull Figure" width="500" />

</div>

<p align="center"> <strong>Paper:</strong> <a href="https://arxiv.org/abs/2510.03978" target="blank">Arxiv</a> &nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp; <strong>Website:</strong> <a href="https://minwoosun.github.io/biomedica-website" target="blank">Biomedica</a> &nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp; <strong>Training instructions:</strong> <a href="https://github.com/Ale9806/openclipwithbiomedica" target="blank">OpenCLIP</a> &nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp; <strong>Tutorial:</strong> <a href="https://colab.research.google.com/drive/1TQ1SSlXO-EalPT7h1CaZscWoYqdW0RE?usp=sharing" target="blank">Google Colab</a>

Model Name: BMC-LongCLIP+

Abstract

</p> Embedding vision–language models (VLMs) are typically pretrained with short text windows (<77 tokens), which forces the truncation of long-format captions. Yet, the distribution of biomedical captions from large-scale open source literature reveals that a huge portion of captions far exceed 77 tokens. To this end, we investigate the impact of pretraining on longformat biomedical captions by extending the context length of text encoders in VLMs. We find that longer context (thus, enabling additional supervision provided in long-format captions) correlates with better retrieval and classification performance. Given this finding, we introduce BIOMEDICA-LongCAP, a dataset of 1M image–caption pairs enriched with contextaware descriptions from full-text articles, providing longer and additional textual supervision. Using BIOMEDICA-LongCAP, we train BMC-LongCLIP, a long-context biomedical VLM with a text encoder supporting windows of up to 512 tokens. Our model extends context capacity by 6.6×, reducing token waste from 55% to just 2.2%. On longcaption retrieval benchmarks, BMC-LongCLIP achieves up to +30% absolute gains in Recall@1 and +2% average improvements in classification, while also converging faster than shortcontext.

Baseline Comparison Against Frontier Models

BenchmarkModelContextBatchT2I R@1T2I R@5T2I R@10I2T R@1I2T R@5I2T R@10
CXRPMC-CLIP771280.00.50.70.21.01.6
CXRBiomedCLIP2564K0.52.65.70.63.35.5
CXRBMC-CLIP778K0.11.12.90.31.93.4
CXRBMC-LongCLIP+51216K1.97.112.23.09.514.5
PMCPMC-CLIP771280.20.71.20.10.71.2
PMCMedSigLIP77N/A20.137.046.030.949.060.1
PMCBiomedCLIP2564K68.886.291.173.389.393.7
PMCBMC-CLIP778K49.067.674.040.860.468.4
PMCBMC-LongCLIP+51216K80.891.294.479.790.693.8

Acknowledgments

This work is supported by an NVIDIA Academic Grant.


Citation

@article{sun2025no,
title={No Tokens Wasted: Leveraging Long Context in Biomedical Vision-Language Models},
author={Sun, Min Woo and others},
journal={arXiv preprint arXiv:2510.03978},
year={2025}

@inproceedings{lozano2025biomedica,
  title={Biomedica: An open biomedical image-caption archive, dataset, and vision-language models derived from scientific literature},
  author={Lozano, Alejandro and Sun, Min Woo and Burgess, James and Chen, Liangyu and Nirschl, Jeffrey J and Gu, Jeffrey and Lopez, Ivan and Aklilu, Josiah and Rau, Anita and Katzer, Austin Wolfgang and others},
  booktitle={2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
  pages={19724--19735},
  year={2025},
  organization={IEEE}
}

@article{lozano2025large,
  title={A large-scale vision-language dataset derived from open scientific literature to advance biomedical generalist ai},
  author={Lozano, Alejandro and Sun, Min Woo and Burgess, James and Nirschl, Jeffrey J and Polzak, Christopher and Zhang, Yuhui and Chen, Liangyu and Gu, Jeffrey and Lopez, Ivan and Aklilu, Josiah and others},
  journal={arXiv preprint arXiv:2503.22727},
  year={2025}
}