Choose a finding to explore its representative tissue crop. BiomedCLIP and KEEP rank the same nine descriptions against it.
Loading tissue crops…
Actual crop used for search
Used only to check the results after the search.
Both models rank the same nine finding descriptions. Rank 1 is the closest match.
| Rank | BiomedCLIP | KEEP |
|---|
We fixed each target and crop before scoring. Lesion crops came from eligible cores in the reconstructed test set for which native images were available. The table counts how often each model ranked the reference finding first among nine English descriptions on 328 lesion crops and 10 normal controls from 161 cores.
| Target finding | Crops | BiomedCLIP | KEEP |
|---|---|---|---|
| Pattern 3 · discrete glands | 73 | 9/73 | 18/73 |
| Pattern 4 · fused glands | 102 | 0/102 | 14/102 |
| Pattern 4 · cribriform | 47 | 6/47 | 29/47 |
| Pattern 4 · glomeruloid | 10 | 2/10 | 0/10 |
| Pattern 5 · solid | 39 | 3/39 | 2/39 |
| Pattern 5 · cords | 32 | 18/32 | 6/32 |
| Pattern 5 · single cells | 12 | 3/12 | 5/12 |
| Pattern 5 · comedonecrosis | 13 | 1/13 | 5/13 |
| Vendor-labelled normal control | 10 | 2/10 | 10/10 |
The 338 evaluations use 304 distinct crop images because one crop can represent multiple findings. Of 328 lesion crops, 255 had another finding marked in the same crop. Only the preselected reference counts as a match. Normal controls use the tissue provider’s whole-core classification.
We ran one encrypted search per finding–crop pair using the production library. Both models returned the same first result as plaintext for all 338/338 pairs. All nine ranks matched on 337/338 for BiomedCLIP and 336/338 for KEEP. Lower-ranked descriptions with nearly equal scores can switch places.
The browser sends the selected public case ID to the server. That server holds the prepared image vectors and keys, evaluates ciphertexts and decrypts the scores. Protecting a hospital query from an external evaluator requires a separately verified deployment with independent key custody.
Both roles run on the demo server. For each model, the client encrypts the prepared crop embedding and the search service scores it against the public descriptions. The client decrypts and averages four independent searches to rank all nine.
Harvard Dataverse core images are CC0; other core images are attributed by source. Harvard Dataverse · Finding annotations: GleasonXAI (CC BY 4.0). See the legacy provenance for TissueArray.com source and licensing details. Representative selection and sources · Core candidate data (CSV) · Legacy crop provenance
Upload a chest X-ray or describe findings in text. The demo server embeds the input, encrypts the vector with CKKS and searches over 3,000 encrypted radiology reports from the IU X-Ray dataset.
| Dataset | |
|---|---|
| Name | IU X-Ray (Indiana University Chest X-rays) |
| Source | HuggingFace ykumards/open-i |
| Size | 3,666 image-report pairs |
| Modalities | Frontal chest X-ray (JPEG) + radiology findings (free text) |
| Annotations | MeSH terms, clinical problems, indication, impression |
| Embedding Model | |
| Name | BiomedCLIP-PubMedBERT_256-vit_base_patch16_224 |
| Publisher | Microsoft Research |
| Architecture | PubMedBERT (text) + ViT-B/16 (vision) |
| Dimension | 512 |
| Similarity | Cosine (L2-normalized embeddings) |
| Encryption | |
| Scheme | CKKS |
| Security | 128-bit (quantum-safe lattice) |
| Mode | CC — both query and database vectors encrypted |
| Library | libevi (CryptoLab HEaaN) |
| Compute Environment | |
| Backend | CPU only (HEM CPU backend) |
| Threads | 8 (OMP_NUM_THREADS=8) |
| Embedding | BiomedCLIP on CPU (~1s per query) |
| Encrypted Search | ~300ms for 3,666 encrypted vectors |