Ling-3.0-tiny — weight-space edit l16c316-d090 (exploratory)
Read this first. This is a research artifact, not an improved model. It is inclusionAI/Ling-3.0-tiny with 1,536 of ~7.9B weights changed by hand (no gradients, no training). The experiment's own decision rule (set before the final confirmation) did not adopt this edit. On held-out benchmarks (one run, one seed) it scores slightly higher on math and slightly lower on IFEval, but every difference is within noise (all paired 95% CIs include zero). It is published so the edit, its evidence, and its null result are reproducible.
What changed
| Tensor | model.layers.16.mlp.shared_experts.down_proj.weight (shape [1536, 512], BF16) |
| Edit | Column 316 multiplied by 0.9 (rounded to BF16); every other value unchanged |
| Values changed | 1,536 |
| Shard affected | model-00016-of-00032.safetensors (all other shards are byte-identical to the base) |
| Base revision | 9a98e35fe1c9ee255f78dd64771c7ae15a799481 |
| Original tensor SHA-256 | cee1a7fca90be9108b7bb046f29df955d01ea2cb1a72cc4b90f45f466d8c52e1 |
| Edited tensor SHA-256 | ac2b13a2032b08d0f4b1111b07b120f568765c9fe249b50245bd23501bb02be7 |
Config, tokenizer, chat template and modeling code are the base model's, unchanged. Full hashes and the editor's hypothesis/evidence are in edit-manifest.json.
Editor's hypothesis (summarized): in a MATH counting problem the base model answered 10 instead of 11 after dropping a standalone "1" from an enumeration. Shared-expert channel 316 in layer 16 spiked (activation −5.22) at that branch point, far more than on correct controls. Damping the channel's output column was tested as a causal probe; the dose 0.9 was pre-specified. The editor itself recorded that the error-specific causal story was not established: matched control edits also changed outcomes.
How it was made
This is an application of Experiment 8 from Rikiya Takehi's Weight-Space Programming (task: "make it better at math by editing its weights directly, with no gradient descent and no training") to Ling-3.0-tiny instead of the blog's Qwen model.
- Editor: an LLM agent (GPT-6 Astra, run in OpenAI Codex) with CPU read/write access to the weights and a separately metered GPU inference broker.
- Budgets: three independent arms limited to 10, 25 and 50 forward-pass requests; each arm started fresh and could not see the others. A baseline pass was required before any edit.
- Allowed: changing tensor values only. Names, shapes, dtypes, config, tokenizer, template and sampling were fixed. Embeddings, LM head and final norm were frozen; whole-tensor global rescaling and forced thinking termination were prohibited. Each candidate needed a written hypothesis plus practice evidence.
- Practice data (edit selection only): the blog authors' released practice files at commit
4d09ba6d6a7e891dd8063974dfe81b3d78e3494f: GSM8K train (7,469), MATH train (7,275), AIME (714). A deterministic confirmation split was held out from edit selection. - Held-out benchmarks were sealed until all three arms had frozen their choices.
Outcome per arm (practice data only)
| Arm | Best edited candidate | Evidence | Retained |
|---|---|---|---|
| 10 passes | c03-l18n58-110 | 368 vs 363 / 384 combined validation + confirmation (exact McNemar p = 0.27) | original |
| 25 passes | l22neutral-zero | 245 vs 242 / 256 confirmation (p = 0.45) | original |
| 50 passes | l16c316-d090 (this repo) | development 855 vs 850 / 896; prospective replication 485 vs 485 / 512; final confirmation 244 vs 244 / 256 | original |
All three arms failed their pre-declared adoption rules and kept the unmodified model. The 50-pass arm's best candidate was carried into held-out evaluation, explicitly labelled exploratory_edit_NOT_retained_choice. Note: those statistical adoption rules were added locally; they are not part of the blog's published procedure.
Held-out evaluation
Same seed, sampling and grader for both models. Accuracy is averaged over n samples per problem.
| Benchmark | n / problem | Problems | Base | This edit | Δ (pp) | Paired 95% CI | Problems better / worse |
|---|---|---|---|---|---|---|---|
| MATH-500 | 4 | 500 | 95.75 | 96.35 | +0.60 | [−0.17, +1.37] | 29 / 18 |
| AMC23 | 16 | 40 | 93.75 | 95.00 | +1.25 | [−0.34, +2.84] | 6 / 3 |
| GSM8K | 2 | 1,319 | 94.96 | 95.22 | +0.27 | [−0.28, +0.81] | 28 / 19 |
| IFEval (strict prompt-level) | 2 | 541 | 89.37 | 88.35 | −1.02 | [−3.07, +1.04] | 43 / 53 |
The CI is a normal approximation over per-problem accuracy differences. Responses truncated at 32,768 tokens: MATH-500 58 → 49, AMC23 41 → 31, GSM8K 4 → 3, IFEval 32 → 34 (base → edit).
Not evaluated: Minerva Math and OlympiadBench (cloud budget ran out); GPQA-Diamond and MMLU-Pro-1k (the blog's exact prompts and subset are unpublished, so these were blocked rather than approximated).
Single run, single seed. Every number above comes from one evaluation run per model with a fixed seed (seed=0). The confidence intervals reflect variation across problems and across the n samples per problem only. They do not capture run-to-run variation from other seeds or from SGLang's continuous batching, which is not guaranteed to be deterministic. The real uncertainty is therefore larger than shown. The practice-set comparisons used to choose and reject edits are single runs too.
Interpretation: consistent with no real effect. The math gains are small, none is significant even under these optimistic intervals, and the practice-set confirmation showed exactly zero change. Multi-seed reruns would be needed to say anything stronger.
Evaluation settings
| Setting | Value |
|---|---|
| Thinking | enabled (enable_thinking=True) |
| Sampling | temperature 0.6, top_p 0.95, top_k 20, presence_penalty 1.5, max_new_tokens 32768 |
| Math prompt suffix | \nPlease reason step by step, and put your final answer within \boxed{}. (not applied to IFEval) |
| Math grading | \boxed{} extraction + math-verify, using the blog authors' released extraction code |
| IFEval grading | Google's official instruction-following checker, strict prompt-level (all instructions must pass); a response with no closing </think> counts as empty |
| Seed (held-out) | seed=0 on every per-problem request (each request asks for all n samples at once), identical for both models |
| Seed (practice, edit selection) | 20261115. Per-sample seed = first 8 hex digits of SHA256(f"{problem_id}:{sample_index}"), masked to 31 bits |
| Runs | One evaluation run per model; no repeat with other seeds |
| Engine | SGLang (continuous batching) on a single NVIDIA H100 SXM (Vast.ai). The blog used vLLM, so results are not bitwise comparable |
Sampling follows the blog rather than Ling's recommended temperature of 1.0.
| Dataset | HF repo | Split | Revision |
|---|---|---|---|
| MATH-500 | HuggingFaceH4/MATH-500 | test | 6e4ed1a2a79af7d8630a6b768ec859cb5af4d3be |
| GSM8K | openai/gsm8k (main) | test | 740312add88f781978c0658806c59bc2815b9866 |
| AMC23 | math-ai/amc23 | test | 80815d37005feb82cd7f8fbc6901d5d3eff43057 |
| IFEval | google/IFEval | train | 966cd89545d6b6acfd7638bc708b98261ca58e84 |
These are current official revisions; the blog authors' original dataset revisions are unknown.
Known deviations from the blog
- Different target model (Ling-3.0-tiny, a 7.9B hybrid KDA/MLA MoE with 1.3B active) and its native tokenizer/template.
- SGLang instead of vLLM; the original forward worker/sandbox and full seed derivation were not released.
- Fresh deterministic practice confirmation split, not the authors' exact one.
- Activation diagnostics came from separate teacher-forced passes, not from generation-time capture.
- Mid-run migration to a replacement H100 SXM (same pinned weights, runtime and settings).
- Statistical adoption/fallback rules are local additions.
- The blog evaluated each budget arm's edited model; here the 10- and 25-pass arms retained the original, so only the 50-pass exploratory edit was evaluated.
Comparison with the blog
The procedure follows Experiment 8, but the result does not resemble the blog's Qwen3.5-0.8B result. It closely resembles the blog's own Gemma 3 270M follow-up.
| Qwen3.5-0.8B (blog, Exp. 8) | Gemma 3 270M (blog, follow-up) | Ling-3.0-tiny (this repo) | |
|---|---|---|---|
| Base MATH-500 | 7.9% | 6.8% | 95.75% |
| Base answers hitting the token limit | 93% (thinking loops) | 8.5% | ~3% |
| What the editor found | one "looping" direction written by the MLPs of layers 15 and 19 | ordinary reasoning errors, no single component to remove | a channel spike at one enumeration error; causal role not established |
| Edit size | 131,072 weights (0.016%) | small, e.g. doubling one neuron | 1,536 weights (~0.00002%) |
| Best MATH-500 result | 7.9 → 48.1 (50 passes) | 6.8 → 7.7 at best | 95.75 → 96.35, within noise |
The Qwen gain came from removing a defect. The base model looped and rarely finished an answer, and the edit let it finish answers it could already work out. Ling-3.0-tiny does not loop and already solves ~96% of MATH-500, so there was no comparable obstacle to remove and little headroom left.
The blog's Gemma follow-up describes that situation: with a model that rarely loops, Astra "could not improve it", its edits "stayed small and targeted", and none moved MATH-500 by more than about a point, "a gain Astra itself reported as not established." This run reproduces that pattern on a much stronger model. It is consistent with the blog's conclusion that weight editing can remove an obstacle that hides an ability but cannot add an ability the model lacks.
The blog's figures are compared here as reported, not re-run. Its very large Qwen gains do not depend on run-to-run noise. The sub-1.5-point differences here do, which is why the single-run caveat above matters.
Usage
Identical to the base model; it needs trust_remote_code=True and the base model's dependencies (see the base model card).
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "JonathanColetti/Ling-3.0-tiny-wsp-l16c316-d090"
tok = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(repo, trust_remote_code=True, torch_dtype="bfloat16", device_map="auto")
To reproduce the edit from the base checkpoint: load model.layers.16.mlp.shared_experts.down_proj.weight, multiply column 316 by 0.9 in BF16, and check the result against the SHA-256 above.
License and credit
MIT, inherited from inclusionAI/Ling-3.0-tiny; all model capability credit belongs to inclusionAI. The experimental procedure is from Rikiya Takehi's Weight-Space Programming, Experiment 8. This repository is an independent application and is not affiliated with either.