mnm-matin commited on
Commit
a7417bc
·
verified ·
1 Parent(s): bf1ca59

Model card: name as Hyper3-CLIP, add paper/code links, clarify objective and limitations

Browse files
Files changed (1) hide show
  1. README.md +65 -26
README.md CHANGED
@@ -11,52 +11,77 @@ tags:
11
  - scratch-training
12
  ---
13
 
14
- # Hyper3-CLIP beta
15
 
16
- Hyper3-CLIP beta is the hyper³labs ViT-B hyperbolic checkpoint.
 
 
 
 
 
17
 
18
- This repository publishes the raw PyTorch training checkpoint for the completed
19
- 500k-step paper-scratch run. It is the scratch-trained paper checkpoint and is
20
- separate from the pretrained-base
21
- [Hyper3-CLIP v1](https://huggingface.co/hyper3labs/hyper3-clip-v1)
22
- SentenceTransformers release.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
 
24
  ## Artifact
25
 
26
  - Checkpoint: `checkpoint_final.pt`
27
  - Config: `config.yaml`
28
  - Training metadata: `metadata.json`
29
- - Objective: `uncha` (see `config.yaml` for the full loss configuration)
30
- - Vision backbone: `vit_base_patch16_224`
31
- - Vision pretrained: `false`
32
- - Text model architecture/tokenizer: `openai/clip-vit-base-patch32`
33
- - Text pretrained: `false`
34
- - Embedding dimension: 512
35
- - Training steps: 500,000
36
- - Global batch size: 768
 
37
 
38
  ## Evaluation
39
 
40
- The `eval/` directory includes the paper-comparable full benchmark table and the
41
- raw wide summary row used for the current model comparison.
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
- The checkpoint is strong on retrieval in the paper-comparable table, but weak on
52
- several flat/fine-grained zero-shot datasets such as Food101, CUB, Flowers102,
53
- Cars, and Aircraft. Treat this release as a research checkpoint, not a polished
54
- production model.
 
 
 
 
55
 
56
  ## Loading
57
 
58
- This is a raw training checkpoint. Use the hyper³labs `hyper3-clip` codebase and
59
- the included `config.yaml` to instantiate the model, then load
 
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.