Term
cross-attention
Meaning
An attention mechanism in which queries from one set of elements attend to keys and values from another set, so that each query gathers a weighted message from the other set. It is used to combine information from a variable number of inputs into a fixed representation.
Source Learning Land-Surface Hydrology World Model from Satellite Observations
How papers use it 8 papers
Learning Land-Surface Hydrology World Model from Satellite Observations
Use The aggregated message is spread to neighbouring cells by two 3×3 convolutions, and a gated network then produces a multiplicative update of the storages and an additive update of the free channels. The gate starts nearly closed, so training begins close to an open-loop model. The paper uses this step to assimilate irregular observations from either sensor.
Qwen-VL: A Versatile Vision-Language Model for Understanding, Localization, Text Reading, and Beyond
Use Here 256 learnable queries attend over ViT features to compress them into a fixed-length sequence.
Meaning An attention operation in which queries read keys and values drawn from another sequence.
Unifying Flow, Stereo and Depth Estimation
Use Used to model cross-view interactions: the features of one image act as queries over the features of the other image, so each view absorbs matching evidence from the other. The paper identifies this as the component that matters most among the Transformer parts, and it is the main reason the features are described as stronger than those from convolutional backbones that process each view independently.
Meaning An attention operation in which queries come from one feature set while keys and values come from another. The output for each query is a weighted aggregation of the other set, weighted by similarity.
SmolVLA: A Vision-Language-Action Model for Affordable and Efficient Robotics
Use In SmolVLA's action expert, the cross-attention layers take the action tokens as queries and attend to the VLM's keys and values. This lets the action expert read the perception features that the VLM computes. These layers alternate with self-attention layers inside the action expert.
Meaning An attention layer in which queries come from one token set and keys and values come from another set, so that one stream reads information from a separate context stream.
IP-Adapter: Text Compatible Image Prompt Adapter for Text-to-Image Diffusion Models
Use In the UNet of SD, cross-attention layers receive the text features, and IP-Adapter adds a parallel cross-attention layer for each of the 16 such layers to handle image features. The new layer reuses the text branch's queries but has its own trainable key and value projections, and its output is added to the text branch output with a weight λ.
Meaning An attention layer in which queries from one feature sequence attend to keys and values computed from a separate conditioning sequence, so the output injects that conditioning information into the query features.
Wan: Open and Advanced Large-Scale Video Generative Models
Use Injects the text condition into the Wan diffusion transformer blocks. The text tokens serve as the attended-to sequence for the video tokens, which the authors say helps the model follow instructions in long-context settings.
Meaning An attention operation in which one set of tokens queries a second set, such as a conditioning sequence, so that the first set absorbs information from the second. In diffusion transformers, it is commonly used to inject text embeddings into visual token sequences.
Masked-attention Mask Transformer for Universal Image Segmentation
Use In Mask2Former, the standard cross-attention is the baseline that masked attention replaces. The paper modifies it by adding a mask term to the attention logits so each query attends only to its predicted foreground region. In the ResNet-50 ablation, using standard cross-attention in place of masked attention gives 37.8 AP, 47.1 PQ and 45.5 mIoU.
Meaning An attention operation in which query features are updated by attending over all spatial locations of the image features, with a residual connection that adds the previous query features to the result. It is computed as a softmax over the scaled product of queries and keys, applied to the values.
CrossViT: Cross-Attention Multi-Scale Vision Transformer for Image Classification
Use Here the query is the CLS token of one branch and the keys and values are built from the patch tokens of the other branch.
Meaning An attention step in which queries come from one sequence and keys and values come from another.