Manuscript Offprint
arXiv:2611.05599CAPTOR: text-encoder-free grounding by counting caption co-occurrence over the visual words of a frozen encoder
Abstract
Grounding a text query in an image needs a matrix scoring every term against every patch. Vision-language models compute it with an aligned text encoder, which many image encoders, such as histopathology-related models trained on slides alone, lack. The Caption-Anchored Patch-Term Occurrence Representation (CAPTOR) estimates the matrix without a text encoder. It clusters a frozen image encoder's patch tokens into visual words and describes each captioned image by its share of patches in each word. A term signature is the standardized difference of those shares between images whose captions mention the term and the rest. The matrix factorizes into a term-by-word table and a query-independent image factor, so an image is encoded once and a new term adds one table row. Against every training-free baseline, CAPTOR leads on Common Objects in Context (COCO), Pascal Visual Object Classes (VOC) and Cityscapes. On COCO, scored on the cells one object owns, it reaches 0.565 mean intersection over union (mIoU) against 0.502. On all three, it is also level with a text alignment trained on the same backbone, which needs gradients, a text encoder and several times the captions. On held-out breast-cancer slides, it exceeds the strongest baseline scoring patches with a pathology text encoder by 0.160 mIoU. Read through CAPTOR, UNI, an encoder trained on slides alone, exceeds such baselines by 0.132 on a common grid. Counting can therefore give a text interface to any image encoder trained without language, wherever captioned images exist.
Keywords: open-vocabulary segmentation, vision-language models, visual words, concept grounding, caption supervision, computational pathology
1. Introduction
A vision and language model connects a text query to an image through a term-by-patch compatibility matrix, which holds one number for each term and each patch saying how strongly that term applies there. Segmentation maps, retrieval scores and the weights of text-image cross-attention are all readings of it. The matrix is normally produced by a text encoder that turns each term into a query vector, which is then compared with a key at every patch.
That route needs a text encoder aligned to the image encoder, and many image encoders have none. Aligning one needs large sets of paired images and text and the training to use them, which natural images supply and specialized domains often do not. Histopathology has the gap. Some pathology foundation models were trained on image and caption pairs and can be queried with text [1]. Others were trained on slide patches alone [2, 3, 4] and carry no language, so no text query can be formed against them. A trained alignment such as Talk2DINO [5] does not remove this need, since it maps a pretrained text encoder onto each image encoder and must be trained again for every encoder it serves.
In this paper, we propose a new technique that builds the matrix without a text encoder. We cluster a frozen image encoder's patch tokens into K visual words and describe each captioned image by the fraction of its patches in each word. For every term we then measure how those fractions differ between images
Corresponding author.
Email address: nshaked@tau.ac.il (Natan T. Shaked) whose captions mention the term and images whose captions do not. We express that difference in units of what shuffled captions produce for the same term. We call the resulting table of terms against words, and the method that builds it, the Caption-Anchored Patch-Term Occurrence Representation (CAPTOR). The compatibility matrix is that table composed with the patch-to-word assignment.
Counting how caption words co-occur with quantized image regions goes back to automatic image annotation [6, 7, 8], which named images and their regions with words before vision-language models and foundation encoders existed. CAPTOR uses counting for a different purpose, to build for a frozen foundation encoder the term-by-patch matrix that a vision-language model forms with a text encoder. It differs from that work in what it estimates, how it normalizes the estimate and what the estimate is used for. The first difference is the estimate, counted signatures that a permutation null puts on one scale across terms of very different frequency, so that the best term at a patch can be read as its label. Frequency correction, more than the choice of statistic, is what matters, and the permutation null performs it best among the corrections tried. The second is the interface. The matrix factorizes into a term-by-word table times an image factor that does not depend on the query, which is exactly the term-patch scoring half of a cross-attention layer. An image is therefore encoded once. Querying a term reads one row of a small table, and adding a term the captions support takes one counting pass rather than a pass through a text encoder. The third is where it applies. Because no text encoder enters at any stage, the construction gives a text interface to image encoders that have none.
We compare CAPTOR with the training-free methods built on Contrastive Language-Image Pre-training (CLIP) [9], which, like CAPTOR, take no gradient. Each is run from its released code and, except on VOC, also given the same propagation as a control. CAPTOR leads them on Common Objects in Context (COCO) [10], scored on the grid cells that one object owns, and on Pascal Visual Object Classes (VOC) [11]. Under the standard full-image protocol, it also leads them on Cityscapes [12] and is level with them on COCO-Object. It is also level on COCO, VOC and Cityscapes with Talk2DINO, which trains an alignment on top of CLIP's text encoder with several times the captions, while taking no gradient, consulting no text encoder and encoding each image once. In their released settings rather than the matched ones, Talk2DINO scores higher on COCO and VOC, and ProxyCLIP and Talk2DINO score higher on COCO-Object. Both build on the 400 million image-caption pairs of CLIP, where CAPTOR counts at most 30,000 COCO captions. In histopathology, on patients held out from every choice, CAPTOR on the text-trained encoder CONCH exceeds every baseline that reads CONCH's text encoder without borrowing CAPTOR's visual words, and UNI, trained on slides alone, read through CAPTOR exceeds those baselines on breast and is level with them on lung.
The contributions of this paper are the following.
-
A text-encoder-free and gradient-free estimator of the term-by-patch compatibility matrix, counted from captions and normalized by a permutation null, with joint words and joint estimation that resolve where visual words and terms overlap (Section 3).
-
The factorization , which replaces the term-patch scoring of cross-attention for the terms a caption corpus supports. An image is encoded once, a term is one row, and the hard, soft and propagated scoring rules are three choices of one image factor (Sections 3 and 5.3).
-
An evaluation against baselines reproduced to their published numbers and, except on VOC, given the same propagation, on a matched protocol and on the standard full-image protocols, with paired intervals throughout (Sections 5.1 and 5.2).
-
Text-queryable patch description for pathology encoders that have no text encoder, which on breast-cancer tissue exceeds dense scoring with a trained pathology text encoder and on lung is level with it, with a specialist vocabulary acquired from a few thousand captions (Section 5.4).
Table 1: Comparison of previous families of methods. Every method, CAPTOR included, uses development labels only to select its settings.
| Method family | Text encoder | Gradients | Segmentation labels in training | Cost of a new term |
|---|---|---|---|---|
| Dense CLIP scoring [14, 15] | Yes | No | No | Encoder pass |
| Several backbones [16] | Yes | No | No | Encoder pass |
| Trained alignment [5, 18, 20] | Yes | Yes | No | Encoder pass |
| Mask supervised [19] | Yes | Yes | Yes | Encoder pass |
| CAPTOR | No | No | No | Caption counting |
An image encoder trained without language can be made to answer text queries by training a mapping from its features into a space already aligned with text. Zoom-shot [20], for example, maps a vision encoder's features into CLIP's latent space. In pathology, foundation models trained on slides alone [2, 3, 4, 21] are becoming standard tools [22]. The models that can be queried with text are trained on paired images and captions [1, 13], and their fine-grained alignment is still being improved by distillation [23]. Each of these routes needs paired data, gradients and a text encoder. In contrast, CAPTOR needs captioned images and no gradient-based training, and it leaves the image encoder untouched.
Binding caption words to quantized image regions is where automatic image annotation began. Mori et al. [6] divide images into a grid, quantize the regions, transfer each caption's words to every region and read each word's distribution off the counts. Later work replaced counting with estimation, through words-and-blobs translation models fitted by expectation-maximization [7, 8] and cross-media relevance models [24]. In each of them, a word is linked to clusters of image regions according to how often the two appear together in captioned images. CAPTOR shares their caption supervision but differs from them in four ways. Its statistic is a standardized contrast between images that name a term and images that do not, divided by a permutation null so that terms of any frequency share one scale. Its visual words are clusters of the patch tokens of a modern foundation model, where the earlier methods clustered hand-crafted color and texture features. Its table factorizes the term-patch scoring of cross-attention and supports dense segmentation with no text encoder. Its reweighting lets the terms of a caption compete for patches, as expectation-maximization does, but applies once to its own table. Section 5.1 below compares the two statistics on the same visual words.
3. Method
CAPTOR has two stages. An offline stage builds a table from a caption corpus, and an online stage answers queries about a new image from that table (Figure 1). No gradient is taken and no text encoder is consulted at any point.
Offline preparation
Caption corpus

A cat is lying on its back in a man's lap.
A bed and desk in a small room.
A book sitting open and on top of a table.
Patches to visual words

Signature table S
Per-image inference

Figure 1: The method, drawn from its own artifacts rather than as a schematic. Offline preparation. Patch features of 15,000 captioned COCO images are clustered into K = 640 visual words, and each term signature is counted from them. The table is the factor S of Equation (1), one row per term and one column per word. Red means a word covers more of an image when captions mention the term and blue less, in multiples of what shuffled captions produce. Per-image inference. One forward pass assigns each patch of a new image to its nearest word on the encoder's grid, by the rule of Equation (2) that described the corpus. That word map is , and scoring a term at a patch reads the row of the term in S at the word of the patch, the product entry by entry. The table holds five terms, the row shows the three the image contains, and the three maps share one color scale.
3.1. The compatibility matrix as two factors
Let an image be divided into patches and let a vocabulary hold terms. The compatibility matrix has one entry per term and patch, and says how strongly term applies at patch . A vision and language model forms it entry by entry as , where is a text encoder that maps the term to a query vector, projects the image encoder token of patch to a key, and both vectors have dimension . We build the same matrix as a product of two factors,
The term factor is a table of the terms against visual words, and the image factor records which word each patch belongs to. Section 3.2 builds both from a frozen image encoder and a caption corpus, Section 3.4 generalizes to any image factor that does not depend on the query, and Section 3.5 sharpens the estimate of where visual words and terms overlap.
3.2. Counted signatures on a common scale
Let be a frozen vision transformer (ViT) [25] that turns an image into patch tokens , each normalized to unit length. The table is built from a caption corpus, images that each carry a caption and no other annotation. The -means algorithm [26] runs over the patch tokens of all images together, and its centroids are the visual words. They are fitted once and held fixed, so a word means the same thing in every image. Each patch is assigned to its nearest word, and image is summarized by the fraction of its patches in each word,
(2)
We call the volume vector of image . It records how much of the image each word occupies and not where. The vocabulary size sets how finely the method can distinguish what it names.
The table is filled by counting. Let be the set of corpus images whose caption contains term t, matched as Section 4 states. The signature of t is the change in the volume of each word between the images in and the rest, in units of the standard deviation of that word across the corpus,
So measures how much of an image word tends to occupy when term is mentioned, compared with when it is not. The caption enters only through membership of , so no text encoder is involved, and the quantity measured is a property of images that a text encoder cannot observe from language alone.
The largest coordinate is large even for a term that carries no signal, because among noisy coordinates some are large by chance alone. We therefore measure how large it becomes when the captions carry no information about the images. To do so, we shuffle the captions. Each shuffle, or draw, keeps every image volume vector and the number of images that mention the term, but picks those images at random. We repeat the draw times. With the signature computed on draw and its largest coordinate, the permutation null is the 95th percentile, , of the maxima,
(4)
A term whose own exceeds is bound more strongly than chance reaches on nineteen draws out of twenty, and we say it clears its null (Figure 2a).
Even above their nulls, signatures of different terms cannot be compared directly. With the fraction of captions that contain , the point-biserial correlation between mentioning and the volume of word is , and since a correlation lies in ,
The ceiling depends on the term frequency and on nothing else. It equals 2 at and grows without bound for rare terms, so the largest raw score at a patch would be decided largely by how often each term is mentioned. Every signature is therefore divided by its own null,
which expresses each term in multiples of what shuffled captions produce for that same term, a scale computed from the corpus alone. Dividing term scores by a positive number cannot change their order, so the division leaves the ranking of patches for each term exactly as it was. On COCO that ranking reaches a mean area under the receiver operating characteristic curve (AUC) of 0.983 with or without the division. The whole effect of the division is therefore on the comparison between terms, where it raises the mean


Figure 2: The permutation null and the ceiling on COCO, drawn with one vocabulary and the hard assignment. (a) The permutation null of Equation (4) for a common term and a rare one, where is the fraction of captions that name a term. “Person”, with , reaches 0.631 against a null of 0.060. “Handbag”, named in 34 of 15,000 captions, with , reaches 3.57 against 1.85. On the raw scale the rare term is more than five times larger. Measured in multiples of its own null, however, it is the weaker of the two, at 1.9 times its null against 10.5 for “person”. (b) The largest raw signature of every term, its null and the ceiling of Equation (5). Both rise as a term becomes rare, and no term exceeds 0.84 of its ceiling.
intersection over union (mIoU) from 0.429 to 0.511 (Table S4). Much of this gain is frequency correction alone. On all COCO images at , Welch's , which divides by the analytic standard error, raises the raw signature from 0.452 to 0.526 mIoU, and the null reaches 0.541 (Table S7). From here on, denotes on natural images. Pathology is different. Its five tissue terms are all frequent, each named in 4 to 17% of the captions, so their nulls lie within a factor of about two of one another. On COCO, the nulls of “person” and “handbag” alone differ by a factor of thirty. The division therefore has little to correct in pathology. On the 41 development patients, the division even lowers mIoU slightly at every vocabulary size, from 0.452 to 0.435 at . The selection rule of Section 4 therefore leaves it off in pathology. On the held-out patients the choice barely matters, at 0.497 without the division and 0.494 with it. Figure 2a and b show the null and the ceiling on COCO.
With every signature on this common scale, the two factors of Equation (1) are complete. The image factor records the word of each patch and the term factor holds the signatures,
so and scoring a patch against a term is one table lookup.
3.3. Reading the matrix
The same table answers how strongly a term applies to a whole image and how strongly it applies at each patch.
To score a whole image, we compare its composition with the term signature. The share of each word in the image is standardized with statistics of the caption corpus and weighted by the signature,
where is the image volume vector, and and are the mean and standard deviation of the share of word over the corpus. Both are stored with the table, so no statistic of an evaluation image enters the score. The whole signature is used because an object or a tissue usually spans several words. Since is the fraction of the image patches assigned to word , , the score can be written with the two factors of Equation (1),
It therefore reads the same row of S and the same assignment as the patch scores.
At a single patch the reading is simpler. A patch belongs to exactly one word , so
Because each row of S is divided by its own null, the scores of different terms at one patch share a scale, and the highest-scoring term is the patch label.
3.4. The image factor
Under the hard assignment every patch is read through its single word. Two patches in the same word therefore receive identical scores for every term, and a patch near the boundary between two words can be assigned to the wrong one. The construction does not require the hard assignment. It requires only an image factor that is computed from the image alone, without the query, and has one row per word. Writing such a factor as , the compatibility matrix becomes
so Equation (1) is the case , and the score of term at patch is . is computed once per image before any term is known and is reused for every term. A query therefore reads a single row of . A term estimated on its own, as in Section 3.2, adds one row to without changing the others, and the joint estimate of Section 3.5 is the one exception. We use two assignments, and a propagation that can follow either of them.
The first assignment is the hard assignment of Equation (7). The second, the soft assignment, lets a patch share its weight among its nearest words. With the set of the words whose centroids lie nearest to the token ,
(12) where is the similarity between the patch token and the centroid of word k, and the sharpness sets how strongly the weight concentrates on the nearest word. The score of a term at the patch is then the weighted average of the signatures of those m words. Setting m = 1 returns the hard assignment. Development data select m = 16 and on natural images, and m = 1 in pathology (Table S2 in the supplement).
The propagation lets the patches of one object support one another. A patch can be misread on its own, but other patches of the same object usually look like it. Each patch's scores are therefore replaced by a weighted average over the patches that resemble it, wherever they lie in the image. With the cosine similarity of two unit-length tokens and its average over all pairs of patches in the image,
so patch counts only when its similarity to exceeds times the image average, and the gain sets how much more a very similar patch counts. We use and in both domains, fixed once and never tuned. The propagated scores are , so propagation only replaces the image factor by , still computed from the image alone, and leaves unchanged. ProxyCLIP [16], the strongest training-free baseline, propagates in the same way but takes from a second model, whereas CAPTOR takes both the assignment and from the one encoder it reads. Propagation uses only the image, not the term, so we apply it to the scores of every compared method, and the comparison measures only how terms are scored.
3.5. Estimating the table where words and terms overlap
Counting over visual words has two weaknesses. One visual word may cover patches that show different things, and a caption credits every term it names with the whole image, including the other things in it. Joint words and trust weights address the first, and caption-conditioned reweighting or joint estimation the second. None of them uses a text encoder, a gradient or an annotation, each reduces to plain counting at one setting, and each is used only where development data favor it.
Joint words give each patch a finer label. The k-means algorithm started from different random seeds draws the boundaries between words in different places, so each vocabulary wrongly merges different pairs of patches. We fit J such vocabularies to the same tokens and label each patch by the combination of its J words,
where is the word of patch in the th vocabulary and is Equation (3) counted over these combined labels. For example, if three vocabularies put a cat's ear and a dog's ear in the same word and the fourth separates them, their joint words differ. Two patches thus share a joint word only when every vocabulary merges them. Averaging the score maps instead would let the three vocabularies outvote the fourth. Like words, joint words are computed once per image.
The combinations are many, so a joint word is often seen in only a few captioned images, too few for a reliable signature. Its score is then blended with the average of the J single-vocabulary scores,
where , is the signature from the th vocabulary alone and is the number of captioned images that contain . The trust weight moves from the average toward the joint word as grows, and the two count equally when . With , chosen for natural images, a joint word seen once gets weight 0.25 and one seen thirty times 0.91 (Figure S1, Section S2 of the supplement). Pathology chooses a very large , which leaves only the average.
For the second weakness, take the caption “a dog is holding a frisbee”. Equation (3) credits “frisbee” with every patch of the image, the dog and the grass included. Caption-conditioned reweighting instead divides each patch among the terms the caption names, according to how well each term fits it. With the terms named by the caption of image and score the score of a first pass of the table, patch counts toward with weight
where sets how sharply the terms compete and the floor keeps a term from being cut off by an early mistake. A patch of the dog thus counts mostly toward “dog” and little toward “frisbee”. The signature of is then recounted from the weighted share of each word in each image ,
where is the word of in the vocabulary being counted and is one when its condition holds. Images that do not name , the deviations and the nulls stay unweighted. No annotation is used, and a caption that names a single term leaves its image unchanged.
Joint estimation solves the same problem for all terms at once. It treats the word shares of each captioned image as a sum of one contribution per named term, fitted to all images together. Terms named together thus share the explanation, and each keeps only what the others cannot explain. Suppose a visual word whose patches show table surfaces covers 30% of every image whose caption names “dining table” and 2% of every other image. Bottles usually stand on tables, so suppose also that three of every four captions naming “bottle” name “dining table” too. Separate counting therefore credits “bottle” with the word. The prediction instead finds that naming “dining table” adds 0.28 to the share and naming “bottle” adds nothing, which fits every image. In matrix form, has when the caption of image names term , and the rows of are the volume vectors. A bar subtracts each column mean. The prediction is , where is how much naming term adds to the share of word given the other named terms. minimizes the squared error plus a ridge penalty , which keeps it stable when terms often co-occur, giving
with the identity. Each is then divided by its null, computed as in Equation (4) but shuffling whole caption sets so that terms named together stay together. may also list unqueried terms, such as the COCO classes outside the twenty VOC classes, to take words a queried term would otherwise absorb. A dataset uses at most one of the two corrections, the reweighting on COCO and the joint estimate on VOC.
4. Experimental setup
On natural images, the CAPTOR table is built from the captions of a 15,000-image subset of the COCO training split [10], which contains no evaluation image. CAPTOR is evaluated on the 5,000 images of the COCO validation split and on the Pascal Visual Object Classes (VOC) validation set [11]. Two standard benchmarks are added. COCO-Object adds a background class to the eighty COCO object classes, as in [15], and Cityscapes [12] contributes its 500 validation images. In pathology the table is built from the 32,463 PathCap [27] figures whose caption mentions one of 28 tissue terms. Three of these terms are merged into others, leaving 25. Evaluation uses the pixel annotation of the Breast Cancer Semantic Segmentation (BCSS) dataset [28] and of LUAD-HistoSeg [29]. Section S1 of the supplement lists every dataset, split and setting (Tables S1 and S2) and shows that no evaluation image nearly copies a PathCap figure (Table S3).
Natural images are scored under two protocols. The matched protocol scores COCO and VOC on a grid over the center crop of each image, the grid both backbones produce without up-sampling, so every method sees the same pixels. A cell is scored only when one object class covers more than half of it. This keeps 162,215 of the 490,000 cells of the 2,500 COCO reporting images and 82,058 of the 284,004 cells.
of all 1,449 VOC validation images. Leaving out background isolates how each method scores terms, since each method decides background by its own rule. The standard protocol scores every pixel of the whole image, background included, with each baseline at its released settings and checked against its published number (Section 5.2).
Natural images use DINOv2 ViT-B/14 with registers [17, 30] at an input size of 196 pixels, and CLIP ViT-B/16 [9]. In pathology, CONCH [1] is trained on image-caption pairs, while UNI [2] and Phikon [21] are trained on slide patches alone and have no text encoder. All encoders stay frozen.
The natural-image baselines run the authors' released code of SCLIP [15], ProxyCLIP [16] and Talk2DINO [5], together with dense CLIP scoring, which compares each patch token with the text embedding of a term. Each uses its published prompts and scores a class at every patch by the best of its fixed names, which reads no annotation. The reported scores of CAPTOR include the propagation of Equation (13), so every baseline except on VOC is also scored with the same propagation, computed from the same DINOv2 tokens, and reported margins are against these propagated baselines. On VOC the baselines are compared as released. In pathology, the baselines score each patch by comparing the CONCH text embedding of a term with the patch features, following MaskCLIP [14], SCLIP, and the smoothing of CLIP-DINOiser [31] along patch similarities. Each is given the same propagation, and each method, CAPTOR included, may use a per-term standardization of its scores that reads no annotation, chosen on development patients.
CAPTOR takes no gradient and uses no text encoder, and captions are its only supervision for the table. The CLIP-based baselines read a text encoder trained on about 400 million image-caption pairs. Talk2DINO trains its alignment on the 82,783 captioned images of COCO 2014, more than five times the images CAPTOR counts. Every evaluation set is split into a development half and a reporting half, with each image, or in pathology each patient, in exactly one of them. For BCSS, 41 of the 103 patients form the development half and the other 62 are scored once. The development half and its segmentation labels choose the seven settings of Table S2 and the background threshold of the standard protocols. They also choose which components of Section 3.5 each dataset uses, and the eight terms that need their full name because the bare word is too general, such as "stop sign". Every headline number is measured once on the reporting half, and curves and ablations that use all images are marked as such. As a check, K is also chosen from captions alone, by how well signatures from one half of the corpus rank the images of the other half. This rule selects K = 2560 on natural images and K = 320 in pathology, against 640 and 80 chosen with the development labels. With these values, CAPTOR reaches 0.569 mIoU on the COCO reporting half, against 0.565, and 0.441 on the held-out BCSS patients, against 0.497. A caption names a term when it contains one of the names of the term in WordNet [32], a lexical database of English, such as "plane" or "jet" for "airplane". Longer terms are matched first, so "teddy bear" is not also read as "bear".
Every difference between two methods is computed from their paired predictions. Its 95% interval comes from a percentile bootstrap [33] that resamples the largest independent unit of each dataset, images on COCO, VOC and Cityscapes and patients on BCSS and LUAD-HistoSeg. A difference whose interval excludes zero is called resolved, and two methods whose difference is not resolved are called level, which means only that the data do not resolve a difference, not that the methods are equivalent. The p-values are not corrected for multiple comparisons, so each should be read on its own.
5. Results
5.1. Open-vocabulary segmentation on COCO
We evaluate open-vocabulary segmentation on the COCO validation split under the matched protocol, against the released code of each baseline. Every method labels each scored cell with one of the same COCO object classes. Of the 80 classes, 78 are named in at least 25 of the 15,000 corpus captions, and all 78 clear their permutation null. The other two, “toaster” and “hair drier”, are named in 15 and 0 captions, so they are
Table 2: Open-vocabulary segmentation on COCO under the matched protocol, on the 2,500 reporting images and 78 counted classes. Caption pairs is how much image-caption data each text side was learned from: the 15k captions CAPTOR counts, the 400M pairs of CLIP, and for Talk2DINO also 83k COCO captioned images. The propagated columns give each baseline the propagation of Equation (13), and differences, with paired intervals that resample images, are taken against them. The last two rows are references, not matched: Talk2DINO as released reads 448 instead of 196 pixels and adds a pixel-adaptive refinement, and the probe is fitted to the development labels.
| Method | Caption pairs | mIoU | Accuracy | mIoU, propagated | Accuracy, propagated | CAPTOR – this, propagated |
|---|---|---|---|---|---|---|
| CAPTOR | 15k | 0.565 | 0.768 | 0.565 | 0.768 | |
| Talk2DINO [5] | 400M + 83k | 0.566 | 0.746 | 0.566 | 0.757 | -0.001[-0.017, +0.011] |
| ProxyCLIP [16] | 400M | 0.481 | 0.670 | 0.502 | 0.690 | +0.064[+0.044, +0.081] |
| SCLIP [15] | 400M | 0.409 | 0.593 | 0.468 | 0.650 | +0.098[+0.080, +0.115] |
| Dense CLIP scoring | 400M | 0.142 | 0.280 | 0.190 | 0.394 | +0.375[+0.355, +0.394] |
| Talk2DINO, as released | 400M + 83k | 0.588 | 0.764 | |||
| Supervised probe | Labels | 0.587 | 0.866 |
left out for every method. Section S3 of the supplement adds qualitative results and ablations (Figure S2, Tables S5 and S6).
CAPTOR leads every training-free baseline on both measures, whether each is taken as released or given the same propagation CAPTOR uses (Table 2). It reaches 0.565 mIoU and 0.768 accuracy against 0.481 and 0.670 for ProxyCLIP as released and 0.502 and 0.690 with the propagation, while reading one backbone where ProxyCLIP reads two. The paired difference against the propagated ProxyCLIP is +0.064, with a 95% interval from +0.044 to +0.081. Talk2DINO reads the same backbone but trains its term side, and appears at its released configuration and at our input size.
Against Talk2DINO, accuracy and mIoU give different results. On accuracy, the share of annotated patches given the right term, CAPTOR reaches 0.768 against 0.757 for Talk2DINO given the same propagation and 0.746 without it, ahead by +0.011 with an interval from +0.002 to +0.020 that excludes zero. On mIoU, which averages over terms so that a rare term counts as much as a common one, the difference is -0.001 with an interval containing zero, so the difference is not resolved. The two methods also make different kinds of errors. Averaged over the 78 classes, 0.683 of the patches CAPTOR assigns to a term are correct, against 0.646 for Talk2DINO, a paired difference of +0.037 with an interval from +0.019 to +0.048. Talk2DINO, in turn, recovers more of the patches that belong to a term, 0.810 against 0.740 for CAPTOR. CAPTOR is therefore the more precise method and Talk2DINO the more complete one. As released, at 448 pixels with a pixel-adaptive refinement, Talk2DINO leads by 0.023 mIoU at similar accuracy, about 0.014 from the refinement, which does not help CAPTOR, and 0.009 from the larger input (Table S10 in the supplement). A supervised linear probe on the same frozen tokens, fitted with the development labels to show what these features allow, reaches 0.587 mIoU, and CAPTOR attains 96% of it without training on labels.
The estimator itself accounts for part of this result. With the same visual words and the same scoring, the difference of means of Equation (3) divided by its null reaches 0.541 mIoU at over all 5,000 images, and without the null the signature falls to 0.452. The null also improves five of the seven other statistics we tried, all except Welch's , which is already scaled, and a ridge fit (Table S7 in the supplement). One of them is the co-occurrence share of Mori et al. [6], the fraction of the patches of a word whose caption names the term. In the reported configuration, with the settings of each estimator chosen on the development half, it reaches 0.555 mIoU against 0.567 for the difference of means of CAPTOR, a difference of -0.012 with an interval from -0.019 to -0.003. The co-occurrence share raises accuracy from 0.771 to 0.806 by favoring frequently captioned terms, at the cost of rare classes (Table S8 in the supplement).
CAPTOR loses most to Talk2DINO on objects that captions usually mention together, labeling 55% of microwave cells as oven, 54% of potted plants as vase and 60% of cups as dining table. At the joint estimate of Section 3.5 raises correct microwave cells from 0.25 to 0.34 but lowers development mIoU from 0.550 to 0.548. The development half therefore keeps the separate estimate on COCO and selects the joint one on Pascal VOC, where this confusion dominates (Table S9 in the supplement).
CAPTOR also transfers to Pascal VOC without new captions. The vocabulary, the volume vectors and every signature are counted on COCO captions, and VOC supplies only images and annotation. With the configuration chosen on the development half (Table S12), CAPTOR reaches 0.829 mIoU on the reporting half. On VOC, most errors of the separate estimate are bottles, screens and potted plants labeled “dining table”, and the joint estimate reduces them, a gain of +0.022 with an interval from +0.009 to +0.034. CAPTOR leads ProxyCLIP at 0.801 by +0.027, with an interval from +0.005 to +0.051, and SCLIP at 0.750 by +0.079. It is level with Talk2DINO at our input size, at -0.011 with an interval from -0.030 to +0.008, while Talk2DINO as released leads it by 0.022. Section S5 of the supplement gives every configuration (Tables S12 and S13) and a qualitative comparison (Figure S5).
5.2. The standard protocols
The matched protocol isolates how each method scores terms, but its numbers cannot be compared with the numbers the baselines publish. Under it, a baseline that scores low might simply have been run wrongly, and nothing would reveal it. We therefore also score every method on the standard full-image protocols, where each baseline must first reproduce its published number. Every image is read whole, background is a class of its own, and every baseline keeps its released resize, window, prompts and background rule. CAPTOR reads each image at its own resolution with the propagation applied over the whole image. Like SCLIP, it calls a pixel background when one of SCLIP's scene names, such as “sky”, “wall” and “road”, wins it, each name counted from the captions as one more term, or when no object term reaches 2.5 times its permutation null, the one setting chosen on the development half.
On COCO-Object CAPTOR reaches 0.350, above SCLIP and level with ProxyCLIP, both given the same propagation, at 0.346 and 0.353, a difference of -0.003 with an interval from -0.015 to +0.014. ProxyCLIP as released reaches 0.373 and Talk2DINO 0.448. CAPTOR names more object pixels correctly than any baseline, but labels background far from any object as the object usually seen there, such as “skis” on snow or “surfboard” on water (Section S6, Table S14 and Figure S6 in the supplement).
Cityscapes tests the same question at a higher resolution. Its 500 validation images are , and seven of its classes are terms our table already binds, “person”, “car”, “truck”, “bus”, “train”, “motorcycle” and “bicycle”. We score those seven and background, and ignore “rider”, which has no term of its own. Every baseline first reproduces its published number on the standard 19 classes, within 0.008 in every case (Table 3). CAPTOR reaches 0.559, which is 0.084 above SCLIP and 0.112 above ProxyCLIP, each given the same propagation, with intervals from +0.052 to +0.124 and from +0.088 to +0.137 that resample images. Against Talk2DINO as released, at 0.540, the difference is +0.019 with an interval from -0.016 to +0.049. Against Talk2DINO without its refinement but given our propagation, at 0.570, it is -0.010 with an interval from -0.043 to +0.019. CAPTOR is therefore level with the trained alignment on Cityscapes. Figure 3 draws four typical images. CAPTOR is first or second on each, and ahead of both CLIP-based methods on all four.

Figure 3: Cityscapes at its full resolution of 2048 × 1024, on four typical images, one per row. Among the reporting-half images whose annotation contains at least two of the seven object classes, we take the four whose CAPTOR score lies closest to the median, 0.59. They show what a reader should expect rather than our best cases. Every method is drawn by the code that produced its row of Table 3, at the configuration that row reports. The number in each panel is the mIoU of that image.
Table 3: Cityscapes validation at 2048 × 1024 under the standard full-image protocol. Published values come from the paper of each method. The published and reproduced columns use the standard 19 classes, and the last two use the seven classes of the text with background. The last two columns score the reporting half, first as released and then with the whole-image propagation CAPTOR uses. Talk2DINO + PAMR is its released configuration, with pixel-adaptive mask refinement (PAMR). CAPTOR is read at 196 pixels or at the native resolution of each image, and its last row adds the background threshold chosen on the development half, its one choice there.
| Method | Published | Reproduced | Reporting half | Reporting half, propagated |
|---|---|---|---|---|
| SCLIP [15] | 0.323 | 0.324 | 0.418 | 0.475 |
| ProxyCLIP [16] | 0.381 | 0.389 | 0.414 | 0.447 |
| Talk2DINO [5] | 0.366 | 0.367 | 0.509 | 0.570 |
| Talk2DINO + PAMR [5] | 0.381 | 0.381 | 0.540 | 0.538 |
| CAPTOR, 196 px | 0.372 | |||
| CAPTOR, native | 0.404 | 0.508 | ||
| CAPTOR, native, threshold | 0.559 |
5.3. Cross-attention without a text encoder
A cross-attention layer first scores every patch against a query and then pools the image according to those scores. The scores are the compatibility matrix of Equation (1), and this section compares the cost of forming them with a text encoder and with the counted table. For a query term and an image with patch tokens , a standard layer computes
(19) with , and as in Section 3.1. Here is the attention weight on patch and is the pooled output. A new term costs one text-encoder pass to obtain , which can then be cached, and every image costs inner products of dimension for every term.
CAPTOR replaces the first of these two steps, the term-patch scores, for the terms its caption corpus supports. The pooling and anything computed after it are left as they are. Its patch scores are the entries of , and its score for a whole image is Equation (9), a sum over the words of the row of against the standardized volume vector , which is computed once per image before any term is known. This replaces only the term-patch scores and does not reproduce the query-dependent pooling of Equation (19).
Measured on one GPU (Tables S24 to S25, Section S8 of the supplement), the methods differ on the term side. CAPTOR makes a new term queryable by counting, in 15.4 GFLOPs and 3.2 ms, against 476.8 GFLOPs and 37.3 ms for CLIP's text encoder over its 80 prompts, and it needs no pretrained text model. Once terms are prepared, scoring an image against all of them takes every method under a millisecond. Per image the factorization buys nothing, 2.29 ms against Talk2DINO's 2.17 ms at 196 pixels, while Talk2DINO's released configuration, whose refinement cannot be batched and runs once per term, takes 387 ms to label an image with all 78 terms against CAPTOR's 8.2 ms at a batch of one, a factor of 47, for 0.023 more mIoU by Talk2DINO and similar accuracy.
The same table also ranks whole images. Over all 5,000 COCO validation images and the 77 terms both routes bind, Equation (8) reaches 0.947 mean AUC against 0.903 for CLIP's pooled image embedding (Section S4, Tables S11 and S21, Figures S3, S4 and S8 of the supplement).
Figure 4 draws one row of at a time, the term-patch scores a cross-attention layer would pool, on ten photographs of 4 to 34 megapixels chosen by a fixed rule, the first freely licensed Wikimedia Commons quality image of each term, none discarded after seeing the result. Each is read at 196 pixels, and every map falls on the object its term names, including a rusted car in long grass and a dog held by a child.
5.4. Patch-level description in computational pathology
CAPTOR is highly useful in histopathology, because an aligned text encoder is expensive to obtain there and some of the strongest image encoders have none. The construction is unchanged, with its settings selected on development patients, and only the image encoder and the caption corpus change.
The vocabulary size is chosen on 41 of the 103 BCSS patients and frozen, and the remaining 62 patients, 134 fields, are scored once on the CONCH grid (Table 4). CAPTOR reaches 0.497 mIoU. Every baseline reads the CONCH text encoder, is given the same propagation as CAPTOR, and is offered a per-term standardization that reads no annotation. The strongest of those that score the CONCH patch features, SCLIP propagated and standardized, reaches 0.337. CAPTOR leads it by +0.160 with an interval from +0.111 to +0.206 that resamples patients. Against dense scoring with CONCH, which a practitioner would otherwise use, without propagation, the lead is +0.235. Figure 5 shows a typical field for each tissue (Tables S16 and S17 of Section S7 give each tissue and component). The four vocabularies of CAPTOR, each fitted with its own k-means seed, give 0.429 to 0.514 on their own. Averaging them removes most of the dependence on the seed and is part of the method.
The hybrid row of Table 4 shows where this gain comes from. It scores the CAPTOR visual words with the CONCH text encoder instead of counted signatures and reaches 0.495, level with CAPTOR. The gain over the dense baselines therefore comes from the visual words and the propagation. Counting and CONCH's text encoder thus name the same visual words with no resolved difference, and counting needs no text encoder. The same holds on all 200 fields at K = 40 without propagation. Two such hybrids reach 0.399 and 0.404 against 0.369 for CAPTOR, and all three stay well above the 0.309 of SCLIP, the strongest baseline that does not use our visual words (Table S15 in the supplement).
Because counting replaces the text encoder, CAPTOR runs on image encoders that have no text encoder. UNI and Phikon were trained on slide patches alone, so no text query can be formed against them by any other method here. Table 5 reads all three encoders on the grid they share, each with its own vocabularies

Figure 4: One row of the matrix, the score of a single term at every cell, on ten high-resolution photographs, each above its map. The term of each photograph is the one it was chosen for. Red is high and blue is low, and each map is standardized over its own cells, so color shows where the term applies rather than how strongly. Photographs from Wikimedia Commons, chosen by the rule the text gives and credited as follows. "Cat", "dog" and "bicycle" are by Basile Morin, "train" by Kabelleger and David Gubler, "pizza" and "car" by Rhododendrites, "horse" by Alvesgaspar, "boat" by Norbert Nagel, "airplane" by Carlos Delgado, all CC BY-SA 3.0 or 4.0, and "laptop" by PantheraLeo1359531, CC BY 4.0.
counted from the same captions and its settings chosen on development patients, and compares each with the strongest reading of CONCH's text encoder chosen the same way. On the 62 held-out breast patients, UNI read through CAPTOR reaches 0.456 mIoU against 0.324, a lead of +0.132 with an interval from +0.077 to +0.185. An encoder with no language of its own, given only captions, thus names breast-cancer tissue better than a text encoder trained for pathology. Phikon is level, at -0.025 with an interval containing zero. Both use K = 80, chosen on development patients. At K = 40, Phikon left most stroma in one word that every caption term scores near zero, so no name could be counted for it.
On a second organ, lung-cancer tissue scored cell by cell against the pixel annotation of LUAD-HistoSeg, CAPTOR on UNI and on Phikon is level with the baseline that reads the CONCH text encoder, while CAPTOR on CONCH falls behind it by 0.059 (Table S18 and Figure S7 in the supplement give each tissue). The table is the same one counted from PathCap captions, and only its settings are chosen on lung development patients. The loss comes from one tissue. CAPTOR gives 48% of tumor-associated stroma cells to "tumor", and still 42% of the cells whose annotation is at least 95% stroma, so the error is not confined to tissue borders. The visual words themselves separate the two tissues, since naming each word after the tissue it mostly holds would reach 0.475 mIoU on CONCH's own grid. What fails is the names. Pathologists caption the whole lesion as "tumor", its stroma included, whereas this annotation separates the two, and a signature counted from captions takes on the meaning of the captions. A wider test that names visual words also finds no resolved difference. Across six pathology encoders and three benchmarks, CAPTOR is ahead of a text encoder adapted on the same captions in 12 of 18 combinations, but level on average, at -0.002 AUC
Table 4: Patch-level description of breast tissue on the 134 fields of the 62 held-out BCSS patients, five terms, on CONCH's 28 × 28 grid. Every row reads the CONCH image encoder, and UNI and Phikon are compared in Table 5. CAPTOR averages four vocabularies of words, chosen on the other 41 patients. The baselines compare the CONCH text embedding of each term with every patch, as dense scoring [14] or as SCLIP [15], and the hybrid compares it with the CAPTOR visual words instead. Propagated applies the propagation of Equation (13), and standardized rescales each term's scores over the scored fields without annotation. Intervals resample patients.
| Method | Text encoder | Propagated | Standardized | mIoU | CAPTOR – this [95% interval] |
|---|---|---|---|---|---|
| CAPTOR | ✓ | 0.497 | |||
| CAPTOR, one vocabulary | ✓ | 0.429 to 0.514 | |||
| Hybrid | ✓ | ✓ | ✓ | 0.495 | +0.001[-0.024, +0.037] |
| SCLIP | ✓ | ✓ | ✓ | 0.337 | +0.160[+0.111, +0.206] |
| Dense scoring | ✓ | ✓ | ✓ | 0.329 | +0.167[+0.111, +0.216] |
| Dense scoring | ✓ | ✓ | 0.302 | +0.194[+0.131, +0.242] | |
| Dense scoring | ✓ | 0.262 | +0.235[+0.195, +0.270] | ||
| SCLIP | ✓ | ✓ | 0.257 | +0.240[+0.190, +0.290] |
Table 5: Three image encoders read through CAPTOR on two organs, on the 14 × 14 grid all three produce. The settings of each family, per encoder for CAPTOR and for the baselines, are chosen on development patients (41 of 103 for BCSS, 10 of 25 for LUAD-HistoSeg) and read once on the rest. The baseline is the strongest reading of CONCH's own text encoder so chosen, given CAPTOR's propagation and a per-term standardization that reads no annotation. Only CONCH has a text encoder of its own. Differences are CAPTOR minus that baseline, with 95% intervals that resample patients.
| CAPTOR on | breast, BCSS | lung, LUAD-HistoSeg | ||
|---|---|---|---|---|
| mIoU | Minus baseline | mIoU | Minus baseline | |
| CONCH | 0.521 | +0.197[+0.140, +0.255] | 0.325 | -0.059[-0.113, -0.005] |
| UNI | 0.456 | +0.132[+0.077, +0.185] | 0.410 | +0.026[-0.056, +0.104] |
| Phikon | 0.299 | -0.025[-0.074, +0.021] | 0.374 | -0.010[-0.051, +0.033] |
| Baseline, CONCH text | 0.324 | 0.384 | ||
(Tables S22 and S23 in the supplement).
A new terminology starts without an aligned text encoder. On all 200 fields, dense scoring with a general-purpose text encoder reaches 0.084 mIoU, the domain text encoder CONCH 0.328, and CAPTOR with a single vocabulary 0.465. Re-estimated from subsets of the corpus and without the propagation, CAPTOR reaches 0.287 from 649 captions, 0.340 from 1,623 and 0.396 from all 32,463. Even the smallest subset exceeds the CONCH text encoder measured the same way, at 0.276, from far fewer captions than an aligned encoder is trained on (Table S19 in the supplement).

Figure 5: Named segmentation of breast fields with , four vocabularies and the propagation. The columns are the field, its annotation, the term CAPTOR scores highest, and SCLIP reading the CONCH text encoder with the same propagation and standardization, the strongest baseline of Table 4 that does not borrow the words of CAPTOR. Each row shows the field whose intersection over union (IoU) for its tissue is the median among the fields that tissue dominates, so the panel shows the typical case. Maps are drawn on the scoring grid, and each number is that field's mIoU. CAPTOR is ahead on four of the five fields.
6. Discussion
The CAPTOR vocabulary is the set of terms a caption corpus mentions often enough to clear their nulls. Objects and tissues are named in captions and bind well, while surfaces and materials are rarely named, so scene-parsing benchmarks built on them lie outside what the method addresses. The binding also inherits the level of detail of the captions, as lung stroma shows (Section 5.4). An object photographed almost always in one setting absorbs the words of that setting, which is where CAPTOR loses on COCO-Object. Attributes, relations and negation were not tested.
A second limit lies in the partition. Patches that share a visual word are identical to every term under the hard assignment, so CAPTOR cannot separate what the encoder partition does not separate. The soft assignment (Table S20 in the supplement), the propagation and joint words relax this, and averaging vocabularies fitted with different seeds removes most of the dependence on any one partition.
Captions supervise the table and development labels choose a few settings (Section 4), so CAPTOR is not free of supervision, and neither are the text encoders its baselines read. What it removes is gradient training on the pairs and the text encoder.
7. Conclusion
We introduced CAPTOR, which estimates the matrix that scores every term against every patch from captions over the visual words of a frozen encoder, where a vision-language model needs a text encoder to form it. On natural images, CAPTOR leads the training-free baselines on COCO, Pascal VOC and Cityscapes, and it is level there with a text alignment trained on the same backbone. In pathology, CAPTOR gives a text interface to encoders that have none, from captions alone and without gradients. Through it, an encoder trained on slides alone names breast tissue better than dense scoring with a trained pathology text encoder. Grounding text in images therefore does not require a text encoder, only captioned images and counting. This opens grounding to many specialized domains in which aligned text encoders and dense annotations are unavailable or costly to obtain.
CRediT authorship contribution statement
Elad Yoshai: Conceptualization, Methodology, Software, Validation, Formal analysis, Investigation, Data curation, Writing of the original draft, Visualization. Natan T. Shaked: Conceptualization, Supervision, Writing of the original draft, Writing, review and editing, Project administration.
Declaration of competing interest
The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
Data and code availability
All data are public and de-identified, so no institutional review board approval was required and no new patient data were collected. PathCap is distributed with PathAsst [27], and BCSS [28], LUAD-HistoSeg [29], COCO [10], Pascal VOC [11] and Cityscapes [12] are obtained from their published releases. Code to reproduce every number will be released publicly upon acceptance.
Declaration of generative AI and AI-assisted technologies in the writing process
During the preparation of this work the authors used Claude (Anthropic) to assist with editing the text, checking reported numbers against the experimental records, and writing analysis code. After using this tool, the authors reviewed and edited the content as needed and take full responsibility for the content of the publication.
Acknowledgements
This work was funded by a digital pathology grant from the Ministry of Science and Technology of Israel. We thank the maintainers of the public datasets used here and the authors of CONCH, UNI and Phikon for releasing model weights.
References
[1] M. Y. Lu, B. Chen, D. F. K. Williamson, et al., A visual-language foundation model for computational pathology, Nature Medicine 30 (3) (2024) 863-874. doi: 10.1038/s41591-024-02856-4.
[2] R. J. Chen, T. Ding, M. Y. Lu, et al., Towards a general-purpose foundation model for computational pathology, Nature Medicine 30 (3) (2024) 850-862. doi: 10.1038/s41591-024-02857-3.
[3] E. Vorontsov, A. Bozkurt, A. Casson, et al., A foundation model for clinical-grade computational pathology and rare cancers detection, Nature Medicine 30 (10) (2024) 2924-2935. doi:10.1038/s41591-024-03141-0.
[4] H. Xu, N. Usuyama, J. Bagga, et al., A whole-slide foundation model for digital pathology from real-world data, Nature 630 (8015) (2024) 181-188. doi: 10.1038/s41586-024-07441-w.
[5] L. Barsellotti, L. Bianchi, N. Messina, et al., Talking to DINO: Bridging self-supervised vision backbones with language for open-vocabulary segmentation, in: Proceedings of the IEEE/CVF International Conference on Computer Vision, 2025, pp. 22025-22035. doi: 10.1109/ICCV51701.2025.02045.
[6] Y. Mori, H. Takahashi, R. Oka, Image-to-word transformation based on dividing and vector quantizing images with words, in: First International Workshop on Multimedia Intelligent Storage and Retrieval Management, 1999.
[7] P. Duygulu, K. Barnard, N. de Freitas, et al., Object recognition as machine translation: Learning a lexicon for a fixed image vocabulary, in: Proceedings of the European Conference on Computer Vision, Vol. 2353 of LNCS, 2002, pp. 97-112. doi: 10.1007/3-540-47979-1_7.
[8] K. Barnard, P. Duygulu, D. Forsyth, et al., Matching words and pictures, Journal of Machine Learning Research 3 (2003) 1107-1135.
[9] A. Radford, J. W. Kim, C. Hallacy, et al., Learning transferable visual models from natural language supervision, in: Proceedings of the International Conference on Machine Learning, Vol. 139 of PMLR, 2021, pp. 8748-8763.
[10] T.-Y. Lin, M. Maire, S. Belongie, et al., Microsoft COCO: Common objects in context, in: Proceedings of the European Conference on Computer Vision, LNCS, 2014, pp. 740-755. doi:10.1007/978-3-319-10602-1_48.
[11] M. Everingham, S. M. A. Eslami, L. Van Gool, et al., The PASCAL visual object classes challenge: A retrospective, International Journal of Computer Vision 111 (1) (2015) 98-136. doi:10.1007/s11263-014-0733-5.
[12] M. Cordts, M. Omran, S. Ramos, et al., The Cityscapes dataset for semantic urban scene understanding, in: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2016, pp. 3213-3223. doi: 10.1109/CVPR.2016.350.
[13] Z. Huang, F. Bianchi, M. Yuksekgonul, et al., A visual-language foundation model for pathology image analysis using medical Twitter, Nature Medicine 29 (9) (2023) 2307-2316. doi:10.1038/s41591-023-02504-3.
[14] C. Zhou, C. C. Loy, B. Dai, Extract free dense labels from CLIP, in: Proceedings of the European Conference on Computer Vision, LNCS, 2022, pp. 696-712. doi:10.1007/978-3-031-19815-1_40.
[15] F. Wang, J. Mei, A. Yuille, SCLIP: Rethinking self-attention for dense vision-language inference, in: Proceedings of the European Conference on Computer Vision, LNCS, 2024, pp. 315-332. doi:10.1007/978-3-031-72664-4_18.
[16] M. Lan, C. Chen, Y. Ke, et al., ProxyCLIP: Proxy attention improves CLIP for open-vocabulary segmentation, in: Proceedings of the European Conference on Computer Vision, LNCS, 2024, pp. 70-88. doi:10.1007/978-3-031-73113-6_5.
[17] M. Oquab, T. Darcet, T. Moutakanni, et al., DINOv2: Learning robust visual features without supervision, Transactions on Machine Learning Research (2024).
[18] C. Jose, T. Moutakanni, D. Kang, et al., DINOv2 meets text: A unified framework for image- and pixel-level vision-language alignment, in: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2025, pp. 24905-24916. doi:10.1109/CVPR52734.2025.02319.
[19] N. Carion, L. Gustafson, Y.-T. Hu, et al., SAM 3: Segment anything with concepts, in: International Conference on Learning Representations, 2026.
[20] J. Shipard, A. Wiliem, K. N. Thanh, et al., Zoom-shot: Fast, efficient and unsupervised zero-shot knowledge transfer from CLIP to vision encoders, Pattern Recognition 172 (2026) 112323. doi:10.1016/j.patcog.2025.112323.
[21] A. Filiot, P. Jacob, A. Mac Kain, et al., Phikon-v2, a large and public feature extractor for biomarker prediction, arXiv preprint arXiv:2409.09173 (2024). doi:10.48550/arXiv.2409.09173.
[22] A. H. Song, G. Jaume, D. F. K. Williamson, et al., Artificial intelligence for digital and computational pathology, Nature Reviews Bioengineering 1 (12) (2023) 930-949. doi:10.1038/s44222-023-00096-8.
[23] R. Huang, H. Lin, W. Zhuo, et al., Fine-grained alignment in medical pathology vision-language models via variational distillation, Pattern Recognition 180 (2026) 114283. doi:10.1016/j.patcog.2026.114283.
[24] J. Jeon, V. Lavrenko, R. Manmatha, Automatic image annotation and retrieval using cross-media relevance models, in: Proceedings of the ACM SIGIR Conference on Research and Development in Information Retrieval, 2003, pp. 119-126. doi:10.1145/860435.860459.
[25] A. Dosovitskiy, L. Beyer, A. Kolesnikov, et al., An image is worth 16x16 words: Transformers for image recognition at scale, in: International Conference on Learning Representations, 2021.
[26] D. Arthur, S. Vassilvitskii, k-means++: The advantages of careful seeding, in: Proceedings of the ACM-SIAM Symposium on Discrete Algorithms, 2007, pp. 1027-1035.
[27] Y. Sun, C. Zhu, S. Zheng, et al., PathAsst: A generative foundation AI assistant towards artificial general intelligence of pathology, in: Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 38, 2024, pp. 5034-5042. doi:10.1609/aaai.v38i5.28308.
[28] M. Amgad, H. Elfandy, H. Hussein, et al., Structured crowdsourcing enables convolutional segmentation of histology images, Bioinformatics 35 (18) (2019) 3461-3467. doi:10.1093/bioinformatics/btz083.
[29] C. Han, J. Lin, J. Mai, et al., Multi-layer pseudo-supervision for histopathology tissue semantic segmentation using patch-level classification labels, Medical Image Analysis 80 (2022) 102487. doi:10.1016/j.media.2022.102487.
[30] T. Darcet, M. Oquab, J. Mairal, et al., Vision transformers need registers, in: International Conference on Learning Representations, 2024.
[31] M. Wysoczańska, O. Siméoni, M. Ramamonjisoa, et al., CLIP-DINOiser: Teaching CLIP a few DINO tricks for open-vocabulary semantic segmentation, in: Proceedings of the European Conference on Computer Vision, LNCS, 2024, pp. 320-337. doi:10.1007/978-3-031-73030-6_18.
[32] G. A. Miller, WordNet: A lexical database for English, Communications of the ACM 38 (11) (1995) 39-41. doi:10.1145/219717.219748.
[33] B. Efron, Bootstrap methods: Another look at the jackknife, The Annals of Statistics 7 (1) (1979) 1-26. doi:10.1214/aos/1176344552.
[34] E. J. Hu, Y. Shen, P. Wallis, et al., LoRA: Low-rank adaptation of large language models, in: International Conference on Learning Representations, 2022.
[35] J. Gamper, N. Alemi Koohbanani, K. Benes, et al., PanNuke dataset extension, insights and baselines, arXiv preprint arXiv:2003.10778 (2020). doi:10.48550/arXiv.2003.10778.
[36] J. N. Kather, J. Krisam, P. Charoentong, et al., Predicting survival from colorectal cancer histology slides using deep learning: A retrospective multicenter study, PLOS Medicine 16 (1) (2019) e1002730. doi:10.1371/journal.pmed.1002730.
[37] W. O. Ikezogwo, M. S. Seyfioglu, F. Ghezloo, et al., Quilt-1M: One million image-text pairs for histopathology, in: Advances in Neural Information Processing Systems, Vol. 36, 2023, pp. 37995-38017.
[38] S. Zhang, Y. Xu, N. Usuyama, et al., A multimodal biomedical foundation model trained from fifteen million image-text pairs, NEJM AI 2 (1) (2025) AIoa2400640. doi:10.1056/AIoa2400640.
Supplementary material
This supplement follows the order of the paper, and each table and figure can be read on its own from its caption.
The abbreviations follow the main text. CAPTOR is the Caption-Anchored Patch-Term Occurrence Representation. mIoU is the mean intersection over union (IoU) over classes, and AUC the area under the receiver operating characteristic curve. CLIP is Contrastive Language-Image Pre-training, COCO is Common Objects in Context, VOC is the Pascal Visual Object Classes benchmark, and BCSS is the Breast Cancer Semantic Segmentation dataset. LoRA is low-rank adaptation, SAM 3 is Segment Anything Model 3, PAMR is pixel-adaptive mask refinement, and CPU and GPU are the central and graphics processing units.
S1. Datasets, protocols and settings
The matched protocol scores only grid cells that one object class covers by more than half. Captions rarely name background, so scoring it would compare rejection thresholds rather than how methods score terms. The rule is the same for every method, so comparisons are valid, but its values are not comparable with published mIoU, which includes background. Every method reads the same single center crop, whereas the standard protocols run each baseline with its own released settings.
Terms are matched to captions through their WordNet [32] forms. When one term's name contains another, as "teddy bear" contains "bear", plain matching gives the two nearly the same signature. Two rules prevent this. A phrase is matched before its parts, and a word form shared with another term is dropped. Terms whose bare word is too general, such as "stop sign", require their full name, and the development images select eight such terms (Table S2). Neither rule changes anything on VOC or in pathology.
Two baselines are trained on the same 32,463 PathCap caption pairs that CAPTOR counts. Each tunes a text encoder against CONCH's frozen image encoder with a contrastive loss, training only rank-16 low-rank adapters (LoRA) [34] for six epochs. The adapted CONCH encoder tunes CONCH's own text encoder, with 1,179,648 trained parameters, and is the baseline for ranking fields (Table S21, Figure S8). The adapted CLIP encoder tunes the text encoder of CLIP ViT-B/32 [9] and adds a linear map into CONCH's image space, with 1,049,088 trained parameters. Its pairs are split by source article, and it is the baseline for naming visual words (Table S23).
Intervals are percentile bootstraps over images for natural images and over patients in pathology. NCT-CRC has no patient identifier, so its intervals resample tiles and may understate the uncertainty that patient grouping would add.
A journal article can reproduce a crop of a public cohort that an evaluation set also draws on. We therefore compared every evaluation image with all 110,000 PathCap figures by the cosine similarity of their CONCH image embeddings (Table S3). No pair reaches 0.95, and the 24 closest pairs show different images of similar tissue. A small crop inside a multi-panel figure would escape this test.
Table S1: Every dataset, what it is used for, and how it is split. Development images or patients choose settings, and reporting images or patients are scored once. A patient-level split keeps all images of one patient on one side. No evaluation image enters the table of signatures, which is counted from the caption corpus alone.
| Dataset | Use | Images | development / reporting |
|---|---|---|---|
| caption corpora | |||
| COCO training captions [10] | Table for natural images | 15,000, or 30,000 for VOC | Disjoint from evaluation |
| PathCap [27] | Table for pathology | 32,463 figures | Disjoint from evaluation |
| natural images | |||
| COCO validation | Matched protocol | 5,000 | 2,500 / 2,500 images |
| Pascal VOC 2012 val. [11] | Transfer from COCO | 1,449 | 724 / 725 images |
| COCO-Object [15] | Standard protocol | 5,000 | 2,500 / 2,500 images |
| Cityscapes val. [12] | Standard protocol | 500 | 250 / 250 images |
| pathology | |||
| BCSS [28] | Segmentation | 200 fields | 41 / 62 patients |
| LUAD-HistoSeg [29] | Segmentation | 607 tiles | 10 / 15 patients |
| LUAD-HistoSeg | Naming and field ranking | 564 tiles | Read once |
| PanNuke [35] | Naming and field ranking | 6,785 tiles, 19 organs | Read once |
| NCT-CRC [36] | Naming in a further organ | 1,980 tiles, 220 per class | Read once |
Table S2: Every constant, and where each was chosen. Values selected on development data are marked, and the rest are fixed once and never swept. The pathology column is the configuration Section 5.4 reports, in which the selection sets large and runs no recounting, which by Equation (15) is the averaged scoring rule. The development images select eight natural-image terms whose full name is required (Section 4). They are “traffic light”, “stop sign”, “parking meter”, “baseball bat”, “baseball glove”, “tennis racket”, “wine glass” and “hot dog”.
| Symbol | Meaning | Natural images | Pathology | Chosen |
|---|---|---|---|---|
| Words per vocabulary | 640 | 80 | Development | |
| Vocabularies averaged | 4 | 4 | Fixed | |
| Words a patch carries, Eq. (12) | 16 | 1 | Development | |
| Sharpness of those weights | 10 | 10 | Development | |
| Captions for half belief, Eq. (15) | 3 | Development | ||
| Responsibility floor, Eq. (16) | 0.1 | 0.1 | Fixed | |
| Responsibility sharpness, Eq. (16) | 1 | Not used | Development | |
| Recounting rounds | 1 | 0 | Development | |
| Affinity threshold and gain, Eq. (13) | 1.2, 3 | 1.2, 3 | Fixed | |
| Division by the null, Eq. (6) | On | Off | Development | |
| Permutation draws for | 200 | 200 | Fixed | |
| Null percentile | 95 | 95 | Fixed | |
| Development share, split seed | 0.5, 0 | 0.4, 0 | Fixed |
Table S3: Nearest PathCap figure for every evaluation image, by the cosine similarity of CONCH image embeddings. No evaluation image comes close to a duplicate, which would score near 1. One LUAD-HistoSeg archive entry is a file-system metadata file rather than an image and is excluded.
| Evaluation set | Images | Median | 99th percentile | Maximum | Above 0.95 |
|---|---|---|---|---|---|
| BCSS regions | 151 | 0.757 | 0.866 | 0.882 | 0 |
| BCSS tiles | 6,736 | 0.776 | 0.866 | 0.904 | 0 |
| LUAD-HistoSeg | 607 | 0.734 | 0.850 | 0.868 | 0 |
| PanNuke | 6,785 | 0.769 | 0.860 | 0.904 | 0 |
| NCT-CRC | 7,180 | 0.737 | 0.853 | 0.909 | 0 |
S2. The method on real images
Figure S1 draws two steps of Section 3 that Figure 2 leaves out, on COCO and from one vocabulary of the reported table.
(a)

(b)
Figure S1: Two further steps of the method on COCO, from one vocabulary of the reported table. (a) The contrast Equation (3) counts, for “cat” and the word its signature is largest on: the share of each image in that word, for images whose captions name “cat” and for the rest, with each group’s mean marked. Images whose captions name “cat” give that word a mean share of 0.071, against 0.00006 for the rest. (b) Why the score of Equation (15) blends two estimates. A joint word combines one word from each of the four vocabularies. The bars count joint words by the number of captioned images that contain them, and the red curve is the trust weight at . Of the 178,828 joint words, 83% appear in three images or fewer, where is at most one half. Most patches therefore rely mainly on the better-supported average of the four vocabularies, and only frequent joint words are trusted on their own.
S3. COCO under the matched protocol
This section gives the qualitative results on COCO, every ablation and the comparison of estimators. All tables use the COCO validation images and the table counted on the disjoint training captions.
The margin over ProxyCLIP given the same smoothing grows with (Table S5), from at , the one size at which ProxyCLIP leads, to at . From upward its interval excludes zero. Given the same smoothing, ProxyCLIP scores 0.506 on all 5,000 images at every .

Figure S2: COCO as a named segmentation, at the reported configuration. Each column is one validation image, chosen from the annotation alone and never from any method's output. It contains exactly two of the terms shown, each covering at least 35% of the center crop and together at least 70%, and no pair of terms appears twice. Row two is the term CAPTOR scores highest, and row three the same patches' visual words with no names attached. Rows four to six are Talk2DINO, SCLIP and ProxyCLIP from their authors' released code, and row seven is the annotation.
Table S4: Components of the natural-image method at , on 5,000 COCO validation images with the table estimated on the disjoint caption corpus. Captions here are read by the plain word-form rule rather than the phrase-aware reading of Section 4. These values are therefore comparable within this table and lower than those of Table S5. Registers uses DINOv2 with register tokens [30], extra tokens that absorb image-wide information that plain DINOv2 stores in a few background patches, so the patch features are cleaner. Propagation is of Equation (13). Synonyms also counts a caption as naming a term when it uses one of the term's WordNet forms, such as "sofa" for "couch". is the change from the first row. The last row removes the division by the permutation null of Equation (6) from the configuration above it, which leaves every term's ranking of patches unchanged.
| Configuration | mIoU | Acc. | Term AUC | |
|---|---|---|---|---|
| Base | 0.400 | 0.569 | 0.962 | |
| + synonyms | 0.393 | -0.008 | 0.627 | 0.961 |
| + registers | 0.458 | +0.058 | 0.597 | 0.967 |
| + propagation | 0.483 | +0.083 | 0.638 | 0.981 |
| + propagation + synonyms | 0.468 | +0.068 | 0.696 | 0.980 |
| + registers + synonyms | 0.459 | +0.059 | 0.658 | 0.966 |
| + registers + propagation | 0.510 | +0.110 | 0.643 | 0.984 |
| All three | 0.511 | +0.110 | 0.713 | 0.983 |
| All three, without null scaling | 0.429 | +0.028 | 0.483 | 0.983 |
Table S5: How the vocabulary size changes CAPTOR on COCO, with all 5,000 evaluation images scored. mIoU is CAPTOR's score. CAPTOR – ProxyCLIP subtracts the mIoU of ProxyCLIP given the same smoothing, which scores 0.506 on these images at every . The label-free score reads no annotation. Signatures counted on half of the captions rank the other half's images by whether their caption names the term, in AUC. CAPTOR improves steadily with and leads ProxyCLIP from upward. Because every image is scored, these values are comparable with each other but not with the held-out results of Table 2.
| 320 | 640 | 1280 | 1920 | 2560 | |
|---|---|---|---|---|---|
| mIoU | 0.490 | 0.532 | 0.541 | 0.556 | 0.561 |
| CAPTOR – ProxyCLIP | -0.016 | +0.025 | +0.035 | +0.050 | +0.055 |
| Label-free score | 0.9539 | 0.9570 | 0.9592 | 0.9598 | 0.9607 |
Table S6: How much each step of the method adds on COCO, scored on the 2,500 reporting images. Each row adds one change to the row above, and the last row is the configuration reported throughout the paper. Joint words, trust weights and 16 words per patch are Equations (14), (15) and (12), and reweighting is Equation (16). These steps of the method are worth +0.032 between them. The last two rows change only how captions are read (Section S1), and their gain falls on a few terms. "Teddy bear" rises from 0.001 to 0.706 mIoU and "hot dog" from 0.419 to 0.609, because every caption mentioning a bear or a dog had counted as evidence for them. Requiring the full name of every multi-word term instead is worse, at 0.543, since captions write "table" and "plant" rather than "dining table" and "potted plant".
| Configuration | mIoU | Acc. |
|---|---|---|
| Four vocabularies averaged, one word per patch | 0.503 | 0.714 |
| + joint words, trust weights, 16 words per patch | 0.525 | 0.739 |
| + one round of reweighting | 0.535 | 0.755 |
| + phrase-aware caption reading | 0.554 | 0.767 |
| + full name required for eight terms | 0.565 | 0.768 |
Table S7: Alternative ways to turn the counts into a term's signature, in mIoU at on all 5,000 COCO validation images. Each row replaces the difference of means of Equation (3) and keeps the same visual words, propagation and read-out. Point-biserial correlation correlates a word's share of each image with whether the caption names the term. Share of the word in images naming the term is its mean share in those images, and lift divides that by the word's mean share over the whole corpus. The statistic of Mori et al. [6] is the fraction of the word's patches that lie in images naming the term. The ridge fit regresses mentions on word shares in closed form, at the normalization it does best with, and the joint estimate is Equation (18). Raw uses each statistic as computed, and divided by its null divides it by its own permutation null, drawn with the same shuffles. Welch's divides the difference of means by its analytic standard error. Dividing by the null raises every statistic except the ridge fit and Welch's , which is already scaled, and Mori's share is best here, so Table S8 tests it in the full pipeline.
| Statistic | Raw | Divided by its null |
|---|---|---|
| Difference of means, Eq. (3) | 0.452 | 0.541 |
| Point-biserial correlation | 0.508 | 0.541 |
| Welch's , analytic standard error | 0.526 | 0.364 |
| Lift of the word under the term | 0.449 | 0.510 |
| Share of the word in images naming the term | 0.449 | 0.493 |
| Share of the word's patches naming the term [6] | 0.505 | 0.569 |
| Ridge fit of mentions on word shares | 0.541 | 0.456 |
| Joint estimate, ridge 0.01 | 0.477 | 0.538 |
Table S8: Whether the statistic of Mori et al. [6], the best in Table S7, also wins in the full reported COCO pipeline of four vocabularies of 640 words with joint words, trust weights, reweighting and propagation. Difference of means is Equation (3), and is the fraction of word 's patches in images whose caption names term . Each runs over the same grid of settings, , , and , chosen on the development half, and the reporting half is read once. The last two rows are Mori minus the difference of means, with intervals that resample reporting images. The difference of means is higher in mIoU and Mori's in accuracy, so the paper keeps the difference of means. On this grid the signature's chosen setting, , and , gives 0.567, against the 0.565 of the setting reported in the paper, and Mori's is , and .
| Estimator | Development mIoU | Reporting mIoU | Reporting accuracy |
|---|---|---|---|
| Difference of means | 0.576 | 0.567 | 0.771 |
| Mori et al. [6], | 0.563 | 0.555 | 0.806 |
| Mori – difference of means | -0.012 | +0.035 | |
| [-0.019, -0.003] | [+0.028, +0.043] |
Table S9: Whether estimating all terms jointly (Equation (18)) separates terms that appear together, COCO at . A microwave is almost always photographed beside an oven, so when each term is counted separately, the oven's visual words also become evidence for "microwave". Counting all terms at once lets each companion claim its own words. Separate is the difference of means, and the joint rows use the ridge given. Each pair column follows one class on the reporting half and gives the share of its cells labeled correctly. In brackets is the share labeled as its most frequent companion, such as a microwave labeled "oven". The joint estimate moves every pair toward the right label, most for microwave, whose correct share rises from 0.25 to 0.37 while its share labeled "oven" falls from 0.64 to 0.49. It slightly lowers mIoU on the development half, however, so COCO keeps the separate estimate. On VOC the development half selects it (Table S12).
| Estimate | mIoU, development | mIoU, reporting | Microwave (as oven) | Potted plant (as vase) | Cup (as dining table) |
|---|---|---|---|---|---|
| Separate | 0.550 | 0.532 | 0.25 (0.64) | 0.23 (0.50) | 0.21 (0.62) |
| Joint, 0.01 | 0.548 | 0.526 | 0.34 (0.54) | 0.25 (0.51) | 0.24 (0.56) |
| Joint, 0.001 | 0.542 | 0.522 | 0.37 (0.49) | 0.26 (0.52) | 0.25 (0.50) |
Table S10: What gives the trained alignment Talk2DINO its edge on COCO, the larger input or the pixel-adaptive refinement its released configuration applies. All rows use the same reporting images and each method's released code, and input is the image side in pixels. The refinement is generic post-processing taken from weakly supervised segmentation, and it adds the cost shown in Table S24. Applying the same refinement to CAPTOR's map, read here in single precision at 0.566, gives 0.570 mIoU, a paired difference of +0.004 with an interval from -0.003 to +0.009 that contains zero. The released configuration leads the unrefined CAPTOR by 0.022, with an interval from +0.010 to +0.037. About 0.014 of the gap comes from the refinement, which raises Talk2DINO by 0.013 at both input sizes but CAPTOR by only 0.004, and about 0.009 from the larger input. At the input CAPTOR reads and without refinement, the two are level.
| Input | Refinement | mIoU | Acc. | |
|---|---|---|---|---|
| CAPTOR | 196 | No | 0.565 | 0.768 |
| Talk2DINO | 196 | No | 0.566 | 0.746 |
| Talk2DINO | 196 | Yes | 0.579 | 0.759 |
| Talk2DINO | 448 | No | 0.575 | 0.753 |
| Talk2DINO | 448 | Yes | 0.588 | 0.764 |
S4. Ranking whole images for a term
The image-level scoring rule of Equation (8) ranks the 5,000 COCO evaluation images for each term (Table S11 and Figure S3), and Figure S4 draws one row of the matrix per query. The same rule ranks pathology fields in Section S7.
Figure 4 carries no annotation, so it illustrates rather than measures. Read as one term at each cell, six of the ten photographs take their own term as the most common object term. The other four lose it to something the photograph really contains, the person holding the dog, the table under the pizza, snow read as “skis” and “truck” for the rusted car.
Table S11: Whether the table of signatures can also find which images contain a term. For every term, all 5,000 COCO evaluation images are ranked, and AUC measures how often an image containing the term ranks above one that does not. CAPTOR scores an image by how much of it falls in each visual word, weighted by the term's signature (Equation (8)). The baseline is how CLIP itself ranks images, comparing its single image embedding with the term's text embedding averaged over eighty prompt templates. Stored per image is what each method keeps for an image, and ahead on counts the classes where CAPTOR ranks better. CAPTOR reaches 0.947 mean AUC against 0.903, ahead on 54 of 77 classes, a paired difference of +0.044 with interval from +0.040 to +0.048. At the difference is +0.043, so it does not depend on the vocabulary size. So word counts rank images better than CLIP's own embedding.
| Method | Stored per image | Mean AUC | Ahead on |
|---|---|---|---|
| CAPTOR | word counts | 0.947 | 54 of 77 |
| CLIP image embedding | 512 decimal numbers | 0.903 |
Green = the term is present, red = it is not.
The count is precision at the top, the AUC is over the whole ranking
Ours, counted table
CLIP pooled embedding

Figure S3: Which images each method ranks highest for a term. Each row is one term. The left four images are CAPTOR's top four, and the right four are the top four of the released CLIP model. A green border means the image contains the term, and a red one means it does not. Terms are spread evenly from rare to common.

Figure S4: Score maps for one term at a time. Each row shows an image containing the term, CAPTOR's map, the same term read by Talk2DINO, SCLIP and ProxyCLIP, and the annotation. Each image is the first validation image in which the term covers between a fifth and two thirds of the center crop, a rule fixed before drawing. Every map is rescaled over its own patches, so the colors compare shapes rather than strengths.
S5. Transfer to Pascal VOC
Pascal VOC 2012 [11] tests whether a table counted on COCO captions transfers to other photographs. Nothing is re-estimated, and VOC supplies only images and annotation. Nineteen of its twenty categories bind on the COCO captions. Every method is scored on the same 82,058 annotated cells, and the 1,449 validation images are split in half, one half to choose the configuration and the other to report. No prompts are tuned for VOC, and CAPTOR reads one backbone where ProxyCLIP reads two.
Table S12: Which CAPTOR setting works best when the table counted on COCO captions is used, unchanged, on Pascal VOC. The test uses the 1,449 VOC validation images and the 19 of 20 categories the COCO captions cover. Each row is one setting, a vocabulary size and a number of COCO captions counted. Development and reporting are CAPTOR's mIoU on the two halves of the images, ProxyCLIP is ProxyCLIP's reporting mIoU with the same propagation, and the last column is the difference. The development half picks the starred row. Among the plain settings it would pick counted on 30,000 captions, and every interval against ProxyCLIP, resampling images, contains zero, the widest running from to . Adding the joint estimate of Section 3.5 to that setting, with every COCO term as an extra term, raises the development half from 0.827 to 0.847, so it is picked. It leads ProxyCLIP with an interval from to , and SCLIP, at 0.750, by with an interval from to . The label-free rule of Section 4, which reads only the captions, would pick , the weakest of the settings counted on 30,000 captions, so that rule does not carry over to a new dataset.
| Captions counted | Development | Reporting | ProxyCLIP | CAPTOR – ProxyCLIP | |
|---|---|---|---|---|---|
| 1280 | 15,000 | 0.819 | 0.788 | 0.801 | −0.013 |
| 1920 | 15,000 | 0.810 | 0.776 | 0.801 | −0.026 |
| 320 | 30,000 | 0.825 | 0.813 | 0.801 | +0.011 |
| 640 | 30,000 | 0.827 | 0.807 | 0.801 | +0.005 |
| 960 | 30,000 | 0.810 | 0.783 | 0.801 | −0.018 |
| 640, joint* | 30,000 | 0.847 | 0.829 | 0.801 | +0.027 |
Table S13: How CAPTOR compares on the 725 VOC reporting images with Talk2DINO, a trained method that learns to align text and image features from COCO captions. CAPTOR uses the setting Table S12 picks, and Talk2DINO uses its own prompts for each class, on the same images and cells. Our input is 196 pixels, propagated adds CAPTOR's propagation, and as released is 448 pixels with a pixel-adaptive refinement. The last column is CAPTOR minus the row, with 95% intervals that resample images. CAPTOR is level with Talk2DINO at our input size, with or without CAPTOR's propagation, and the released configuration leads by 0.022 with an interval that only just excludes zero.
| Method | mIoU | CAPTOR – row |
|---|---|---|
| CAPTOR | 0.829 | |
| Talk2DINO, our input | 0.839 | −0.011[-0.030, +0.008] |
| Talk2DINO, our input, propagated | 0.844 | −0.016[-0.035, +0.003] |
| Talk2DINO, as released | 0.850 | −0.022[-0.042, -0.0002] |

Figure S5: Pascal VOC read with the table counted on COCO captions, with nothing re-estimated for VOC and the joint estimate the development half picks. The three images are those on which the methods disagree most, among validation images with two or more terms each covering over a quarter of the center crop. This rule never looks at which method is right, so it can show rows that favor any method. Columns are the image, the term CAPTOR scores highest, the visual words themselves without names, Talk2DINO, SCLIP and ProxyCLIP from their released code, and the annotation. Only the cells the annotation labels, which are the ones scored, are colored. In the first row SCLIP gives almost the whole image to “person” and misses the chair that CAPTOR and ProxyCLIP both find.
S6. COCO-Object under the standard protocol
COCO-Object scores every pixel of the 5,000 COCO validation images, with background as an eighty-first class (Table S14 and Figure S6). Every baseline reproduces its published number within 0.005. CAPTOR reaches 0.350 on the reporting half. That is above SCLIP at 0.335 and 0.023 below ProxyCLIP as released, at 0.373, and Talk2DINO as released leads, at 0.448. Given the same propagation as CAPTOR, ProxyCLIP falls to 0.353. The gap lies in where objects end rather than in what they are. Of all annotated object pixels, CAPTOR gives the right name to 0.632, against 0.462 for SCLIP, 0.429 for ProxyCLIP and 0.450 for Talk2DINO. The baselines call about half of all object pixels background. CAPTOR does the opposite and lets objects spread into the background around them, which mIoU penalizes. Its background reaches an IoU of 0.676, against 0.782 for Talk2DINO. COCO-Object's background is everything outside eighty object classes, and scene names are the terms a caption corpus supplies least well.
To recognize background, SCLIP adds a list of 26 scene names, such as “sky”, “road” and “wall”, and a pixel that best matches one of them is called background. CAPTOR is given the same list except “bed”, which is also one of the eighty object classes and so cannot stand for background as well. Its background threshold of 2.5 is chosen on the development half. Without scene names CAPTOR reaches only 0.261, and read at the 196 pixels its words were counted from it reaches 0.292. “Toaster” and “hair drier” are too rare to count and score zero.
On the first 500 images, CAPTOR calls 13.2% of background pixels an object more than 56 pixels from any object, against 2.0% for Talk2DINO. The names it paints there belong to objects with a typical setting, such as “surfboard”, “skis” and “sink”, whose visual words absorb that setting. SCLIP’s scene list has no “snow”, “water” or “tile” to claim them.
Two corrections chosen on the development half narrow this gap. Scene names from the 91 COCO-Stuff classes raise the reporting half from 0.350 to 0.356, and weighting the affinity of Equation (13) by the distance between cells adds 0.002, for 0.358 together. Estimating objects and scene terms jointly weakens the objects, at 0.333 on the development half. The baselines keep the paper’s propagation, so this is an analysis of CAPTOR and not a comparison.
Table S14: Whether each baseline’s published COCO-Object score can be reproduced, and where CAPTOR stands. COCO-Object scores every pixel of the 5,000 validation images, with background as an eighty-first class. Published is the score in each method’s paper, or for SCLIP in the repository whose code we run, since its paper reports 0.305 for an earlier version. Reproduced is our run of the released code on all images. The last two columns score only the reporting half, first as released and then with CAPTOR’s whole-image propagation. CAPTOR is read at 196 pixels or at each image’s full size, and its last row adds the background threshold chosen on the development half. Caption pairs is how much image-caption data each text side was learned from, the 400M pairs of CLIP, plus 83k COCO captioned images for the projection Talk2DINO trains, against the 15k captions CAPTOR counts. Bold marks the best value in each column. Every baseline reproduces its published number within 0.005. CAPTOR reaches 0.350, above SCLIP and below ProxyCLIP and Talk2DINO, and Section S6 shows that the gap comes from background pixels.
| Method | Caption pairs | Published | Reproduced | Reporting half | Reporting half, propagated |
|---|---|---|---|---|---|
| COCO-Object, 5,000 images | |||||
| SCLIP [15] | 400M | 0.335 | 0.337 | 0.335 | 0.346 |
| ProxyCLIP [16] | 400M | 0.375 | 0.371 | 0.373 | 0.353 |
| Talk2DINO, no refinement [5] | 400M + 83k | 0.410 | 0.412 | 0.408 | 0.439 |
| Talk2DINO, as released [5] | 400M + 83k | 0.451 | 0.451 | 0.448 | 0.434 |
| CAPTOR, at 196 pixels | 15k | 0.292 | |||
| CAPTOR, at native resolution | 15k | 0.318 | 0.317 | ||
| CAPTOR, native, development threshold | 15k | 0.350 | |||

Figure S6: COCO-Object images from the reporting half, chosen as typical, with every pixel scored and background as an eighty-first class. The four images were picked before any prediction was drawn, as those with two or more object classes whose CAPTOR mIoU is closest to the median of that pool, 0.344. Every method runs with the code and setting of its row in Table S14, and each number is that image's mIoU. CAPTOR is ahead on the second image and behind at least one baseline on the other three. Over the four images it gives the right name to 70% of object pixels, against 26% to 53% for the baselines, but calls 20% of the background an object, against 3% to 8%. In the last row "train" spreads over the platform, the error Section S6 measures.
S7. Pathology
This section gives every BCSS baseline, the result per tissue and per component, the configurations behind Table 5 with typical lung tiles (Figure S7), stain robustness, localization, field ranking and naming in further organs and encoders.
We tried a range of trust weights and reweighting settings on the development patients. The best choice was a very large with no reweighting, which reduces to the averaged scoring rule, and it reaches 0.469 mIoU on held-out patients. Forcing the natural-image setting lowers this to 0.455. That experiment drew its own random set of fields, covering 98 of the 103 patients, so its 0.469 cannot be compared directly with the 0.497 of Table 4. Reweighting has little to act on, since only 5.7% of the captions name two or more of the five terms.
Table S23 tests how well the visual words of six pathology encoders are named. Four were trained with captions, CONCH [1], PLIP [13], QuiltNet [37] and BiomedCLIP [38], and two without, UNI [2] and Phikon [21]. UNI and Phikon have no text encoder of their own, so their visual words can be named only by counting, as CAPTOR does, or by borrowing another model's text encoder. CAPTOR names a word by the term whose signature is largest on it, using only that encoder and the captions. The two text-encoder namers embed the 60 PathCap figures where the word is most common with CONCH and choose the closest of twelve tissue terms, using CONCH's text encoder or the adapted CLIP encoder. Each name is scored by
AUC on labelled tiles from NCT-CRC [36], LUAD-HistoSeg [29] and PanNuke [35] that were never used to choose a name.
Against the adapted CLIP encoder, CAPTOR is ahead in 12 of the 18 cells, and the mean difference is −0.002, so the two are level. CAPTOR leads in 10 of 12 cells on the encoders trained with captions and in 2 of 6 on UNI and Phikon. Against CONCH's released text encoder, it leads in all nine cells of CONCH, QuiltNet and BiomedCLIP and trails in all nine of PLIP, UNI and Phikon. Both text-encoder namers see the figures through CONCH, which CAPTOR on UNI or Phikon does not use.
The label-free rule for ranks held-out captions by their signatures. On PathCap it gives AUC 0.7830, 0.7964 and 0.8095 at and 320, so it selects , which the development patients rank worst. Separating captions keeps improving as grows, while segmenting five tissues peaks earlier.
Table S15: How CAPTOR compares with every other method that labels tissue patch by patch using the same image encoder, CONCH. All 200 BCSS fields from 103 patients are scored on a grid with five tissue terms, at and without propagation, so every method is compared in its plain form. A dagger marks methods that use CONCH's text encoder. Dense (MaskCLIP) compares each patch with the term's text embedding, and region-pooled first pools the patches of each grid cell. Self-affinity averages dense scores over similar-looking patches, as CLIP-DINOiser does, and re-encoding runs the encoder again on sixty-four crops per field. On our words averages a method's scores within each of CAPTOR's visual words, and soft assignment lets a patch belong to several words (Equation (12)). Standardized puts each term's scores on a common scale without reading any label. CAPTOR averages four vocabularies and leads the strongest baseline that does not borrow its words by +0.060. The two hybrids on its words lead CAPTOR by 0.030 to 0.035, so the visual words carry the gain. Each grid cell takes its most common annotated class, and cells whose class is not one of the five tissues are not scored. A single vocabulary ranges from 0.260 to 0.394 on these fields when each cell instead takes its most common of the five tissues, as in Table S17, which is why four are averaged. Most common tissue everywhere always guesses the most frequent tissue, and the supervised probe, trained on the labels, is an upper reference, not a method.
| Method | mIoU | Accuracy |
|---|---|---|
| Region-pooled on our words, standardized† | 0.404 | 0.668 |
| Dense on our words, standardized† | 0.399 | 0.664 |
| CAPTOR, four vocabularies | 0.369 | 0.644 |
| CAPTOR, soft assignment, standardized | 0.351 | 0.583 |
| SCLIP, standardized† | 0.309 | 0.506 |
| Self-affinity, standardized† | 0.306 | 0.518 |
| Region-pooled, standardized† | 0.306 | 0.519 |
| Region-pooled† | 0.290 | 0.487 |
| Self-affinity† | 0.286 | 0.479 |
| Dense MaskCLIP† | 0.264 | 0.460 |
| SCLIP† | 0.262 | 0.436 |
| Re-encoding, standardized† | 0.168 | 0.344 |
| Most common tissue everywhere | 0.085 | 0.426 |
| Re-encoding† | 0.060 | 0.093 |
| Supervised probe | 0.612 | 0.836 |
Table S16: Table S15 broken down by tissue, in IoU on the same fields. The first three rows are CAPTOR with one vocabulary at K = 40 and two baselines from that table, and bold marks the best of the three. CAPTOR is best on four of the five tissues, and region-pooled scoring leads on necrosis, 0.283 against 0.266. The fourth row is the configuration reported in Table 4, K = 80 with four vocabularies and the propagation, at 0.494 mIoU and 0.735 accuracy on all 200 fields, with the cell labels of Table S15. Its largest gain over one vocabulary is on necrosis. The supervised probe, trained on the labels, is an upper reference.
| Tumor | Stroma | Lymphocyte | Necrosis | Adipose | |
|---|---|---|---|---|---|
| CAPTOR, one vocabulary | 0.670 | 0.497 | 0.434 | 0.266 | 0.125 |
| Region-pooled, standardized | 0.420 | 0.395 | 0.377 | 0.283 | 0.056 |
| Dense (MaskCLIP) | 0.267 | 0.456 | 0.331 | 0.146 | 0.122 |
| CAPTOR, reported configuration | 0.738 | 0.470 | 0.502 | 0.577 | 0.181 |
| Supervised probe | 0.810 | 0.683 | 0.584 | 0.679 | 0.304 |
Table S17: What each part of the pathology method adds on BCSS, in mIoU on a 28 × 28 grid. Here each cell takes its most common of the five tissues, ignoring other classes, which is why the configuration that reads 0.494 in Table S16 reads 0.486 here. Single is the average score of four vocabularies, each used on its own, and ensemble combines the four into one score map. The first three rows use all 200 fields from 103 patients, and the last row is the held-out result of Table 4 on the 62 reporting patients. Combining the vocabularies adds 0.02 to 0.06, and at K = 80 the propagation adds 0.07 to the ensemble and 0.11 to one vocabulary. The propagation helps CAPTOR and the domain text encoder about equally, +0.051 and +0.052 at K = 40, so it is not what separates them. On the 66 development fields from 41 patients, the combined vocabularies reach 0.429, 0.452 and 0.429 mIoU at K = 40, 80 and 320. A middle K is best here because five tissue terms need far fewer words than the seventy-eight terms of COCO.
| Patients | K | Propagation | Single | Ensemble |
|---|---|---|---|---|
| All 103 | 40 | Yes | 0.427 | 0.451 |
| All 103 | 80 | No | 0.355 | 0.414 |
| All 103 | 80 | Yes | 0.467 | 0.486 |
| Held-out 62 | 80 | Yes | 0.475 | 0.497 |
Table S18: Table 5 broken down by tissue, to show where each encoder gains or loses. Entries are IoU per tissue, mIoU and pixel accuracy (acc.) on the reporting patients, 62 of 103 for BCSS and 15 of 25 for LUAD-HistoSeg. All use the 14 × 14 grid the three encoders share. LUAD-HistoSeg has no adipose class. Each method picks its settings on development patients. CAPTOR on CONCH uses K = 80 on breast and K = 40 with the joint estimate on lung. CAPTOR on UNI and on Phikon use K = 80 with the joint estimate and standardization, and the baseline is dense scoring with propagation and standardization. On lung, CAPTOR on CONCH labels most tumor-associated stroma as “tumor”, at 0.125 stroma IoU against 0.444 for the baseline, while CAPTOR on UNI, counted from the same captions, reaches 0.423. On the other three lung tissues CAPTOR on CONCH matches or beats the baseline, so its lung deficit comes from stroma alone.
| Method | Tumor | Stroma | Lymphocyte | Necrosis | Adipose | mIoU | Acc. |
|---|---|---|---|---|---|---|---|
| breast, BCSS | |||||||
| CAPTOR on CONCH | 0.766 | 0.455 | 0.494 | 0.644 | 0.248 | 0.521 | 0.745 |
| CAPTOR on UNI | 0.704 | 0.541 | 0.507 | 0.361 | 0.166 | 0.456 | 0.713 |
| CAPTOR on Phikon | 0.522 | 0.417 | 0.410 | 0.092 | 0.054 | 0.299 | 0.552 |
| Baseline, CONCH text | 0.463 | 0.389 | 0.396 | 0.298 | 0.075 | 0.324 | 0.539 |
| lung, LUAD-HistoSeg | |||||||
| CAPTOR on CONCH | 0.538 | 0.125 | 0.420 | 0.217 | 0.325 | 0.547 | |
| CAPTOR on UNI | 0.343 | 0.423 | 0.574 | 0.299 | 0.410 | 0.570 | |
| CAPTOR on Phikon | 0.666 | 0.393 | 0.311 | 0.126 | 0.374 | 0.649 | |
| Baseline, CONCH text | 0.524 | 0.444 | 0.357 | 0.212 | 0.384 | 0.606 | |

Figure S7: Lung tiles from the LUAD-HistoSeg reporting patients, chosen as typical, with the settings of Table S18. For each tissue, the row shows the tile, among those mostly of that tissue, on which CAPTOR on CONCH scores the median. Maps are drawn on the 14 × 14 grid that is scored, and each number is that tile’s mIoU. White cells are less than half annotated and are not scored. The baseline reads CONCH’s text encoder with CAPTOR’s propagation and standardization. CAPTOR on CONCH leads on the lymphocyte tile, is level on necrosis and falls behind on tumor and stroma. On the stroma tile both CAPTOR rows name most cells “lymphocyte” or “necrosis”, while the baseline names about half of them stroma.
Table S19: Two separate checks in pathology, in mIoU on the 200 BCSS fields. (a) Whether tissue terms can be read without a pathology text encoder, at with propagation. CAPTOR uses no text encoder, and the other two rows name the tissues through a general text encoder (CLIP) or through CONCH's pathology text encoder. CAPTOR scores well above both. Counted from fewer captions and measured without propagation, it reaches 0.287 mIoU from 649 captions, 0.340 from 1,623 and 0.396 from all 32,463, so from 649 captions it already exceeds CONCH's text encoder measured the same way, without propagation, at 0.276. (b) Whether stain differences between slides break the visual words, at with one vocabulary and no propagation. Stain jitter shifts the colors enough to move 16% of patches to a different visual word, yet CAPTOR drops only by 0.010. Dense scoring with CONCH's text encoder is shown for reference.
| Setting | mIoU |
|---|---|
| (a) reading terms without a pathology text encoder | |
| General text encoder (CLIP), dense | 0.084 |
| Domain text encoder (CONCH), standardized | 0.328 |
| Same, without propagation | 0.276 |
| CAPTOR, no text encoder | 0.465 |
| (b) robustness to stain differences | |
| CAPTOR, no perturbation | 0.394 |
| CAPTOR, 16% of patches reassigned | 0.384 |
| Dense scoring, no perturbation | 0.263 |
| Dense scoring, 16% of patches reassigned | 0.267 |
Table S20: How well each method finds one named tissue at a time. This is easier than segmentation, because the scores of different terms never need to be compared. Each tissue is scored patch by patch against the BCSS annotation on the 200 fields of Table S15, in AUC, where 0.5 is chance. Hard gives each patch one visual word and soft lets it belong to several (Equations (10) and (12)), and the other columns are the text-encoder methods of Table S15. Every method except re-encoding needs one pass of the encoder, and none uses labels. Intervals over patients run to about , and bold marks the best method in each row. The soft assignment raises CAPTOR from 0.791 to 0.867, level with the best method, region-pooled scoring, at 0.873. This suggests that CAPTOR's lead in Table S15 comes from putting all terms on one scale rather than from finding each tissue better.
| Tissue | CAPTOR Hard | CAPTOR Soft | Region-Pooled | Self-Affinity | SCLIP | Dense | Re-Encoding |
|---|---|---|---|---|---|---|---|
| Adipose | 0.887 | 0.958 | 0.985 | 0.980 | 0.980 | 0.972 | 0.733 |
| Necrosis | 0.802 | 0.875 | 0.912 | 0.912 | 0.940 | 0.900 | 0.794 |
| Lymphocyte | 0.830 | 0.909 | 0.895 | 0.891 | 0.920 | 0.868 | 0.630 |
| Stroma | 0.676 | 0.753 | 0.833 | 0.836 | 0.788 | 0.819 | 0.603 |
| Tumor | 0.761 | 0.838 | 0.742 | 0.724 | 0.684 | 0.699 | 0.677 |
| Mean | 0.791 | 0.867 | 0.873 | 0.869 | 0.863 | 0.851 | 0.687 |
Table S21: Whether CAPTOR ranks whole pathology fields by tissue better than a text encoder trained on the same captions. Each field gets one score per term from the image-level rule of Equation (8), and AUC measures how well the fields containing the tissue rank above the rest. Each row is one pair of a dataset and a tissue term. Released is CONCH's text encoder as released. Adapted is the same encoder fine-tuned on the caption pairs CAPTOR counts, keeping its weights and the image encoder frozen and training only rank-16 LoRA adapters (Section S1). The last column is CAPTOR minus adapted, with intervals over patients, or over organs for PanNuke, and bold marks intervals that exclude zero. CAPTOR leads by +0.087 on average, ahead on 12 of 13 pairs and clearly ahead on eight, with none clearly behind. So counting the captions ranks fields better than the text encoder adapted on them here. Against the released encoder CAPTOR leads on seven of the thirteen pairs with a mean of +0.038. Four independently seeded vocabularies give means of +0.087, +0.083, +0.101 and +0.086 over the adapted encoder.
| Corpus | Term | CAPTOR | Released | Adapted | CAPTOR – adapted |
|---|---|---|---|---|---|
| LUAD | Tumor | 0.842 | 0.678 | 0.562 | +0.279[+0.188, +0.364] |
| LUAD | Stroma | 0.757 | 0.608 | 0.559 | +0.199[+0.018, +0.387] |
| BCSS | Tumor | 0.944 | 0.643 | 0.748 | +0.195[+0.159, +0.231] |
| BCSS | Stroma | 0.838 | 0.824 | 0.652 | +0.186[+0.123, +0.254] |
| PanNuke | Stroma | 0.666 | 0.701 | 0.603 | +0.063[+0.011, +0.111] |
| BCSS | Lymphocyte | 0.908 | 0.860 | 0.853 | +0.055[+0.033, +0.081] |
| LUAD | Necrosis | 0.891 | 0.972 | 0.838 | +0.053[-0.010, +0.110] |
| LUAD | Lymphocyte | 0.968 | 0.922 | 0.922 | +0.047[+0.023, +0.078] |
| BCSS | Adipose | 0.968 | 0.938 | 0.940 | +0.028[+0.009, +0.045] |
| PanNuke | Tumor | 0.767 | 0.773 | 0.751 | +0.017[-0.073, +0.114] |
| BCSS | Necrosis | 0.831 | 0.902 | 0.825 | +0.006[-0.025, +0.036] |
| PanNuke | Epithelium | 0.743 | 0.790 | 0.737 | +0.006[-0.037, +0.130] |
| PanNuke | Inflammatory | 0.796 | 0.820 | 0.796 | 0.000[-0.021, +0.041] |

Figure S8: Score maps for one tissue term at a time on BCSS fields. Each field is the first in which the queried tissue covers more than a third of the annotation, a rule fixed before drawing. Row two is CAPTOR's map, which looks up the term's signature at each patch's visual word. Row three is the same term read by the adapted CONCH encoder, and row four is the annotation for that term. All maps are rescaled to a common range.
Table S22: Whether the names CAPTOR learns from captions still work in a dataset it never saw. The test uses the nine expert classes of NCT-CRC colorectal tiles, and everything is fixed before NCT-CRC is touched. For each term, AUC measures how well it separates the tiles of its class from the other eight, where 0.5 is chance. Name scores a tile by how much of it falls in the single visual word named after the term, and signature uses the term's whole signature (Equation (8)). Best is the single visual word that separates each class best, chosen by reading the labels, so it is an upper reference for name. Class code is NCT-CRC's own abbreviation, and ± is the half-width of a 95% interval over tiles, since this dataset has no patient identifiers. Nine of the twelve names separate their class with AUC above 0.75, and the whole signature raises the mean from 0.787 to 0.902, against 0.970 for the reference.
| Term | Class code | Name | ± | Signature | Best |
|---|---|---|---|---|---|
| Lymphocyte | LYM | 0.999 | ±0.001 | 0.977 | 0.999 |
| Lymphoid | LYM | 0.999 | ±0.001 | 0.977 | 0.999 |
| Adipose | ADI | 0.997 | ±0.004 | 0.993 | 0.997 |
| Necrosis | DEB | 0.874 | ±0.029 | 0.853 | 0.907 |
| Gland | NORM | 0.836 | ±0.025 | 0.929 | 0.991 |
| Glandular | NORM | 0.836 | ±0.025 | 0.929 | 0.991 |
| Carcinoma | TUM | 0.782 | ±0.030 | 0.941 | 0.955 |
| Stroma | STR | 0.764 | ±0.022 | 0.828 | 0.931 |
| Muscle | MUS | 0.753 | ±0.033 | 0.920 | 0.932 |
| Tumor | TUM | 0.645 | ±0.033 | 0.792 | 0.955 |
| Epithelium | NORM | 0.504 | ±0.009 | 0.894 | 0.991 |
| Mucin | MUC | 0.451 | ±0.023 | 0.789 | 0.993 |
| Mean | 0.787 | 0.902 | 0.970 |
Table S23: Whether counting can name the visual words of other pathology encoders as well as a text encoder can. Each of six encoders has its own visual words, and each method names every word with one of twelve tissue terms. The names are tested on three labelled datasets no method saw, colorectal (NCT-CRC), lung (LUAD-HistoSeg) and 19 organs (PanNuke), in mean AUC. CAPTOR names a word from the captions alone. CONCH text and adapted CLIP instead look at the PathCap figures where the word is most common and pick the term whose text embedding is closest. They use CONCH's released text encoder or a CLIP text encoder trained on the same captions. The last column is CAPTOR minus adapted CLIP. CAPTOR is ahead in 10 of 12 cells on the four encoders trained with captions and in 2 of 6 on UNI and Phikon, which were trained without text. Overall it is level with the adapted encoder. So counting names any encoder's visual words about as well as a text encoder trained on the same captions, without gradient training. Of the three routes, it is the only one that needs nothing beyond the encoder and the captions.
| Encoder | Dataset | CAPTOR | CONCH text | Adapted CLIP | CAPTOR – adapted |
|---|---|---|---|---|---|
| CONCH | Colorectal | 0.835 | 0.684 | 0.773 | +0.062 |
| Lung | 0.794 | 0.784 | 0.790 | +0.004 | |
| 19 organs | 0.711 | 0.666 | 0.720 | -0.009 | |
| PLIP | Colorectal | 0.714 | 0.798 | 0.663 | +0.051 |
| Lung | 0.767 | 0.777 | 0.756 | +0.011 | |
| 19 organs | 0.685 | 0.730 | 0.657 | +0.028 | |
| QuiltNet | Colorectal | 0.723 | 0.700 | 0.643 | +0.080 |
| Lung | 0.658 | 0.631 | 0.711 | -0.053 | |
| 19 organs | 0.640 | 0.613 | 0.637 | +0.004 | |
| BiomedCLIP | Colorectal | 0.823 | 0.633 | 0.776 | +0.046 |
| Lung | 0.787 | 0.633 | 0.729 | +0.058 | |
| 19 organs | 0.651 | 0.529 | 0.628 | +0.022 | |
| UNI | Colorectal | 0.659 | 0.686 | 0.597 | +0.062 |
| Lung | 0.648 | 0.746 | 0.827 | -0.179 | |
| 19 organs | 0.666 | 0.716 | 0.663 | +0.003 | |
| Phikon | Colorectal | 0.676 | 0.764 | 0.746 | -0.070 |
| Lung | 0.691 | 0.759 | 0.791 | -0.100 | |
| 19 organs | 0.555 | 0.584 | 0.606 | -0.051 |
S8. Cost and data efficiency
Table S24 compares the term side of each method on natural images, how a term is prepared and how much it costs to answer, since the image encoder costs every method about the same. Table S25 compares building CAPTOR's pathology table with training the adapted CLIP encoder of Section S1 on the same captions. On the same GPU, building CAPTOR's whole table, including k-means and the permutation nulls, takes 4.3 s without gradients, against 160.5 s and 6,084 gradient steps to train the adapter. On the CPU alone CAPTOR needs 57.2 s. All times in this section were measured on the same machine, one NVIDIA RTX 5070 Ti with 16 GB, an AMD Ryzen 7 7800X3D, PyTorch 2.10 and CUDA 12.8.
Table S24: The term side of each method on COCO, measured on the same GPU, since every method encodes the image with a comparable backbone. Learned values are the numbers each method estimates from data, by gradient descent for the text routes and by clustering and counting for CAPTOR. Preparation is what must happen before the first query. CAPTOR builds its table from the 15,000 captions, after the image encoder pass all methods share. The text routes use CLIP's text encoder as pretrained on about 400 million image and text pairs, and Talk2DINO adds a projection its authors trained on COCO captions. Inference makes one new term queryable, a text encoder pass over 80 prompts for CLIP and 7 for Talk2DINO, or counting the captions for CAPTOR. That count covers caption matching from a prebuilt word index, the signatures and their 200 permutation draws for four vocabularies, and the joint words, but not the caption-conditioned reweighting. So CAPTOR learns its values from captions in seconds, without gradients or a pretrained text model, and adds a term with about thirty times less computation than CLIP. Once a term is prepared, scoring an image against it takes every method a fraction of a millisecond. For scale, encoding an image takes 2.29 ms for CAPTOR and 2.17 ms for Talk2DINO at a batch of 32. Labelling one image with all 78 terms takes 8.2 ms for CAPTOR against 387 ms for Talk2DINO's released refinement.
| CAPTOR | CLIP text encoder(SCLIP, ProxyCLIP) | Talk2DINO | |
|---|---|---|---|
| Learned values | 16.1 M | 63.4 M | 72.0 M |
| Preparation | 8.6 s, countingand k-means | Pretrainedby OpenAI | CLIP pretrained,projection trainedon COCO captions |
| Inference time | 3.2 ms | 37.3 ms | 6.3 ms |
| Inference compute | 15.4 GFLOPs | 476.8 GFLOPs | 41.7 GFLOPs |
Table S25: The time it takes to turn a set of captions into a naming table, the table that gives each visual word a name, for CAPTOR and for a CLIP text encoder adapted with low-rank adapters. Both first need the image embeddings of the captioned figures, and that shared step is left out. Both are timed on the same GPU. The table shows the part that grows with the number of caption pairs. For CAPTOR this is counting, and for the adapter it is training, with its steps and trained parameters. The adapter trains rank-16 LoRA on the query and value projections of CLIP's text encoder and a linear head, with a cosine regression loss, for six epochs or more where needed to reach at least 600 steps. CAPTOR also runs two steps only once, building its visual words with k-means (4.2 s) and the permutation nulls (0.12 s). Including them it needs 4.3 s in total, against 160.5 s of training and 1.3 GB of GPU memory for the adapter. On the CPU alone CAPTOR needs 57.2 s. Training uses batch size 32, and counting times are the median of three repeats. Counting takes milliseconds, and even with its one-off steps CAPTOR builds the table far faster than the adapter trains, and still faster on the CPU alone.
| Caption pairs | CAPTOR counting | Adapter training | Adapter steps | Adapter parameters |
|---|---|---|---|---|
| 500 | 0.0014 s | 16.6 s | 600 | 1.25 M |
| 1,000 | 0.0018 s | 16.2 s | 620 | 1.25 M |
| 2,000 | 0.0033 s | 16.2 s | 620 | 1.25 M |
| 4,000 | 0.0063 s | 19.4 s | 750 | 1.25 M |
| 8,000 | 0.0123 s | 41.5 s | 1,500 | 1.25 M |
| 32,463 | 0.0484 s | 160.5 s | 6,084 | 1.25 M |
S9. A mask-supervised reference
SAM 3 [19] segments every instance of a named concept. Unlike CAPTOR, which counts captions over a frozen encoder, it is trained with gradients on millions of labelled masks, carries its own text encoder and uses far more data. It is therefore a reference rather than a baseline. Table S26 runs the released model on a fixed subset of every segmentation benchmark, with CAPTOR scored on the same images. SAM 3 leads on the four natural-image benchmarks. In pathology it finds nuclei but no tissue regions and names every tile “lymphocyte”, so CAPTOR leads on breast and lung. SAM 3’s training data include fifteen external datasets with instance masks that its paper does not name, so overlap with the COCO, VOC and Cityscapes images cannot be ruled out. This suggests that in specialized domains, where direct text-image labels are often unavailable, CAPTOR shows its advantage.
Table S26: How the released SAM 3, a model trained on millions of labelled masks, compares with CAPTOR on the same images. Each benchmark uses a fixed part of its reporting half. That is 250 images drawn with seed 0 on COCO, VOC and COCO-Object, all 250 reporting images on Cityscapes, and every reporting tile in pathology. Each keeps the protocol and CAPTOR setting of its table in the paper, and SAM 3 uses its own released decision rule. Scored says what each protocol scores: objects are grid cells covered by one object, all pixels include background, and tissues are grid cells of annotated tissue. The two are not comparable models, as Section S9 explains. The last column is SAM 3 minus CAPTOR, with 95% intervals over images, or patients in pathology. SAM 3 leads on every natural-image benchmark and fails in pathology, where it names every tile “lymphocyte”.
| Benchmark | Scored | Images | CAPTOR | SAM 3 | SAM 3 – CAPTOR |
|---|---|---|---|---|---|
| COCO | Objects | 250 | 0.517 | 0.753 | +0.236[+0.190, +0.288] |
| Pascal VOC | Objects | 250 | 0.820 | 0.951 | +0.131[+0.093, +0.176] |
| COCO-Object | All pixels | 250 | 0.304 | 0.609 | +0.306[+0.265, +0.338] |
| Cityscapes | All pixels | 250 | 0.559 | 0.704 | +0.145[+0.115, +0.212] |
| BCSS (breast) | Tissues | 134 tiles62 patients | 0.521 | 0.023 | -0.498[-0.556, -0.436] |
| LUAD-HistoSeg (lung) | Tissues | 367 tiles15 patients | 0.325 | 0.020 | -0.305[-0.361, -0.239] |