Center indicates that the word sheet: Logit lens What can I see

Hide the middle expression to the output header, and you can see which token is in the direction of the table.

• Step by stepCollate in 2 self-measured2 First-hand sources
Start Body
Learning objectives and first steps2 objectives . 1 first fix

Try to do it after reading

  • Interpret indicates that you are in the vocabulary: Logit lens What kind of mechanisms and premises can you see
  • Positioning the mechanism ' s fault limits with fixed examples

Suggested first

  • Hide Expressions and Output Headers

Issues and mechanisms

Hide the middle expression to the output header, and you can see which token is in the direction of the table. This kind of inquiry is often called logit lens 。 It helps to compare inter-layer changes, but it is not evidence that the model actually produces it at that level: it is followed by the standardization, projection and non-linear nature of the output head, which may not be trained for intermediate representation distribution.

The first fixed location and value-taking phase is the end of the residual difference, the pre- and post-consolidation or the complete block. A clear final normative and export head agreement is then used, and an additional proposed conversion is reported. The scales and distributions of the different points are different and direct comparison of the original logit size is easy to miswrite as semantic changes in scales; Cross-tiered ranking is comparable, but calibration still needs to be considered.

A concrete example

The first three lines of the synthetic output shall be [10], [0,1] and [1]. The early layer is hidden [2,−1] with scores [2,−1,1] and the evening layer [0.5,2.5] with rankings moving from the first to the third. This change only indicates a projection change under the fixed reader, and does not allow the introduction of an early “trust in the first answer” or a later stage where a third result has been determined by cause.

Borders and checks

If an explanation of necessity is needed, the expression and the final act should be modified and observed with legitimate intervention, while controlling the out-of-distribution disturbance. The search results may also be influenced by the export head sharing, location and special token. The chart should indicate the method of detection and the shape of the stretch, retain the original fractions and the unitization settings, and avoid treating the good word cloud as a complete description of the mechanism.

A method of verification

To check the readout limit, you can multiply the hidden vector by the same positive number. The ranking may remain the same, but the probability of being normalized is more concentrated; If the graph shows only probability, the reader may mistakenly assume that knowledge is more certain. An alternative synthetic network with a layer to offset the current direction will see that the first place in the intermediate projection is not necessarily the final first. It would therefore be better to identify the location of the values, their regularization and the final output at the same time, rather than to write the middle-level ranking into independent decision-making.

Check understanding

The first word in the middle is changed. Does it prove that the model has changed its mind?

Can't. It is the result of an external inquiry, not an independent belief variable. There is a need to examine the methods of reading and subsequent calculations, and to test them more strongly with intervention.

Different layers of logit. Can absolute values be directly cross-referenced?

Usually be careful. Expressions of scale, regionalization and output head fit may vary, and absolute ranges may not necessarily represent greater confidence or more complete knowledge.

Sources and reconciliations

Definitions, methods and interfaces are available.

  1. Attention Is All You Need
  2. Stanford CS336 — Language Modeling from Scratch, Spring 2025

Figures and calculations are reorganized according to this chapter. Mathematical measurements, framework operations and real business effects are described separately in the body of the text.

← Back to the knowledge directory
Ask Max Ask about this site
Ask Max ↗

Opening the assistant…

Paper figure

Photo comments

LEAVE A NOTE

About this photograph

Connecting to the discussion board…

    Comments become public after moderation. You can delete your own comments from this browser.
    No email is required. Clearing cookies prevents this browser from claiming earlier comments.

    MAX WANG / INDEX

    Find something

    Enter a keyword, or explore the directory below.