Vision-language model internals
How a medical vision-language model works, end to end
MedGemma-4B is too large to instrument layer by layer, so the dissertation uses a smaller model with the same architecture. FlipLens pairs the same frozen MedSigLIP-448 image encoder with a 14.1M-parameter Gemma-3 decoder, small enough that every token and gradient can be inspected directly. This page covers the architecture, the training objective, the finetuning setup, and inference.
- 429M parameters, frozen encoder
- 14.1M parameters, trained decoder
- 256 image tokens per X-ray
- 141 words in the vocabulary
- 74.8% accuracy
FlipLens is a research probe for mechanism. It is not a medical question-answering system, and it is not for clinical use.