Improved Baselines with Visual Instruction Tuning

A simple recipe (CLIP at 336px, a two-layer MLP, Vicuna-13B) matches or beats far more complex vision-language models. It trains on 1.2M public samples in one day on 8 A100s.

Step through the fixes, one at a time, and watch the same question get a better answer while the MME score climbs. Then we build, piece by piece, why such a small recipe works.

You need Vision Transformers (ViT), CLIP and LLM basics. We build the rest from zero.

Liu, Li, Li, Lee, 2023. arXiv:2310.03744

Add the fixes

Ready

Original LLaVA scores 809.6 on MME. Asked for one word, it writes a whole sentence.

The MME scores are the paper's cumulative ablation (Table 2): 809.6, 1323.8, 1355.2 and 1531.3. The question and the answers are a toy example to show the effect of the format prompt, not model output.

Chapter 0

The Problem

See why the leading vision-language models looked so complex, and what the original LLaVA got right and wrong

By late 2023, large multimodal models (LMMs) were racing to become general-purpose visual assistants. But the leading approaches looked wildly different in complexity:

Meanwhile, the original LLaVA (2023) took a radically simpler approach: a single linear projection layer connecting CLIP to an LLM, trained on just 600K image-text pairs. It excelled at open-ended visual conversation but struggled on benchmarks that need short, precise answers (like VQA).

The community assumed that to match the complex models on academic benchmarks, you needed their complexity. Hundreds of millions of training samples. Specialized vision-language modules. Proprietary data.

The question LLaVA-1.5 asks: What if the original LLaVA's simplicity was a strength, not a weakness? What if a few targeted improvements (better resolution, a slightly more expressive projection, and smarter data mixing) could beat all of these complex systems? LLaVA-1.5 shows the answer is yes, using only 1.2M public data samples and training in a single day.

The instrument at the top of this page is that question made playable. Each switch is one fix. The road below says which chapter explains which part.

  1. The key insight: the three fixes, and the data-efficiency plot behind them.
  2. The architecture: CLIP, the MLP projector and Vicuna, in a straight line.
  3. Two-stage training: what is trained, and what is frozen, in each stage.
  4. The data recipe: the five sources, and the format prompt that switches the answer length.
  5. Resolution: why 336px gives 576 tokens instead of 256.
  6. The results: 11 benchmarks with far less data.
  7. The ablations: which fix gives which gain, as the bars in the instrument.
  8. What makes it work: four lessons in research taste.
  9. Connections: ancestors, rivals and successors.
Why did the original LLaVA struggle on academic VQA benchmarks despite excelling at open-ended visual conversation?

Chapter 1

The Key Insight

Meet the three small fixes that turn a simple connector into a state-of-the-art model

LLaVA-1.5's insight is almost embarrassingly simple. The fully-connected vision-language connector in LLaVA is already surprisingly powerful and data-efficient. You don't need a Q-Former. You don't need billions of pre-training pairs. You need three targeted improvements:

Improvement 1: MLP instead of linear projection

The original LLaVA used a single linear layer to map CLIP visual features into the LLM's embedding space. LLaVA-1.5 replaces this with a two-layer MLP (with GELU activation). That's it: one extra linear layer and a nonlinearity. This gives the connector enough power to align visual and language features better.

Improvement 2: Higher resolution input

Swap CLIP-ViT-L/14 at 224px for CLIP-ViT-L/14 at 336px. More pixels means the model can read text in images, tell fine details apart, and handle complex scenes. The 336px model produces 576 visual tokens (24×24 patches) instead of 256 tokens (16×16).

Improvement 3: Academic VQA data with response formatting

Include VQA datasets (VQAv2, GQA, OCR-VQA, etc.) in instruction tuning, with a critical twist: append a response format prompt that tells the model when to give short answers. "Answer the question using a single word or phrase." This stops the model from overfitting to either long-form or short-form responses.

The recipe in one sentence: CLIP ViT-L/14@336px → 2-layer MLP → Vicuna-13B, trained on 558K alignment pairs then 665K mixed instruction data. That's the entire architecture. It achieves state-of-the-art across 11 benchmarks, beating systems that use 1000× more pre-training data.

LLaVA-1.5 vs. competitors: data efficiency

Pre-training data (millions of samples, log scale) against the number of benchmarks won. Pick a rival to compare it with LLaVA-1.5. LLaVA-1.5 achieves more with dramatically less data.

Pre-training data sizes are the paper's. The win counts are a simplified tally of the paper's comparison tables, kept from the original lesson. LLaVA-1.5 is plotted at 0.558M, its alignment set.

What are the three key modifications LLaVA-1.5 makes over the original LLaVA?

Chapter 2

The Architecture

Follow an image through three components in a straight line, and see why no Q-Former is needed

LLaVA-1.5's architecture is one of the simplest possible designs for a visual language model. Three components, connected in a straight line:

Component 1: Vision Encoder, CLIP ViT-L/14@336px

A Vision Transformer pre-trained by OpenAI's CLIP on 400M image-text pairs. It processes 336×336 images, dividing them into 14×14 pixel patches. That gives us a grid of 24×24 = 576 patch tokens, each a 1024-dimensional vector encoding local visual features.

The vision encoder is frozen in both training stages (Chapter 3 mentions the option to unfreeze it for further gains). This is important: the visual features are already excellent from CLIP training. We just need to teach the LLM how to read them.

Component 2: Vision-Language Projector, a 2-Layer MLP

Each of the 576 visual tokens passes through:

Linear
1024 → 4096 dimensions
↓
GELU
Nonlinear activation
↓
Linear
4096 → 4096 (match LLM hidden dim)

That's it. Two linear layers with a GELU in between. No attention, no cross-attention, no query tokens, no resampling. Each visual patch becomes one token in the LLM's vocabulary space. The projector has roughly 33M parameters, less than 0.3% of the full model.

Component 3: Language Model, Vicuna-13B

Vicuna is a fine-tuned LLaMA model trained on ShareGPT conversations. It handles the actual reasoning: the 576 projected visual tokens are concatenated with the text tokens and fed into Vicuna as a single sequence. The LLM processes them jointly via self-attention, treating visual tokens as just another "language" it has learned to read.

LLaVA-1.5 architecture

The full architecture: image patches flow through CLIP, get projected by a 2-layer MLP, and are concatenated with text tokens before entering the LLM. Watch the boxes appear in the order the data moves.

A 336×336 image becomes 576 tokens of 1024 numbers after CLIP, and 576 tokens of 4096 numbers after the projector. Vicuna reads them next to the text tokens.

Shapes are the paper's and the lesson's: 24×24 = 576 patches, 1024 dimensions from CLIP, 4096 for Vicuna-13B.

Why not use a Q-Former? Q-Formers (as in BLIP-2 and InstructBLIP) use cross-attention with learned query tokens to compress visual features into a fixed number of tokens. This adds complexity and requires pre-training on hundreds of millions of image-text pairs. LLaVA-1.5 shows that simply keeping all 576 tokens and letting the LLM's self-attention sort them out is more effective. The LLM already knows how to attend to the relevant tokens.
How many visual tokens does LLaVA-1.5 feed into the LLM per image?

Chapter 3

Two-Stage Training

Switch between the two stages and see which parts learn and which stay frozen

LLaVA-1.5 follows a clean two-stage training protocol. Each stage serves a distinct purpose, and the setup is carefully designed to be data-efficient.

Stage 1: Vision-Language Alignment Pre-training

The goal here is simple: teach the MLP projector to translate CLIP's visual features into the LLM's word embedding space. Think of it as training a translator between two languages that already exist.

After this stage, the LLM can already describe images, but it hasn't learned to follow diverse visual instructions.

Stage 2: Visual Instruction Tuning

Now we teach the model to follow complex visual instructions: answer VQA questions, describe regions, reason about scenes, engage in multi-turn conversations.

Total training cost: ~1 day on a single 8-A100 node. Compare this with Qwen-VL, which trains on 1.4 billion image-text pairs. LLaVA-1.5 achieves competitive or better results with 1000× less pre-training data. The key is not brute-force data volume but careful data selection and a training protocol that doesn't waste parameters learning redundant alignments.

Two-stage training pipeline

Choose a stage to see what is trained (lit) and what is frozen (dimmed). The transition from Stage 1 to Stage 2 unfreezes the LLM.

Data sizes and hours are the paper's. In both stages the CLIP encoder stays frozen in this picture.

In Stage 1 of LLaVA-1.5 training, which component(s) are trained?

Chapter 4

The Data Recipe

Mix five data sources, and use one sentence to tell the model when to answer short

This is where LLaVA-1.5 gets clever. The data mixture for Stage 2 instruction tuning is carefully designed to balance multiple capabilities without sacrificing any one of them.

The data sources

LLaVA-Instruct
150K GPT-4-generated visual conversations, detailed descriptions, and complex reasoning (from original LLaVA)
↓
Academic VQA
VQAv2, GQA, OKVQA, A-OKVQA, with response formatting prompts for short answers
↓
OCR Data
OCR-VQA, TextCaps: teaches the model to read text in images
↓
Region-Level
Visual Genome, RefCOCO: grounds language in spatial regions of the image
↓
ShareGPT
40K text-only multi-turn conversations: preserves the LLM's language quality and reasoning

The response formatting trick

The single most important data engineering insight in the paper. When including VQA data that expects short answers, the authors append a prompt: "Answer the question using a single word or phrase."

Without this, the model gets confused: sometimes it sees training data that expects "yellow" and other times data that expects a full paragraph. With the formatting prompt, the model learns to switch output modes based on the user's instructions. This solves the multitask balancing problem that plagued InstructBLIP, which overfitted to short answers even when detailed responses were requested.

You have already seen the effect: in the instrument at the top, the second switch turns the long sentence into one word.

Why ShareGPT matters: Including 40K text-only conversations might seem irrelevant for a vision model. But it serves a critical purpose: it prevents the LLM from "forgetting" how to have natural, flowing conversations. Without it, the model's language quality degrades as it specializes on visual tasks. The text data acts as a regularizer for the LLM's conversational abilities.
What is the response formatting prompt trick, and why is it critical?

Chapter 5

Resolution Matters

Count the patches at 224px and 336px, and see why more tokens means finer detail

One of the clearest results in the paper is the impact of input resolution. Upgrading from 224px to 336px gives consistent improvements across all benchmarks. Why?

The math of resolution

CLIP ViT-L/14 uses 14×14 pixel patches. The image is cut into a square grid of patches, one visual token per patch. So the token count depends only on the image side R:

N
The number of visual tokens the LLM receives for one image.
R
The side of the square input image in pixels: 224 or 336.
14
The side of one patch in pixels. The grid has R / 14 patches on each side.

At the two resolutions:

576 / 256 = 2.25 (more tokens, same patch size)

That's 2.25× more visual tokens. Each token still represents a 14×14 pixel region, but that region now covers a smaller portion of the original image, meaning finer details are captured.

Resolution comparison: 224px vs 336px

See how many more visual tokens the model gets at higher resolution. Each cell is one ViT patch. More patches means finer detail for the LLM to reason about. Drag the slider to light up patches in both grids.

25%

The grids are exact for a 14px patch. The slider lights the same top-left share of the image in both grids, to show that the same area holds more patches at 336px.

What higher resolution buys you

LLaVA-1.5-HD: Going beyond 336px

The paper also explores scaling to even higher resolutions with LLaVA-1.5-HD. Instead of interpolating position embeddings (which requires expensive retraining), they use a grid-based approach:

  1. Split the high-res image into a grid of 336×336 patches.
  2. Encode each patch independently with CLIP.
  3. Concatenate all patch features into a single long sequence.
  4. Also encode a downsampled global view for context.

This allows scaling to any resolution without modifying the vision encoder at all.

Why does increasing input resolution from 224px to 336px improve performance on OCR and detail-heavy tasks?

Chapter 6

Results

Read the benchmark numbers and see how much less data LLaVA-1.5 needed to get them

LLaVA-1.5 achieves state-of-the-art results across 11 benchmarks, spanning academic VQA, visual reasoning, and open-ended conversation. The results are remarkable because the model uses vastly less training data and a far simpler architecture than its competitors.

Headline numbers (LLaVA-1.5-13B)

The efficiency story: InstructBLIP pre-trains on 129M image-text pairs. Qwen-VL uses 1.4B pairs (much of it proprietary). LLaVA-1.5 uses just 558K pre-training pairs and 665K instruction tuning samples, all publicly available. It trains in ~1 day on 8 A100s. Despite using 200× to 2500× less pre-training data, it matches or beats these systems on the majority of benchmarks.

Benchmark comparison

LLaVA-1.5 (teal) vs. the best other system on each benchmark. Scores are shown as a share of 100; MME is divided by 18 so that it fits the same scale. Tap a benchmark name to read it out.

Scores are the ones drawn in the original lesson from the paper's comparison tables. The best-other numbers here can differ slightly from the headline list above, which quotes Qwen-VL-Chat and InstructBLIP directly.

How does LLaVA-1.5's pre-training data volume compare to InstructBLIP and Qwen-VL?

Chapter 7

Ablation Studies

Add the modifications one by one and see which single change gives the biggest gain

The paper's ablation studies are particularly illuminating because they isolate each design choice and measure its individual contribution. Let's walk through the key findings.

MLP vs. Linear Projection

Replacing the single linear layer with a two-layer MLP improves performance across the board. On MME, the jump is from 1323.8 to 1355.2: a 31-point improvement from adding just one extra linear layer and a GELU activation. The MLP gives the projection enough capacity to learn non-trivial mappings between visual and language feature spaces.

Resolution: 224px vs. 336px

Scaling from 224px to 336px improves GQA from 50.3 to 51.4 and MME from 1426.5 to 1450, while MM-Vet dips slightly, from 30.8 to 30.3. The gains are especially large on tasks requiring fine-grained visual understanding.

Cumulative improvements (Table 2 from the paper)

The paper shows how each modification stacks:

LLaVA baseline
MME: 809.6 • MM-Vet: 25.5
↓
+ VQAv2 data
MME: 1197.0 (+387) • MM-Vet: 27.7
↓
+ Format prompt
MME: 1323.8 (+127) • MM-Vet: 26.3
↓
+ MLP connector
MME: 1355.2 (+31) • MM-Vet: 27.8
↓
+ OKVQA/OCR + Region + 336px + GQA + ShareGPT + 13B
MME: 1531.3 (+176) • MM-Vet: 36.1
The biggest single gain: Adding VQAv2 data with response formatting gives the single largest improvement (+387 on MME). This confirms that the original LLaVA's weakness wasn't architectural. It was a data gap. The model already had the capacity; it just hadn't seen the right training signal.

Ablation: cumulative MME score

Each modification builds on the previous. The tallest jump comes from adding VQA data, not from architectural changes. Drag the slider to add the modifications one at a time.

6

MME scores are the paper's ablation (Table 2). The bars start at 700, not 0, so that the steps are easy to see.

Which single change gave the largest improvement to LLaVA-1.5's MME score?

Chapter 8

What Makes It Work

Learn four lessons in research taste from a paper that adds no new architecture

LLaVA-1.5's success is a lesson in research taste. The paper doesn't introduce any novel architecture. It doesn't collect new data. It doesn't use tricks that are hard to reproduce. Instead, it systematically identifies what actually matters and strips away what doesn't.

Lesson 1: The connector doesn't need to be smart

Q-Formers, Perceiver Resamplers, and other complex vision-language bridges compress visual information into a fixed number of tokens. This compression is lossy, and it turns out the LLM's self-attention is already capable of selecting which visual tokens to attend to. A simple MLP that just translates the feature space (without compressing the token count) is sufficient.

Lesson 2: Data quality and formatting beat data quantity

InstructBLIP trains on 129M pairs. Qwen-VL trains on 1.4B pairs. LLaVA-1.5 uses 558K pre-training pairs. The difference? LLaVA-1.5 is extremely intentional about what goes into the instruction tuning mix, and it uses response formatting prompts to prevent task interference. Quantity cannot substitute for curation.

Lesson 3: Resolution is an easy win

Going from 224px to 336px costs only 2× more compute (from the extra visual tokens) but gives outsized returns on every benchmark. When your model literally can't see fine details, no amount of clever architecture will help.

Lesson 4: Reproducibility is a feature

The entire recipe uses publicly available data, open-source models, and trains in one day on one 8-GPU node. This isn't just convenient; it's a statement. The paper shows that state-of-the-art multimodal capability doesn't require massive compute or proprietary data. The barrier to entry is lower than the field assumed.

The meta-lesson: Complexity in ML systems often persists not because it's necessary but because no one bothers to check. The original LLaVA showed a simple architecture could work well. LLaVA-1.5 shows that with two targeted improvements and better data, it can be state-of-the-art. The next time you reach for a complex module, ask: have I tried the simple thing with good data first?
Why does LLaVA-1.5 outperform models that use vision-language bridges like Q-Formers?

Chapter 9

Connections

Trace where LLaVA-1.5 came from, what it displaced, and what was built on it

LLaVA-1.5 sits at a critical junction in the evolution of visual language models. Let's trace its lineage and influence.

The paper in one paragraph

LLaVA-1.5 keeps the original LLaVA line (CLIP, a projector, an LLM) and makes three small fixes: a two-layer MLP, 336px input with 576 tokens, and VQA data with a format prompt. It trains in two stages (558K alignment pairs, then 665K mixed instructions) in about one day on 8 A100s, and it reaches state-of-the-art on 11 benchmarks. The largest gain, +387 MME, came from data.

The numbers that matter

WhatNumberWhy it matters
Visual tokens256 at 224px; 576 at 336px (2.25×)More patches, finer detail
Projector sizeabout 33M parameters, under 0.3% of the modelA tiny part does the alignment
Training data558K alignment pairs, then 665K instructionsAbout 1.2M public samples in all
Training timeabout 6 hours, then about 20 hours, on 8 A100sOne day on one node
MME, cumulative809.6, 1323.8, 1355.2, 1531.3VQA data and the format prompt did most of it
Data vs rivals200× less than InstructBLIP, 2500× less than Qwen-VLCuration beats volume

The recipe as code

pythondef llava15_forward(image, question):
    patches = clip_vit_l14_336(image)            # frozen: (576, 1024)  (Ch 2, 5)
    vis = linear2(gelu(linear1(patches)))       # 1024 -> 4096 -> 4096: (576, 4096)  (Ch 2)
    txt = embed(tokenize(question + "\nAnswer the question using a single word or phrase."))  # (Ch 4)
    return vicuna13b(concat(vis, txt))              # self-attention over 576 + T tokens  (Ch 2)

# Stage 1: train only linear1/linear2 on 558K captions  (Ch 3)
# Stage 2: train projector + Vicuna on 665K mixed samples  (Ch 3, 4)

Ancestors

Contemporaries and successors

The lasting impact: LLaVA-1.5 didn't invent a new architecture. Its contribution was showing the community that the right answer was already in front of them: a simple connector, the right resolution, and curated data. This paper became a reference baseline for virtually every VLM paper that followed in 2024, and its training recipe (two-stage, MLP projection, mixed data with format prompts) became the standard template.
What is LLaVA-1.5's most lasting contribution to the field?

Now press Present or Teach and explain the recipe out loud, from memory: the three fixes, what each stage trains, why the format prompt matters, and why 336px gives 576 tokens. Then go back to the instrument at the top, switch the fixes on one at a time, and say which one you expect to add the most.

Improved Baselines with Visual Instruction Tuning
arXiv:2310.03744 · Liu, Li, Li, Lee (2023) · Back to Veanors