# LLaVA-OneVision: Easy Visual Task Transfer

LLaVA-OneVision trains one open model across single-image, multi-image and video tasks

Bo Li, Yuanhan Zhang, Dong Guo, Renrui Zhang, Feng Li, Hao Zhang and 5 more · arXiv · 2024-8-6

- **Problem** Open multimodal models are usually tuned for one visual scenario at a time, and video-tuned models often lose image accuracy.
- **Method** LLaVA-OneVision keeps the LLaVA layout of encoder, projector and LLM. It sets token budgets per scenario with Higher AnyRes, then ends training on a mix of video and image data.
- **Results** After OneVision training, the 7B model scored 60.1 on EgoSchema, up from 52.9 for its single-image checkpoint.

## Why one open model for three visual scenarios

Most open LMM work pushes single-image performance, and only a few recent papers have tried multi-image inputs. Video LMMs often gain video accuracy at the cost of image accuracy, so few open models report strong results in all three scenarios at once.

According to the authors, LLaVA-NeXT-Interleave is the first attempt they know of that reports good results in all three scenarios, and LLaVA-OneVision inherits its training recipe and data. LLaVA-OneVision is built on the LLaVA-NeXT blog series, where earlier explorations covered zero-shot video transfer from an image-trained model, scaling of the LLM, ablations of architecture and visual representation, and interleaved multi-image, multi-frame and multi-view inputs.

The new model consolidates those findings and is trained on larger datasets, and the authors state that individual components were not extensively de-risked before training.

## Architecture: vision encoder, projector and LLM

The model keeps the minimal LLaVA layout: a SigLIP vision encoder produces grid features, a 2-layer MLP projector maps them into the word embedding space as visual tokens, and Qwen-2 generates the response. The authors use the grid features taken before and after the last Transformer layer in their experiments. Qwen-2 was chosen because it comes in several sizes and has strong language ability among public checkpoints, and SigLIP was chosen because it gives higher LMM performance among open vision encoders.

For a target answer, the probability is factorized token by token over the answer sequence, with each conditional depending on the visual input, the instruction and the earlier instruction and answer tokens. \\\[ p(X\_a \\mid X\_v, X\_q) = \\prod\_{i=1}^{L} p(x\_i \\mid X\_v, X\_{q,\<i}, X\_{a,\<i}) \\\] Adding X\_v explicitly to every conditional makes all answer turns grounded in the visual signal.

What counts as the visual input changes with the scenario: an individual image crop for single-image sequences, an individual image for multi-image sequences and an individual frame for video sequences.

## Higher AnyRes and per-scenario token budgets

Higher AnyRes uses this finding: it resizes and splits an image into crops, which keeps resolution high while the token budget is controlled.

With a configuration of width a and height b, the image is divided into a × b crops, the base image is resized and also passed through the encoder, and each crop contributes T tokens. \\\[ L = (a \\times b + 1) \\times T \\\] When L exceeds a threshold τ, the number of tokens per crop is reduced by bilinear interpolation, as the piecewise rule below specifies.

\\\[ T\_{new} = \\begin{cases} \\tau/(a \\times b + 1) & \\text{if } L \> \\tau \\\\ T & \\text{if } L \\le \\tau \\end{cases} \\\] Among the candidate configurations for a given image, the one needing the fewest crops is selected.

Single-image inputs use a large maximum crop configuration so that the original resolution is kept, and each image gets a long token sequence, because the authors have more high-quality single-image instruction data than video data. The authors argue that a long image sequence mimics video representation and so eases transfer from image understanding to video understanding.

Multi-image inputs use only the base resolution, which avoids multi-crop processing for each image. Video frames are resized to the base resolution and bilinear interpolation reduces tokens per frame, so more frames fit in the budget. The authors cite earlier evidence that this gives a better trade-off between performance and computation for video.

The base representation is 384×384 input with 729 tokens from SigLIP. The maximum visual token counts across scenarios are designed to be similar, so the model sees comparable token budgets whichever scenario it is trained on. These configurations are set for a fixed compute budget, and more tokens per image or frame can be used at training and inference when more compute is available.

## Knowledge data and instruction data

The authors argue that data quality matters more than quantity for multimodal training on top of pre-trained LLMs and vision transformers, and they focus on high-quality knowledge learning under a limited compute budget. Re-captioned detailed descriptions for images from COCO118K, BLIP558K and CC3M total 3.5M samples, generated by the LLaVA-NeXT-34B model.

Chinese data includes 92K detailed captions generated with GPT-4V through the Azure API, and 143K samples from Evo-Instruct balance language understanding. The authors note that 99.8% of the high-quality knowledge data is synthetic, because collecting large in-the-wild data is costly and restricted by copyright.

Instruction data is organized by vision input, language instruction and language response. Instructions fall into five categories: General QA, General OCR, Doc/Chart/Screen, Math Reasoning and Language. Free-form answers are kept as they were written, while fixed-form answers from academic datasets are reviewed and corrected by hand, following the LLaVA-1.5 prompting strategy for multiple-choice, short-answer and task-specific data.

The authors divide instruction data into a single-image group and an all-scenario group, since a stronger image model transfers better to multi-image and video tasks.

The single-image collection contains 3.2 million samples selected to be balanced across sources. The single-image portion of the OneVision mixture is sampled from the earlier single-image data rather than newly collected.

## A three-stage curriculum and what each stage updates

Training follows a curriculum in which the three functions are split into stages, so that each stage can be ablated and yields a reusable checkpoint. Stage-1 aligns visual features with the LLM word embedding space, Stage-1.5 learns high-quality knowledge with a configuration that mirrors Stage-2, and Stage-2 is visual instruction tuning.

Stage-2 has two phases: single-image training on 3.2 million instructions, then OneVision training on the mixture of video, single-image and multi-image data.

The base token count is 729 in Stage-1, and AnyRes allows up to 5 times more visual tokens in Stage-1.5 and up to 10 times in Stage-2. Stage-1 updates only the projector, and the later stages update the full model. Table 1 lists 558K samples for Stage-1, 4M for Stage-1.5, 3.2M for single-image Stage-2 and 1.6M for OneVision Stage-2, each for one epoch.

Batch size is 512 for the 0.5B model and 256 for the 7B and 72B models.

The authors describe OneVision training as the simplest and most cost-efficient way in the post-training stage to add multi-image and video understanding.

## Single-image benchmark results

Three sizes are evaluated, 0.5B, 7B and 72B, with GPT-4V and GPT-4o as references, using 0-shot evaluation with greedy decoding unless noted. The 72B model is higher than GPT-4V and lower than GPT-4o on most of the reported benchmarks.

On ChartQA it reached 83.7% against 78.5% for GPT-4V, where the GPT-4V figure is a 4-shot result as footnoted. On DocVQA test it reached 91.3% against 88.4% for GPT-4V and 92.8% for GPT-4o.

On MMBench en-dev it reached 85.9% against 75.0% for GPT-4V. The smallest model reached 57.1% on AI2D and 34.8% on MathVista testmini, which shows how much the scale changes single-image results.

The authors say a relatively larger gap remains on visual chat, which they leave to stronger LLMs, larger training data and better preference learning.

## Multi-image results and the effect of the OneVision stage

In-domain evaluation covers LLaVA-Interleave Bench subtasks and multi-view tasks from 3D-LLM, ScanQA, ALFRED and nuScenes VQA, because the training data includes their training splits. Out-domain evaluation covers the multi-image split of MathVerse, the SciVerse multi-image split, BLINK, the multi-image part of MMMU and MuirBench.

The authors state that the single-image model consistently outperforms existing multi-image LMMs on all benchmarks, but the table rows do not fully support that wording.

## Video benchmark results

Video evaluation covers ActivityNet-QA, EgoSchema, MLVU, PerceptionTest, VideoMME, NeXTQA, VideoDetailCaption and Video-ChatGPT, with most results reported as accuracy. For the 7B model, EgoSchema rises from 52.9 for the single-image checkpoint to 60.1 after OneVision training, and NextQA rises from 61.6 to 79.4.

The smallest gain for the 7B model is on ActivityNet-QA, from 55.1 to 56.6. The authors attribute this to many ActivityNet-QA questions being answerable from a single frame, which means the single-image checkpoint can already do well.

The authors describe the model as competitive with GPT-4V on ActivityNet-QA, MLVU and VideoMME.

For the 0.5B model, EgoSchema is 26.8 after OneVision training, below 33.1 for the single-image checkpoint, and the excerpt does not explain this drop.

## Qualitative evidence for cross-scenario transfer

The authors present emerging behaviours as worked examples, not as benchmark scores, so each example shows one case. S1 shows joint understanding of a diagram and a chart from multiple images, a task the authors say is not present in multi-image training data. S2 shows GUI understanding across multiple iPhone screenshots, which the authors describe as relying on OCR learned from single images and relational reasoning learned from multi-image data.

S3 shows set-of-mark prompting, where the model answers questions about numbered marks on an image, and the authors state this task is not explicitly included in the training data. The authors hypothesize that the set-of-mark ability is composed from visual referring and OCR. S4 shows image-to-video editing instructions, which the authors hypothesize come from composing a single-image editing task with a video description task.

S7 shows a description of a composed sub-video, and S8 shows that the model can read a highlighted area and a number on a player's shirt in a video without video training on visual prompts. S9 shows the model relating an image query to a video, and the authors suspect that strong single-image base training is needed for this to appear, since it was not seen in LLaVA-NeXT or LLaVA-Interleave.

## Limitations

The main open gap is visual chat, where the authors leave a larger gap for future work with stronger LLMs, larger training data and better preference learning.

Most reported results come from the original papers, and models without reported results were run in LMMs-Eval under consistent settings with greedy decoding and 0-shot evaluation. Table 2 marks benchmarks whose training sets were observed in the data mixture, so those rows do not measure held-out generalization.

The visual representation choices are supported in the excerpt by a reference to a separate ablation study rather than by ablations reported here. The emerging capabilities are shown with selected examples, so they do not measure how often these behaviours occur.

## Paper info

- **Authors**: Bo Li, Yuanhan Zhang, Dong Guo, Renrui Zhang, Feng Li, Hao Zhang, Kaichen Zhang, Peiyuan Zhang, Yanwei Li, Ziwei Liu, Chunyuan Li
- **Venue**: arXiv · Preprint
- **First published**: 2024-8-6
- **Added**: 2026-11-12
- **Updated**: 2024-10-26
- **Version**: v3
- **arXiv**: 2408.03326
- **Category**: cs.CV · cs.AI · cs.CL
- **Original paper terms**: [CC BY-NC-ND 4.0](https://creativecommons.org/licenses/by-nc-nd/4.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/2408.03326v3) · [PDF ↗](https://arxiv.org/pdf/2408.03326v3)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Bo Li, Yuanhan Zhang, Dong Guo, Renrui Zhang, Feng Li, Hao Zhang, Kaichen Zhang, Peiyuan Zhang, Yanwei Li, Ziwei Liu, Chunyuan Li (2024). LLaVA-OneVision: Easy Visual Task Transfer. arXiv:2408.03326v3. https://arxiv.org/abs/2408.03326v3

**BibTeX**

```
@misc{li2024llava,
  title = {{LLaVA-OneVision: Easy Visual Task Transfer}},
  author = {Bo Li and Yuanhan Zhang and Dong Guo and Renrui Zhang and Feng Li and Hao Zhang and Kaichen Zhang and Peiyuan Zhang and Yanwei Li and Ziwei Liu and Chunyuan Li},
  year = {2024},
  eprint = {2408.03326},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.03326v3}
}
```

## Other paper commentary

- [Zero-Reference Deep Curve Estimation for Low-Light Image Enhancement](https://refivu.com/en/papers/674a173b-b03f-4f14-89ec-10bec15a7629-zero-reference-deep-curve-estimation-for-low-light.md)
- [BEiT: BERT Pre-Training of Image Transformers](https://refivu.com/en/papers/de9cda9f-90f4-48cc-9bb3-e6f03f9683c7-beit-bert-pre-training-of-image-transformers.md)
- [Training Region-based Object Detectors with Online Hard Example Mining](https://refivu.com/en/papers/3c16d5fe-9eb6-4481-9b4d-f4eefd0171ee-training-region-based-object-detectors-with-online-hard.md)
- [Unsupervised Learning of Visual Features by Contrasting Cluster Assignments](https://refivu.com/en/papers/8f949bbf-9733-4844-b3ee-a88f5313c480-unsupervised-learning-of-visual-features-by-contrasting.md)
- [PWC-Net: CNNs for Optical Flow Using Pyramid, Warping, and Cost Volume](https://refivu.com/en/papers/ad6f8625-4b03-4079-ad4e-a2126c614f62-pwc-net-cnns-for-optical-flow-using-pyramid.md)
- [VMamba: Visual State Space Model](https://refivu.com/en/papers/4032560e-3e65-4a0f-b564-34cb12bd1c92-vmamba-visual-state-space-model.md)
- [Generative Adversarial Text to Image Synthesis](https://refivu.com/en/papers/e3b168a4-0572-44b9-b18e-ca2f31dfdc4a-generative-adversarial-text-to-image-synthesis.md)
- [European Union regulations on algorithmic decision-making and a "right to explanation"](https://refivu.com/en/papers/8d7d2fe1-f155-44ca-8f0a-551e154b6b3a-european-union-regulations-on-algorithmic-decision-making.md)
- [Don't Stop Pretraining: Adapt Language Models to Domains and Tasks](https://refivu.com/en/papers/0864e409-68d0-4d61-98fd-5ab02360285a-don-t-stop-pretraining-adapt-language-models-to.md)
- [Adversarial Autoencoders](https://refivu.com/en/papers/8e20edb4-f017-4781-86f9-478c6059260f-adversarial-autoencoders.md)

## Terms in this paper

- [Accuracy](https://refivu.com/en/terms/1995c0cd6282-accuracy)
- [curriculum learning](https://refivu.com/en/terms/b6ef6666624f-curriculum-learning)
- [bilinear interpolation](https://refivu.com/en/terms/7e615ad35dbd-bilinear-interpolation)
- [GPT-4o](https://refivu.com/en/terms/bad3b84e1308-gpt-4o)
- [visual instruction tuning](https://refivu.com/en/terms/da1b9f19793f-visual-instruction-tuning)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/65c8f703-40f9-4b42-9b35-ea00d5929366-llava-onevision-easy-visual-task-transfer)
