Models that match images to English text, such as CLIP, are usually extended to other languages by distillation. A multilingual text encoder (the student) is trained on translated sentences until its outputs land where the English text encoder's outputs would have landed. Distillation here means training a model to reproduce the outputs of a stronger model rather than learning from labels. This recipe copies the English model's text-side geometry, and that geometry sits apart from the image side: in CLIP-style models, text and image embeddings form separate clusters offset from each other. The recipe also asks a low-resource language, with little parallel text, to match a high-dimensional continuous target exactly. We propose a different target. The student should predict which of a small set of shared image–text "concept atoms" a caption activates. The atoms are learned once from English image–caption pairs, and each atom has one image-side vector and one text-side vector, so the offset between modalities is absorbed into the atoms rather than passed on to the student.
The central claim concerns dictionary size. Earlier work found an optimal size for bilingual seed lexicons: beyond roughly 5,000–10,000 pairs, rare and ambiguous entries distort the learned mapping. Vision transformers show a similar ceiling, where oversized token dictionaries spread attention thinly across redundant tokens. We hypothesize that the same limit appears in cross-lingual distillation and that it depends on the language. The number of atoms a student can learn reliably should grow with the amount of parallel data available for that language. A low-resource language would then be best served by a truncated dictionary with a continuous residual path for the rest. If this holds, it gives a principled per-language capacity setting that no current multilingual CLIP method has.
Core Claim
We make two linked claims. The first is that distilling a multilingual text encoder onto soft assignments over a coupled image–text concept dictionary beats distilling onto raw English text embeddings, under the same data and parameter budget. The advantage should be largest for languages with little parallel data, and the English penalty should be smaller.
The second claim is that the best number of atoms $k^*$ is finite and rises with the parallel-data budget $n$ for each language. Adding atoms beyond $k^*$ hurts through the same two mechanisms reported elsewhere: probability mass spreads over redundant atoms, and atoms that fire rarely are estimated from too few examples. The second claim is what makes this more than an architectural variant. It predicts a measurable curve, and the curve can fail.
Relation to Prior Work
Several papers motivate the size question.
- On the Role of Seed Lexicons in Learning Bilingual Word Embeddings shows that mapping accuracy between static word-embedding spaces peaks at 5,000–10,000 seed pairs. Beyond that, long-tail pairs distort the linear map.
- Izbicki finds a similar plateau near 5,000 words for lexicon induction.
- Ni et al. finds that about 1,000 pairs suffice for cross-lingual relation extraction.
- On the vision side, ATD shows that enlarging a learnable token dictionary dilutes attention across similar tokens and needs a reparameterized scaling factor to recover.
- Learning Dictionary for Visual Attention reports that over-complete dictionaries add noise and parameters.
None of these studies varies dictionary size against the amount of cross-lingual data, and none places the dictionary between modalities. We borrow their diagnosis, and ATD's scaling fix as a control, and ask whether the optimal size moves with data per language.
Two papers supply the coupled-dictionary idea.
- Wasserstein Coupled Graph Learning for Cross-Modal Retrieval projects image scene graphs and sentence graphs onto a shared set of learnable template graphs. It notes that retrieval is sensitive to the number of templates, but it is English-only and involves no distillation.
- UniCode forces image patches and language tokens into one codebook inside a multimodal language model. It is also monolingual, and it is concerned with avoiding codebook collapse during generation rather than with what capacity a student can absorb.
We reuse the coupling idea, with separate image-side and text-side atom vectors, and make the dictionary the distillation target.
Three systems are the direct competitors.
- mCLIP freezes CLIP and XLM-R and trains a linear projector plus a shallow transformer projector with image–text and text–text contrastive losses. It reports a 12.8% relative drop on English tasks.
- CL2CM trains a cross-lingual text teacher using optimal transport over word tokens. It then passes the teacher's inter-sample similarity structure to an image–text dual encoder.
- CCLM treats cross-lingual and cross-modal alignment as one objective, using a joint fusion transformer.
All three keep the target continuous and unbounded. Our proposal changes only the target, to a bounded code over shared concepts whose size is tuned per language.
Three papers constrain the design.
- C2KD shows that cross-modal distillation fails when the teacher's soft rankings reflect modality-specific structure the student cannot reproduce. That is an argument for coupled atoms, whose assignments are forced to agree across image and caption, over text-only teacher logits.
- Learning Robust Visual-Semantic Embeddings shows that pairwise contrastive losses align individual pairs but leave the overall distributions apart.
- Extending Multi-modal Contrastive Representations shows that a single projection layer struggles to close the modality gap under a frozen base space.
The last two explain why a simple projector might underperform. They are not proof that a dictionary helps, and our ablations must establish that separately.
Research Program
Stage one builds the teacher dictionary. Starting from frozen English CLIP, we learn $k$ atom pairs $(u_j, v_j)$ on English image–caption pairs:
- $u_j$ is the image-side vector of atom $j$.
- $v_j$ is the text-side vector of atom $j$.
For an image embedding $x$ and a caption embedding $t$, the soft codes are
$$a_j(x)=\frac{\exp(\langle x,u_j\rangle/\tau_k)}{\sum_{i\le k}\exp(\langle x,u_i\rangle/\tau_k)},\qquad b_j(t)=\frac{\exp(\langle t,v_j\rangle/\tau_k)}{\sum_{i\le k}\exp(\langle t,v_i\rangle/\tau_k)},$$
where $\tau_k$ is a temperature. Following ATD's reparameterization, $\tau_k$ is scaled with $\log k$ so that the sharpness of the code does not change automatically as $k$ grows.
The atoms are trained with three losses:
- a symmetric KL divergence between $a(x)$ and $b(t)$ for matched pairs;
- a reconstruction term, so that $\sum_j a_j u_j$ stays close to $x$ and $\sum_j b_j v_j$ stays close to $t$;
- a usage-balance penalty against dead atoms.
Atoms are then ordered by how often they are used on English data, so that a dictionary of size $k$ is always the top-$k$ prefix. We learn the dictionary once at the largest $k$ and obtain smaller dictionaries by truncation. Because the image side and text side of each atom are separate vectors, the offset between the modalities lives inside the dictionary.
Stage two trains the student. A multilingual encoder (XLM-R with a small trainable head, sized to match mCLIP's trainable fraction) reads a target-language caption $s$ and outputs a code $c(s)$ over the same $k$ atoms. It is trained with
$$\mathcal{L}=\mathrm{KL}\big(\tfrac12[a(x)+b(t)]\,\|\,c(s)\big)+\lambda\,\big\|r(s)-\big(t-\textstyle\sum_j b_j(t)\,v_j\big)\big\|^2,$$
where:
- $x$ and $t$ are the image and English caption paired with $s$;
- the first term makes the student predict the concepts that the image and caption agree on;
- $r(s)$ is a low-dimensional continuous residual predicted by the student;
- the second term lets the student recover whatever the $k$ atoms miss;
- $\lambda$ controls how heavily the residual is weighted.
The residual is what makes truncating the dictionary safe. With a small $k$, most of the detail passes through the residual.
At retrieval time, the query is represented as $\sum_j c_j(s)\,u_j + W r(s)$, a vector on the image side of the space, where $W$ is a learned map. Images are embedded once by the frozen CLIP image encoder and cached. The system therefore stays a dual encoder with the latency of mCLIP rather than that of CCLM.
Stage three measures the capacity curve. For each target language we subsample the parallel caption data to budgets $n$ spaced roughly by factors of ten: machine-translated captions for the high-resource languages, and fewer natural pairs where those are all that exists. We sweep $k$ over powers of two for each budget.
The prediction is that retrieval quality as a function of $k$ is concave with an interior maximum $k^*(n)$, and that $k^*$ rises with $n$. The reasoning is a sampling argument: atom $j$ with English usage frequency $p_j$ receives about $n p_j$ student training signals. Frequencies are long-tailed, so the atoms whose $n p_j$ falls below some reliability threshold number grow with $k$ and shrink with $n$.
We will also record two diagnostics, reported separately for tail atoms and for all atoms at each $(k, n)$:
- the entropy of the student's codes, which measures dilution;
- the student-versus-teacher code agreement for each atom.
These show which mechanism, dilution or poor estimation of rare atoms, drives the downturn.
Baselines
The naive reference is translate-test. Target-language queries are translated into English with a neural translation system and fed to the frozen English CLIP. It sets the bar that any end-to-end system must clear, and it is known to be strong. IGLUE notes that it beat earlier multilingual encoders. Cross-lingual Cross-modal Pretraining reports 66.2% Recall@1 for translate-test on MSCOCO Japanese image-to-text retrieval, against 67.4% for its own model. We run translate-test with the same CLIP checkpoint as our teacher and report both accuracy and latency.
The strongest direct competitor is mCLIP, because it shares our setting exactly: frozen CLIP, frozen XLM-R, a small trainable component, and dual-encoder retrieval. The file reports mCLIP reaching a zero-shot mean recall of 70.1 on Multi30K, against 68.1 for MURAL and 38.7 for M3P. The file also reports a 12.8% relative degradation on English and a text-to-image retrieval latency of 17.2 ms. We will reproduce mCLIP's projectors on our parallel data, with the same number of trainable parameters and the same tuning budget as our student, rather than relying only on the published figure.
Beating mCLIP means higher Multi30K mean recall under matched data, together with a smaller English penalty. Low-budget languages are where we expect the gap, and a result that holds only at full data would count as a weak win.
CL2CM is the strongest method using relational distillation. The file reports it beating NRCCR by 4.6 SumR on VATEX and running 11 times faster than CCLM. No reported CL2CM result on Multi30K or MSCOCO was found on Lacuna, so we will re-run its relational distillation loss inside our trainable head under the same budget.
CCLM serves as an accuracy ceiling with much higher inference cost. The file reports it surpassing UC2 by over 10% on average on IGLUE. We report its published IGLUE numbers where available and do not claim to beat it on accuracy alone.
The ablations isolate the key ingredient.
- Continuous target. The same student and data, but distilled onto the raw English text embedding with KL replaced by a contrastive loss. This is effectively infinite $k$ with no codes.
- Low-rank linear bottleneck. A rank-$k$ linear projection with no softmax coding, matched in rank to our dictionary. It tests whether "dictionary" merely means "fewer dimensions."
- Text-only atoms. Atoms learned on captions alone, with no image coupling. It tests whether absorbing the modality offset matters.
- Random frozen atoms. Atoms that are not learned.
- No residual. Removing $r(s)$, to show what truncation costs without the continuous path.
Every ablation uses identical data, trainable-parameter counts, and hyperparameter search budgets.
Why not just…?
Why not just use translate-test? On high-resource languages with strong translation systems, translate-test may well match us. We treat it as a real threat there, not a strawman. The evidence against it is concentrated in two places:
- Latency: 438.7 ms versus 17.2 ms for end-to-end retrieval in mCLIP.
- Low-resource languages: OPTICAL beat translate-test by 13.7% MAP on Swahili and Somali text retrieval.
Our budget sweep reports translate-test at every level of translation quality we can access. The claim survives only if we win at low budgets or at matched latency.
Why not just train a better continuous projector, as mCLIP does? This is the main competing hypothesis. The results of Extending Multi-modal Contrastive Representations and Learning Robust Visual-Semantic Embeddings suggest single projectors leave the modality gap open, but they do not show that codes fix it. The continuous-target ablation, run with a projector as large as our head, settles the question directly. If it matches us at every data budget, our first claim is wrong.
Why not just reduce dimensionality with a low-rank bottleneck? A skeptic could argue that any benefit comes from regularizing a low-resource student with fewer effective dimensions, and that the atoms play no role. The rank-matched linear bottleneck tests exactly this. A PCA variant, computed on joint English image and text embeddings, will also be run. If either matches the coupled dictionary, we will report the finding as "low-rank regularization scaled to each language's data budget" and drop the concept-atom framing. The capacity-curve result could still stand under that framing.
Why not just make the dictionary as large as possible? The lexicon and vision results cited above give strong reason to expect a ceiling, and the $\log k$ temperature control separates genuine capacity limits from mere softmax dilution. If quality rises steadily with $k$ at every budget even with that control, our second claim is falsified. That outcome would itself be informative, because it would contradict the lexicon findings in the multimodal setting.
Proposed Experiments
Evaluation uses four benchmarks:
- Multi30K image–text retrieval in English, German, French, and Czech, reporting mean recall and English-only recall to measure the English penalty.
- MSCOCO Japanese and Chinese retrieval, reporting Recall@1.
- xFlickr&CO, from IGLUE, across its eight languages.
- WIT, as a harder, more varied test of how far the method transfers.
The data-budget sweep runs on Multi30K and xFlickr&CO languages with controlled subsampling of the parallel captions.
Four checks are decisive.
- Code versus continuous target. The coupled code must beat the continuous-target ablation and the rank-matched linear bottleneck. The margin must be larger at the smallest budgets than at the largest, which is the signature of capacity limited by data.
- The capacity curve. Across budgets, the fitted $k^*(n)$ must increase and must lie strictly inside the swept range. The code-agreement diagnostics must show that the downturn beyond $k^*$ is concentrated in atoms with small $n p_j$.
- English penalty. The relative English drop must be smaller than mCLIP's under our reproduction.
- Modality gap. We compute the distance between the centroids of student query vectors and cached image embeddings. It should shrink relative to the continuous-target baseline, and text-only atoms should not deliver the same shrinkage.
Each outcome is interpreted in advance:
- If checks 1 and 3 pass but check 2 fails, the result is a useful distillation target without a size law.
- If check 2 passes but check 1 fails, the size law holds, but it is a statement about regularization rather than about concepts.
- If all four pass, the result is a per-language rule for sizing the distillation target, which the current multilingual CLIP recipes do not provide.
References
- On the Role of Seed Lexicons in Learning Bilingual Word Embeddings
- Aligning Word Vectors on Low-Resource Languages with Wiktionary
- Neural Cross-Lingual Relation Extraction Based on Bilingual Word Embedding Mapping
- ATD: Improved Transformer With Adaptive Token Dictionary for Image Restoration
- Learning Dictionary for Visual Attention
- Wasserstein Coupled Graph Learning for Cross-Modal Retrieval
- UniCode: Learning a Unified Codebook for Multimodal Large Language Models
- mCLIP: Multilingual CLIP via Cross-lingual Transfer
- CL2CM: Improving Cross-Lingual Cross-Modal Retrieval via Cross-Lingual Knowledge Transfer
- Cross-View Language Modeling: Towards Unified Cross-Lingual Cross-Modal Pre-training
- C2KD: Bridging the Modality Gap for Cross-Modal Knowledge Distillation
- Learning Robust Visual-Semantic Embeddings
- Extending Multi-modal Contrastive Representations
- IGLUE: A Benchmark for Transfer Learning across Modalities, Tasks, and Languages
- Cross-lingual Cross-modal Pretraining for Multimodal Retrieval
- Improving Cross-lingual Information Retrieval on Low-Resource Languages via Optimal Transport Distillation