Weight Geometry Lab

Can a learned shape travel?

Teach a small model something new. Measure how its internal responses change. Can another model use that geometry to build its own weight update and keep the knowledge it already has?

Three tested components feeding one shared direction in the recipient adapterEarlier componentsAdapterExpected wordVimora · shift in mode 1 coefficient when silenced 38.33Vimora · shift in mode 1 coefficient when silenced 27.70Vimora · shift in mode 1 coefficient when silenced 60.99Frozen water · shift in mode 1 coefficient when silenced -19.39Frozen water · shift in mode 1 coefficient when silenced -26.13Frozen water · shift in mode 1 coefficient when silenced 3.63Block 15 attn.Block 15 MLPBlock 25 MLPMode 1goldiceVimora’s beaconFrozen water
Seed 17 · Three of six measured upstream components. Removing shared mode 1 costs the new answer and recovers the old one.

Can a model learn a way to learn?

In John Coates’s seed-crystal analogy, the seed is a way of treating information. A model that knows how to check a reading against evidence can reuse that operation to answer a new question. If later skills really grow from that seed, we should be able to count the examples it saves and see whether the older skills hold up.

In the browser experiment, two instruments disagree. Teach a small model to find the supported reading, then teach it to judge whether that reading is above a reference and whether it falls within tolerance. Watch it propose a weight update, check the proposal against independent cases, and carry the accepted model into the next round. Compare against the same model with shuffled seed labels and with no seed training.

Across three runs, the learned checker reduced the practice needed to reach 85% on the first new decision in all three, and on the second decision in one. Teaching the checker itself took 96 labeled examples. The viewer shows the learning curves and what each skill loses when you remove the checking direction from the weights.

Where two concepts cross

Follow the branch that makes Vimora’s harbor lamp turn gold, then overlay the branch for “Frozen water is called …”. Both prompts pass through the same edited model. The lightning map measures where changing an internal component changes the signal for each question.

Trace a branch

Temporarily silence one attention or MLP output at the last prompt position. Measure how much each of the four strongest directions in the receiving adapter changes. The display distinguishes the two prompts and lets you inspect each connection.

Test a crossing

Remove one adapter direction and run the model again. Inspect which word wins, how far the expected word is above or below its strongest competitor, and whether both prompts move together or in opposite directions. A line crossing on screen earns its meaning from this intervention.

Make room for the next fact

A useful shared component can stay shared. When an edit helps one concept and hurts another, try an alternative placement on calibration questions. Keep the candidate only if it learns the new behavior and preserves the older answers on fresh tests. As the set of concepts grows, replay all the earlier tests after each edit.

The same direction helped one answer and harmed another. Removing mode 1 changed the recipient’s free answer for the harbor lamp from “gold” to “lit.” On the frozen-water prompt, the same removal changed “blue” back to “ice.” Across the eight protected questions, all three previously correct answers lost to the edit came back.

Independent retraining. Two six-thread runs produced identical seed-17 geometry packets. A four-thread repeat with the Windows launcher’s defaults also produced “gold” and “blue” with the adapter on. Removing its own leading direction gave “green” for the lamp and “ice” for frozen water. The opposing effects repeated while the resulting weights and exact continuations varied. Inspect the four-thread map · Read the repeated fact study

Can a small model teach a larger one a fact?

Give an invented place a fact that the internet cannot supply. Teach it to a 70M-parameter Pythia with a LoRA. Toggle that adapter while running the same prompts, then give the resulting geometry to SmolLM2-135M, a larger model with a different architecture and tokenizer.

Read the tiny adapter’s effect

The donor sees the answer during training. Switching its LoRA off and on lets us see which relationships among prompts moved. A particular coordinate in one network has no fixed meaning in another. Shared prompts give the two networks landmarks they can both recognize.

Write in the recipient’s coordinates

The receiver sees shared questions and independently named reference examples. It gets no labeled target-fact answers during fitting. Its own activations and geometry determine a new LoRA. Attaching that adapter changes its forward pass. A verified merge can write an equivalent update into a separate compatible checkpoint.

Make the claim earn its name

Ask fresh versions of the question with no hint about the fact. Score free answers separately from choosing between candidates. Test unrelated facts and compare with the clean model and shuffled geometry. A new preference between two answers is a weaker result than recalling the fact unaided.

What happened on three CPU runs

Geometry-fitted recipients answered 4 of 18 held-out target phrasings correctly in unrestricted generation. Untouched recipients got 0 of 18, and shuffled geometry got 5 of 18. These are six phrasings per run on one model pair. Seed 17 used six CPU threads. Seeds 29 and 43 used four, and both assigned the same target color. The pilots have yet to isolate a reliable factual benefit from the learned geometry.

First generated word correct. Protected facts used a separate set of eight prompts. The untouched recipient got 4/8 on each run.
Target assignmentDonor onRecipient offGeometryShuffleProtected afterTrace
Seed 17 · gold5/60/61/60/61/8Map 17
Seed 29 · blue5/60/63/63/61/8Map 29
Seed 43 · blue1/60/60/62/63/8Map 43
One edit, two very different outcomes. On seed 17 the edited recipient completed a Vimora harbor-lamp prompt with “gold gold gold gold.” On “Frozen water is called” its clean answer began with “ice” and its edited answer began with “blue.” All eight protected multiple-choice answers still ranked first among their four candidates. Free generation exposed the damage.
How this could reach gpt-oss-120b

Keep the shared questions, mark the last input position that precedes the answer in each model’s own format, and compare the geometry at several recipient layers on calibration prompts. Choose a placement before opening the held-out questions. Fit and temporarily attach a recipient-native low-rank edit at that location. Disable it to repeat the baseline and check the effect.

A useful intermediate target is gpt-oss-20b. It shares the 120b model’s 2,880-wide residual stream, but has 24 layers and 32 experts per layer. The 120b model has 36 layers and 128 experts per layer. Repeat the layer search even when widths match. The 120b checkpoint’s published size of 60.8 GiB describes compressed weights. A full BF16 copy alone is about 218 GiB, before training workspaces. The A9 kit runs the two small models. A 120b test calls for a compatible activation and editing runtime plus a fresh held-out comparison.

Transfer a concept

The donor learns by ordinary supervised training. Its 18 hidden units produce a similarity matrix for 40 reference examples. The smaller recipient has 12 hidden units and sees the same inputs. Four labeled examples tell it which side means “match.” The other reference labels stay out of the fit.

Where the recipient places new examples
● Switches match◇ Switches differ
The vertical line is the decision boundary. Moving the slider changes actual recipient weights and reruns every example.
What travels from the donor
Each square compares two hidden states. Green means similar, purple means opposite. Examples are ordered by affinity to the four anchors for display. The exported matrix retains its original order.

…Donor accuracy

…Recipient before

…Recipient after

…Both sides correct

Inspect an individual prediction

See where the browser recipient places the 64 held-out examples
A small network trained in your browser. Each point is a held-out example.
How the recipient writes the relationship into its weights

The target for each example is its similarity to the two “match” anchors minus its similarity to the two “different” anchors. A regularized least-squares fit finds the pattern in the recipient’s own inputs that predicts the desired change. One vector detects that pattern. A second vector writes it into the recipient’s three-dimensional internal layer. Its answer head stays fixed.

W′ = W + strength × u vᵀ

Random and shuffled controls use the same update norm. The shuffle preserves the four labeled anchors. The untouched model measures the starting point. The browser models use distinct initializations and different hidden widths.

Download the measurements or patch

The packet contains example IDs, four anchor annotations and a matrix of similarities. The patch contains the two recipient vectors and the base-model seed. The report includes every held-out result. All three downloads reflect the selected experiment.

Recognize a geometry, then build it

Recognize the relation

A small change to a premise can flip the right answer. A rephrasing can leave it fixed. Comparing both reveals what a model groups together, even when its neurons have different names and dimensions.

Find a place to write

Feed the same reference cases to the recipient. Find a layer whose inputs can distinguish those cases. Use the recipient’s own output circuit to choose where the change should point.

Check the prediction

State which answers should flip and which should stay fixed. Compare the edited model with its untouched copy, shuffled geometry and an equal-size random edit. Count newly correct answers and regressions.

What the weight-editing study demonstrated

MIT CSAIL’s GPT-6 Astra recognized a Breakout policy from its weight pattern and the meaning of its inputs and actions. Weights connected to the bottom row suggested a paddle. The Qwen experiment went further. With practice prompts and 50 forward passes, Astra located a recurring signal associated with repeated reasoning in layers 15 and 19 and reduced its contribution in 64 output columns per layer.

Published Qwen3.5-0.8B results with thinking enabled
Published Qwen3.5-0.8B runMATH-500GSM8KMATH-500 hit token cap
Original7.9%13.8%93.0%
50-pass edit48.1%67.1%33.1%

The edit targeted 131,072 entries, about 0.016% of the model. It let Qwen finish more solutions it could already work out. Astra edited a separate model. Transferring a concept between models is the experiment pursued here.

Why geometry is the starting point

Julian D. Michels at Sophontic asks whether we can identify an operation inside a model, teach it, and then build on it. His paired tests change a load-bearing premise and require the model to get both answers right. The same discipline applies to an edit. A direction becomes interesting when it predicts a change we can go out and measure.

RF Safe’s ceLLM proposes that physical geometry can act as a prior on the responses available to a biological system. John Coates’s broader conjecture places information-bearing geometry beneath space, time, matter, energy and intelligence. The amplituhedron offers a precise precedent for that intuition. In a particular quantum field theory, its geometry encodes scattering amplitudes. Here the engineering question is deliberately measurable. Can the relationships among examples predict how another network will respond after an edit?

Where can an edit go without disrupting another skill?

A recipient may learn the new answer and lose an old one. The placement experiment compares blocks 1, 3 and 4. At each block it tests the original detector and a version with its overlap with an established skill projected out. The protected skill here is English subject–verb agreement, measured on prompts such as whether a singular noun should be followed by “is” or “are.”

Predict interference

Use calibration examples to measure overlap with the old skill and estimate how each edit will move its answer margins. A high overlap flags a place worth testing.

Choose before the final test

Rank candidates on the calibration data. Preserve the choice in a separate file before reading results on the held-out nouns and concept questions.

Measure the damage

Temporarily install each candidate, count previously correct answers lost, compare with an equal-norm random edit, and restore the tensor. The outcome can be that no placement qualifies. A recall dip after training gives us a set of missed answers to investigate. Replaying them against isolated edits tests which changes contributed.

The map reports a prediction and a measured outcome for every placement. Orthogonality is relative to the reference examples. An unmeasured skill can still depend on the same circuit.

Run the experiments on your own machine

The fact study uses Pythia and SmolLM2. The relation and interference study starts with EleutherAI’s Pythia-70m-deduped. The open base model has six transformer blocks and a 512-dimensional hidden state. The pinned safetensors download is 166 MB. A Windows PC with 128 GB of RAM, including the GEEKOM A9, can run the CPU procedure and inspect native weights and activations.

  1. Train a donor normally. Train on whether two symbols match, mapped to arbitrary answer codes. Measure its held-out performance and the untouched recipient’s baseline.
  2. Export the geometry. Capture hidden states before the answer. The handoff contains relationships among reference prompts plus four labeled anchors. The transfer process reloads a clean base checkpoint.
  3. Make a recipient-specific LoRA. Fit a rank-one update in the recipient’s own layer. Attach it, evaluate it and restore the original tensor. Save the adapter and model revision for replay.
  4. Look for transfer that survives controls. Inspect unseen prompts, novel symbols, paraphrases, both members of a premise flip and unrelated text. Compare against base geometry, shuffled relationships, random editing and direct supervision. Repeat with three fixed seeds.

First measured Pythia run

On seed 17, both answers were correct in 0 of 24 held-out pairs before editing, 4 of 24 after geometry transfer and 3 of 24 with shuffled geometry. The donor itself solved 10 of 24 pairs. The run fell short of the transfer criteria. The LoRA merge and exact restoration of the original tensor both verified.

Every candidate placement preserved all 32 previously correct grammar answers. Some correct-answer margins fell. None of the six placements cleared the calibration rules for learning the new concept.

See the run as it happens. The Windows launcher opens a local viewer. It plots donor training, shows the geometry as soon as it is released, and fills in results as each intervention finishes. Open the saved lab-report.json to replay the transfer and interference results together.
Interpreting a result

An improvement over the untouched base could come from making familiar knowledge easier to express. A larger paired gain than the base-geometry, shuffle and random controls, reproduced on fresh examples and seeds, is evidence for a contribution from the trained donor’s geometry. Arbitrary label codes probe a new mapping. The separate fact-transplant bench tests a different family and a larger recipient.

For a larger donor and smaller recipient, run py -3.11 launch_lab.py --study relation --donor-size 160m --seeds 17. The runner measures block 8 of Pythia-160m-deduped and fits a new edit at block 4 of the 70M recipient. The reference run above used two copies of the 70M base. In the completed 160M donor run, the recipient solved 1 of 24 pairs after geometry transfer and 3 of 24 with shuffled geometry. Inspect the 160M donor results.