{"notes":[{"id":"multimodality/xgen-mm","category":"multimodality","legacyPath":"multimodality/2408-xgen-mm","legacySlug":"2408-xgen-mm","legacyPaths":[],"title":"xGen-MM","subtitle":"Also Known As BLIP-3","author":"Z. Yuan","paperDate":"2024-08-16","publishedOn":"2024-11-19","paperTitle":"xGen-MM (BLIP-3): A Family of Open Large Multimodal Models","paperUrl":"https://arxiv.org/abs/2408.08872v1","bibliography":{"title":"xGen-MM (BLIP-3): A Family of Open Large Multimodal Models","authors":["Le Xue","Manli Shu","Anas Awadalla","Jun Wang","An Yan","Senthil Purushwalkam","Honglu Zhou","Viraj Prabhu","Yutong Dai","Michael S Ryoo","Shrikant Kendre","Jieyu Zhang","Can Qin","Shu Zhang","Chia-Chih Chen","Ning Yu","Juntao Tan","Tulika Manoj Awalgaonkar","Shelby Heinecke","Huan Wang","Yejin Choi","Ludwig Schmidt","Zeyuan Chen","Silvio Savarese","Juan Carlos Niebles","Caiming Xiong","Ran Xu"],"url":"https://arxiv.org/abs/2408.08872v1","pdfUrl":"https://arxiv.org/pdf/2408.08872v1","codeUrl":"https://github.com/salesforce/LAVIS/tree/xgen-mm","preprint":{"id":"2408.08872","submittedOn":"2024-08-16","url":"https://arxiv.org/abs/2408.08872v1"},"publication":{"venue":"ICCV Workshops","year":2025,"kind":"workshop","url":"https://doi.org/10.1109/ICCVW69036.2025.00644"},"citation":"@misc{multimodalityxgenmm2024,\n  title = {{xGen-MM (BLIP-3): A Family of Open Large Multimodal Models}},\n  author = {Le Xue and Manli Shu and Anas Awadalla and Jun Wang and An Yan and Senthil Purushwalkam and Honglu Zhou and Viraj Prabhu and Yutong Dai and Michael S Ryoo and Shrikant Kendre and Jieyu Zhang and Can Qin and Shu Zhang and Chia-Chih Chen and Ning Yu and Juntao Tan and Tulika Manoj Awalgaonkar and Shelby Heinecke and Huan Wang and Yejin Choi and Ludwig Schmidt and Zeyuan Chen and Silvio Savarese and Juan Carlos Niebles and Caiming Xiong and Ran Xu},\n  year = {2024},\n  eprint = {2408.08872},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/2408.08872v1}\n}\n","citationPath":"/content/papers/citations/multimodality/xgen-mm.add46f5fa4f8.bib"},"thumbnail":{"src":"/content/papers/assets/137dfccb64dad60e27d7ec5e72feaf4d8dfca3e06fce13e74b096523d8c6a8ba.jpg","width":1224,"height":876},"locale":"en","path":"/content/papers/en/multimodality/xgen-mm.e9837902eec7.md","headings":[{"id":"problem-definition","text":"Problem Definition","depth":2},{"id":"problem-solving","text":"Problem Solving","depth":2},{"id":"model-architecture","text":"Model Architecture","depth":3},{"id":"training-process","text":"Training Process","depth":3},{"id":"pretraining-datasets","text":"Pretraining Datasets","depth":3},{"id":"supervised-fine-tuning-datasets","text":"Supervised Fine-Tuning Datasets","depth":3},{"id":"post-training-datasets","text":"Post-Training Datasets","depth":3},{"id":"results-and-discussion","text":"Results and Discussion","depth":2},{"id":"pretraining-model-performance","text":"Pretraining Model Performance","depth":3},{"id":"fine-tuned-model-performance","text":"Fine-Tuned Model Performance","depth":3},{"id":"pretraining-data-scale","text":"Pretraining Data Scale","depth":3},{"id":"any-resolution-training-strategy","text":"Any-Resolution Training Strategy","depth":3},{"id":"instruction-aware-design","text":"Instruction-Aware Design","depth":3},{"id":"diversity-of-pure-text-data","text":"Diversity of Pure Text Data","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{"discussion":"results-and-discussion"},"guide":null,"tags":["multimodality","transformers","datasets","salesforce"],"relatedReading":[{"id":"model-tuning/blip2","relation":"background","topic":"Connecting visual encoders to language models"},{"id":"multimodality/flamingo","relation":"comparison","topic":"Connecting visual inputs to language models"},{"id":"deepseek/deepseek-vl","relation":"comparison","topic":"Connecting visual inputs to language models"}]},{"id":"model-tuning/blip2","category":"model-tuning","legacyPath":"model-tuning/2301-blip2","legacySlug":"2301-blip2","legacyPaths":[],"title":"BLIP-2","subtitle":"Q-Former debuts","author":"Z. Yuan","paperDate":"2023-01-30","publishedOn":"2024-11-18","paperTitle":"BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Models","paperUrl":"https://arxiv.org/abs/2301.12597","bibliography":{"title":"BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Models","authors":["Junnan Li","Dongxu Li","Silvio Savarese","Steven Hoi"],"url":"https://arxiv.org/abs/2301.12597","pdfUrl":"https://arxiv.org/pdf/2301.12597","codeUrl":null,"preprint":{"id":"2301.12597","submittedOn":"2023-01-30","url":"https://arxiv.org/abs/2301.12597"},"publication":{"venue":"ICML","year":2023,"kind":"conference","url":"https://proceedings.mlr.press/v202/li23q.html"},"citation":"@misc{modeltuningblip22023,\n  title = {{BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Models}},\n  author = {Junnan Li and Dongxu Li and Silvio Savarese and Steven Hoi},\n  year = {2023},\n  eprint = {2301.12597},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/2301.12597}\n}\n","citationPath":"/content/papers/citations/model-tuning/blip2.ce71ab38cdb4.bib"},"thumbnail":{"src":"/content/papers/assets/f31adfa067aff2dd886466748e3c8b979e7d6bf591136c6bd8116ae711f1d686.jpg","width":1358,"height":502},"locale":"en","path":"/content/papers/en/model-tuning/blip2.743fdf342390.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":"phase-1-pre-training","text":"Phase 1 Pre-Training","depth":3},{"id":"phase-2-pre-training","text":"Phase 2 Pre-Training","depth":3},{"id":"pre-training-datasets","text":"Pre-Training Datasets","depth":3},{"id":"pre-training-setup","text":"Pre-Training Setup","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"zero-shot-vqa","text":"Zero-shot VQA","depth":3},{"id":"finetuned-vqa","text":"Finetuned VQA","depth":3},{"id":"image-captioning","text":"Image Captioning","depth":3},{"id":"image-text-retrieval","text":"Image-Text Retrieval","depth":3},{"id":"image-to-text-generation-showcase","text":"Image-to-Text Generation Showcase","depth":3},{"id":"failure-cases","text":"Failure Cases","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{"text-to-image-generation-showcase":"image-to-text-generation-showcase"},"guide":null,"tags":["model-tuning","multimodality","parameter-efficient-tuning","salesforce"],"relatedReading":[{"id":"multimodality/blip","relation":"background","topic":"Connecting visual encoders to language models"},{"id":"multimodality/xgen-mm","relation":"next","topic":"Connecting visual encoders to language models"}]},{"id":"multimodality/flamingo","category":"multimodality","legacyPath":"multimodality/2204-flamingo","legacySlug":"2204-flamingo","legacyPaths":[],"title":"Flamingo","subtitle":"Richly Illustrated","author":"Z. Yuan","paperDate":"2022-04-29","publishedOn":"2024-11-19","paperTitle":"Flamingo: a Visual Language Model for Few-Shot Learning","paperUrl":"https://arxiv.org/abs/2204.14198","bibliography":{"title":"Flamingo: a Visual Language Model for Few-Shot Learning","authors":["Jean-Baptiste Alayrac","Jeff Donahue","Pauline Luc","Antoine Miech","Iain Barr","Yana Hasson","Karel Lenc","Arthur Mensch","Katie Millican","Malcolm Reynolds","Roman Ring","Eliza Rutherford","Serkan Cabi","Tengda Han","Zhitao Gong","Sina Samangooei","Marianne Monteiro","Jacob Menick","Sebastian Borgeaud","Andrew Brock","Aida Nematzadeh","Sahand Sharifzadeh","Mikolaj Binkowski","Ricardo Barreira","Oriol Vinyals","Andrew Zisserman","Karen Simonyan"],"url":"https://arxiv.org/abs/2204.14198","pdfUrl":"https://arxiv.org/pdf/2204.14198","codeUrl":null,"preprint":{"id":"2204.14198","submittedOn":"2022-04-29","url":"https://arxiv.org/abs/2204.14198"},"publication":{"venue":"NeurIPS","year":2022,"kind":"conference","url":"https://arxiv.org/abs/2204.14198"},"citation":"@misc{multimodalityflamingo2022,\n  title = {{Flamingo: a Visual Language Model for Few-Shot Learning}},\n  author = {Jean-Baptiste Alayrac and Jeff Donahue and Pauline Luc and Antoine Miech and Iain Barr and Yana Hasson and Karel Lenc and Arthur Mensch and Katie Millican and Malcolm Reynolds and Roman Ring and Eliza Rutherford and Serkan Cabi and Tengda Han and Zhitao Gong and Sina Samangooei and Marianne Monteiro and Jacob Menick and Sebastian Borgeaud and Andrew Brock and Aida Nematzadeh and Sahand Sharifzadeh and Mikolaj Binkowski and Ricardo Barreira and Oriol Vinyals and Andrew Zisserman and Karen Simonyan},\n  year = {2022},\n  eprint = {2204.14198},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/2204.14198}\n}\n","citationPath":"/content/papers/citations/multimodality/flamingo.1eec4b4d1b8c.bib"},"thumbnail":{"src":"/content/papers/assets/7b152e4d7a27be0ba360c48b545d1d581d90347a173c4812acf21f351fb62759.jpg","width":1226,"height":562},"locale":"en","path":"/content/papers/en/multimodality/flamingo.d6c5b7c33631.md","headings":[{"id":"problem-definition","text":"Problem Definition","depth":2},{"id":"solution","text":"Solution","depth":2},{"id":"model-architecture","text":"Model Architecture","depth":3},{"id":"cross-attention-layer","text":"Cross-Attention Layer","depth":3},{"id":"training-datasets-and-strategy","text":"Training Datasets and Strategy","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"results-presentation","text":"Results Presentation","depth":3},{"id":"comparison-with-other-models","text":"Comparison with Other Models","depth":3},{"id":"fine-tuning-the-model","text":"Fine-Tuning the Model","depth":3},{"id":"ablation-studies","text":"Ablation Studies","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"tags":["multimodality","transformers","few-shot-learning","google-deepmind"],"relatedReading":[{"id":"multimodality/xgen-mm","relation":"comparison","topic":"Connecting visual inputs to language models"},{"id":"deepseek/deepseek-vl","relation":"comparison","topic":"Connecting visual inputs to language models"}]},{"id":"deepseek/deepseek-vl","category":"deepseek","legacyPath":"deepseek/2403-deepseek-vl","legacySlug":"2403-deepseek-vl","legacyPaths":[],"title":"DeepSeek-VL","subtitle":"Multimodal Training Recipe","author":"Z. Yuan","paperDate":"2024-03-08","publishedOn":"2025-03-26","paperTitle":"DeepSeek-VL: Towards Real-World Vision-Language Understanding","paperUrl":"https://arxiv.org/abs/2403.05525v2","bibliography":{"title":"DeepSeek-VL: Towards Real-World Vision-Language Understanding","authors":["Haoyu Lu","Wen Liu","Bo Zhang","Bingxuan Wang","Kai Dong","Bo Liu","Jingxiang Sun","Tongzheng Ren","Zhuoshu Li","Hao Yang","Yaofeng Sun","Chengqi Deng","Hanwei Xu","Zhenda Xie","Chong Ruan"],"url":"https://arxiv.org/abs/2403.05525v2","pdfUrl":"https://arxiv.org/pdf/2403.05525v2","codeUrl":"https://github.com/deepseek-ai/DeepSeek-VL","preprint":{"id":"2403.05525","submittedOn":"2024-03-08","url":"https://arxiv.org/abs/2403.05525v2"},"publication":null,"citation":"@misc{deepseekdeepseekvl2024,\n  title = {{DeepSeek-VL: Towards Real-World Vision-Language Understanding}},\n  author = {Haoyu Lu and Wen Liu and Bo Zhang and Bingxuan Wang and Kai Dong and Bo Liu and Jingxiang Sun and Tongzheng Ren and Zhuoshu Li and Hao Yang and Yaofeng Sun and Chengqi Deng and Hanwei Xu and Zhenda Xie and Chong Ruan},\n  year = {2024},\n  eprint = {2403.05525},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/2403.05525v2}\n}\n","citationPath":"/content/papers/citations/deepseek/deepseek-vl.fdc7faab3920.bib"},"thumbnail":{"src":"/content/papers/assets/78f904e09b9ea01141f73c74d4fbe43ecfb9f48f77b4b281fed91838721149e0.jpg","width":1224,"height":488},"locale":"en","path":"/content/papers/en/deepseek/deepseek-vl.7061c8206bb3.md","headings":[{"id":"problem-definition","text":"Problem Definition","depth":2},{"id":"solution","text":"Solution","depth":2},{"id":"training-data","text":"Training Data","depth":3},{"id":"model-architecture","text":"Model Architecture","depth":3},{"id":"training-process","text":"Training Process","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"ablation-study","text":"Ablation Study","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"tags":["multimodality","transformers","training-data","deepseek"],"relatedReading":[{"id":"multimodality/flamingo","relation":"comparison","topic":"Connecting visual inputs to language models"},{"id":"multimodality/xgen-mm","relation":"comparison","topic":"Connecting visual inputs to language models"}]}],"text":"Coming up with a name for a research paper is no easy task.\n\nIf there’s already a successful model in the past, releasing a sequel might draw more attention. However, to achieve even greater success, perhaps a brand-new name is needed.\n\nSo, this time, the authors decided, _Why not both?_ They included both the new and the old names in the paper title!\n\n## Problem Definition\n\nLet’s build on the discussion of BLIP-2.\n\n\n> [!TIP]\n> \n> If you haven’t read about BLIP-2, you can refer to:\n> \n> - [**[23.01] BLIP-2: The Debut of Q-Former**](/blog/papers/model-tuning/blip2)\n\n\nThe authors argue that Q-Former and its three objectives—ITM, ITC, and ITG—make large-scale training more complicated. BLIP-2 also mainly handles one image at a time, so an interleaved document with multiple images and text is awkward to feed in. The alternating modalities here are **images and text**, not two kinds of text.\n\nSo, how was this \"interleaved data format\" handled in the past?\n\nFor that, we have to revisit another well-known paper: Flamingo.\n\n\n> [!TIP]\n> \n> We recommend readers to review the content of Flamingo first:\n> \n> - [**[22.04] Flamingo: Multimodal Marvel**](/blog/papers/multimodality/flamingo)\n\n\nFlamingo first compresses each image into visual tokens with a Perceiver Resampler, then inserts trainable gated cross-attention layers between the blocks of a frozen language model. Those layers let the text attend to the images in an interleaved input:\n\n\n\n![flamingo](/content/papers/assets/7b152e4d7a27be0ba360c48b545d1d581d90347a173c4812acf21f351fb62759.jpg)\n\n\n[Flamingo paper, Figure 3](https://arxiv.org/pdf/2204.14198v2): frozen vision encoder and language model, with a trained Perceiver Resampler and interleaved cross-attention layers.\n\n\n\n\n\n---\n\nThe authors still find those extra layers throughout Flamingo's language model rather cumbersome. Its Perceiver Resampler, though, catches their eye: like Q-Former, it condenses image information into a small set of query tokens, but makes for a more direct connector here.\n\nThus, the goals of this paper are:\n\n1. Replace Q-Former with a Perceiver Resampler that yields a compact set of visual tokens.\n2. Feed visual and text tokens into one decoder in document order, without Flamingo-style cross-attention blocks between language-model layers. Train with next-**text**-token prediction.\n\nFinally, to improve model performance, the authors introduced a large-scale, high-quality dataset to enhance the foundation of training.\n\nThe larger bet is on data and openness. By releasing the data recipe, models, and fine-tuning code together, the authors give others a way to reproduce and inspect the method. Closing the proprietary-model gap remains a research aim; the individual benchmarks below tell us how far this version gets.\n\n## Problem Solving\n\n### Model Architecture\n\n\n\n![model](/content/papers/assets/137dfccb64dad60e27d7ec5e72feaf4d8dfca3e06fce13e74b096523d8c6a8ba.jpg)\n\n\n[xGen-MM paper, Figure 2](https://arxiv.org/pdf/2408.08872v1): the ViT is frozen, while the vision-token sampler and phi3-mini are trained; loss applies to text tokens.\n\n\n\n\n\nThe images and text enter one language decoder in their original order. In the diagram, snowflakes mean frozen parameters and flames mean trainable ones. Do not read the snowflake backward: the ViT stays frozen, while phi3-mini and the vision-token sampler are updated.\n\nThe main modules of the model are:\n\n- **Vision Transformer (ViT)**: Responsible for processing image features.\n- **Vision Token Sampler (Perceiver Resampler)**: Compresses the image embeddings.\n- **Pretrained Large Language Model (phi3-mini)**: Serves as the language processing core for multimodal inputs.\n\nEach image passes through the ViT and Perceiver Resampler; text goes through its tokenizer. The resulting tokens are fed to phi3-mini in their original interleaved order to predict the next text token. There is no image-reconstruction target and no three-loss BLIP-2 objective here.\n\n### Training Process\n\nThe model architecture is simple, but the training process is intricate. It has four broad stages: pretraining, single-image instruction tuning, interleaved multi-image tuning, and post-training. The last stage has a DPO step and a safety-tuning step.\n\n- **Stage 1: Pretraining**\n\n  The model predicts the next text token over a dataset mixture. The 4B base model analyzed here sees roughly 100 billion multimodal tokens, with $384 \\times 384$ images during pretraining. The any-resolution strategy comes later, during fine-tuning.\n\n- **Stage 2: Supervised Fine-Tuning (SFT)**\n\n  Public instruction data teaches the model to answer user requests. Any-resolution token sampling splits larger images into crops, encodes and samples each crop separately, and includes a downscaled full-image view. More crops can mean more visual tokens.\n\n\n> [!TIP]\n> \n> For more information, readers can refer to the following papers:\n> \n> - [**[23.10] Improved baselines with visual instruction tuning**](https://arxiv.org/abs/2310.03744)\n> - [**[24.05] What matters when building vision-language models?**](https://arxiv.org/abs/2405.02246)\n> - [**[24.06] Cambrian-1: A Fully Open, Vision-Centric Exploration of Multimodal LLMs**](https://arxiv.org/abs/2406.16860)\n\n\n- **Interleaved Multi-Image Supervised Fine-Tuning**\n\n  The single-image instruction model receives another round of training with multi-image and interleaved image-text instructions. Some single-image examples remain in the mix to protect that ability. It uses the same any-resolution strategy.\n\n- **Stage 3: Post-Training**\n\n  This stage focuses on enhancing the model's usefulness while reducing hallucinations and toxicity.\n\n  This phase is divided into two sub-stages:\n\n  - **Sub-Stage 1: Direct Preference Optimization (DPO)**\n    - Uses paired preferences to improve helpfulness and visual faithfulness.\n  - **Sub-Stage 2: Safety Fine-Tuning**\n    - Reduces unsafe responses on the paper's specified safety test.\n\n### Pretraining Datasets\n\n\n\n![data](/content/papers/assets/c65c622aa82c83dba0ca0e6fd7f5d9205e7a5436ec24cf4eb700093574bf14fd.jpg)\n\n\n[xGen-MM paper, Figure 3](https://arxiv.org/pdf/2408.08872v1): pretraining sampling proportions; MINT-1T contributes 32.5%, KALE 25%, and OBELICS 17.5%. A source dataset's total size is not the amount consumed in this run.\n\n\n\n\n\nThe pretraining datasets comprise a mixture of multimodal datasets, as shown in the figure above, sampled according to specific proportions. The datasets include:\n\n- **Multimodal Interleaved Dataset Mixture**\n\n  - **MINT-1T**: The source corpus has about one trillion tokens across HTML, PDF, and arXiv subsets, mixed here at 7:5:1. The model did not consume the entire source corpus.\n  - **OBELICS**: Primarily HTML documents, with different sources and preprocessing from MINT-1T.\n\n- **Caption Dataset Mixture**\n\n  - **BLIP3-KALE**: Knowledge-augmented dense image captions.\n  - **BLIP3-OCR-200M**: PaddleOCR extracts text from 200 million high-resolution DataComp-1B images to build captions at several levels of detail. Bounding-box versions exist, but **this model uses text-only OCR information**.\n\n\n\n      ![blip3-ocr](/content/papers/assets/398117640e13dce9533df6a8289292eb0ab369de729d0d3488b75c9f22f89f66.jpg)\n      \n\n[xGen-MM paper, Figure 4](https://arxiv.org/pdf/2408.08872v1): six OCR-caption granularities. The model uses the version without bounding-box coordinates.\n\n\n\n\n\n  - **BLIP3-GROUNDING-50M**: Open-world tagging and detection models generate object and location descriptions for 50 million DataComp-1B images. These generated labels are not individually human-verified ground truth.\n\n\n\n      ![blip3-grounding](/content/papers/assets/00782b3394d2ade5575556e894540791a1f1c851adc82ecef45faa649f40caf2.jpg)\n      \n\n[xGen-MM paper, Figure 5](https://arxiv.org/pdf/2408.08872v1): examples of coarse and fine-grained object-location captions and boxes.\n\n\n\n\n\n  - **Other Public Datasets**: These include Datacomp-1B, CC12M, CC3M, VG, and SBU, among others.\n\n### Supervised Fine-Tuning Datasets\n\nThe datasets for this phase primarily include:\n\n- **Instruction-Following Dataset**\n\n  - Public datasets from various domains, including multimodal dialogue, image captioning, visual question answering, chart/document understanding, and scientific/mathematical data.\n  - Text-only instructions are also mixed in to help preserve language ability. The **roughly one million public examples refer to the entire instruction mixture**, not the text-only subset; training runs for one epoch.\n\n- **Interleaved Multi-Image Instruction Dataset**\n  - Training begins with a single-image fine-tuned model, adding multi-image/interleaved image-text instruction data.\n  - To prevent degradation of single-image capabilities, some single-image data is mixed into the multi-image training data.\n\n### Post-Training Datasets\n\nPost-training is divided into two parts:\n\n1. **Direct Preference Optimization (DPO)**\n\n   - VLFeedback contains about 80,000 multimodal instructions. Different models generate responses, which GPT-4V scores for helpfulness, visual faithfulness, and ethics; filtering yields 62,600 preference pairs. DPO runs for one epoch with LoRA updating about 2.5% of the LLM backbone weights. A response to a noised image is also used as an extra dispreferred answer to target the model's own hallucinations.\n\n\n> [!TIP]\n> \n> If you're interested in LoRA, you can refer to our earlier article:\n> \n> - [**[21.06] LoRA: A Fraction of an LLM**](/blog/papers/model-tuning/lora)\n\n\n2. **Safety Fine-Tuning**\n\n   - VLGuard contributes about 2,000 unsafe examples involving privacy, sensitive topics, deception, and discrimination. Another 5,000 safe instructions are mixed in. Safety tuning runs for three epochs, again updating about 2.5% of the backbone through LoRA.\n\n## Results and Discussion\n\n### Pretraining Model Performance\n\n\n\n![pretrain](/content/papers/assets/b6c6b138d9011144b401adac4949a088f59526dfb4f12da70bb60419ce25c314.jpg)\n\n\n[xGen-MM paper, Table 1](https://arxiv.org/pdf/2408.08872v1): 0/4/8-shot VQA accuracy and captioning CIDEr for the 4B base model. Zero-shot scores are especially prompt-sensitive.\n\n\n\n\n\nThe authors compared BLIP-3 with other multimodal models across multiple benchmarks, evaluating its few-shot learning capabilities on tasks like image captioning and visual question answering (VQA).\n\nThe focus was on zero-shot performance as well as few-shot settings (4-shots and 8-shots).\n\nAt **8 shots**, the 4B base model scores 66.9 on VQAv2, 55.3 on TextVQA, and 94.0 on TextCaps, versus MM1-3B's 63.6, 44.6, and 88.8. It also exceeds Idefics-9B in those columns. Yet Idefics2-8B reaches 70.3/57.9 on VQAv2/TextVQA, and MM1-7B has higher COCO/NoCaps CIDEr. Model size, training data, and prompts are not fully controlled across systems.\n\nFor xGen-MM itself, most columns improve from zero to four to eight examples; TextVQA, for instance, moves 34.0→54.2→55.3. The paper cautions that zero-shot results are sensitive to prompts. One impressive column is not a universal win.\n\n### Fine-Tuned Model Performance\n\n\n\n![fine-tune](/content/papers/assets/626d5430068576362f60169d5fd391ee5409e546592416f935cac9a2951212a2.jpg)\n\n\n[xGen-MM paper, Table 2](https://arxiv.org/pdf/2408.08872v1): single-image instruction models. Avg.(all) and Avg.(perc.) cover different columns; rows with missing scores have no overall average.\n\n\n\n\n\nThe authors conducted a comprehensive evaluation of the fine-tuned model on multimodal (image-text) benchmarks, focusing on the following abilities:\n\n- **General VQA**: Assessing the model's ability to answer image-related questions.\n- **Visual Perception**: Testing image understanding and parsing.\n- **Domain Knowledge**: Performance on datasets related to mathematics and science.\n- **OCR Capability**: Handling text-rich images (e.g., documents and charts).\n- **Hallucination Mitigation**: Reducing the generation of false content.\n\nThe comparison mainly includes open and closed models around 3B–4B parameters. GPT-4V is listed as a reference, not as another model under 5B parameters.\n\n\n> [!TIP]\n> \n> Closed-source models under 5B parameters include:\n> \n> - [**[24.03] MM1: Methods, Analysis & Insights from Multimodal LLM Pre-training**](https://arxiv.org/abs/2403.09611)\n> \n> SOTA open-source models include:\n> \n> - [**[23.12] Vila: On Pre-training for Visual Language Models**](https://arxiv.org/abs/2312.07533)\n> - [**[24.04] Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phone**](https://arxiv.org/abs/2404.14219)\n\n\nUnder Table 2's common evaluation, xGen-MM-instruct scores 64.8/66.9 on Avg.(all)/Avg.(perc.); the interleave variant scores 65.1/67.3. Its overall single-image average rises slightly, but not every column does: MMMU falls 42.8→41.1 and CVBench-3D 75.4→72.3. Models with missing columns, including GPT-4V, cannot be compared by that overall average.\n\nThe multi-image result is in [Table 3 of the paper](https://arxiv.org/pdf/2408.08872v1): instruct→interleave improves BLINK 46.6→49.7, QBench-2 52.4→75.1, and Mantis-eval 42.4→56.7. QBench-2 is above the table's GPT-4V score of 73.4; BLINK and Mantis-eval remain below it. That gives the second training round a more concrete payoff.\n\n\n> [!TIP]\n> \n> `interleave` refers to fine-tuning datasets where the input format alternates between images and text, rather than being purely image-based or text-based.\n\n\nPost-training has its own tradeoffs. In [Table 4](https://arxiv.org/pdf/2408.08872v1), VLGuard attack success goes from 56.6% to 54.9% after DPO and 5.2% after safety tuning; HallusionBench accuracy goes 56.3→57.1→56.6. The safety result is substantial, but hallucination metrics do not improve monotonically at every step.\n\n### Pretraining Data Scale\n\n\n\n![pretrain data](/content/papers/assets/8687475d52ba12292ca5bbc7d86b2aad7d08aa1678efb9d65c4d4bd229d5d1cc.jpg)\n\n\n[xGen-MM paper, Figure 7](https://arxiv.org/pdf/2408.08872v1): pretraining tokens against 4/8-shot scores on COCO-Caps, TextCaps, and OK-VQA.\n\n\n\n\n\nThe prose discusses 2B–100B multimodal tokens; the plotted points shown above run from 4B to 100B. The curves compare 4/8-shot scores under one data recipe, without plotting the compute cost of each run.\n\n- **4B→60B**: COCO-Caps and TextCaps CIDEr rise most visibly. The third panel is **OK-VQA**, not TextVQA.\n- **60B→100B**: Most lines continue to climb more slowly; 4-shot OK-VQA, for example, moves from roughly 47.2 to 48.9.\n\nThe curves show diminishing marginal gains. Calling 60B the optimal investment would also require GPU time, data quality, and other tasks, none of which this plot optimizes.\n\n### Any-Resolution Training Strategy\n\n\n\n![resolution](/content/papers/assets/04ab271e52b38848fba7523a79a0cf978c7199ec3defcbd528edee30968c951d.jpg)\n\n\n[xGen-MM paper, Figure 8(a)](https://arxiv.org/pdf/2408.08872v1): sampling ablation on DocVQA, ChartQA, and OCRBench using a simplified SFT mixture.\n\n\n\n\n\nThe authors investigated three different strategies for image downsampling during training:\n\n- **Anyres patch sampling**: A high-resolution image is split into crops plus a downscaled global view. Each crop's ViT embeddings are sampled separately by the Perceiver Resampler before concatenation for the LLM.\n- **Base resolution**: The image is resized, preserving its aspect ratio, to the visual encoder's default size.\n- **Anyres fixed sampling**: Embeddings from all crops are concatenated first, then jointly compressed to a fixed 128 or 256 visual tokens.\n\nPatch-wise sampling leads on all three document/OCR benchmarks in the plot: DocVQA is roughly 55 versus 35 for base resolution. These ablations use a simplified SFT recipe, so their numbers should not be mixed with the main Table 2 results. The plot does not report the full speed cost of the extra crops and tokens.\n\n### Instruction-Aware Design\n\n\n\n![instruction](/content/papers/assets/215a8d4f744b79b56a04b13da714b4eb4291cbff59c53df91d834f591544e390.jpg)\n\n\n[xGen-MM paper, Figure 8(b)](https://arxiv.org/pdf/2408.08872v1): mean scores across Perception, OCR, Science & Math, and Hallucination groups; instruction tokens bring small changes in both directions.\n\n\n\n\n\nThe authors conducted experiments to test whether incorporating textual instruction tokens during the image downsampling process could enhance model performance. This approach is referred to as instruction-aware visual token sampling.\n\nThe averages move slightly in both directions, with no consistent gain; the paper does not report a statistical significance test. The authors hypothesize that a Perceiver Resampler made only of cross-attention layers may not reproduce Q-Former's instruction-aware effect. That is a hypothesis, not an isolated causal finding.\n\nGiven the minimal performance difference, the authors retained the original Perceiver Resampler design to simplify the model. They suggest that future research could explore improving instruction-aware visual-language connectors.\n\n### Diversity of Pure Text Data\n\n\n\n![text](/content/papers/assets/1cdd78a706e155e14bedb454d99bf549d12954fc4b2f746df60346be6828403b.jpg)\n\n\n[xGen-MM paper, Table 8](https://arxiv.org/pdf/2408.08872v1): equal-sized text-only SFT mixtures; math and coding data produce gains and losses across benchmarks.\n\n\n\n\n\nThe authors examined how the diversity of pure text data impacts multimodal model performance, particularly on multimodal benchmarks involving math and programming tasks.\n\nThe study compared two types of pure text datasets:\n\n- **Diverse Data**: Includes data from multiple domains such as dialogue, mathematics, and programming.\n- **Single-Type Data**: Includes only general conversational data.\n\nAdding math and code moves MathVista 37.1→38.9 and MMMU 39.1→40.9. But ScienceQA falls 84.8→81.4, MMStar 46.1→45.3, and MME 64.9→64.8. The table does not support a blanket claim that more diverse text improves every domain.\n\nMaintaining language ability is the authors' reason for including pure-text data in visual instruction tuning. Table 8 measures tradeoffs between **equal-sized data mixtures** on a few multimodal benchmarks; it does not directly measure how much language ability was preserved.\n\n## Conclusion\n\nThe authors introduce **xGen-MM (BLIP-3)** as a comprehensive framework for training a family of open large multimodal models. With carefully assembled large-scale dataset mixtures, it shows multimodal in-context learning ability and achieves impressive results on several multimodal benchmarks. The v1 tables discussed here concern the 4B family, and individual larger models or tasks still provide stronger comparisons.\n\nCompetition between open and closed models remains intense. By releasing models, curated datasets, and fine-tuning code, the authors hope to give the research community accessible multimodal foundations and encourage further exploration of LMM capabilities. The reported benchmark gains belong to the stated training and evaluation conditions.\n\n\n> [!NOTE]\n> \n> Open-source project: [**salesforce/LAVIS**](https://github.com/salesforce/LAVIS/tree/xgen-mm)\n","imageSizes":{"/content/papers/assets/7b152e4d7a27be0ba360c48b545d1d581d90347a173c4812acf21f351fb62759.jpg":{"width":1226,"height":562},"/content/papers/assets/137dfccb64dad60e27d7ec5e72feaf4d8dfca3e06fce13e74b096523d8c6a8ba.jpg":{"width":1224,"height":876},"/content/papers/assets/c65c622aa82c83dba0ca0e6fd7f5d9205e7a5436ec24cf4eb700093574bf14fd.jpg":{"width":1224,"height":880},"/content/papers/assets/398117640e13dce9533df6a8289292eb0ab369de729d0d3488b75c9f22f89f66.jpg":{"width":1156,"height":1080},"/content/papers/assets/00782b3394d2ade5575556e894540791a1f1c851adc82ecef45faa649f40caf2.jpg":{"width":1224,"height":528},"/content/papers/assets/b6c6b138d9011144b401adac4949a088f59526dfb4f12da70bb60419ce25c314.jpg":{"width":1224,"height":700},"/content/papers/assets/626d5430068576362f60169d5fd391ee5409e546592416f935cac9a2951212a2.jpg":{"width":1224,"height":392},"/content/papers/assets/8687475d52ba12292ca5bbc7d86b2aad7d08aa1678efb9d65c4d4bd229d5d1cc.jpg":{"width":1224,"height":300},"/content/papers/assets/04ab271e52b38848fba7523a79a0cf978c7199ec3defcbd528edee30968c951d.jpg":{"width":586,"height":428},"/content/papers/assets/215a8d4f744b79b56a04b13da714b4eb4291cbff59c53df91d834f591544e390.jpg":{"width":578,"height":422},"/content/papers/assets/1cdd78a706e155e14bedb454d99bf549d12954fc4b2f746df60346be6828403b.jpg":{"width":1224,"height":228}}}
