‹ All scenes

Attention

Attention IV

Motes of light gather into an atom, a Möbius strip, a rotating tesseract, a sea urchin, an interference pond and a blooming rose.

Drag to turn it, pinch or scroll to zoom, double-tap to reset.

The idea
Inspired by attention in AI language models, where each word looks back at the words that matter to it. The motes and threads are drawn by hand, not taken from a real model.
With music
Kicks fire pulses along the threads; the sea urchin's spikes follow the frequency bands. Tap Demo beat for our own beat, or Your music to let it hear the room.
How it runs
It’s the same live simulation as in the Everdust apps, running in your browser on WebGL 2. If your device struggles, it lowers the detail a step at a time to keep the motion smooth.

What is attention in an AI language model?

Attention is the main idea inside the transformer, the design behind most large language models since the 2017 paper Attention Is All You Need. It solves a basic problem: to understand a word, you often need other words. In "The trophy didn't fit in the suitcase because it was too big", the word "it" only makes sense once you link it to "trophy".

A transformer handles this by letting every word look at every earlier word. Each word makes a query, a description of what it is looking for, and every word offers a key, a description of what it holds. Where a query and a key match well, the model pays more attention, and it mixes in more of that word's information. The weights for each word add up to one, so attention is a way of sharing out focus.

A model runs many of these attention heads side by side, and each learns its own habit: one tracks the previous word, another matches opening and closing quotes, another links pronouns to names. Stacked dozens of layers deep, they build up meaning.

In this scene, threads of light between the motes stand for those links as the motes gather into an atom, a Möbius strip, a tesseract (a four-dimensional cube shown in three dimensions) and a rose. The threads are drawn by hand, not taken from a real model.

This is just a taste

Loved Attention IV? There are many more worlds in the app.

The Everdust app has every world at full detail, plus games made of physics, stories you step inside, Create (turn any photo into a world), and hand tracking on Vision Pro and Quest. Out now on the App Store for iPhone, iPad, Vision Pro and Apple TV, on Google Play for Android and on the Meta Horizon Store for Quest; a free download for Mac from everdust.ai/mac.

Get Everdust on the App StoreGet Everdust on Google Play