Cross-Attention

Quick definition

An attention operation where one sequence's queries attend to keys and values from a different sequence or modality.

An attention operation where one sequence's queries attend to keys and values from a different sequence or modality.

Cross-attention helps a decoder condition its outputs on encoded text, image features, or other external context.

Example: An image-captioning decoder attends to visual embeddings while producing a description.

Common use cases: Encoder-decoder models, image captioning, and multimodal generation.

Examples

  • An image-captioning decoder attends to visual embeddings while producing a description.

Use cases

  • Encoder-decoder models, image captioning, and multimodal generation.

Frequently asked questions

What is Cross-Attention?

An attention operation where one sequence's queries attend to keys and values from a different sequence or modality.

What should I know about Cross-Attention?

Cross-attention helps a decoder condition its outputs on encoded text, image features, or other external context.

Categories and tags