All lessons in Vision-Language Models: Build, Evaluate, and Adapt
Train the Intended Tokens
Distinguish alignment, captioning, instruction losses, and valid supervision masks.
35 minutes · Members lesson · preview
What you will learn
- Match alignment, captioning, and instruction objectives to their target behavior.
- Construct an answer-only language-loss mask without supervising images or padding.
- Explain how frozen parameters, gradient flow, and evaluation answer different questions.
The training loss falls rapidly after you add a new batch of visual conversations. Inspection then shows that most supervised tokens are repeated user questions and formatting markers. The model has learned an easy part of the record, while the image-dependent answer receives little useful training signal.
A multimodal record is not automatically a correct training target. The objective determines which relationship the system learns: image–text compatibility, reconstruction, next-token generation, an instruction response, or a structured action. Choose the behavior first, then inspect the exact target tensor.