AI engineering glossary · Transformers LLM architecture

What is additive attention?

Additive attention (also called Bahdanau attention): An early attention scoring method, introduced for machine translation, where the relevance of an input to the current state is computed by a small feed-forward network over both, passed through tanh. It preceded the dot-product form used in Transformers, which is faster on matrix hardware.

Level: advancedTopic: Transformers LLM architecture

Additive attention: an example

In a GRU translation model, score = v^T tanh(W1*decoder_state + W2*encoder_state) is computed for each source word, then normalised to attention weights.

Related terms

More Transformers LLM architecture terms

Where you learn it

Additive attention is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.