TL;DR
Training biomedical vision-language models usually involves scraping millions of scientific figures and treating every image-caption pair as an isolated island. BioLoom realizes that scientific papers aren't scrapbooks—they are structured arguments where sub-panels, sibling charts, and body text all contextualize one another. By baking this document structure directly into a contrastive learning loss across 52.4 million image-text pairs, BioLoom sets a new benchmark for zero-shot biomedical classification and retrieval.
What Problem Does This Paper Address?
Vision-language models (VLMs) like CLIP learn by pulling matching images and captions together in embedding space while pushing mismatched pairs apart. In biomedicine, scientific papers are a goldmine for this kind of data, spanning everything from X-rays to cellular microscopy.
However, standard contrastive learning views the world in black and white: an image-text pair is either an exact match or a complete stranger. Scientific figures defy this binary. A single figure often contains multiple panels—say, a microscopy image next to a bar chart quantifying what is in that image.
If you chop a figure into panels and train a standard model, the microscopy image treats its neighboring bar chart's caption as a "negative" example, actively unlearning the shared experimental context. Conversely, lumping them together as identical "positives" blurs distinct visual concepts. How do we teach a model to respect the nuanced hierarchy of a scientific paper?
Methods
BioLoom builds on a standard dual-encoder CLIP architecture (a ViT-L/14 vision encoder and a BioClinical ModernBERT text encoder), but overhauls both the data pipeline and the contrastive training objective.
First, the authors use Gemini 3.5 Flash-Lite to parse whole figures, original captions, and up to two paragraphs from the paper's main text that mention the figure. The model crops individual panels and generates two distinct text fields for each: a visual description (strictly what is visible) and a contextual caption (incorporating experimental details from the text).
Second, instead of standard binary InfoNCE loss, BioLoom categorizes batch candidates into four relationships and optimizes two complementary losses:
- Masked Contrastive Loss ($\mathcal{L}_{\text{mask}}$): Aligns exact image-text matches, while masking out (ignoring) other panels from the same figure or other figures in the same paper so the model isn't penalized for shared research context.
- Relation Loss ($\mathcal{L}_{\text{rel}}$): Gently pulls together "semi-positive" pairs—like a microscopy panel and the caption of its sibling chart, or a panel and its whole-figure caption. Simultaneously, it upweights hard negatives: images from completely different papers that share the exact same content type (e.g., two unrelated microscopy slides), forcing finer visual discrimination.
Datasets
- Loom52M (New Training Dataset): Built on top of BIOMEDICA records, this dataset contains 52.4 million image-text pairs (13.1M whole figures with original captions, and 39.3M cropped panels with enriched descriptions). Notably, the authors filter out 10.8M figures made entirely of charts, but keep chart panels when they appear alongside biomedical images in mixed figures.
- BioLoomBench (New Retrieval Benchmark): 15,000 figures from 2026 bioRxiv and Europe PMC papers across 15 domains, testing bidirectional retrieval on both original captions and concise visual captions.
- Existing Evaluations: Zero-shot classification across 67 tasks from 43 public datasets (10 domains), retrieval on BioMedFlickr (7,185 pairs), and linear probing on 12 MedMNIST 2D datasets.
Key Insights and Ideas
- Charts need biological anchors (and vice versa): Ablation studies show that training without any charts drops retrieval performance, as does dumping pure-chart figures back into the mix. Keeping charts strictly when they accompany biological images hits the sweet spot—quantitative plots ground visual observations without diluting the model's biomedical focus.
- Whole figures and cropped panels are synergistic: Training only on cropped panels or only on whole figures drastically degrades accuracy compared to mixing both (49.42% zero-shot accuracy mixed vs. 40.22% panel-only and 32.49% whole-only on a 25M subset). Global layout and local detail reinforce one another.
- Alignment vs. Classification trade-offs: Training longer (up to 25 epochs) steadily improves image-text retrieval, but zero-shot classification peaks at 10 epochs before declining. Similarly, tweaking loss masks reveals a subtle tug-of-war between fine-grained retrieval and broad category recognition.
Key Results
BioLoom was trained in two main flavors: vision encoder initialized from scratch, and initialized from pretrained DFN-2B weights.
- Zero-Shot Classification: BioLoom (DFN-2B) achieves 56.82% domain-balanced mean accuracy across 10 domains, beating the strongest baseline, MedPMC-CLIP (48.77%), by over 8 percentage points. Even initialized from scratch, BioLoom hits 52.89%.
- Cross-Modal Retrieval: On BioLoomBench (concise captions), BioLoom (DFN-2B) reaches a bidirectional mean Recall@1 of 63.20%, leaping past BiomedCLIP (46.37%). On BioMedFlickr, it achieves 10.59% mean Recall@1 versus 7.55% for MedPMC-CLIP.
- Visual Feature Quality: When freezing the vision encoder for linear probing on MedMNIST, BioLoom (Scratch) reaches 84.45% mean accuracy—matching supervised ImageNet-21k ViT-L/16 (84.42%) and outperforming self-supervised DINOv2 (83.31%).
Limitations and Future Work
When scaling the vision encoder from ViT-S up to ViT-H from scratch, performance peaked at ViT-L and dipped slightly at ViT-H across all metrics—likely because massive vision transformers are data-hungry beyond even 52.4 million pairs. Additionally, the authors note an inherent trade-off between prolonged image-text alignment and zero-shot category recognition. For future work, the team plans to curate even larger datasets to properly saturate ViT-H architectures and plug BioLoom's vision encoder into a generative biomedical vision-language model.
Summary updated