Index Ai Academy
Glossary · Phase 6 · Modern LLM engineering

Logit lens

Reading a model's in-progress guess at each layer by passing the hidden state straight to the output layer.

Picture a friend reading a mystery novel. You stop them after each chapter and ask, "Who did it?" Their answers show how their thinking built up. The logit lens does this to a model.

Try it now

A picture of attention is only a hypothesis. Switching parts off is what tests it.

Learn it properly

Interpretability · Looking inside models to see what they compute. About 40 minutes.

Create a free account See what's in the lesson

Other terms from the same lesson

Never trained an AI?

Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.

Teach it to write