TL;DR
Vision-language models like CLIP usually align images and text one pair at a time, ignoring the broader "shape" of their embedding spaces—a blind spot that hurts performance when adapting to specialized domains with scarce labels. This paper introduces ToMA, a framework that uses persistent homology to map out the structural skeletons and loops of image and text manifolds, aligning their geometries directly. Remarkably, it pulls off this higher-order topological alignment with just a 0.3% training time overhead, boosting zero-shot classification and rescuing difficult retrieval queries.
What Problem Does This Paper Address?
Out of the box, general-purpose vision-language models (VLMs) like CLIP struggle on specialized domains—think satellite imagery or high-fashion catalogs—where visual distributions look very different from standard web scrapes. Because domain-specific image-text pairs are expensive to curate, researchers turn to semi-supervised learning: combining a tiny pool of labeled pairs with a mountain of unlabeled images (often via pseudo-labeling).
However, existing adaptation methods are fundamentally myopic: they pull matched image-text pairs together one by one, ignoring the global neighborhood structure of the representation spaces. Furthermore, because of the "modality gap," image and text embeddings naturally live in separate regions with their own geometric quirks.
Some researchers have tried aligning the global shapes of these spaces using Topological Data Analysis (TDA)—specifically, by matching persistence diagrams (summaries of when clusters and loops appear and vanish across distance scales). But matching topological summaries has two big flaws:
- Different geometries can cast the exact same shadow: Two completely misaligned point clouds can produce identical persistence diagrams.
- It throws away the cheat sheet: Summary matching completely ignores the ground-truth (and pseudo-labeled) pairings telling us which image corresponds to which text.
Methods
The authors build ToMA (Topology-Aware Multimodal Representation Alignment) on top of SemiCLIP (a standard two-stage pseudo-labeling baseline). Instead of matching abstract topological summaries, ToMA uses persistent homology (PH) to select structurally critical edges between data points within one modality, and then aligns those exact relationships in the other modality using known image-text correspondences.
To keep computation fast, ToMA constructs a graph over a batch of embeddings truncated at the "1-skeleton"—meaning it only tracks vertices and edges as the distance threshold grows, completely skipping computationally heavy 2D triangles (2-simplices). This naturally splits all pairwise edges into two complementary groups:
- $H_0$-death edges: Edges that merge disconnected clusters. Together, these form the Minimum Spanning Tree (MST), capturing the local connectivity backbone.
- $H_1$-birth edges: Every non-MST edge. Adding any of these closes a cycle (a loop), capturing higher-order relationships among neighborhoods of points.
Once ToMA identifies an edge between two images, it finds the corresponding edge between their paired texts (using ground-truth captions in Stage 1, and pseudo-labeled surrogate texts for unlabeled images in Stage 2). Rather than forcing the Euclidean lengths of these edges to match, ToMA maximizes the absolute cosine similarity between the edge direction vectors in both directions (image-to-text and text-to-image). They also test ToMA-domain, a variant that computes this topology separately within individual source sub-datasets rather than across mixed batches.
Datasets
Following standard semi-supervised VLM protocols (using 10% of image-text pairs as labeled data and 90% as unlabeled images), the authors evaluate on two main specialist domains, with no new benchmarks introduced:
- Remote Sensing: Trained on RS-ALL (a union of RSICD, UCM, and Sydney), with RESISC45 used to test out-of-distribution unlabeled data. Evaluated on RSICD, UCM, and Sydney for retrieval, plus WHU-RS19, RSSCN7, and AID for zero-shot classification.
- Fashion: Trained and evaluated on Fashion200k, FashionGen, and Polyvore Outfits.
- (Additional retrieval tests on science-figure and comics datasets are noted as being in the appendix).
Key Insights and Ideas
- Higher-order loops for free: Prior TDA methods usually stop at 0-dimensional homology ($H_0$, connected components) because computing 1D loops ($H_1$) requires building triangles, which explodes compute costs. By truncating the graph at edges and only tracking when loops are born (ignoring when they fill in), ToMA extracts rich cycle-level structural signals at zero extra cost over $H_0$.
- Align angles, not rulers: Because CLIP lives on a hypersphere governed by cosine similarity, matching raw Euclidean edge lengths actually fights the model's native geometry. Aligning edge directions respects CLIP's angular space, and taking the absolute value ensures alignment of the relational axis without forcing a rigid global orientation.
- Topology rescues the "hard" cases: In fashion retrieval, overall Recall gains looked modest at first glance. Digging deeper, the authors found a fascinating trade-off: ToMA dramatically rescues ambiguous, poorly separated queries by organizing semantic neighborhoods, while slightly shuffling the ultra-fine-grained ordering of "easy," already well-separated pairs.
Key Results
- Zero-Shot Classification: On remote sensing, ToMA and ToMA-domain beat the SemiCLIP baseline across almost all benchmarks—for example, jumping from 82.8% to 87.5% (+4.7 percentage points) on UCM-CLS when using out-of-distribution unlabeled data. On fashion, ToMA boosts FashionGen super-class accuracy by +5.7 p.p. over SemiCLIP, and ToMA-domain (46.5%) even beats the fully supervised CLIP oracle (45.5%) on sub-class classification.
- Retrieval & Hard Queries: ToMA improves remote sensing R@5 retrieval across most settings (e.g., +4.1 p.p. on UCM Image-to-Text). On the hardest third of FashionGen queries, ToMA more than doubles R@5—jumping from 8.14% to 19.94% (Image-to-Text) and 7.66% to 20.10% (Text-to-Image).
- Structural Agreement & Speed: Cross-modal MST edge overlap rises from 22.11% (original CLIP) and 31.74% (SemiCLIP) to 34.26% with ToMA. Best of all, on a single A100 GPU (batch size 256), total training time ticks up from 799.5s to just 802.0s—a 0.3% overhead.
Limitations and Future Work
The authors note that their empirical validation is focused on specialized-domain semi-supervised adaptation (primarily remote sensing and fashion), meaning broad generalization to general-domain pre-training or other modalities isn't yet established. Additionally, optimizing for global manifold structure can slightly jostle the exact pairwise rankings of already well-separated samples during retrieval. For future work, the authors suggest extending ToMA beyond paired cross-modal adaptation to unimodal alignment—aligning completely independent vision and language models without direct cross-modal matching, inspired by the Platonic Representation Hypothesis.
Summary updated