- Introduced by
- Dosovitskiy et al. (ViT base); multilingual extension by multiple groups (2021–2023)
- Year
- 2021–2023
- Type
- Transformer-based vision model with multilingual capabilities
- Family
- Deep learning / NLP / CV
What does it do?
Multilingual Vision Transformer (Multilingual ViT) extends the Vision Transformer, which encodes an image as a sequence of patches, so that the image side can be paired with text in many languages.
The aim is one model for image understanding and image-text reasoning across languages, for tasks such as image captioning, visual question answering and cross-lingual image retrieval. The name covers several related designs from different groups rather than one fixed architecture.
The intuition behind the method
A standard Vision Transformer splits an image into fixed-size patches and processes them as tokens with a Transformer encoder, the same kind of encoder used for text. A multilingual variant pairs this image encoder with a text encoder whose vocabulary and embeddings cover many languages. The underlying assumption is that the visual content of an image can be aligned with text in several languages through a shared representation space. This is a design assumption, not a result established on this page. If it holds, a model trained mainly on one language's image-text pairs could respond to queries in other languages without being retrained from scratch.
History
The Vision Transformer was introduced by Dosovitskiy et al. at ICLR 2021, showing that a pure Transformer applied to image patches can perform image recognition when pretrained on large datasets. Multilingual variants build on this image encoder and pair it with multilingual text encoders such as mBERT and XLM-R. The IGLUE benchmark (ICML 2022) is cited here as a systematic multilingual evaluation across visual tasks and languages.
When to use it
Choose Multilingual ViT when the task combines images with text in more than one language, for example cross-lingual image retrieval, multilingual visual question answering, multilingual captioning or cross-lingual visual grounding. It is most relevant when labelled data is plentiful in one language but scarce in others, so that cross-lingual transfer can be tested. Do not use it for purely visual tasks with no text, where a plain Vision Transformer is enough. For a single language, a monolingual vision-language model is the natural first choice. Reconsider it when compute is tightly limited, because multilingual vision transformers are large and need substantial GPU memory for training and inference. Where good machine translation exists, a translate-then-predict pipeline is a cheap baseline to compare against.
Limitations and considerations
- Training and fine-tuning are computationally expensive, typically needing multi-GPU hardware and large memory budgets.
- For low-resource languages, performance can fall below that of a dedicated monolingual vision-language model for those languages.
- Multilingual image-text data may be considerably smaller than English data for many languages, which can limit the pretraining signal for non-English languages.
- Benchmarks for multilingual vision-language tasks are few, so reported results are hard to compare across papers.
- Concepts tied to particular cultures or objects may be represented unevenly across languages in the shared vocabulary and training data.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- One model covers several languages, so a separate image-text model is not needed for each target language.
- Fine-tuning in a language with abundant labels may carry over to other languages. This is a hypothesis to test on each target language rather than a guaranteed benefit, and it is one reason to consider this architecture over a monolingual one.
- The image encoder follows the standard ViT patch-based design, so existing ViT training practice and tooling can be reused on the visual side.
- Because the text side is a separate multilingual language model, it can be swapped or updated without redesigning the image side.
- Shared embeddings for images and multilingual text make cross-modal and cross-lingual retrieval possible in a single space.
Applications
- Cross-lingual visual question answering, for questions about images asked in the user's own language.
- Multilingual image captioning for accessibility and localization.
- Cross-lingual image-text retrieval in multilingual catalogues or media archives.
- Multilingual visual grounding, locating image regions referred to by text in a supported language.
How it works
How it works
The input image is divided into a grid of non-overlapping patches; the page's example uses 16x16 pixels per patch. Each patch is linearly projected to a fixed-dimensional embedding and combined with a learnable positional encoding, so the model can recover where each patch sits in the image. A special [CLS] token is prepended to collect global image context.
Text in any supported language is tokenized with a shared multilingual vocabulary, of the kind used by multilingual Transformer language models. Token embeddings come from a multilingual embedding table pretrained on text covering many languages. Sharing one vocabulary across languages is what allows text in different languages to map into a common embedding space.
Image patch embeddings and text token embeddings are combined in a Transformer encoder, or processed by separate image and text encoders linked by a cross-attention fusion layer. Self-attention or cross-attention lets the model relate visual regions to textual concepts. The exact fusion design varies between implementations, and the equations depend on the specific model.
Pretraining uses large multilingual image-text data, such as captions translated into several languages or natively multilingual corpora. Objectives that such models may use include masked language modelling, image-text matching and masked region prediction; the objectives of a specific model should be checked against its own documentation. The goal is to align visual and multilingual textual representations in a shared embedding space.
After pretraining, the model is fine-tuned on a downstream task in one or more target languages. Because the text representations are shared across languages, zero-shot or few-shot transfer to languages not seen during fine-tuning may work, and it is often weaker for languages that are poorly represented in pretraining. This may reduce the labelled data needed in a given language, but it should be tested on that language rather than assumed.
Common pitfalls
- Treating cross-lingual transfer as free: when labelled target-language data exist, language-specific fine-tuning often helps, and the size of the benefit varies by language.
- Overlooking tokenization: languages underrepresented in the shared vocabulary may be split into many small pieces, which can weaken their representations. Inspect token counts per language before drawing conclusions.
- Evaluating only on English benchmarks after multilingual training and reporting the results as multilingual performance.
- Fine-tuning on English-only data and expecting robust behaviour in other languages without testing on those languages.
- Skipping a baseline: a translate-then-predict pipeline with a monolingual model should be tested before a full multilingual setup is built.
Frequently asked questions
Can a Multilingual ViT work in a language it was never fine-tuned on?
It may. Because the text encoder is pretrained on many languages in a shared embedding space, it can sometimes handle an unseen language zero-shot. Performance is generally weaker for very low-resource languages and for languages typologically distant from the training languages, so it should be checked on labelled data where possible.
How does Multilingual ViT differ from a standard vision-language model like CLIP?
Standard CLIP is predominantly English. Multilingual ViT replaces or augments the text encoder with a multilingual language model, which is intended to enable cross-lingual image-text alignment. Several multilingual extensions of CLIP exist; their architectures and training details should be checked in their own documentation before they are relied on.
Is it always better to use a multilingual model instead of translating to English first?
Not necessarily. For high-resource languages with strong machine translation, a translate-then-predict pipeline using a strong English vision-language model can be competitive and cheaper. A multilingual model is more attractive when translation quality is poor, when latency rules out an extra translation step, or when input is code-switched or culturally specific.
What datasets are available for multilingual vision-language tasks?
The IGLUE benchmark suite (ICML 2022) is a systematic multilingual evaluation across visual tasks and languages. Other multilingual vision-language datasets exist, and each should be checked for licence, task coverage and language coverage before use.
What are the hardware requirements for fine-tuning a Multilingual ViT?
Requirements depend on model size and batch size, and the figures should be taken from the documentation of the chosen checkpoint. Fine-tuning generally needs a GPU with substantial memory, and memory-saving methods such as gradient checkpointing and mixed-precision training are commonly used. Full pretraining from scratch requires multi-GPU clusters, so most practitioners start from publicly released pretrained checkpoints.
Related methods
Sources
Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., Dehghani, M., Minderer, M., Heigold, G., Gelly, S., Uszkoreit, J., & Houlsby, N. (2021). An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale. International Conference on Learning Representations (ICLR 2021).
Open publication referenceBugliarello, E., Liu, F., Pfeiffer, J., Reddy, S., Elliott, D., Erdem, E., Erdem, A., & Lukasiewicz, T. (2022). IGLUE: A Benchmark for Transfer Learning across Modalities, Tasks, and Languages. International Conference on Machine Learning (ICML 2022).
Open publication reference