Cross-attention
Also known as Cross-attention concept, LLM Cross-attention
Definition
Cross-attention is a language-model concept about mechanism and information flow. It names a mechanism, representation, training practice, or operational behavior that can change how an AI system processes input and produces output.
What Cross-attention means
Cross-attention is a language-model concept about mechanism and information flow. It names a mechanism, representation, training practice, or operational behavior that can change how an AI system processes input and produces output. The important distinction is between the name of a model component or training choice and the behavior a user can observe. The same label can have different effects across model families, tokenizers, datasets, and serving interfaces. A useful explanation therefore states what the concept changes, which inputs it depends on, and what evidence would support a claim about it.
How it appears in practice
Consider an engineering assistant that receives a repository question, selects context, and returns a proposed change. Cross-attention may influence one stage of that interaction, while the final result also depends on instructions, context selection, tools, stopping rules, and review. Preserve those conditions when comparing runs. If the concept is internal, use an external task or evaluation to test its practical effect instead of assuming that an activation, score, or setting has a simple meaning.
Example and measurement
A team could evaluate Cross-attention with a small set of ordinary requests and boundary cases. Define the expected behavior before running the comparison, then record completion quality, test results, latency, input and output tokens, retries, and correction effort. For example, a code workflow should include real repository context and a verification step rather than judging a fluent standalone answer. Inspect changed cases individually because aggregate averages can hide regressions in a critical task.
Limitations
Cross-attention is not a substitute for testing, source review, or authorization. Results can shift after a model update, prompt change, data change, or provider change. The concept may explain one part of a request without proving that the answer is factual, safe, or useful. Cross-attention should be documented with its exact implementation and evaluation conditions, especially when teams use it to make cost, quality, or routing decisions.
How this relates to Weave
Weave Router makes Cross-attention relevant when teams compare models and request policies for engineering work. Record the selected model, request context, latency, token usage, retries, and completed-task result so this concept is evaluated as part of a workflow.
Explore Router