{"notes":[{"id":"multimodality/uniter","category":"multimodality","legacyPath":"multimodality/1909-uniter","legacySlug":"1909-uniter","legacyPaths":[],"title":"UNITER","subtitle":"The Song of the Unifiers","author":"Z. Yuan","paperDate":"2019-09-25","publishedOn":"2024-06-04","paperTitle":"UNITER: UNiversal Image-TExt Representation Learning","paperUrl":"https://arxiv.org/abs/1909.11740","bibliography":{"title":"UNITER: UNiversal Image-TExt Representation Learning","authors":["Yen-Chun Chen","Linjie Li","Licheng Yu","Ahmed El Kholy","Faisal Ahmed","Zhe Gan","Yu Cheng","Jingjing Liu"],"url":"https://arxiv.org/abs/1909.11740","pdfUrl":"https://arxiv.org/pdf/1909.11740","codeUrl":null,"preprint":{"id":"1909.11740","submittedOn":"2019-09-25","url":"https://arxiv.org/abs/1909.11740"},"publication":{"venue":"ECCV","year":2020,"kind":"conference","url":"https://arxiv.org/abs/1909.11740"},"citation":"@misc{multimodalityuniter2019,\n  title = {{UNITER: UNiversal Image-TExt Representation Learning}},\n  author = {Yen-Chun Chen and Linjie Li and Licheng Yu and Ahmed El Kholy and Faisal Ahmed and Zhe Gan and Yu Cheng and Jingjing Liu},\n  year = {2019},\n  eprint = {1909.11740},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/1909.11740}\n}\n","citationPath":"/content/papers/citations/multimodality/uniter.4f2cee580d03.bib"},"thumbnail":{"src":"/content/papers/assets/9be0d2a008d474713ee083cc7a8f379f76889ff1ade6f34dcb6ec6fad5fe22f2.jpg","width":1224,"height":492},"locale":"en","path":"/content/papers/en/multimodality/uniter.53e85332b8f2.md","headings":[{"id":"problem-definition","text":"Problem Definition","depth":2},{"id":"solution","text":"Solution","depth":2},{"id":"uniter-model-design","text":"UNITER Model Design","depth":3},{"id":"pre-training-strategy","text":"Pre-Training Strategy","depth":3},{"id":"pre-training-datasets","text":"Pre-Training Datasets","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"performance-on-pre-training-tasks","text":"Performance on Pre-Training Tasks","depth":3},{"id":"performance-on-downstream-tasks","text":"Performance on Downstream Tasks","depth":3},{"id":"what-did-the-model-learn","text":"What Did the Model Learn?","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"multimodality/vilbert","relation":"comparison","topic":"Region features in vision-language pretraining"},{"id":"multimodality/lxmert","relation":"comparison","topic":"Region features in vision-language pretraining"}]},{"id":"multimodality/vilbert","category":"multimodality","legacyPath":"multimodality/1908-vilbert","legacySlug":"1908-vilbert","legacyPaths":[],"title":"ViLBERT","subtitle":"Interwoven Layers in the Beginning","author":"Z. Yuan","paperDate":"2019-08-06","publishedOn":"2024-06-04","paperTitle":"ViLBERT: Pretraining Task-Agnostic Visiolinguistic Representations for Vision-and-Language Tasks","paperUrl":"https://arxiv.org/abs/1908.02265","bibliography":{"title":"ViLBERT: Pretraining Task-Agnostic Visiolinguistic Representations for Vision-and-Language Tasks","authors":["Jiasen Lu","Dhruv Batra","Devi Parikh","Stefan Lee"],"url":"https://arxiv.org/abs/1908.02265","pdfUrl":"https://arxiv.org/pdf/1908.02265","codeUrl":null,"preprint":{"id":"1908.02265","submittedOn":"2019-08-06","url":"https://arxiv.org/abs/1908.02265"},"publication":{"venue":"NeurIPS","year":2019,"kind":"conference","url":"https://papers.nips.cc/paper_files/paper/2019/hash/c74d97b01eae257e44aa9d5bade97baf-Abstract.html"},"citation":"@misc{multimodalityvilbert2019,\n  title = {{ViLBERT: Pretraining Task-Agnostic Visiolinguistic Representations for Vision-and-Language Tasks}},\n  author = {Jiasen Lu and Dhruv Batra and Devi Parikh and Stefan Lee},\n  year = {2019},\n  eprint = {1908.02265},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/1908.02265}\n}\n","citationPath":"/content/papers/citations/multimodality/vilbert.86fae62edbca.bib"},"thumbnail":{"src":"/content/papers/assets/ea83dc4933aa28e1dfed328770285281323328ef76bc1e9fede2130dd9c86cf5.jpg","width":1596,"height":328},"locale":"en","path":"/content/papers/en/multimodality/vilbert.925cb036a151.md","headings":[{"id":"defining-the-problem","text":"Defining the Problem","depth":2},{"id":"approach","text":"Approach","depth":2},{"id":"model-architecture","text":"Model Architecture","depth":3},{"id":"pre-training-tasks","text":"Pre-training Tasks","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"how-effective-is-vilbert","text":"How Effective is ViLBERT?","depth":3},{"id":"impact-of-model-depth-on-performance","text":"Impact of Model Depth on Performance","depth":3},{"id":"effect-of-pre-training-data","text":"Effect of Pre-training Data","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"multimodality/lxmert","relation":"comparison","topic":"Region features in vision-language pretraining"},{"id":"multimodality/uniter","relation":"comparison","topic":"Region features in vision-language pretraining"}]},{"id":"multimodality/lxmert","category":"multimodality","legacyPath":"multimodality/1908-lxmert","legacySlug":"1908-lxmert","legacyPaths":[],"title":"LXMERT","subtitle":"Pre-training Matters","author":"Z. Yuan","paperDate":"2019-08-20","publishedOn":"2024-06-04","paperTitle":"LXMERT: Learning Cross-Modality Encoder Representations from Transformers","paperUrl":"https://arxiv.org/abs/1908.07490","bibliography":{"title":"LXMERT: Learning Cross-Modality Encoder Representations from Transformers","authors":["Hao Tan","Mohit Bansal"],"url":"https://arxiv.org/abs/1908.07490","pdfUrl":"https://arxiv.org/pdf/1908.07490","codeUrl":null,"preprint":{"id":"1908.07490","submittedOn":"2019-08-20","url":"https://arxiv.org/abs/1908.07490"},"publication":{"venue":"EMNLP","year":2019,"kind":"conference","url":"https://arxiv.org/abs/1908.07490"},"citation":"@misc{multimodalitylxmert2019,\n  title = {{LXMERT: Learning Cross-Modality Encoder Representations from Transformers}},\n  author = {Hao Tan and Mohit Bansal},\n  year = {2019},\n  eprint = {1908.07490},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/1908.07490}\n}\n","citationPath":"/content/papers/citations/multimodality/lxmert.47814670c229.bib"},"thumbnail":{"src":"/content/papers/assets/0e45137e5df15d7a9e2ae46beadc426dc27aff867daf126d283da3c675178f70.jpg","width":1024,"height":325},"locale":"en","path":"/content/papers/en/multimodality/lxmert.e69a6afe7d80.md","headings":[{"id":"defining-the-problem","text":"Defining the Problem","depth":2},{"id":"approach","text":"Approach","depth":2},{"id":"model-architecture","text":"Model Architecture","depth":3},{"id":"pre-training-strategy","text":"Pre-training Strategy","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"comparison-with-other-models","text":"Comparison with Other Models","depth":3},{"id":"importance-of-pre-training","text":"Importance of Pre-training","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"multimodality/vilbert","relation":"comparison","topic":"Region features in vision-language pretraining"},{"id":"multimodality/uniter","relation":"comparison","topic":"Region features in vision-language pretraining"}]}],"text":"We've seen previous papers evolve from \"single-stream models\" to \"dual-tower models\" and \"dual-stream models.\"\n\nEssentially, you can either combine multimodal information in a single computation or process them separately.\n\nIf you process them separately, someone will later try to combine them and surpass you. If you combine them, someone will eventually separate them and surpass you.\n\nWe just wanted to casually read some papers, but we've stumbled upon some life lessons.\n\nNow, let's get back to UNITER.\n\nIn UNITER’s period, MCB, BAN, DFAF, SCAN and MAttNet each specialized in particular tasks. Their task-specific fusion designs were not easy to transfer. UNITER asks whether shared image–text representations can be learned first and then adapted to different tasks.\n\n## Problem Definition\n\nThe question goes beyond single versus dual streams. The authors focus on cross-modal pre-training objectives, which clues to retain when masking inputs, and fine-grained alignment between words and image regions.\n\nThe “universal” ambition is evaluated across six task families and nine datasets.\n\n**Can we learn a genuinely universal image–text representation for every V+L task?** UNITER tests part of that large question. Its evaluation covers nine datasets.\n\n## Solution\n\n### UNITER Model Design\n\n![UNITER single-stream model and pre-training objectives; original paper Figure 1](/content/papers/assets/9be0d2a008d474713ee083cc7a8f379f76889ff1ade6f34dcb6ec6fad5fe22f2.jpg)\n\n*Original paper [Figure 1](https://arxiv.org/html/1909.11740v3): “man with his dog on a couch” enters as both image regions and text tokens; the embedders feed the same Transformer.*\n\nUNITER is a **single-stream Transformer**. Image and text inputs first become embeddings; their tokens then enter the same Transformer. The Image/Text Embedders are not two independent deep Transformer stacks.\n\n- **Image**: Faster R-CNN supplies region features. A seven-dimensional vector describes normalized coordinates, width, height and area. Visual and location features are projected separately, summed and layer-normalized.\n- **Text**: WordPiece token embeddings receive position information; both modalities also receive modality embeddings.\n- **Interaction**: Joint self-attention connects textual tokens and image regions to produce contextualized representations.\n\nThe key masking choice is **conditional masking**: keep the image intact during MLM and the text intact during MRM. Masking both the word “dog” and its image region could remove the corresponding clues from both sides. Masking one modality reduces that problem without guaranteeing a unique region match for every word.\n\n### Pre-Training Strategy\n\nLet's go through the four pre-training objectives one by one. They have distinct roles:\n\n| Task | Input and learning target |\n| --- | --- |\n| MLM | Select 15% of text tokens, replacing 80% with `[MASK]`, 10% with random tokens and leaving 10% unchanged; predict the originals using the remaining text and full image. |\n| ITM | Classify whether image and sentence match, using the fused `[CLS]` representation and positive/negative pairs. |\n| WRA | Encourage fine-grained token–region alignment by minimizing the optimal transport (OT) distance. |\n| MRM | Select about 15% of image regions, mask their features, and predict targets using other regions and the complete text. |\n\nA lawn photograph can help recover “lawn” in “The puppy is playing in the [MASK].” This is an available cross-modal clue.\n\nITM negatives replace the image or sentence. A fused `[CLS]` representation passes through a classifier trained with binary cross-entropy. Its score is an estimate for the matching decision, not a calibrated percentage of semantic similarity.\n\nConsider “a beach at sunset.” The caption with a sunset beach is a positive pair; switch in a mountain photo and it becomes a negative. The fused `[CLS]` representation goes to a classifier that learns whether the pair matches. It does not draw a beach or measure exactly how similar two photographs are.\n\n**What does WRA’s OT do?**\n\nTreat words and regions as two sets of feature points carrying probability mass. A transport plan assigns mass between them while respecting marginal distributions and reducing total matching cost. Its total mass is one. After approximating the optimal plan, UNITER uses the **optimal transport distance**—the plan-weighted sum of word–region costs—as its scalar WRA loss to update the model. The plan itself supplies the weights; it is not the loss.\n\nUnregularized discrete OT admits sparse optimal solutions, but finite approximate iterations need not produce exact sparsity. Nor does OT guarantee semantically correct one-to-one matches. The paper uses IPOT for approximation; matching “red apple” to a red apple is an illustrative goal, not an extra human alignment label.\n\n**MRM has three variants:**\n\n- **MRFR** regresses detector region features, not pixels.\n- **MRC** uses the detector’s most confident category as a hard target. The label granularity follows the detector’s vocabulary, such as the category “bird.”\n- **MRC-kl** matches the detector’s full category distribution through KL divergence, retaining soft-label information. These targets inherit the detector’s vocabulary and errors.\n\nConsider a flock of birds. If one bird region is masked, MRFR guesses its **detector feature vector**, MRC guesses the detector's top category, and MRC-kl learns its full category distribution. None paints the missing bird pixels back in; none guarantees that the model can name a bird species.\n\n### Pre-Training Datasets\n\nCOCO + Visual Genome (VG) form the in-domain group; Conceptual Captions (CC) + SBU Captions form the out-of-domain group. These labels describe distribution relative to downstream evaluation, not data quality.\n\nThe processed COCO/VG group provides about 5.6 million training image–text pairs and 131K internal validation pairs. Pair counts are not unique-image counts. Downstream evaluation images are excluded, and URL matching removes identified overlap with Flickr30K.\n\n\n> [!NOTE]\n> \n> This does not make the entire pipeline overlap-free. The appendix acknowledges that some RefCOCO-family evaluation images may have trained the region detector. The authors retain the same features as contemporary methods for comparison; that limitation still matters.\n\n\n## Discussion\n\n### Performance on Pre-Training Tasks\n\n![UNITER pre-training objective and dataset ablations; original paper Table 2](/content/papers/assets/a003e0ef1de904ea10134d304caf94934f7d7d1027668ca1839bdde43eaac5b9.jpg)\n\n*Original paper [Table 2](https://arxiv.org/html/1909.11740v3): each row evaluates downstream tasks after pre-training.*\n\nThese ablations measure **downstream performance after pre-training** on VQA, NLVR2, Flickr30K and RefCOCO+. Meta-Sum adds the listed scores. It helps compare identical evaluation settings, but is not a universally meaningful quality unit.\n\n- L1 has no pre-training; text-BERT initialization in L2 already raises Meta-Sum from **314.34** to **346.24**.\n- With a single image–text objective, ITM-only (L4) and MLM-only (L5) improve all the listed downstream scores over L2. MRFR-only (L3) exceeds L2 only on NLVR2.\n- Combining MLM and ITM (L6) raises Meta-Sum above either alone, although its RefCOCO+ score is below MLM-only L5. MRM variants differ: MRC-kl generally beats hard-label MRC, and MRFR complements it.\n- Among the in-domain image–text rows L3–L12, adding WRA gives L11 the highest Meta-Sum: **399.97** in L10 rises to **400.93** in L11. VQA rises from **71.92** to **72.47** and RefCOCO+ from **74.52** to **74.80**, while Flickr image retrieval and NLVR2 dip slightly. Using both data groups in L14 raises Meta-Sum further to **405.24**; L11 is not the highest row in the whole table.\n- Keeping one modality intact during masking matters here. With the same objectives but simultaneous random masking of both modalities, L12 falls to **396.51** from L10's **399.97**.\n- Out-of-domain-only L13 scores **396.91**, below in-domain L11's **400.93**; combining both data groups in L14 reaches **405.24**. Data quantity and distribution similarity are separate considerations.\n\n### Performance on Downstream Tasks\n\n![UNITER downstream task comparison; original paper Table 3](/content/papers/assets/c543a65c039cd2b0255ce367f962838d766f9fc2ef55417de56acbb1d99bbe62.jpg)\n\n*Original paper [Table 3](https://arxiv.org/html/1909.11740v3): read the Base/Large model, split and metric, including Q→AR, before comparing scores.*\n\nUNITER-large leads many rows in the paper's contemporary comparison, not today's rankings. It reaches **73.82** on VQA test-dev and **79.12** on NLVR2 dev; its Flickr zero-shot text-retrieval R@10, however, is **97.70**, slightly below UNITER-base's **98.00**. In v3 Table 3, UNITER-base scores **58.20** on VCR Q→AR, 3.2 percentage points above the task-specific **55.00** baseline but below VL-BERT-large's **59.70**; UNITER-large reaches **62.80**. On VQA test-dev, UNITER-base scores **72.70**, above ViLBERT's **70.55** and VisualBERT's **70.80**, but only **0.28** points above LXMERT's **72.42**. The models' pre-training data and tasks differ, so these are table comparisons rather than controlled tests of stream architecture.\n\nA single stream is competitive, with comparisons affected by differences in data, objectives and model sizes. The quoted 86M/183M/221M parameter comparison **excludes word embeddings**, so it is not a full deployment-size comparison.\n\nTwo task adaptations are useful to retain:\n\n1. **VCR**: general image–text pre-training, then a second pre-training stage on VCR training data, followed by task fine-tuning. Evaluation answers are not training inputs here.\n2. **NLVR2**: a sentence refers to two images, requiring additional inter-image interaction. In the UNITER-base adaptation study, Triplet scores **73.03** on dev, Pair **75.85**, and Pair-biattn **77.18**. The added bidirectional attention helps the two images interact; it is a task adaptation, not a conversion of all UNITER pre-training into a dual-stream design.\n\n### What Did the Model Learn?\n\n![Six UNITER attention patterns; original paper Figure 2](/content/papers/assets/d3df9b5fffbc3b6a69f63892863aefcdd4ac10bced97950ae03ce29094deaf99.jpg)\n\n*Original paper [Figure 2](https://arxiv.org/html/1909.11740v3): six attention patterns, shown as visualizations rather than benchmark results.*\n\nAttention maps show connection patterns.\n\n| Pattern | Observable behavior |\n| --- | --- |\n| Vertical | Many positions attend to the same token, possibly `[CLS]` or `[SEP]`. |\n| Diagonal | Attention concentrates on the same or nearby positions. |\n| Vertical + diagonal | Both shapes occur together. |\n| Block | Stronger attention within a modality. |\n| Heterogeneous | No simple pattern of the above forms. |\n| Reversed block | Stronger cross-modal attention. |\n\nThese descriptions start an analysis. Establishing a head’s causal role requires further interventions or ablations.\n\n## Conclusion\n\nLooking back, we can see how much interest the early vision-language researchers had in finding a representation that would carry across tasks. Single- versus dual-stream debates will continue, but UNITER reminds us that **what to mask, how to align and which data to use** also shape results.\n\nThe authors examined their four pre-training objectives through ablations and trained with both in-domain and out-of-domain data. UNITER was an important step in general image–text representation learning at the time. It also gives us a chance to reflect on the field's path and on further work in image–sentence interaction and more efficient pre-training.\n","imageSizes":{"/content/papers/assets/9be0d2a008d474713ee083cc7a8f379f76889ff1ade6f34dcb6ec6fad5fe22f2.jpg":{"width":1224,"height":492},"/content/papers/assets/a003e0ef1de904ea10134d304caf94934f7d7d1027668ca1839bdde43eaac5b9.jpg":{"width":1024,"height":545},"/content/papers/assets/c543a65c039cd2b0255ce367f962838d766f9fc2ef55417de56acbb1d99bbe62.jpg":{"width":774,"height":1024},"/content/papers/assets/d3df9b5fffbc3b6a69f63892863aefcdd4ac10bced97950ae03ce29094deaf99.jpg":{"width":1024,"height":592}}}
