Temporal Feature Analysis
Temporal Feature Analysis is a method by Lubana, Rager, Hindupur, et al. It finds features that capture both the context of a text (for example, "this is a story") and local information (for example, "this token is a number").
Start here: Release | Demo | Paper | Notebook

Similarity Matrix
The similarity matrix shows how similar the representation of each token is to each other token. Bright squares show parts of the text with the same context.
- Open the demo.
- Select a demo on the left, or type your own text (at least one sentence is best). Then click Generate.
- Hover over a token to highlight its cells in the matrix. Hover over a cell to see its tokens.
- Click Share to get a link.
Available Sources
| Model | Layers |
|---|---|
| Gemma 2 2B | 12 |
| Llama 3.1 8B | 15, 26 |
These sources also have feature dashboards, and you can steer with them.