The question readers are too embarrassed to ask: how does a model "see" an image and "read" text at the same time? It doesn't, really — it converts both into the same kind of numbers. The trick is teaching it that the numbers for a photo of a dog and the numbers for the word "dog" should be near each other. Do that across millions of image-text pairs and you get a vision-language model.
The way this actually works is captured, in unusually concrete form, in Salesforce's grant US12462592B2, "Systems and methods for a vision-language pretraining framework" (issued November 4, 2025). It describes a single transformer that can do many tasks with one set of parameters.
Embodiments described herein provide a multimodal vision-language model. The multimodal vision-language model contains a Generalist Multimodal Transformer capable of complete multiple tasks using the same set of parameters learning from pre-training.— U.S. Patent No. 12,462,592 source
The bridge: a small transformer between two frozen giants
The clever part of the design, per the claims, is what it does not retrain. The framework keeps the heavy components — the image encoder and the pretrained language model — "frozen," and trains only a small "query transformer" in between them. As the abstract puts it, this transformer "allows alignment between frozen, unimodal encoders, such as image encoders and large language models" and "eliminates the need for fine-tuning the image encoders and large language models." That is the economic trick hiding inside the science: you get a model that understands pictures and words together without paying to retrain the two most expensive parts.
How does a small bridge module learn to connect them? The claims describe a "set of queries" that are "learnable embeddings" — a fixed set of slots the query transformer uses to interrogate the image. The transformer encodes the image, lets those learnable queries attend to it, and produces a compact representation that a "fully connected layer" projects "to the same dimension" as the language model, so the frozen text decoder can generate words from it "token by token." In effect, the queries act as an adjustable funnel that distills a whole image down into a handful of vectors the language model already knows how to read.
Three training objectives, one shared space
The grant is specific about the objectives that force alignment, and they are worth naming because they are the mechanism. The claims list three. The first is an image-text contrastive objective: compute the similarity between the image's query embeddings and the text representation, then train so matching pairs score high — "contrastive" being the technique of pulling matching image-text pairs together and pushing mismatched ones apart. The second is an image-text matching objective: a classifier head makes a yes/no "match prediction" on whether a given image and text actually go together, trained against ground truth. The third is image-grounded text generation: with a self-attention mask applied, the model must "generate a predicted text conditioned on image features" — that is, write a caption — and is scored against the real caption. The claims note the query transformer is updated first by the alignment objectives and then again by a generation loss computed against the real caption, so the same small module is tuned twice over. Training jointly on all three objectives, "via backpropagation based on any joint combination," is what packs picture and word into one shared space instead of two disconnected skills.
Other labs claim adjacent pieces of the same idea. Microsoft's US12518512B2 (2026) covers training vision models with unified contrastive learning — the same pull-together/push-apart principle named in Salesforce's contrastive objective. Google's US12387510B2 (2025) applies a vision-language model to instance-level scene recognition. Different assignees, same underlying mechanism: align modalities first, then specialize.
One analogy and then I'll drop it: it's like learning a bilingual dictionary not by memorizing word pairs but by reading millions of captioned photos until "dog," the picture, and the word all sit in one mental neighborhood. The learnable queries are the questions you train yourself to ask of each photo; the contrastive and matching objectives are the drills that punish you when a caption and a picture you thought matched actually don't. After that, you can translate in either direction — describe a picture, or find the picture for a phrase.
One more detail in the claims is worth surfacing, because it shows how the bridge actually hands control back to the language model. After the query transformer distills the image into its compact representation, a "fully connected layer" projects that representation "to the same dimension" as the frozen language model, and in one variant the projected image features are "prepended to a prefix text" before the text decoder writes a "suffix." In plain terms, the image gets translated into something that looks, to the language model, like the beginning of a sentence — so the model can simply continue it. That is the quiet engineering move that lets a text-only model "talk about" a picture it was never trained on: the picture is dressed up as text it already understands.
Why it matters: vision-language models are the backbone of multimodal assistants, document understanding, and the screen-reading agents covered elsewhere on this site. The capability that feels magical — ask about a picture, get an answer — reduces to this pretraining alignment, and to a design that bolts a small trainable bridge onto two frozen, already-paid-for models. And because multiple major labs hold grants on variants of it, the technique is also a contested piece of IP, not just a research idea.
Comments
Loading comments…