Gated translator lens for Inkling 2 Mini

Weights of a token lens for thinkingmachines/Inkling-2-Mini, used by team Dropout in the NDIF Looped Lens Challenge.

For the state h entering a layer visit at the read position:

x = h / rms(h)                          # the state at unit RMS
fire = x @ w + b > 0                    # this visit's own linear gate
z = x + (x @ U) @ V + c                 # this visit's low-rank affine translator
scores = lm_head(norm(z if fire else h))  # the model's own final norm and unembedding

Every readout is a function of one state at one visit and one position. The read position is the supplied one, except that a chat question (an input ending at the model's turn marker whose final user turn contains a question mark) is read at its last question mark; that choice uses only the chat template and punctuation. A visit without a map is read with the plain logit lens.

Kinds

prefix gate state it was fitted on what the translator names
T G chat-wrapped two-step arithmetic, read at the reply's content header the value of the first step
N M one-step arithmetic asked as a chat question, read at its question mark the number the model is about to answer with

Files

  • gated_v8.safetensors: v7 with T and G refitted on a further 60k two-step arithmetic prompts in many chat wordings, system lines, both chat endings and plain layouts; G also sees two-hop statements and one-word questions as negatives. All other tensors are the v7 ones.
  • gated_v7.safetensors: v5 with two changes. T (rank 128; T{v}.U [2304, 128], T{v}.V [128, 2304]) was refitted on a broader set of two-step arithmetic prompts (more expression shapes and instruction wordings, chat and plain layouts); gate G is unchanged. C / D were refitted on a larger set of two-hop statements over more entity types and are used at visits 43-47 only. N / M and Q / R are the v5 tensors.
  • gated_v5.safetensors: v4 plus kind C / gate D at visits 34, 35, 36 and 43-47 (a two-hop factual statement read at its last token; names the bridge entity) and kind Q / gate R (always fires) at question-route visits 44-47 (a one-word question read at its question mark; names the word the model is about to answer with). Several kinds at one visit: the first whose gate fires is used.
  • gated_v4.safetensors: the same maps as v3, with T / G at visits 43, 44, 45, 46 and 47 and N / M at visits 44, 45 and 46.
  • gated_v3.safetensors: T{v}.U [2304, 64], T{v}.V [64, 2304], T{v}.c [2304], G{v}.w [2304], G{v}.b [1] for visits 34, 35, 36, 43 and 44, and the same for N / M at visits 44, 45 and 46; v is the visit (0-47, in execution order). Its T maps were also fitted on replies opened after an empty thinking block.
  • gated_v2.safetensors: the previous version (T / G at visits 34, 35, 36, 43).
  • gated_v1.safetensors: an earlier version with T / G at more visits; not used by the entry.
  • prelim_last_r16.safetensors: an earlier experiment, not used by the entry.

Data

No challenge question was used. Sources and labels per kind:

  • T (label: the computed value of the first step): two-step expressions with fresh operands in the shapes of WorkspaceBench's arithmetic family, in several instruction wordings inside the chat wrapper, with and without the system turn, and (v3) with the reply opened directly or after an empty thinking block. Every expression that occurs in WorkspaceBench was skipped.
  • N (label: the computed answer): one-step arithmetic questions in the practice set's wording and a few paraphrases; prompts that occur in the practice set or in our validation probes were removed.
  • C (label: the bridge entity): TwoHopFact (CC-BY-4.0) statements with one-token bridges and look-alike statements with fresh entities, prefixed with Fact: ; a fact is kept only if the model itself completes the first hop with the bridge. Subjects that occur in WorkspaceBench multihop prompts were skipped.
  • Q: public Stanford WebQuestions and AllenAI SciQ questions in the chat wrapper. The target is the public dataset's gold answer, used for fitting only when one of its one-token spellings was among the model's own five most likely tokens at the start of its answer; 588 such questions trained a small direct translator that predicts that answer from the state at the question mark.
  • Gates: the same positives against our own generated question and statement probes. Each gate's threshold lets at most 0.5% of held-out training negatives fire. The visit-43 gate's threshold was then raised until at most 2% of the prompts of each non-arithmetic WorkspaceBench bank other than multihop, and of our own question probes, fire. The D gates' thresholds were raised until at most 25% of the prompts of each WorkspaceBench bank other than multihop (and of our own question probes) fire. The R gates always fire.

No WorkspaceBench item and no practice question was trained on: they served as validation, and the WorkspaceBench banks also set the gate thresholds described above. No challenge question was used.

License

MIT, as the challenge requires for submissions.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support