twil-8b-weight-space-edit-v2
A research derivative of webAI-Official/TwIL-8B (balanced variant) in which 0.030% of the weights were edited, without any training, to make the model second-guess itself less. On held-out problems it writes about 20–26% fewer thinking tokens on math with no significant change in accuracy, and it solves more weight-reading problems within a 16K-token budget.
Not affiliated with or endorsed by webAI, Inc. This is an independent research artifact. Like its base model, it is licensed under the webAI Non-Commercial License ver. 1.0 and may be used only for non-commercial research and educational purposes (see LICENSE.md).
The edit was found by Claude (Anthropic) working as the "weight programmer", following the rules of Experiment 8 in Sparks of Weight-Space Programming (Takehi, Teoh, Zhang, Khattab, MIT, 2026), where GPT-6 Astra edited Qwen3.5-0.8B: no gradient descent or training, practice data only while editing, a fixed budget of model runs, and a held-out evaluation fixed in advance.
What changed
- Behaviour targeted: the decision to second-guess ("Wait", "Hmm", "Let me double-check") rather than move on ("So", "Thus", "Therefore"). TwIL had no repetition-loop bug, but its answers often ran long from this habit.
- Where it lives: this decision becomes linearly readable in the late layers (held-out AUC 0.94 at layer 37), and MLPs 33–37 write most of it.
- The edit: in each of layers 33–37, the 128 MLP neurons that push hardest toward second-guessing at "Wait" points
(and never against it at "So" points) lose twice their component along that direction:
W[:, j] ← W[:, j] − 2·u (uᵀ W[:, j])ondown_proj. That is 2,612,523 weights in 5 tensors in the evaluated GGUF, the output columns of 640 neurons (2,534,664 of them still differ after rounding to bfloat16 inmodel.safetensors). Every other weight is unchanged.
Results (held-out, edited vs unedited control)
Both sides are the same 4-bit build (Q4_K_M with layers 33–37's ffn_down at F16), thinking on, temperature 1.0,
top-p 0.95, top-k 50, 16K-token budget, one sample per problem, run once as pre-registered.
| set | accuracy (control → edit) | mean thinking tokens | paired token ratio (95% CI) |
|---|---|---|---|
| MATH-500, 150 problems | 94.0% → 96.0% | 2,794 → 2,278 | ×0.81 (0.76–0.87) |
| GSM8K test, 150 problems | 96.0% → 94.7% | 1,127 → 706 | ×0.80 (0.74–0.87) |
| GSM8K test, 100 other problems | 96.0% → 96.0% | 1,078 → 577 | ×0.74 (0.66–0.82) |
| Weight-reading prompts, 32 (small trained networks given as text) | 0/32 → 6/32 | 16,384 → 15,882 | — |
The accuracy changes on math are within sampling noise (95% intervals about ±3–5 points). On the weight-reading prompts the unedited model never finished within 16K tokens; the edited one finished 6 and got all 6 right.
Use
Same as the base model (Granite architecture, ChatML-style template that opens a <think> block):
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "Iliassti/twil-8b-weight-space-edit-v2"
tok = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, dtype=torch.bfloat16, device_map="auto")
messages = [{"role": "user", "content": "How many positive integers below 1000 are divisible by 3 but not by 5?"}]
inputs = tok.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt", return_dict=True).to(model.device)
out = model.generate(**inputs, max_new_tokens=16384)
print(tok.decode(out[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))
GGUF (the exact build that was evaluated):
llama-server -m twil-8b-weight-space-edit-v2-Q4_K_M.gguf --jinja -c 32768 --temp 1.0 --top-p 0.95 --top-k 50
Files
| file | what it is |
|---|---|
model.safetensors | full bfloat16 weights with the edit applied (the edit computed in float64) |
twil-8b-weight-space-edit-v2-Q4_K_M.gguf | the evaluated build: webAI's Q4_K_M GGUF with the five edited ffn_down tensors at F16 |
edit/edit.npz, edit/manifest.json | the edit itself: neuron indices per layer, the direction u, alpha, and sha256 hashes |
apply_edit.py | rebuilds model.safetensors from the original TwIL-8B weights and edit/edit.npz |
LICENSE.md | webAI Non-Commercial License ver. 1.0 (applies to this model) |
apache-2.0-LICENSE.txt | Apache License 2.0 of the Granite base model (IBM), retained as in the base repository |
Limitations
- One sample per problem; the accuracy intervals are wide and cannot rule out a small loss on GSM8K.
- Thinking shorter also means checking less: some new errors came with much less self-verification.
- Evaluated on the 4-bit build at a 16K budget; the full-precision weights and longer budgets were not separately tested.
- The edit does not add knowledge or skills; it removes a habit that slowed the model down.
License and attribution
- This model is a derivative of TwIL-8B by webAI, Inc., distributed under the webAI Non-Commercial License ver.
1.0 (included as
LICENSE.md); the use limitation to non-commercial research and educational purposes applies. No additional or different terms are added. - TwIL-8B is built on ibm-granite/granite-4.2-8b, Copyright IBM
Corporation, Apache License 2.0 (retained as
apache-2.0-LICENSE.txt). - Method: Sparks of Weight-Space Programming (Takehi, Teoh, Zhang, Khattab, MIT, 2026).