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
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
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 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.
Chapter 1
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:
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.
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).
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.
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.
Chapter 2
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:
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.
Each of the 576 visual tokens passes through:
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.
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.
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.
Chapter 3
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.
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.
Now we teach the model to follow complex visual instructions: answer VQA questions, describe regions, reason about scenes, engage in multi-turn conversations.
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.
Chapter 4
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 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.
Chapter 5
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?
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:
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.
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.
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.
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:
This allows scaling to any resolution without modifying the vision encoder at all.
Chapter 6
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.
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.
Chapter 7
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.
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.
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.
The paper shows how each modification stacks:
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.
MME scores are the paper's ablation (Table 2). The bars start at 700, not 0, so that the steps are easy to see.
Chapter 8
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.
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.
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.
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.
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.
Chapter 9
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.
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.
| What | Number | Why it matters |
|---|---|---|
| Visual tokens | 256 at 224px; 576 at 336px (2.25×) | More patches, finer detail |
| Projector size | about 33M parameters, under 0.3% of the model | A tiny part does the alignment |
| Training data | 558K alignment pairs, then 665K instructions | About 1.2M public samples in all |
| Training time | about 6 hours, then about 20 hours, on 8 A100s | One day on one node |
| MME, cumulative | 809.6, 1323.8, 1355.2, 1531.3 | VQA data and the format prompt did most of it |
| Data vs rivals | 200× less than InstructBLIP, 2500× less than Qwen-VL | Curation beats volume |
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)
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.