gbuzhf commited on
Commit
3285d40
·
verified ·
1 Parent(s): c6f3a84

Report v1.1 and ICE 2.0 technical report

Browse files

Report v1.1 refines Laws 3 and 4 with later measurements on the same checkpoint (per-checkpoint depth profile; per-block floor fit); all measured numbers stand. Adds the ICE 2.0 technical report: Sangreal domain-matched imatrix, ICE 1.6 recipes, a 12G-25G ladder and format-preserving routed-expert repair. README gains a version history.

README.md CHANGED
@@ -21,7 +21,17 @@ checkpoints.
21
 
22
  ## Read the paper
23
 
24
- **[`paper/ICE_Technical_Report.md`](paper/ICE_Technical_Report.md)**
 
 
 
 
 
 
 
 
 
 
25
 
26
  ## What ICE is
27
 
@@ -90,7 +100,7 @@ appendix/SHA256SUMS.txt checksum for every file above
90
 
91
  | suffix | meaning |
92
  |---|---|
93
- | `_ICEbase` | the current recipe, after the Law 3 revision |
94
  | `_previous` | the recipe it replaced |
95
  | `_comparison` | a published UD or APEX tier, as measured |
96
 
 
21
 
22
  ## Read the paper
23
 
24
+ **[`paper/ICE_Technical_Report.md`](paper/ICE_Technical_Report.md)**: the method (ICE v1, report version 1.1)
25
+
26
+ **[`paper/ICE2_Technical_Report.md`](paper/ICE2_Technical_Report.md)**: ICE 2.0, format-preserving expert repair
27
+
28
+ ## Version history
29
+
30
+ | version | date | change |
31
+ |---|---|---|
32
+ | ICE v1, report 1.0 | August 2026 | error-propagation classes, five rules, four laws; Ornith-1.5-35B-A3B |
33
+ | ICE v1, report 1.1 | October 2026 | Law 3 depth profile measured per checkpoint (U-shaped); Law 4 fitted on the per-block error (χ² 14.67 → 0.29); measurements unchanged |
34
+ | ICE 2.0, report 1.0 | October 2026 | Sangreal domain-matched imatrix, ICE 1.6 recipes, 12G–25G ladder, format-preserving expert repair; paired against ICE 1.6, code KLD −4.5% to −17.6% at every tier |
35
 
36
  ## What ICE is
37
 
 
100
 
101
  | suffix | meaning |
102
  |---|---|
103
+ | `_ICEbase` | the v1 recipe after its shallow-first Law 3 revision (refined in report 1.1, U1) |
104
  | `_previous` | the recipe it replaced |
105
  | `_comparison` | a published UD or APEX tier, as measured |
106
 
paper/ICE2_Technical_Report.md ADDED
@@ -0,0 +1,187 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ICE 2.0: Format-Preserving Expert Repair After Error-Class Quantization
2
+
3
+ **Gökhan Buz**
4
+
5
+ Independent researcher, `gbuzhf` on Hugging Face
6
+
7
+ Version 1.0, October 2026. Companion to [`ICE_Technical_Report.md`](ICE_Technical_Report.md) (ICE v1, August 2026).
8
+
9
+ ---
10
+
11
+ ## Abstract
12
+
13
+ ICE v1 established *where* the bits go in a sparse Mixture-of-Experts checkpoint: freeze the 0.14% of tensors
14
+ whose quantization error propagates beyond the current token, and spend the budget on the expert library.
15
+ ICE 2.0 extends the method past the quantizer. After an ICE 1.6 file is built, its routed experts are repaired
16
+ in place against the bf16 model on calibration activations, **with every tensor keeping its type and its byte
17
+ size**. The output remains a standard GGUF that any `llama.cpp` build loads, at the same size as before.
18
+
19
+ ICE 2.0 also differs from v1 in three further respects: a domain-matched calibration corpus (Sangreal), the
20
+ ICE 1.6 recipes built on refined versions of Laws 3 and 4, and a five-tier ladder from 12G to 25G.
21
+
22
+ In a paired, single-session comparison against its own ICE 1.6 parent files on MiniCPM-V-4.7-35B-A3B, ICE 2.0
23
+ lowers code KLD by **4.5–17.6%** and code @16K KLD by **4.1–18.6%** at every tier, with the strongest effect at
24
+ 19G (−14% to −19% on all three columns, paired t below −7). On Ornith-1.5-35B-A3B, the checkpoint ICE v1 was
25
+ developed on, KLD at equal size falls at each step from ICE 1.5 to ICE 1.6 to ICE 2.0.
26
+
27
+ ---
28
+
29
+ ## 1. From ICE v1 to ICE 2.0
30
+
31
+ | | ICE v1 (August 2026) | ICE 2.0 (October 2026) |
32
+ |---|---|---|
33
+ | **Principle** | freeze what propagates, spend everything else on the library | unchanged |
34
+ | **Calibration** | generic importance matrix | **Sangreal**: a curated, domain-matched corpus (code in many languages, agentic and tool-use traces, technical and scientific text, several world languages); 10,000 to 36,000 chunks of 512 tokens |
35
+ | **Recipes** | ICE v1 rules | **ICE 1.6**: the v1 rules with the refined placement and floor laws, built per model |
36
+ | **Placement (Law 3)** | shallow-first, `g(t) ≈ exp(−t/9.95)` | per-checkpoint depth profile; the value trough is demoted first |
37
+ | **Floor (Law 4)** | fit on the mean bit-width | fit on the per-block mean of `4^−b` (χ² 14.67 → 0.29) |
38
+ | **After quantization** | none | **expert repair**, stages A and B (Section 2) |
39
+ | **Ladder** | 19G / 21G / 23G / 25G | **12G / 15G / 19G / 23G / 25G** |
40
+ | **Measurement** | wiki @2K | wiki @2K, code @2K, code @16K, each against the model's own bf16 logits, paired per chunk |
41
+
42
+ The refined laws are described in the Version 1.1 updates of the v1 report. The error-propagation classes
43
+ (DISCRETE, RECURRENT, CACHED, INSTANT) carry over unchanged and still define the frozen set.
44
+
45
+ ## 2. The repair stage
46
+
47
+ ### 2.1 Principle
48
+
49
+ A quantized expert matrix consists of low-bit **codes** and the per-block **scales** that map them back to real
50
+ values. A standard quantizer chooses both once, block by block, to minimise that block's own weighted error.
51
+ ICE 2.0 revisits that choice for the routed experts, with the bf16 model as the target and MoE inputs collected
52
+ from the Sangreal corpus as the data:
53
+
54
+ * **Stage A, scale refit.** With every code fixed, the expert's super-block scales are refit so that the
55
+ quantized expert reproduces the bf16 expert's output on calibration activations. Only legal values of the same
56
+ scale fields are written.
57
+ * **Stage B, code re-choice.** With every scale fixed, the codes are re-chosen with error feedback along the
58
+ input dimension, in the spirit of GPTQ, so that rounding errors made early in a row are compensated by later
59
+ choices.
60
+
61
+ The i-quant tiers (12G, 15G, 19G) receive A then B; the k-quant tiers (23G, 25G) receive B on their ICE 1.6
62
+ files. Routers, the always-on path and every frozen tensor are left as ICE 1.6 set them.
63
+
64
+ ### 2.2 A standard file
65
+
66
+ Neither stage changes a tensor's type, block layout or byte size. A repaired file differs from its ICE 1.6
67
+ parent only inside the routed-expert tensors, and only in bytes those formats already define. No new operator,
68
+ adapter or side file is needed at inference.
69
+
70
+ ### 2.3 Model-level acceptance
71
+
72
+ A tier is accepted on model-level KLD against the bf16 logits, compared per chunk with its ICE 1.6 parent in the
73
+ same session. Per-layer error is a poor proxy: a routed MLP's held-out error falls 15–46% at 23G/25G, while the
74
+ model-level KLD falls 3–4% in the same session, because 70–97% of a layer's deviation from bf16 is inherited from the layers above.
75
+ The model-level gain is therefore close to *the experts' share of the KLD × the layer gain*, and that is the
76
+ quantity this report measures.
77
+
78
+ ## 3. Results
79
+
80
+ Mean KL divergence against the model's own bf16 logits (lower is better). "wiki" and "code" are 64 chunks of
81
+ 2,048 tokens; "code @16K" is 8 chunks of 16,384 tokens. Sizes in 3.1–3.2 exclude the one-layer MTP draft head
82
+ (0.29 GB), as the rival files carry none; sizes in 3.3 are file sizes as published.
83
+
84
+ ### 3.1 ICE 2.0 against its ICE 1.6 parent (one session, paired)
85
+
86
+ MiniCPM-V-4.7-35B-A3B Uncensored (Qwen3.6-35B-A3B architecture), 14 October 2026. Imatrix: Sangreal 10k,
87
+ computed on a sibling Qwen3.6 fine-tune (Occamy-1.0).
88
+
89
+ | tier | wiki | code | code @16K |
90
+ |---|---|---|---|
91
+ | 12G | 0.1495 → 0.1574 (+5.3%) | 0.1064 → **0.1014 (−4.7%)** | 0.0847 → **0.0812 (−4.1%)** |
92
+ | 15G | 0.0716 → 0.0717 (+0.2%, n.s.) | 0.0509 → **0.0486 (−4.5%)** | 0.0418 → **0.0381 (−8.8%, t −6.9)** |
93
+ | 19G | 0.0295 → **0.0253 (−14.1%, t −10.5)** | 0.0189 → **0.0156 (−17.6%, t −7.8)** | 0.0151 → **0.0123 (−18.6%, t −7.4)** |
94
+ | 23G | 0.0120 → 0.0121 (+0.3%, n.s.) | 0.0080 → **0.0076 (−5.0%)** | 0.0065 → **0.0061 (−6.7%)** |
95
+ | 25G | 0.0081 → 0.0082 (+1.0%, n.s.) | 0.0053 → **0.0049 (−6.7%)** | 0.0042 → **0.0040 (−6.7%)** |
96
+
97
+ Same-top-1 agreement improves together with KLD on code @16K at every tier and on code at 12G–23G. The repair concentrates its gain
98
+ where the calibration target puts its weight, on code and long-context code; prose (wiki) is held level from
99
+ 15G to 25G and traded for code at 12G.
100
+
101
+ ### 3.2 Against Unsloth Dynamic 2.0 (same session)
102
+
103
+ Same model and session as 3.1. Rival KLD is interpolated log-linearly to each ICE tier's size from the two
104
+ neighbouring UD files. Negative means ICE 2.0 is lower.
105
+
106
+ | tier (size) | code @2K | code @16K | wiki @2K |
107
+ |---|---:|---:|---:|
108
+ | **19G-ICEv2** (18.47 GB) | **−14.7%** | **−15.9%** | **−5.4%** |
109
+ | **23G-ICEv2** (22.52 GB) | **−3.5%** | **−4.3%** | +4.1% |
110
+ | **25G-ICEv2** (24.53 GB) | **−13.2%** | **−11.0%** | **−4.3%** |
111
+ | 15G-ICEv2 (14.51 GB) | no size-matched UD file | | |
112
+ | 12G-ICEv2 (11.90 GB) | no size-matched UD file | | |
113
+
114
+ Paired at the actual neighbours: 19G-ICEv2 against `UD-IQ4_XS` (17.73 GB) −26.9% on code (64/64 chunks), and
115
+ 25G-ICEv2 against `UD-Q4_K_XL` (22.36 GB) −39.3% (63/64). From 19G upward ICE 2.0 holds the lower curve on this
116
+ checkpoint. UD's ladder has no file at the sizes of 12G and 15G: it ends at 12.29 GB (`UD-Q2_K_XL`) and steps from
117
+ 13.21 GB (`UD-IQ3_XXS`) to 17.73 GB (`UD-IQ4_XS`), so these two tiers have no comparable counterpart.
118
+
119
+ ### 3.3 The v1 checkpoint, stage by stage: Ornith-1.5-35B-A3B
120
+
121
+ ICE v1 was developed on Ornith-1.5-35B-A3B; its abliterated derivative (huihui-ai) was rebuilt with ICE 1.5,
122
+ ICE 1.6 and ICE 2.0.
123
+
124
+ **ICE 1.5 → ICE 1.6, with Unsloth Dynamic 2.0, one session (25 September 2026):**
125
+
126
+ | file | size | wiki | code | code @16K |
127
+ |---|---:|---:|---:|---:|
128
+ | `UD-IQ4_XS` | 18.12 GB | 0.0708 | 0.0442 | 0.0778 |
129
+ | ICE 1.5 19G | 18.82 GB | 0.0604 | 0.0369 | 0.0632 |
130
+ | **ICE 1.6 19G** | 18.76 GB | **0.0596** | **0.0348** | **0.0590** |
131
+ | `UD-Q4_K_XL` | 22.75 GB | 0.0358 | 0.0197 | 0.0459 |
132
+ | ICE 1.5 23G | 22.84 GB | 0.0336 | 0.0190 | 0.0451 |
133
+ | **ICE 1.6 23G** | 22.81 GB | **0.0316** | **0.0185** | **0.0431** |
134
+ | ICE 1.5 25G | 24.85 GB | 0.0290 | 0.0153 | 0.0414 |
135
+ | **ICE 1.6 25G** | 24.82 GB | **0.0273** | **0.0146** | **0.0392** |
136
+ | `UD-Q5_K_XL` | 26.98 GB | 0.0243 | 0.0120 | 0.0376 |
137
+
138
+ ICE 1.6 lowers KLD over ICE 1.5 at every shipped tier (paired; at 15G by 4.4–4.9% on all three columns, t up to
139
+ −6.4). At matched size ICE 1.6 23G is below `UD-Q4_K_XL` on every column (−11.8% wiki, −6.4% code), and
140
+ ICE 1.6 19G is 21% below `UD-IQ4_XS` on code. `UD-Q5_K_XL` sits on the floor side of Law 4, 2.16 GB above 25G.
141
+
142
+ **ICE 1.6 → ICE 2.0** (separate sessions; the bf16 reference PPL agrees within 0.4%):
143
+
144
+ | tier | code | code @16K | wiki |
145
+ |---|---|---|---|
146
+ | 15G | 0.0838 → **0.0734 (−12.4%)** | 0.1074 → **0.1001 (−6.8%)** | 0.1204 → **0.1162 (−3.6%)** |
147
+ | 19G | 0.0348 → **0.0298 (−14.4%)** | 0.0590 → **0.0548 (−7.1%)** | 0.0596 → **0.0511 (−14.2%)** |
148
+ | 23G | 0.0185 → **0.0173 (−6.3%)** | 0.0431 → **0.0409 (−4.9%)** | 0.0316 → 0.0313 (−0.9%) |
149
+ | 25G | 0.0146 → **0.0137 (−5.9%)** | 0.0392 → **0.0376 (−4.1%)** | 0.0273 → 0.0274 (+0.3%) |
150
+
151
+ **Stage by stage at 23G, wiki @2K:** ICE v1 0.0361 (its own session) → ICE 1.6 0.0316 → ICE 2.0 0.0313.
152
+
153
+ ## 4. Closed directions
154
+
155
+ 1. **Repairing through the always-on path.** On one layer, a least-squares refit of the shared expert absorbed
156
+ 0.65% of the routed-expert error, and a full linear map from the layer input to that error, the upper bound
157
+ for any always-on fix, absorbed 1.9% (gate: 20%). Expert error is expert-specific, which is why ICE 2.0 works
158
+ inside the experts.
159
+ 2. **Per-layer acceptance.** Layer-level gains exceed model-level gains three- to fivefold (Section 2.3); ICE 2.0
160
+ accepts tiers on model-level KLD only.
161
+ 3. **Downstream and unweighted targets.** Fitting each expert to the bf16 *downstream* output, or with an
162
+ unweighted second-moment matrix, did not transfer on Q5_K. Weighting by the squared routing weight and
163
+ targeting the expert's own bf16 output did.
164
+ 4. **Repeated passes.** A second scale refit after the code re-choice added 0.1 percentage points on Q4_K. One
165
+ pass of each stage, in order, is the method.
166
+
167
+ ## 5. Scope
168
+
169
+ * **Sparse MoE by design.** ICE's budget comes from the asymmetry between an always-on core and a large expert
170
+ library (Law 1); a dense model has no expert library to spend it on. All results here are on `qwen35moe`
171
+ (Qwen3.5/3.6-35B-A3B and fine-tunes: Ornith-1.5, MiniCPM-V-4.7, Nex-N2.5-mini, Sage-A1.5).
172
+ * **KLD on raw text.** KLD is measured on WikiText-2 and source code. Within one model's ladder it orders the
173
+ tiers; across models it also reflects how confident each bf16 model is on that text.
174
+ * **Implementation.** This report describes what the repair stage does and what it measures; the pipeline, the
175
+ corpus and the per-model recipes are not released.
176
+
177
+ ## 6. Reproducing a measurement
178
+
179
+ Every ICE 2.0 release carries its KLD logs in the model repository. To measure a file:
180
+
181
+ ```bash
182
+ llama-perplexity -m <tier>.gguf -f code.test.raw -c 2048 --chunks 64 \
183
+ --kl-divergence-base base_code.kld --kl-divergence
184
+ ```
185
+
186
+ against a `base_code.kld` produced once from the model's bf16 file with the same corpus, context and chunk
187
+ count. Compare two files on the same chunks with a paired test on the per-chunk values.
paper/ICE_Technical_Report.md CHANGED
The diff for this file is too large to render. See raw diff