Model card: name as Hyper3-CLIP, add paper/code links, clarify objective and limitations
Browse files
README.md
CHANGED
|
@@ -11,52 +11,77 @@ tags:
|
|
| 11 |
- scratch-training
|
| 12 |
---
|
| 13 |
|
| 14 |
-
# Hyper3-CLIP
|
| 15 |
|
| 16 |
-
Hyper3-CLIP
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
-
This repository publishes the raw PyTorch
|
| 19 |
-
500k-step
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
## Artifact
|
| 25 |
|
| 26 |
- Checkpoint: `checkpoint_final.pt`
|
| 27 |
- Config: `config.yaml`
|
| 28 |
- Training metadata: `metadata.json`
|
| 29 |
-
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
-
|
| 33 |
-
- Text
|
| 34 |
-
- Embedding dimension: 512
|
| 35 |
-
-
|
| 36 |
-
-
|
|
|
|
| 37 |
|
| 38 |
## Evaluation
|
| 39 |
|
| 40 |
-
The `eval/` directory
|
| 41 |
-
raw wide summary row
|
| 42 |
|
| 43 |
-
Headline row from the local full eval:
|
| 44 |
-
|
| 45 |
-
- ImageNet top-1: 46.984%
|
| 46 |
- COCO I2T/T2I R@10: 84.30 / 73.19
|
| 47 |
- Flickr I2T/T2I R@10: 97.60 / 91.44
|
|
|
|
| 48 |
- WordNet hierarchy: TIE 3.1597, LCA 2.0786, Jaccard 0.8179
|
| 49 |
- PEP AUC/AP: 96.07 / 69.36
|
| 50 |
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
|
| 56 |
## Loading
|
| 57 |
|
| 58 |
-
This is a raw training checkpoint. Use the hyper³labs
|
| 59 |
-
|
|
|
|
| 60 |
`checkpoint_final.pt`.
|
| 61 |
|
| 62 |
```python
|
|
@@ -66,6 +91,20 @@ checkpoint = torch.load("checkpoint_final.pt", map_location="cpu", weights_only=
|
|
| 66 |
state_dict = checkpoint.get("model", checkpoint)
|
| 67 |
```
|
| 68 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
## License And Attribution
|
| 70 |
|
| 71 |
The model materials in this repository are released under OpenMDW-1.0.
|
|
|
|
| 11 |
- scratch-training
|
| 12 |
---
|
| 13 |
|
| 14 |
+
# Hyper3-CLIP
|
| 15 |
|
| 16 |
+
Hyper3-CLIP is a hyperbolic vision-language model from hyper³labs. Its 512-d
|
| 17 |
+
image and text projections are lifted onto a Lorentz hyperboloid of learned
|
| 18 |
+
curvature and trained with entailment objectives over a rule-based caption
|
| 19 |
+
hierarchy, so that broader concepts and their more specific descriptions are
|
| 20 |
+
related by explicit part-whole and parent-child terms rather than by cosine
|
| 21 |
+
similarity alone.
|
| 22 |
|
| 23 |
+
This repository publishes the raw PyTorch checkpoint for the completed
|
| 24 |
+
500k-step scratch run reported in the paper. It is separate from the
|
| 25 |
+
pretrained-base [Hyper3-CLIP v1](https://huggingface.co/hyper3labs/hyper3-clip-v1)
|
| 26 |
+
SentenceTransformers release, which is a different model line; do not mix
|
| 27 |
+
results between the two.
|
| 28 |
+
|
| 29 |
+
- Paper: [Hyper3-CLIP: Hierarchy-Conditioned Hyperbolic Vision-Language Training](https://arxiv.org/abs/2608.29313) (arXiv:2608.29313)
|
| 30 |
+
- Code: [github.com/Hyper3Labs/hyper3-clip](https://github.com/Hyper3Labs/hyper3-clip)
|
| 31 |
+
- Venue: oral at the [Beyond Euclidean](https://sites.google.com/view/beyondeuclidean/home) workshop, ECCV 2026
|
| 32 |
+
|
| 33 |
+
## What the model does
|
| 34 |
+
|
| 35 |
+
During training, each caption is decomposed into a small hierarchy of queries:
|
| 36 |
+
the full caption, sentence fragments, localized part descriptions, and extracted
|
| 37 |
+
phrases. Each query conditions an 8-head cross-attention pooling over the image
|
| 38 |
+
patch tokens and instantiates its own visual node in the shared hyperbolic
|
| 39 |
+
space. Those nodes are supervised through three entailment relations, alongside
|
| 40 |
+
the base contrastive and grounded box-level entailment objective.
|
| 41 |
+
|
| 42 |
+
Query-conditioned pooling is active only during training. At inference the model
|
| 43 |
+
is a standard dual encoder and the pooling module adds no computation.
|
| 44 |
|
| 45 |
## Artifact
|
| 46 |
|
| 47 |
- Checkpoint: `checkpoint_final.pt`
|
| 48 |
- Config: `config.yaml`
|
| 49 |
- Training metadata: `metadata.json`
|
| 50 |
+
- Base objective: `uncha` (`model.objective`), with query-conditioned pooling
|
| 51 |
+
supplied by the `model.beta_clip_*` keys and `data.beta_clip`; see
|
| 52 |
+
`config.yaml` for the full loss configuration
|
| 53 |
+
- Vision backbone: `vit_base_patch16_224`, randomly initialized (`vision_pretrained: false`)
|
| 54 |
+
- Text architecture/tokenizer: `openai/clip-vit-base-patch32`, randomly initialized (`text_pretrained: false`)
|
| 55 |
+
- Embedding dimension: 512, Lorentz projection with learned curvature
|
| 56 |
+
- Queries: at most 6 per image, at most 5 localized parts per image
|
| 57 |
+
- Training steps: 500,000; global batch size 768; seed 31
|
| 58 |
+
- Run id recorded in `eval/summary_wide.csv`: `hier_beta_argent_vit_b_paper_scratch_500k_s31`
|
| 59 |
|
| 60 |
## Evaluation
|
| 61 |
|
| 62 |
+
The `eval/` directory holds the paper-comparable full benchmark table and the
|
| 63 |
+
raw wide summary row. Headline numbers from that evaluation:
|
| 64 |
|
|
|
|
|
|
|
|
|
|
| 65 |
- COCO I2T/T2I R@10: 84.30 / 73.19
|
| 66 |
- Flickr I2T/T2I R@10: 97.60 / 91.44
|
| 67 |
+
- ImageNet top-1: 46.98%
|
| 68 |
- WordNet hierarchy: TIE 3.1597, LCA 2.0786, Jaccard 0.8179
|
| 69 |
- PEP AUC/AP: 96.07 / 69.36
|
| 70 |
|
| 71 |
+
Against the UNCHA checkpoint this model builds on, all eight reported COCO and
|
| 72 |
+
Flickr R@5/R@10 retrieval settings improve, and multi-label mAP under a single
|
| 73 |
+
shared evaluator improves on VOC and COCO. Two results in the paper do not
|
| 74 |
+
improve and are worth knowing before you use this checkpoint: the ImageNet
|
| 75 |
+
hierarchy metrics are competitive with UNCHA rather than better, and zero-shot
|
| 76 |
+
classification is unusually sensitive to prompt wording, with large swings on
|
| 77 |
+
fine-grained datasets such as Food-101, CUB, and Flowers-102. Treat this as a
|
| 78 |
+
research checkpoint, not a polished production model.
|
| 79 |
|
| 80 |
## Loading
|
| 81 |
|
| 82 |
+
This is a raw training checkpoint. Use the hyper³labs
|
| 83 |
+
[`hyper3-clip`](https://github.com/Hyper3Labs/hyper3-clip) codebase and the
|
| 84 |
+
included `config.yaml` to instantiate the model, then load
|
| 85 |
`checkpoint_final.pt`.
|
| 86 |
|
| 87 |
```python
|
|
|
|
| 91 |
state_dict = checkpoint.get("model", checkpoint)
|
| 92 |
```
|
| 93 |
|
| 94 |
+
## Citation
|
| 95 |
+
|
| 96 |
+
```bibtex
|
| 97 |
+
@inproceedings{mahmood2026hyper3clip,
|
| 98 |
+
title = {Hyper3-CLIP: Hierarchy-Conditioned Hyperbolic Vision-Language Training},
|
| 99 |
+
author = {Mahmood, Matin and Rueda-Toicen, Antonio and ElBassat, Mohamed and Elkerdany, Seifeldin and Wang, Weixing and de Melo, Gerard},
|
| 100 |
+
booktitle = {Proceedings of the ECCV 2026 Workshop on Beyond Euclidean: Hyperbolic Deep Learning for Computer Vision},
|
| 101 |
+
year = {2026},
|
| 102 |
+
eprint = {2608.29313},
|
| 103 |
+
archivePrefix = {arXiv},
|
| 104 |
+
primaryClass = {cs.CV}
|
| 105 |
+
}
|
| 106 |
+
```
|
| 107 |
+
|
| 108 |
## License And Attribution
|
| 109 |
|
| 110 |
The model materials in this repository are released under OpenMDW-1.0.
|