8000 GitHub - matthiasdellago/visualising-attention: Visualising (self)-attention as a vector field: exploring and building intuition. Based on anvaka.github.io/fieldplay.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Visualising (self)-attention as a vector field: exploring and building intuition. Based on anvaka.github.io/fieldplay.

Notifications You must be signed in to change notification settings

matthiasdellago/visualising-attention

Repository files navigation

Visualising Attention

Have a look at what attention looks like interpreted as a vector field:

Play with the QK-matrix!

Here is an example of a strong attractor:

How does changing the magnitude of the pre-softmax weights affect the field?

You can also copy paste one of the glsl files into fieldplay or direcly include one of my scrips by wiriting a line like this into the code field:

#include https://raw.githubusercontent.com/matthiasdellago/visualising-attention/main/attention.glsl

About

Visualising (self)-attention as a vector field: exploring and building intuition. Based on anvaka.github.io/fieldplay.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published
2DF6

Languages

0