NLLB-CLIP-L — trunk-calibrated
Research artifact for "Where Do Multilingual Vision-Language Encoders Fail on Low-Resource Languages?"
This is visheratin/nllb-clip-large-oc with its front 5 text-encoder blocks replaced by trunk-calibrated
weights. Everything else — the vision tower, the remaining 19 text blocks, and the
projection head — is byte-identical to the frozen public model.
What this changes
Multilingual VL encoders trail English by 30+ pp on low-resource-language retrieval. The paper localises that gap: it is not a linear language direction at the output (erasing it with LEACE or INLP leaves retrieval within ~1.5 pp), but the pooled EOS hidden state's per-language trajectory drift with depth. Calibrating only the first 5 blocks — pulling each language's projection toward the parallel-content centroid — closes much of the gap without touching the frozen back-half.
Measured results
XM3600 (Crossmodal-3600), pinned 1,000-image subset, image-to-text R@1, bfloat16.
frozen is the unmodified base model measured in the same harness.
| Language | Tier | Frozen | This model | Δ |
|---|---|---|---|---|
English (en) | HRL | 54.2 | 54.7 | +0.5 |
French (fr) | HRL | 62.5 | 66.9 | +4.4 |
German (de) | HRL | 56.3 | 67.5 | +11.2 |
Spanish (es) | HRL | 55.0 | 59.8 | +4.8 |
Chinese (zh) | HRL | 51.4 | 53.1 | +1.7 |
Korean (ko) | HRL | 53.1 | 58.8 | +5.7 |
Bengali (bn) | LRL | 57.4 | 58.5 | +1.1 |
Filipino (fil) | LRL | 18.4 | 48.8 | +30.4 |
Hindi (hi) | LRL | 44.2 | 44.7 | +0.5 |
Swahili (sw) | LRL | 25.8 | 45.9 | +20.1 |
Telugu (te) | LRL | 45.3 | 47.0 | +1.7 |
| HRL-6 mean | 55.42 | 60.13 | +4.72 | |
| LRL-5 mean | 38.22 | 48.98 | +10.76 |
High-resource performance is preserved; the gain concentrates on low-resource languages.
Usage
This is an open_clip model, not a transformers one — AutoModel will not load it.
import torch, open_clip
from huggingface_hub import hf_hub_download
model, _, preprocess = open_clip.create_model_and_transforms("nllb-clip-large", pretrained="v1")
sd = torch.load(hf_hub_download("dnotitia/geometric-bottleneck-nllb-clip-large", "open_clip_pytorch_model.bin"),
map_location="cpu", weights_only=True)
model.load_state_dict(sd) # calibrated front-5 blocks included
model = model.cuda().eval()
tokenizer = open_clip.get_tokenizer("nllb-clip-large")
tokenizer.set_language("swh_Latn") # NLLB needs an explicit language code
with torch.no_grad():
z = torch.nn.functional.normalize(model.encode_text(tokenizer(["mbwa ufukweni"]).cuda()).float(), dim=-1)
Image encoding is unchanged from the base model — the vision tower was never trained.
Training
| Calibrated blocks | front 5 of 24 text blocks |
| Text tower | bidirectional (NLLB encoder), CLS pooling, max 77 tokens |
| Objective | InfoNCE + λ·(1 − cosine to parallel-content centroid) |
| λ_align | 2.0 |
| Learning rate | 0.00012 |
| Temperature | 0.02 |
| Steps | 16001 of 20000 (warmup 500) |
| Weight decay | 0.05 |
| Languages | 11: en, fr, de, es, zh, ko, bn, fil, hi, sw, te |
| Training data | CC12M caption subset, machine-translated into the 11-language pool |
| Precision | bfloat16 |
Limitations
- Language-specific. Calibration is trained on these 11 languages. It does not transfer to unseen languages, and can regress on them.
- Visual-vocabulary scoped. Gains are measured on image captions. Abstract prose benefits far less.
- Does not reach parity. The LRL tier improves substantially but does not match HRL.
- Single run. No seed variance is reported for this checkpoint.
License
These weights contain the base model's parameters, so the base model's license governs use.
| Base model | visheratin/nllb-clip-large-oc |
| Pinned revision | a133efc35018d609f0160eaaa6acc3ffcd3507db |
| License | cc-by-nc-4.0 |
Non-commercial.
cc-by-nc-4.0restricts this model to non-commercial use. That restriction flows from the base model and applies to these merged weights.
The calibrated front-5 blocks are released as a research artifact accompanying the paper.
Citation
@inproceedings{han2026geometric,
title = {Where Do Multilingual Vision-Language Encoders Fail on Low-Resource Languages?},
author = {Han, Donghoon and Moon, SungHyun and Zhakatayev, Aidyn and Cha, Junghun and Lee, SeungJae},
booktitle = {Proceedings of EMNLP 2026},
year = {2026}
}