# Quantization and Its Role in Pruning: Two Independent Compressions ![Homunculus family](../cover.jpg) *The original small fly gives the giant fly the jewel of knowledge: the small one taught the large one without training, and the reverse holds inside the family.* > Status: internal lab report, 28 November 2026. Falcon-H1-Tiny-90M-Instruct. Single seed, no training. Quantization is naive round-to-nearest, with no GPTQ and no AdaRound. ## Abstract The user's hypothesis: if we quantize the large model to Q4 the values converge so that division (shrinking) becomes possible, and from the result we build a smaller unquantized model. We tested it on Falcon-H1-Tiny-90M. Results: (1) **Quantization does not create tiles**: after Q4 and after Q8 there is no duplicated MLP neuron among 18,432 neurons (24 layers x 768), neither in gate/up nor (except one case) in down. (2) Q8 is almost free: KL 0.032 and CE 5.00 (original 4.989). Naive Q4 is harsh: CE 6.94, KL 3.62, top-1 0.35. (3) The two compressions are independent and stack: Q8 then a 25% cut gives KL 0.84 versus 0.77 for the cut alone, and the order of quantization and pruning does not change the number. Estimated size of Q8 with a 25% cut: about 37% of the original fp32 model size (computed from parameter counts and bits, no file measured): the quantized matrices are 74,219,520 of 91,131,072 parameters (81%) and the rest (embeddings 16.8M, conv, norms) stays fp32. Correction after the audit: an earlier figure of 23% was 0.922 x 8/32, which assumes every parameter including the embeddings is quantized. That did not happen in the experiment. 23% would only be reached if the embeddings were quantized too (not tested). ## 1. Introduction Quantization rounds each weight by itself to a limited grid of values (16 levels in 4 bits). But a neuron is a vector of hundreds of weights, and for two neurons to coincide every weight in them must coincide. The chance of that after the first rounding is small, and that is the prediction we tested. ## 2. Method - Quantization: symmetric per-row (per row of a weight matrix), `scale = max|w| / (2^(b-1)-1)`, `q = clamp(round(w/scale))`, b = 4 or 8, on all layer matrices (MLP, attention and Mamba; not the embeddings, not the convolution weights, not the norms), then dequantization to float32 for evaluation (simulated quantization). - Counting duplicates: for each layer, we count duplicated rows of the integer codes of [gate|up] per neuron, and of the down columns. For Q4 we also counted after dequantization and without quantization (fp32). - Importance pruning at 25% and 50% of the MLP hidden dimension (the method in paper 3), in both orders: quantize then prune (`q8>imp`) and prune then quantize (`imp>q8`). - Metrics: val CE (original 4.989), KL(orig||model) on 11 diverse prompts, top-1 agreement, greedy generation drift (6 inputs). ## 3. Results ### 3.1 Does quantization create duplicates? | Format | duplicated gate/up of 18,432 | duplicated down of 18,432 | |---|---|---| | fp32 (no quantization) | 0 | not measured | | Q4 (on integer codes) | 0 | 1 | | Q4 (after dequantization) | 0 | not measured | | Q8 (on integer codes) | 0 | 0 | The result confirms the expectation of both the user and the lab: quantization does not unify neurons. The literal idea "quantize then divide" is dead at birth because there is nothing to divide. ### 3.2 Cost of quantization and stacking with pruning | config | params kept | val CE | KL | top-1 | gen identical | gen prefix frac | | --- | --- | --- | --- | --- | --- | --- | | Q4 alone (per-row symmetric int4, all layer weights) | 1.000 | 6.94 | 3.62 | 0.35 | 0 | 0.02 | | q8 | 1.000 | 5.00 | 0.032 | 0.90 | 0 | 0.49 | | q8>imp:0.25 | 0.922 | 5.14 | 0.844 | 0.55 | 0 | 0.08 | | q8>imp:0.5 | 0.845 | 5.58 | 2.116 | 0.35 | 0 | 0.06 | | imp>q8:0.25 | 0.922 | 5.14 | 0.844 | 0.55 | 0 | 0.08 | | imp>q8:0.5 | 0.845 | 5.58 | 2.132 | 0.34 | 0 | 0.06 | | imp>q4:0.25 | 0.922 | 6.95 | 4.385 | 0.22 | 0 | 0.03 | | q4>imp:0.25 | 0.922 | 7.05 | 4.359 | 0.25 | 0 | 0.05 | Reading: 1. **Q8 alone is almost free** (KL 0.032, top-1 0.90, CE 5.00), but it is not literally identical: greedy generation matches in none of the 6 inputs, and the average match before the first difference is 49% of 24 tokens. A KL of 0.03 is quantization noise. 2. **Naive Q4 is harsh** on a 90M model (CE 6.94, KL 3.62, top-1 0.35). Its KL of 3.62 is roughly that of a 75% importance cut of the MLP (KL 3.31, CE 6.24) and worse than a 50% cut (KL 2.06, CE 5.56). (Correction after the audit: an earlier version said "about the cost of a 25% to 50% cut", which the numbers do not support.) 3. **Q8 + 25% cut**: KL 0.844 and CE 5.14 versus KL 0.77 and CE 5.12 for the cut alone. **Quantization added almost nothing on top of the cost of the cut.** But this is not "free": the 25% cut itself changes the answers (see the generation samples in paper 3 and paper 6). 4. **Q8 + 50% cut**: KL 2.116 versus 2.06 for the cut alone. 5. **Order does not matter**: `q8>imp:0.25` and `imp>q8:0.25` give 5.14/0.844 exactly, and at 50% the difference is 2.116 versus 2.132 (within noise). 6. **Q4 with pruning**: a 25% cut then Q4 gives CE 6.95 and KL 4.385, and Q4 then a 25% cut gives 7.05 and 4.359. The cost of Q4 dominates the cut. ### 3.3 The role of quantization in pruning The hypothesis we started with (quantization makes pruning easier and creates a divisible structure) was **not confirmed**. What was confirmed is a duality of independent compressions: quantization compresses storage size (bits per weight), and pruning compresses structure (number of neurons). The two effects stack with no noticeable interaction at Q8. ## 4. Limitations - Quantization is naive per-row RTN on all layer weights. The harsh Q4 result is specific to this kind of quantization. Methods such as GPTQ may give a much better result on the same model; they were not tested because they use compensation or calibration (and the project constraint is no training). - Quantization is simulated (dequantized to float32); there is no real int8 or int4 kernel and no speed measurement. - The 37% size (not 23%) is computed from parameter counts and bits, with the embeddings, convolution weights and norms kept in fp32. It needs the scales added (a small amount); we did not measure an actual file. - Single seed, a single 90M model, MLP only in the pruning here. - The duplicated Q4 down code (1 of 18,432) was not examined: we do not know which column it is or what it means. ## 5. Related work - GPTQ (Frantar et al. 2022): https://arxiv.org/abs/2210.17323. Post-training quantization with compensation using Hessian information. - AdaRound: Up or Down? Adaptive Rounding for Post-Training Quantization: https://arxiv.org/abs/2004.10568. The rounding direction as a decision learned from its effect on the output. This matches the user's intuition "when to round backward and when forward", but it needs calibration/optimization and is outside our scope. - Deep Compression: https://arxiv.org/abs/1510.00149, pruning then quantization then coding; the steps are known to stack. - Our position: an explicit test of the hypothesis "quantization creates divisible structure", with a numerical negative answer (0 of 18,432), and a measurement of how Q8 stacks with pruning.