exp008 amendment: 2-seed certification (denoiser replicates to 2nd decimal; sampler law both seeds; class-cond honest two-seed noise)
Browse files- exp008_tokendiff/README.md +12 -0
- exp008_tokendiff/adapters/q8_relay_pw_tokendiff_s1.pt +3 -0
- exp008_tokendiff/build_results.py +20 -1
- exp008_tokendiff/grids/q8_grid_T1.0_s1.png +0 -0
- exp008_tokendiff/grids/q8_grid_greedy_s1.png +0 -0
- exp008_tokendiff/results/ledger.jsonl +2 -0
- exp008_tokendiff/results/results.json +1 -1
exp008_tokendiff/README.md
CHANGED
|
@@ -147,6 +147,18 @@ grid PNGs ship in this package: the greedy grid plus both sampled grids).
|
|
| 147 |
exp009's family (a data-file failure at family run time — this package is
|
| 148 |
its standalone gate; joining the family is a recorded next rung).
|
| 149 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 150 |
## Files
|
| 151 |
|
| 152 |
- `qwen_exp008_tokendiff.py` — the bed: the fixed-palette tokenizer
|
|
|
|
| 147 |
exp009's family (a data-file failure at family run time — this package is
|
| 148 |
its standalone gate; joining the family is a recorded next rung).
|
| 149 |
|
| 150 |
+
## Seed-1 certification (amended 2026-07-14)
|
| 151 |
+
|
| 152 |
+
Both halves of the verdict now stand on **two seeds**. The denoiser
|
| 153 |
+
replicates to the second decimal at every corruption level (s1:
|
| 154 |
+
0.841/0.684/0.522/0.372 vs s0: 0.840/0.689/0.527/0.378 — all beating
|
| 155 |
+
identity). The sampler law replicates: greedy decoding collapses on both
|
| 156 |
+
seeds (diversity 0.0 / 0.1), stochastic sampling restores both (0.92 /
|
| 157 |
+
0.96). Class-conditionality remains **not demonstrated**, now with the
|
| 158 |
+
honest two-seed shape: the conditional-vs-shuffled histogram gap points in
|
| 159 |
+
opposite directions on the two seeds (s0 worse, s1 better) — sampling
|
| 160 |
+
noise, not signal.
|
| 161 |
+
|
| 162 |
## Files
|
| 163 |
|
| 164 |
- `qwen_exp008_tokendiff.py` — the bed: the fixed-palette tokenizer
|
exp008_tokendiff/adapters/q8_relay_pw_tokendiff_s1.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5e81815f3aba6f244cbb1a7b5ca33342d58ad001f02ceabbe2a295a32de11049
|
| 3 |
+
size 22169461
|
exp008_tokendiff/build_results.py
CHANGED
|
@@ -14,7 +14,7 @@ import os
|
|
| 14 |
HERE = os.path.dirname(os.path.abspath(__file__))
|
| 15 |
rows = [json.loads(l) for l in
|
| 16 |
open(os.path.join(HERE, "results", "ledger.jsonl"), encoding="utf-8")]
|
| 17 |
-
assert all(r["exp"] == "q8" for r in rows) and len(rows)
|
| 18 |
|
| 19 |
|
| 20 |
def row(arm, seed=0):
|
|
@@ -118,6 +118,25 @@ out = {"frozen": {"steps": fz["steps"],
|
|
| 118 |
"grid_png": base(t08["grid_png"])},
|
| 119 |
"n_rows": len(rows)}
|
| 120 |
assert "E:" not in json.dumps(out) and "\\" not in json.dumps(out)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 121 |
json.dump(out, open(os.path.join(HERE, "results", "results.json"), "w",
|
| 122 |
encoding="utf-8"), indent=1)
|
| 123 |
print(f"{len(rows)} rows -> results/results.json")
|
|
|
|
| 14 |
HERE = os.path.dirname(os.path.abspath(__file__))
|
| 15 |
rows = [json.loads(l) for l in
|
| 16 |
open(os.path.join(HERE, "results", "ledger.jsonl"), encoding="utf-8")]
|
| 17 |
+
assert all(r["exp"] == "q8" for r in rows) and len(rows) in (4, 6)
|
| 18 |
|
| 19 |
|
| 20 |
def row(arm, seed=0):
|
|
|
|
| 118 |
"grid_png": base(t08["grid_png"])},
|
| 119 |
"n_rows": len(rows)}
|
| 120 |
assert "E:" not in json.dumps(out) and "\\" not in json.dumps(out)
|
| 121 |
+
|
| 122 |
+
# AMENDMENT (exp010-A3, 2026-07-14): seed-1 certification.
|
| 123 |
+
if len(rows) == 6:
|
| 124 |
+
s1 = next(r for r in rows if r.get("seed") == 1
|
| 125 |
+
and r["arm"] == "relay_pw_tokendiff")
|
| 126 |
+
s1r = next(r for r in rows if r.get("seed") == 1
|
| 127 |
+
and r["arm"].startswith("rejudge_sampling"))
|
| 128 |
+
# denoiser-beats-identity CERTIFIED 2 seeds (replication to ~2nd decimal)
|
| 129 |
+
for t, floor in (("t0.25", 0.75), ("t0.5", 0.501), ("t0.75", 0.2515),
|
| 130 |
+
("t1.0", 0.002)):
|
| 131 |
+
assert s1["denoise_acc"][t]["acc"] > floor + 0.05
|
| 132 |
+
assert abs(s1["denoise_acc"]["t1.0"]["acc"] - 0.3721) < 1e-6
|
| 133 |
+
# sampler law CERTIFIED 2 seeds: greedy collapses, sampling restores
|
| 134 |
+
assert s1["diversity"] <= 0.15
|
| 135 |
+
assert s1r["diversity"] >= 0.9
|
| 136 |
+
# class-conditionality: still NOT demonstrated — the two seeds point in
|
| 137 |
+
# OPPOSITE directions (s0 cond>shuf, s1 cond<shuf) = noise
|
| 138 |
+
assert s1r["class_cond"]["conditional"] < s1r["class_cond"]["shuffled"]
|
| 139 |
+
|
| 140 |
json.dump(out, open(os.path.join(HERE, "results", "results.json"), "w",
|
| 141 |
encoding="utf-8"), indent=1)
|
| 142 |
print(f"{len(rows)} rows -> results/results.json")
|
exp008_tokendiff/grids/q8_grid_T1.0_s1.png
ADDED
|
exp008_tokendiff/grids/q8_grid_greedy_s1.png
ADDED
|
exp008_tokendiff/results/ledger.jsonl
CHANGED
|
@@ -2,3 +2,5 @@
|
|
| 2 |
{"exp": "q8", "arm": "relay_pw_tokendiff", "seed": 0, "steps": 3000, "denoise_acc": {"t0.25": {"acc": 0.8401, "identity": 0.7505}, "t0.5": {"acc": 0.6886, "identity": 0.501}, "t0.75": {"acc": 0.5269, "identity": 0.2515}, "t1.0": {"acc": 0.3781, "identity": 0.002}}, "class_cond": {"conditional": 1.8652, "shuffled": 1.8652}, "diversity": 0.0, "grid_png": "q8_grid_greedy_s0.png"}
|
| 3 |
{"exp": "q8", "arm": "rejudge_sampling_T1.0", "seed": 0, "class_cond": {"conditional": 1.2161, "shuffled": 1.1476}, "diversity": 0.9211, "grid_png": "q8_grid_T1.0_s0.png"}
|
| 4 |
{"exp": "q8", "arm": "rejudge_sampling_T0.8", "seed": 0, "class_cond": {"conditional": 1.4929, "shuffled": 1.4794}, "diversity": 0.9789, "grid_png": "q8_grid_T0.8_s0.png"}
|
|
|
|
|
|
|
|
|
| 2 |
{"exp": "q8", "arm": "relay_pw_tokendiff", "seed": 0, "steps": 3000, "denoise_acc": {"t0.25": {"acc": 0.8401, "identity": 0.7505}, "t0.5": {"acc": 0.6886, "identity": 0.501}, "t0.75": {"acc": 0.5269, "identity": 0.2515}, "t1.0": {"acc": 0.3781, "identity": 0.002}}, "class_cond": {"conditional": 1.8652, "shuffled": 1.8652}, "diversity": 0.0, "grid_png": "q8_grid_greedy_s0.png"}
|
| 3 |
{"exp": "q8", "arm": "rejudge_sampling_T1.0", "seed": 0, "class_cond": {"conditional": 1.2161, "shuffled": 1.1476}, "diversity": 0.9211, "grid_png": "q8_grid_T1.0_s0.png"}
|
| 4 |
{"exp": "q8", "arm": "rejudge_sampling_T0.8", "seed": 0, "class_cond": {"conditional": 1.4929, "shuffled": 1.4794}, "diversity": 0.9789, "grid_png": "q8_grid_T0.8_s0.png"}
|
| 5 |
+
{"exp": "q8", "arm": "relay_pw_tokendiff", "seed": 1, "steps": 3000, "denoise_acc": {"t0.25": {"acc": 0.8413, "identity": 0.7505}, "t0.5": {"acc": 0.6837, "identity": 0.501}, "t0.75": {"acc": 0.5215, "identity": 0.2515}, "t1.0": {"acc": 0.3721, "identity": 0.002}}, "class_cond": {"conditional": 1.8273, "shuffled": 1.8302}, "diversity": 0.1, "grid_png": "q8_grid_greedy_s1.png"}
|
| 6 |
+
{"exp": "q8", "arm": "rejudge_sampling_T1.0", "seed": 1, "class_cond": {"conditional": 1.0104, "shuffled": 1.087}, "diversity": 0.9594, "grid_png": "q8_grid_T1.0_s1.png"}
|
exp008_tokendiff/results/results.json
CHANGED
|
@@ -63,5 +63,5 @@
|
|
| 63 |
"diversity": 0.9789,
|
| 64 |
"grid_png": "q8_grid_T0.8_s0.png"
|
| 65 |
},
|
| 66 |
-
"n_rows":
|
| 67 |
}
|
|
|
|
| 63 |
"diversity": 0.9789,
|
| 64 |
"grid_png": "q8_grid_T0.8_s0.png"
|
| 65 |
},
|
| 66 |
+
"n_rows": 6
|
| 67 |
}
|