# Attention Is All You Need

Type: Paper · Live URL: https://hopperlabs.ai/research/attention-is-all-you-need

How does a model find the relevant fact in changing context? Train a small attention head, change a delivery schedule, and watch its answer follow the record—not a memorized date.

[Attention Is All You Need · Hopper Labs](https://hopperlabs.ai/research/attention-is-all-you-need)

## The idea in brief

The Transformer is a sequence-to-sequence architecture built around attention. At each layer, a token can gather information from other positions by comparing a query with their keys, then mixing their values. Multiple heads, position information and feed-forward layers make this more than a single lookup.

[Attention Is All You Need · Hopper Labs](https://hopperlabs.ai/research/attention-is-all-you-need)

## A different route through a sequence

Recurrent networks pass state through successive positions; convolutional models connect positions through local layers. This paper used attention throughout its encoder and decoder, allowing distant positions to interact directly within a layer.

[Attention Is All You Need · Hopper Labs](https://hopperlabs.ai/research/attention-is-all-you-need)

## Related articles

- [HopperLabs.ai](/wiki/hopperlabs-ai/) (documented-in)
