{"notes":[{"id":"multimodality/vilt","category":"multimodality","legacyPath":"multimodality/2102-vilt","legacySlug":"2102-vilt","legacyPaths":[],"title":"ViLT","subtitle":"Enter the Scene","author":"Z. Yuan","paperDate":"2021-02-05","publishedOn":"2024-04-05","paperTitle":"ViLT: Vision-and-Language Transformer Without Convolution or Region Supervision","paperUrl":"https://arxiv.org/abs/2102.03334","bibliography":{"title":"ViLT: Vision-and-Language Transformer Without Convolution or Region Supervision","authors":["Wonjae Kim","Bokyung Son","Ildoo Kim"],"url":"https://arxiv.org/abs/2102.03334","pdfUrl":"https://arxiv.org/pdf/2102.03334","codeUrl":"https://github.com/dandelin/vilt","preprint":{"id":"2102.03334","submittedOn":"2021-02-05","url":"https://arxiv.org/abs/2102.03334"},"publication":{"venue":"ICML","year":2021,"kind":"conference","url":"https://proceedings.mlr.press/v139/kim21k.html"},"citation":"@misc{multimodalityvilt2021,\n  title = {{ViLT: Vision-and-Language Transformer Without Convolution or Region Supervision}},\n  author = {Wonjae Kim and Bokyung Son and Ildoo Kim},\n  year = {2021},\n  eprint = {2102.03334},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/2102.03334}\n}\n","citationPath":"/content/papers/citations/multimodality/vilt.1555ccf87693.bib"},"thumbnail":{"src":"/content/papers/assets/9365d24c758fb8098d2dee6d761d9398a0800b712acb97926f5aac408eea2cce.jpg","width":1224,"height":456},"locale":"en","path":"/content/papers/en/multimodality/vilt.55290e45b2d7.md","headings":[{"id":"defining-the-problem","text":"Defining the Problem","depth":2},{"id":"solution","text":"Solution","depth":2},{"id":"vilt-design-philosophy","text":"ViLT Design Philosophy","depth":3},{"id":"vilt-design-details","text":"ViLT Design Details","depth":3},{"id":"pretraining-strategies","text":"Pretraining Strategies","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"performance-analysis","text":"Performance Analysis","depth":3},{"id":"key-contributions","text":"Key Contributions","depth":3},{"id":"complexity-analysis","text":"Complexity Analysis","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{"replace-the-visual-front-end-with-patch-projection":"vilt-design-details","three-training-signals-with-no-word-to-box-labels":"pretraining-strategies","experimental-results-and-discussion":"discussion","read-the-tasks-and-inputs-before-the-scores":"performance-analysis","ablations-duration-masking-and-a-failed-extra-objective":"key-contributions","treat-15-ms-as-a-benchmark-condition":"complexity-analysis"},"guide":null,"relatedReading":[{"id":"multimodality/visualbert","relation":"comparison","topic":"Joint image-text Transformer encoders"},{"id":"multimodality/vlbert","relation":"comparison","topic":"Joint image-text Transformer encoders"},{"id":"multimodality/pixelbert","relation":"comparison","topic":"Learning image-text features from pixels"}]},{"id":"multimodality/visualbert","category":"multimodality","legacyPath":"multimodality/1908-visualbert","legacySlug":"1908-visualbert","legacyPaths":[],"title":"VisualBERT","subtitle":"Gaze at the Prelude","author":"Z. Yuan","paperDate":"2019-08-09","publishedOn":"2024-06-04","paperTitle":"VisualBERT: A Simple and Performant Baseline for Vision and Language","paperUrl":"https://arxiv.org/abs/1908.03557","bibliography":{"title":"VisualBERT: A Simple and Performant Baseline for Vision and Language","authors":["Liunian Harold Li","Mark Yatskar","Da Yin","Cho-Jui Hsieh","Kai-Wei Chang"],"url":"https://arxiv.org/abs/1908.03557","pdfUrl":"https://arxiv.org/pdf/1908.03557","codeUrl":null,"preprint":{"id":"1908.03557","submittedOn":"2019-08-09","url":"https://arxiv.org/abs/1908.03557"},"publication":null,"citation":"@misc{multimodalityvisualbert2019,\n  title = {{VisualBERT: A Simple and Performant Baseline for Vision and Language}},\n  author = {Liunian Harold Li and Mark Yatskar and Da Yin and Cho-Jui Hsieh and Kai-Wei Chang},\n  year = {2019},\n  eprint = {1908.03557},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/1908.03557}\n}\n","citationPath":"/content/papers/citations/multimodality/visualbert.2232d3e3fc57.bib"},"thumbnail":{"src":"/content/papers/assets/04caeb94d9cca475ea8ab47015986cf93c8e7b5a7c76199f2755c11a6e04f21b.jpg","width":1816,"height":672},"locale":"en","path":"/content/papers/en/multimodality/visualbert.3f46be966df5.md","headings":[{"id":"defining-the-problem","text":"Defining the Problem","depth":2},{"id":"solving-the-problem","text":"Solving the Problem","depth":2},{"id":"model-architecture","text":"Model Architecture","depth":3},{"id":"pre-training-mechanism","text":"Pre-training Mechanism","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"performance-on-vqa","text":"Performance on VQA","depth":3},{"id":"ablation-study","text":"Ablation Study","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"multimodality/vlbert","relation":"comparison","topic":"Joint image-text Transformer encoders"},{"id":"multimodality/vilt","relation":"comparison","topic":"Joint image-text Transformer encoders"}]},{"id":"multimodality/vlbert","category":"multimodality","legacyPath":"multimodality/1908-vlbert","legacySlug":"1908-vlbert","legacyPaths":[],"title":"VL-BERT","subtitle":"Watching from the Sidelines","author":"Z. Yuan","paperDate":"2019-08-22","publishedOn":"2024-06-04","paperTitle":"VL-BERT: Pre-training of Generic Visual-Linguistic Representations","paperUrl":"https://arxiv.org/abs/1908.08530","bibliography":{"title":"VL-BERT: Pre-training of Generic Visual-Linguistic Representations","authors":["Weijie Su","Xizhou Zhu","Yue Cao","Bin Li","Lewei Lu","Furu Wei","Jifeng Dai"],"url":"https://arxiv.org/abs/1908.08530","pdfUrl":"https://arxiv.org/pdf/1908.08530","codeUrl":null,"preprint":{"id":"1908.08530","submittedOn":"2019-08-22","url":"https://arxiv.org/abs/1908.08530"},"publication":{"venue":"ICLR","year":2020,"kind":"conference","url":"https://arxiv.org/abs/1908.08530"},"citation":"@misc{multimodalityvlbert2019,\n  title = {{VL-BERT: Pre-training of Generic Visual-Linguistic Representations}},\n  author = {Weijie Su and Xizhou Zhu and Yue Cao and Bin Li and Lewei Lu and Furu Wei and Jifeng Dai},\n  year = {2019},\n  eprint = {1908.08530},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/1908.08530}\n}\n","citationPath":"/content/papers/citations/multimodality/vlbert.b671fcd26fda.bib"},"thumbnail":{"src":"/content/papers/assets/d332d0a4275d9f06549b898bb356999e7c27c6af447647ea908b3e997116eb96.jpg","width":1576,"height":688},"locale":"en","path":"/content/papers/en/multimodality/vlbert.8518c58b4e4d.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-mechanism","text":"Pre-training Mechanism","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"comparison-with-other-models","text":"Comparison with Other Models","depth":3},{"id":"can-the-model-understand-natural-language","text":"Can the Model Understand Natural Language?","depth":3},{"id":"ablation-study","text":"Ablation Study","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"multimodality/visualbert","relation":"comparison","topic":"Joint image-text Transformer encoders"},{"id":"multimodality/vilt","relation":"comparison","topic":"Joint image-text Transformer encoders"}]},{"id":"multimodality/pixelbert","category":"multimodality","legacyPath":"multimodality/2004-pixelbert","legacySlug":"2004-pixelbert","legacyPaths":[],"title":"Pixel-BERT","subtitle":"The Language of Pixels","author":"Z. Yuan","paperDate":"2020-04-02","publishedOn":"2024-06-04","paperTitle":"Pixel-BERT: Aligning Image Pixels with Text by Deep Multi-Modal Transformers","paperUrl":"https://arxiv.org/abs/2004.00849","bibliography":{"title":"Pixel-BERT: Aligning Image Pixels with Text by Deep Multi-Modal Transformers","authors":["Zhicheng Huang","Zhaoyang Zeng","Bei Liu","Dongmei Fu","Jianlong Fu"],"url":"https://arxiv.org/abs/2004.00849","pdfUrl":"https://arxiv.org/pdf/2004.00849","codeUrl":null,"preprint":{"id":"2004.00849","submittedOn":"2020-04-02","url":"https://arxiv.org/abs/2004.00849"},"publication":null,"citation":"@misc{multimodalitypixelbert2020,\n  title = {{Pixel-BERT: Aligning Image Pixels with Text by Deep Multi-Modal Transformers}},\n  author = {Zhicheng Huang and Zhaoyang Zeng and Bei Liu and Dongmei Fu and Jianlong Fu},\n  year = {2020},\n  eprint = {2004.00849},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/2004.00849}\n}\n","citationPath":"/content/papers/citations/multimodality/pixelbert.c08c8ff05b89.bib"},"thumbnail":{"src":"/content/papers/assets/6bef1a64980cdb97551b5daaf2d3ff21f4bdb4b5bc852b778a2b24b84959a78e.jpg","width":1224,"height":628},"locale":"en","path":"/content/papers/en/multimodality/pixelbert.d7f7b2a07b45.md","headings":[{"id":"problem-definition","text":"Problem Definition","depth":2},{"id":"solution","text":"Solution","depth":2},{"id":"pixel-bert-model-design","text":"Pixel-BERT Model Design","depth":3},{"id":"pixel-feature-encoding","text":"Pixel Feature Encoding","depth":3},{"id":"sentence-feature-encoding","text":"Sentence Feature Encoding","depth":3},{"id":"cross-modal-learning","text":"Cross-Modal Learning","depth":3},{"id":"pre-training-methods","text":"Pre-Training Methods","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"vqa-performance","text":"VQA Performance","depth":3},{"id":"nlvr2-performance","text":"NLVR2 Performance","depth":3},{"id":"image-text-retrieval","text":"Image-Text Retrieval","depth":3},{"id":"key-design-elements","text":"Key Design Elements","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"multimodality/vilt","relation":"comparison","topic":"Learning image-text features from pixels"},{"id":"multimodality/simvlm","relation":"comparison","topic":"Learning image-text features from pixels"}]}],"text":"You might recall that the Transformer was introduced in 2017. Vision Transformer (ViT), specifically designed for images, appeared at the end of 2020, more than three years later.\n\nThis time, we don't have to wait that long. In less than six months, ViT was adapted to replace the visual architecture in VLP (Vision-Language Pretraining) models.\n\nIn recent years, research has focused on enhancing the visual representation capabilities of VL models to improve overall performance. But everyone seems reluctant to face one truth: **pretrained object detection models are really heavy!**\n\nThe authors of ViLT argue that we should **abandon this architectural approach altogether!**\n\n## Defining the Problem\n\nThe main issues and challenges defined by the authors can be summarized as follows:\n\n1. **Complex Visual Encoding Process**\n\n   Current VLP models often employ deep convolutional networks or pretrained object detectors for visual encoding. This process is usually complex and computationally intensive, posing significant challenges in terms of computational resources and runtime, especially when dealing with large volumes of images.\n\n2. **Heavy Visual Encoders**\n\n   Existing VLP models typically rely on heavy visual encoders to extract image features, placing a substantial burden on computational resources. Caching region features can mitigate this burden in academic experiments, but a new image in a live query still needs to be processed.\n\n3. **Balancing Encoding Efficiency and Performance**\n\n   Striking a balance between maintaining model performance and improving encoding efficiency while reducing computational and storage costs has been a longstanding challenge. Most previous research has not focused on exploring lightweight and fast encoding methods that also deliver good performance on vision and language tasks.\n\n4. **Limitations of Traditional Model Architectures**\n\n   Traditional VLP models often use deep, convolution-based encoding methods for visual inputs. This not only increases the model's complexity and runtime but also limits its flexibility and adaptability.\n\n## Solution\n\n### ViLT Design Philosophy\n\n![ViLT Architecture](/content/papers/assets/db3e95c83eeb69e4637bd856424cd54aae9d95bee85ea6991eae976fbef4eb0f.jpg)\n\n\n> [!TIP]\n> \n> This is a classic analysis diagram, not to be missed!\n\n\nThe authors categorize vision and language models along two dimensions:\n\n- Whether both modalities (vision and language) have equal levels of representation (dedicated parameters and/or computation).\n- Whether these modalities interact at deep network levels.\n\nCombining these points, the authors identify four prototypes:\n\n- **(a) Type**: Vision Semantic Embedding (VSE) models, such as VSE++ and SCAN, have separate vision and language encoders, with heavier visual embedding; their interaction is relatively shallow, typically a dot product or shallow attention.\n- **(b) Type**: Models like CLIP, which use separate but computationally equal encoders for both modalities and interact at relatively shallow levels.\n- **(c) Type**: Deep interaction models, such as recent VLP models, utilize deep transformer models to model interactions between the two modalities at deep levels but still rely on computationally intensive convolutional neural networks for visual encoding.\n- **(d) Type**: ViLT model, which concentrates most computations on modality interaction modeling, keeping the encoding layer for raw pixels relatively shallow and lightweight, similar to handling text computations.\n\nThese four prototypes reflect different design and computational trade-offs:\n\n- **(a) Type**: Potentially computationally lighter but sacrifices deep modality interaction capabilities.\n- **(b) Type**: Distributes computational resources equally to vision and language encoders but maintains relatively shallow interactions.\n- **(c) Type**: Invests heavily in modality interactions but may overly rely on computationally intensive convolutional neural networks for visual input processing.\n- **(d) Type**: Concentrates most computation on deep interaction, while keeping the modality-specific visual and text embedding layers relatively light.\n\nEach design choice brings different advantages and challenges. For instance, Type (b) models like CLIP excel in some zero-shot settings, but may be limited on tasks needing deep modality interaction. The paper's tested shallow-fusion NLVR2 setup is one example; the diagram does not say CLIP loses on every task. These categories give us a way to think about which design fits a specific application.\n\n### ViLT Design Details\n\n![ViLT Design](/content/papers/assets/9365d24c758fb8098d2dee6d761d9398a0800b712acb97926f5aac408eea2cce.jpg)\n\nViLT attempts to simplify the visual encoding process using a patch projection strategy and initializes from ViT, which has visual feature processing capabilities. The overall model architecture emphasizes reducing computational complexity and resource requirements while maintaining performance, showcasing a lightweight multimodal learning strategy.\n\n1. **Visual Encoding Method**\n\nViLT shares a similar text encoding approach with other VLP models, typically leveraging BERT's tokenizers and encoding techniques but differs in visual encoding.\n\nViLT's design emphasizes simplicity in visual encoding, comparing several strategies:\n\n- **Region Feature**\n\n  Traditional methods often use region features from object detectors (e.g., Faster R-CNN). ViLT avoids this approach, favoring more direct and simple methods.\n\n- **Grid Feature**\n\n  Grid features are another method of visual feature extraction, typically using output feature grids from convolutional neural networks. However, ViLT does not primarily use this method.\n\n- **Patch Projection**\n\n  ViLT adopts the patch projection method introduced by ViT. It cuts the image into 32×32 patches and linearly projects each patch to 768 dimensions, greatly simplifying visual encoding. This **projection layer** has about 2.4M parameters; the complete ViLT-B/32 model in Table 6 has 87.4M.\n\n2. **Model Architecture**\n\n   - ViLT has a streamlined single-stream architecture: image patches and text tokens interact in a shared Transformer.\n   - While many previous VLP models initialize from BERT weights, ViLT initializes the interaction Transformer from ViT-B/32. It uses the `bert-base-uncased` tokenizer, but learns the text embeddings from scratch. The authors cite earlier work reporting weaker results with BERT initialization; this paper does not present a separate BERT-initialization ablation of its own.\n   - The ViT-B/32 weights were pretrained on ImageNet-21K, then fine-tuned on ImageNet-1K. ViLT subsequently performs image-text pretraining and downstream fine-tuning.\n   - ViLT stacks include Multi-Head Self-Attention (MSA) and MLP layers, integrating textual information for multimodal pretraining.\n\n3. **Encoding Details**\n\n   - Text input is processed with token embedding and positional embedding matrices.\n   - Image input is divided into patches, flattened, linearly projected, and positionally encoded.\n   - Text and image encodings each receive a modality type embedding, then are concatenated into one sequence and updated through multiple Transformer layers. The first pooled output feeds image-text matching; masked text outputs feed language modeling, while contextualized text and patch outputs feed alignment.\n\n### Pretraining Strategies\n\nThe pretraining objectives are image-text matching, word-patch alignment and masked language modeling. Whole word masking specifies how text is masked; image augmentation below is used in downstream fine-tuning.\n\n1. **Image-Text Matching (ITM)**\n\n   - Random Image Replacement: To enhance the model's discriminative ability, there's a 0.5 probability of randomly replacing aligned images. In other words, there's a 50% chance that the image and its corresponding text description won't match.\n   - ITM Head: A single linear layer projects the pooled feature into match/nonmatch logits, trained with negative log-likelihood loss.\n\n2. **Word-Patch Alignment (WPA)**\n\n   Suppose an image shows a man eating an apple, with the text description \"A man is eating an apple.\" Typically, the Image-Text Matching (ITM) objective focuses on the overall correlation between the entire image and the entire sentence.\n\n   WPA instead encourages alignment at a finer level. It applies approximate optimal transport to the Transformer outputs for text tokens and image patches, then adds the approximate Wasserstein distance to the ITM loss with weight 0.1. The example suggests that *apple* should correspond to patches near the fruit, but there is no labeled \"apple region\" here.\n\n\n> [!TIP]\n> \n> **IPOT (Inexact Proximal Transport)**\n> \n> IPOT estimates an optimal transport plan between the text-token and image-patch representations and approximates their Wasserstein distance. That distance is the alignment loss; IPOT does not provide ground-truth word-to-region labels.\n\n\n3. **Masked Language Modeling (MLM)**\n\n   - Random Masking: Inspired by BERT, the authors randomly mask portions of the text and try to predict the masked parts based on context. There's a 0.15 probability of randomly masking text in the experiments.\n   - MLM Head: The model uses a two-layer MLP to predict the masked tokens, aiming to minimize the negative log-likelihood loss between the prediction and the true tokens.\n\n4. **Whole Word Masking**\n\n   - This strategy masks entire words rather than individual subwords. For example, \"giraffe\" might be tokenized as [\"gi\", \"##raf\", \"##fe\"]. Masking all its pieces prevents the model from guessing a missing piece from the others still visible; the authors expect this to encourage use of the surrounding context and image.\n   - This approach is inspired by [**Pre-training with Whole Word Masking for Chinese BERT**](https://arxiv.org/abs/1906.08101).\n\n5. **Image Augmentation**\n\n   During **downstream fine-tuning**, the authors use RandAugment but exclude color inversion and **cutout**, not ordinary cropping. Color inversion might contradict words about color; cutout might erase a small but important object. The Table 5 augmentation result belongs to fine-tuning, not pretraining.\n\nBy combining these strategies, the authors aim to use the interaction between images and text more effectively without a heavy detector front end.\n\n## Discussion\n\nIn this study, the model is pretrained on several datasets, including MSCOCO, Visual Genome, SBU Captions, and Google Conceptual Captions, to capture rich image and language features.\n\nDuring training, ViLT uses AdamW with learning rate warm-up and linear decay. Images are resized while preserving aspect ratio and sampled into patches; text uses the BERT tokenizer, with text-related parameters learned from scratch.\n\nAfter pretraining, the model is evaluated on VQAv2 and NLVR2 classification and MSCOCO and Flickr30K retrieval. Classification scores are means of three runs with different seeds and data order, with standard deviations in the ablation table; retrieval is fine-tuned once.\n\nThis entire process is run on 64 NVIDIA V100 GPUs, covering 100K or 200K steps for pretraining and 10 epochs for training on downstream tasks, aiming to optimize performance on vision and language tasks.\n\n### Performance Analysis\n\n![ViLT Performance](/content/papers/assets/e286ca10ae7009e31529076f6b00c6511aa7a18255c635b898ffb24864f137cd.jpg)\n\nFor VQAv2, ViLT-B/32 scores 70.33 on test-dev, or 71.26 with fine-tuning augmentation and longer pretraining. The table lists 71.35 for Pixel-BERT-R50 and 75.95 for VinVL-Base. The authors suggest that separated object representations from a detector might make object-heavy VQA questions easier to learn. This remains an explanation, not a cause directly tested by this table.\n\nFor NLVR2, the model must check a sentence against **two** images. It pairs each image with the sentence, then concatenates the two pooled representations for binary prediction. ViLT-B/32 scores 74.41/74.57 on dev/test-P, or 75.70/76.13 after longer pretraining and fine-tuning augmentation. That is competitive with some entries, though below VinVL-Base's 82.05/83.08. Its measured inference time makes the trade-off interesting.\n\n\n> [!TIP]\n> \n> The authors, noticing the VQA results, seemed disappointed, as evidenced by the brief discussion in the paper.\n> \n> Here are additional explanations to elaborate:\n> \n> When delving into the model's performance in VQA tasks, specific observations and strategies become apparent. VQA tasks typically involve questions about objects' characteristics, relationships, or other object-related attributes in images, such as \"What color is this object?\" or \"How many specific objects are in the picture?\" Therefore, understanding the objects and their attributes in images becomes crucial for solving such tasks.\n> \n> In this context, detector-generated separate object representations may give the model explicit candidates for individual objects as well as the whole image. That could make attributes such as type, size and color easier to learn; this table does not isolate the effect.\n> \n> Why is this important?\n> \n> Consider typical VQA questions, many of which require detailed analysis of specific objects within the image. For instance, a question might ask, \"What color is the ball?\" To answer this, the model must identify the ball and infer its color. A detector's separate representation might make that first step easier to learn.\n> \n> In other words, object-level analysis may help when a question concerns one object rather than the image as a whole. This might explain some VQA differences and suggest a path for improving visual representations, but the comparison does not show that patch models cannot locate objects.\n\n\n### Key Contributions\n\n![ViLT Key Contributions](/content/papers/assets/3c54ff420928793fe5b38c02e3d11401cf11a5fd0d7bb396356f253c56fd57cd.jpg)\n\nThe authors highlight three main operations based on the above table:\n\n1. **More Training Steps**\n\n   In the first three rows, with no whole word masking, MPP or augmentation, increasing pretraining from 25K to 100K steps improves the listed metrics. In the later 100K-to-200K comparison, classification scores rise again, but fine-tuned Flickr30K and MSCOCO text retrieval R@1 fall from 83.69/62.88 to 83.50/61.49. So I cannot call the effect consistent across all metrics; the parenthesized zero-shot scores improve separately.\n\n2. **Whole Word Masking**\n\n   At 100K steps, whole word masking raises VQAv2 from 70.16 to 70.33 and NLVR2 dev from 73.54 to 74.41. That supports its effect on these tasks, not a claim about language generation, which was not evaluated. Table 5 also shows that adding masked patch prediction (MPP) worsens most reported metrics; NLVR2 test-P, for example, falls from 74.57 to 73.54.\n\n3. **Image Augmentation**\n\n   Adding RandAugment during fine-tuning raises the 100K-step model's VQAv2 from 70.33 to 70.85 and NLVR2 dev from 74.41 to 74.91. The parenthesized zero-shot retrieval values do not change in this comparison.\n\n### Complexity Analysis\n\n![ViLT Complexity Analysis](/content/papers/assets/98e916562297b147fe57316af235fb3f43eec0801120f9ad137dddc7046601dc.jpg)\n\nComplexity analysis of VLP models can be approached from several angles, including parameter count, FLOP count, and inference latency. Key points of detailed discussion include:\n\n1. **Parameter Count**\n\n   Excluding text embeddings, Table 6 lists 87.4M parameters for ViLT-B/32, 94.9M for Pixel-BERT-R50, and 154.7M for UNITER-Base. Parameter count describes size.\n\n2. **FLOP Count**\n\n   FLOPs estimate forward-pass work. Table 6 lists 55.9G for ViLT-B/32, 136.8G for Pixel-BERT-R50, and 949.9G for UNITER-Base. Image resolutions and token counts differ, so this is not a same-input architecture ablation.\n\n3. **Inference Latency**\n\n   The authors measured visual embedding plus Transformer inference on a Xeon E5-2650 CPU and NVIDIA P40 GPU: about 15 ms for ViLT-B/32, 60 ms for Pixel-BERT-R50, and 900 ms for UNITER-Base. Text embedding is excluded. Per-class NMS can add latency to region methods even though it is not represented by tensor FLOPs. These benchmark numbers do not promise the same service latency on other hardware.\n\n4. **Input Resolution and Length**\n\n   Different VLP models use different image resolutions, likely based on the design objectives and application scenarios. Higher resolutions typically mean more detail but also higher computational costs.\n\n5. **Processing Input Sequences**\n\n   On this hardware, a BERT-base-style Transformer took less than 1 ms longer for input sequences under length 300. Table 6 uses 200 image patches plus 40 text tokens for ViLT-B/32; image patches can reach 240, and the total then still includes text tokens.\n\nConsidering these aspects, the complexity of VLP models is multifaceted, involving computational cost, resource usage, application scenarios, and performance. Understanding these sources and impacts of complexity provides crucial guidance for model selection, optimization, and deployment in practical applications.\n\n## Conclusion\n\nAt the time of this paper's publication, ViT had just been introduced, and many theories and practices were still being explored. Following ViT's introduction, numerous discussions and improvement papers emerged, focusing on training efficiency, accuracy improvements, and related research and theoretical debates for an extended period.\n\n\n> [!TIP]\n> \n> Adopting the ViT architecture to replace well-established object detection models was a risky yet opportunistic venture at the time. The VQA score fell behind stronger detector-based systems, showing a real limit in this comparison.\n\n\nHowever, ViLT also showed competitive performance in some tasks and striking measured inference speed. For real-time applications, that speed could be valuable, though the paper's hardware benchmark is not an end-to-end deployment test.\n\nViLT's proposal not only provides new directions for current model design and pretraining but also clearly indicates that future work should focus more on internal modality interactions within models rather than solely expanding model size or increasing network complexity. This presents a novel approach, pointing toward the potential new direction for model development: achieving performance improvements through more sophisticated design without adding significant computational burden.\n\nSuch models point to a future focused on modality interaction and internal structure optimization. Future research can delve deeper into ViLT's potential and limitations, drawing inspiration to develop more innovative models and application strategies.\n","imageSizes":{"/content/papers/assets/db3e95c83eeb69e4637bd856424cd54aae9d95bee85ea6991eae976fbef4eb0f.jpg":{"width":1024,"height":301},"/content/papers/assets/9365d24c758fb8098d2dee6d761d9398a0800b712acb97926f5aac408eea2cce.jpg":{"width":1224,"height":456},"/content/papers/assets/e286ca10ae7009e31529076f6b00c6511aa7a18255c635b898ffb24864f137cd.jpg":{"width":996,"height":600},"/content/papers/assets/3c54ff420928793fe5b38c02e3d11401cf11a5fd0d7bb396356f253c56fd57cd.jpg":{"width":1024,"height":204},"/content/papers/assets/98e916562297b147fe57316af235fb3f43eec0801120f9ad137dddc7046601dc.jpg":{"width":936,"height":540}}}
