AI Dictionary › AI Fundamentals

Attention Mechanism

The Attention Mechanism is the key component of the Transformer architecture that allows the model to "pay attention" to the most relevant parts of the text when generating each token of the output. In practice, to produce each word of the response, the model calculates how relevant every other word in the input is for that specific position.

Definition

Attention is what allows LLMs to grasp long-range semantic relationships in text.

Related terms

More in AI Fundamentals

Put it into practice

From our network

Kaimaki Web: Websites That Win Customers

Custom websites, web apps and digital marketing for growing businesses.

Visit kaimakiweb.com →

From the Agora Intelligence blog

More on agora-intelligence.com →

📱 Download the Android app (beta) iOS coming soon

Say what you mean. Get what you need.

Grace Certified, the AI coach that trains and certifies your prompt engineering, by Agora Intelligence.