Skip to content
HN On Hacker News ↗

Weight-Space Playground — an LLM edited 0.016% of another LLM's weights

▲ 40 points • 6 comments • by wsxiaoys • 5d ago • HN discussion ↗

Pangram verdict · v3.3

We believe that this text is a mix of AI and human-written content.

78 %

AI likelihood · overall

Mixed
22% human-written 78% AI-generated
SEGMENTS · HUMAN 6 of 26
SEGMENTS · AI 20 of 26
WORD COUNT 795
PEAK AI % 100% · §2
Analyzed
Nov 19
backend: pangram/v3.3
Segments scanned
26 windows
avg 31 words each
Distribution
22 / 78%
human / AI fraction
Verdict
Mixed
Pangram v3.3

Article text · 795 words · 26 segments analyzed

Human AI-generated
§1 Human · 0%

Weight-Space Playground Replay Story Look closer Run live Weight-space programming Qwen3.5-0.8B Rewrote 0.016% of the model's weights — and cured its infinite loops.

§2 AI · 100%

No training, no gradient descent: an AI agent found a “repetition-loop” direction inside Qwen3.5-0.8B and subtracted it from 131,072 weights.

§3 AI · 100%

Watch a recording of both models right below — nothing to download — then run them in your browser if you like.

§4 AI · 100%

Watch the replay ↓ Run it live Watch it · no downloadSame question. One loops, one answers.

§5 AI · 100%

A real recording of both models on the same prompt with the same seed.

§6 AI · 100%

It plays by itself — drag the timeline, change the speed, or pick another case.

§7 AI · 100%

recorded · llama.cpp · Q4_K_M Unrolling the recording… Fetching the recorded token streams (about 1 MB). Everything else on the page already works.

§8 AI · 100%

Is this cherry-picked? Here's the whole batch.

§9 AI · 100%

loading… The replay cases come from a batch of MATH-500 problems recorded with the same settings.

§10 AI · 100%

1 The base model gets stuck in a loop With thinking on, small Qwen keeps re-checking itself — “wait, let me verify…” — until it runs out of budget instead of answering.

§11 Human · 0%

93.0% Runs that hit the 32k-token limit 2 An LLM edits 0.016% of the weights It subtracts one direction from 64 neurons' output weights (ffn_down) in layers 15 and 19 — 131,072 of ~800M weights.

§12 AI · 100%

layer 0layer 23 Stripes drawn ~25× wider than true scale — at real size they would be invisible.

§13 AI · 100%

3 The edited model escapes Same model, same prompts — it now stops looping and finishes its answers.

§14 Human · 0%

Hit the token limit 93.0%→33.1% MATH-500 accuracy 7.9%→48.1% Where this might fit Model souping - diffusion-LoRA merging is one case of it - is weight-space editing too.

§15 AI · 100%

The difference is the target: souping picks merge weights (and sometimes merge order) with a broad benchmark; weight-space programming zeroes in on a few specific failure cases and the neurons behind them. And here's the fun part: it's a promising fit for agents - propose an edit, test it, feed the result back - the same edit-test-repeat loop behind the recent coding-agent wins. Look closerInside the edit Where the 131,072 changed weights sit, and what the edited neurons do while the model thinks.

§16 Human · 0%

Weight diff loading… Which of the 3,584 neurons feeding each edited ffn_down tensor were changed, and by how much. Key neurons during inference loading… The 64 edited neurons of layers 15 and 19, token by token, on the recorded runs.

§17 AI · 100%

Synced to the replay above: hover to peek, drag to scrub.

§18 AI · 100%

Loops light them upWhen the original model starts repeating itself, these neurons fire harder: the push the edit adds is about 2–4× bigger inside loops than in the rest of the same run. The edit pushes backThat push points against what the neurons were writing, so the harder they fire, the harder the edit steers away from the loop. Layer 19 calms downRun the edited weights over the same looping text (dashed line) and layer 19 is about half as active (≈ 2.1 instead of ≈ 4.0). The loop gets wobblyIts next tokens stop being a sure thing: 15.9% of loop tokens fall below 90% probability, against 0.4% for the original. — ★ top push neuron: — Waiting for the replay… base edited edited weights · base text how hard the edit pushes · |push| per token neuron activity |a| · sorted by push share · colours scaled per case base edited (its own run) edited weights on base’s loop recorded loop repeat the loop marker missed n = 4 loops + 1 control · correlation, not proof · bf16 forward over the recorded tokens · int8-quantised for the web Footnote: the recorder marks only non-overlapping repeats, so a loop can start later than the text actually repeats; your browser re-checks every repeat and hatches the missed part. “Push” is what the edit would add given the base activations — its sign is a convention, so the chart shows its size.

§19 AI · 100%

Try itRun it in your browser Both models run locally via llama.cpp → WebAssembly + WebGPU.

§20 AI · 93%

Nothing is sent to a server.

§21 Human · 1%

Prompt ⤓ ~1.05 GB download (508 MB + 542 MB), cached in this browser after the first visit.

§22 Human · 7%

Advanced engine settings max new tokens temperature seed n_ctx n_gpu_layers keep both models loaded Sequential runs unload each model by default to limit GPU memory.

§23 AI · 100%

n_ctx / n_gpu_layers apply on the next load.

§24 AI · 100%

Base Q4_K_M · imatrix not loaded not loaded repetition 0% Edited Q4_K_M · plain not loaded not loaded repetition 0% Output streams How long each model talks, and how it ends: grey = thinking, colour = answer, ✓ = stopped on its own, ⚠ = hit the cap.

§25 AI · 100%

x = stream chunk (≈ one token).

§26 AI · 100%

thinking base answer edited answer