Weights for team Raphael's entry to the NDIF Looped Lens Challenge. The entry's code fetches this file on NDIF at the top of each request.
kind_routes.safetensors holds two fitted pieces.
A reader. A lens on the state entering one layer visit of Inkling 2 Mini, at one token
position. With xn the state scaled to unit root mean square:
logits = head(norm(xn + b + (xn V) U^T))
Rank 32, one (U, V, b) per visit. U and b start at zero, so an unfitted reader is the plain
logit lens. It was fitted to say what the model is about to answer a one-word question with. It
is used at visit 46 (at the question mark) and at visit 36 (at the second operand of a sum).
An axial probe. A small transformer over a grid of states, ten layer visits by the last twelve token positions, with attention along positions and then along visits, one weight-tied block applied four times. It reads activations only. It picks one of four routes for a prompt (question, arithmetic, own preference, statement) and, for plain statements, the token position to read. It never writes a token.
Both were fitted on prompts written for the purpose and on public TwoHopFact prompts. No challenge question was used.
kind_routes_v2.safetensors holds the same reader and axial probe for a later entry. Its routes
are: the fitted reader at the prompt's last question mark (visit 46) or one token before it for a
sum (visit 36); the plain logit lens at the read position (visits 43 to 47, or 24, 36 and 43 to
47); and the plain logit lens at the axial probe's best position for plain statements (visits
24, 36, 43, 44, 45). It adds probe.w and probe.b, a linear probe on the state entering
visit 24 at the read position that sends a prompt back to the read position. In that file
routes.offset 12 and 13 stand for the question mark and the token before it.
kind_routes_v3.safetensors is the second file with one route added, for a chat prompt that has
no question mark. Its lens is a second reader of the same form, a concept reader, at visits 43
to 47 at the read position, combined with the plain logit lens on the same state (their
log-probabilities are added into one readout per visit). It was fitted on 2,022 short statements
of our own in eleven languages (an opposite, the month or day after, a small sum, a colour, a
family relation) to say, in English, what the model is about to write. Routes 0 to 4 are the
second file's, tensor for tensor.
kind_routes_v4.safetensors is the second file with one route added, for a plain-text prompt
that the axial probe does not take for a statement. Its lens is an arithmetic reader of the
same form at visits 43 to 47 at the read position, fitted on 2,507 two-step sums of our own in 18
formats to say the value of the first step, which the model works out and never writes. Routes 0
to 4 are the second file's, tensor for tensor. On formats it was never fitted on it passed 0.88 of
held-out prompts against 0.62 for the plain logit lens; on 600 never-fitted stand-in sums the
entry's route passed 514 against 295 (five options, a fixed string matcher).
kind_routes_v5.safetensors is the second file with one route added, for a plain-text prompt
that the axial probe does not take for a statement, at the read position, visits 24, 36 and 43 to
47. Its lens is a tuned lens (Belrose et al. 2023) and the plain logit lens on the same state,
their log-probabilities added into one readout per visit. The tuned lens is one affine map per
grid visit, logits = head(norm(xn + xn A + c)) with A a full 2304 x 2304 matrix
(tuned.A, float16) and c a vector (tuned.c), fitted on 960 windows of 128 tokens of public
WikiText-103 text to match the model's own final distribution (KL divergence). It was not fitted
to any kind of question. On held-out text its KL to the final distribution is 3 to 5 times lower
than the plain lens's at every grid visit (visit 43: 2.28 against 10.37). routes.tuned marks
the route that uses it. Routes 0 to 4 are the second file's, tensor for tensor.
| Name | Shape | What |
|---|---|---|
chooser.* |
the axial probe's weights | |
routes.U, routes.V |
routes x slots x 2304 x 32 | the lens of each route's visits; zero where the route reads with the plain logit lens |
routes.b |
routes x slots x 2304 | |
routes.grid_index, routes.mask |
routes x slots | which grid row each slot reads, and which slots are in use |
routes.offset |
routes | tokens before the read position; -1 where the probe's position scores decide |
Grid visits, in order: 18, 24, 30, 36, 42, 43, 44, 45, 46, 47. A visit is one pass of a token through one layer; the model has 48 of them because layers 6 to 17 run three times.
Fitted and checked on small sets of one-word questions and two-hop statements. On questions the reader was never fitted on it passed 75 of 78 one-word readout questions and the probe's position passed 72 of 97 two-hop statements, by a fixed string matcher. Those are development numbers, not leaderboard scores.
kind_routes_v5.safetensors 120 MBfull_tuned_v1.safetensors 53 MBkind_routes_v3.safetensors 13 MBkind_routes_v4.safetensors 13 MBkind_routes_v2.safetensors 11 MBkind_routes.safetensors 7 MBarith_gate_v1.safetensors 5 MB