Block-Level Weight-Space Structure Persists Under Post-Training: An Empirical Study Across LLM Families
Organizations: Viterbi School of Engineering, University of Southern California, Los Angeles, USA.
Abstract
Modern LLMs are deployed as families of post-trained variants (base, instruct, chat, code) derived from a shared set of pre-trained weights. We present an empirical study of how post-training transforms weight-space geometry, covering eight configurations across four architecture families (Qwen2.5, Llama-3.1/3.2, Mistral, Gemma-2). We identify a granularity gap: post-training modifies every tensor (zero of 291-339 tensors remain byte-identical, so hash-based deduplication achieves 0% savings), yet preserves block-level structure (mean cosine similarity exceeds 0.99 and relative Frobenius distance stays below 0.13). Post-training therefore acts as a structured perturbation that shifts every parameter while leaving block-level geometry intact. The property is not universal: independently trained specializations (for example, Qwen2.5-Coder) attain cosine similarity around 0.64 with the general base, indicating a disconnected region of weight space. Perturbation magnitude varies systematically with model scale, architecture family, and post-training recipe. As a practical application, we build LinkerLLM, a lazy loader that aliases shareable blocks across co-resident variants, achieving 18-48% GPU memory savings and enabling up to five 7B-parameter variants on a single 24 GB consumer GPU. Five of eight configurations retain at least 94% of the unshared variant's quality on MMLU, ARC-Challenge, HellaSwag, and WinoGrande; the remaining three (Mistral-7B, Gemma-2-2B, Llama-3.2-1B) have one below-threshold benchmark each (87-91%), which we report transparently rather than gate the block-sharing decision on a single threshold.
Figures & tables
| Family | Blocks | cos range | range | mean |
|---|---|---|---|---|
| Mistral-7B-v0.3 | 32 | 0.999+ | 0.004–0.01 | 0.006 |
| Qwen2.5-3B | 36 | 0.999+ | 0.01–0.02 | 0.011 |
| Qwen2.5-7B | 28 | 0.999+ | 0.01–0.02 | 0.015 |
| Llama-3.1-8B | 32 | 0.999+ | 0.04–0.05 | 0.045 |
| Qwen2.5-0.5B | 24 | 0.998 | 0.04–0.05 | 0.045 |
| Gemma-2-2B | 26 | 0.998–0.999 | 0.04–0.08 | 0.049 |
| Pair (all within Qwen2.5) | cos | Region | |
|---|---|---|---|
| Post-training (SFT/RLHF/DPO) | |||
| 7B base instruct | 0.9997 | 0.015 | Aligned |
| Continued pretraining | |||
| 1.5B base Coder-1.5B | 0.704 | 0.358 | Outside |
| 3B base Coder-3B | 0.752 | 0.305 | Outside |
| 7B base Coder-7B | 0.637 | 0.831 | Outside |
| ref | head_perm | rmsnorm | |
| attention sub-mean cosine | |||
| Qwen2.5-1.5B blk14 | 0.9999 | 0.1344 | 0.9666 |
| Qwen2.5-7B blk14 | 0.9999 | 0.0727 | 0.9677 |
| Llama-3.1-8B blk16 | 0.9994 | 0.1522 | 0.9431 |
| attention sub-mean | |||
| Qwen2.5-1.5B blk14 | 0.0037 | 0.6527 | 0.0856 |
| Family | Shared | Naive | Lazy | Save | |
|---|---|---|---|---|---|
| Mistral-7B | 0.05 | 32/32 | 27648 | 14336 | 48% |
| Qwen2.5-3B | 0.05 | 36/36 | 11988 | 6588 | 45% |
| Llama-3.2-3B | 0.13 | 28/28 | 12256 | 6880 | 44% |
| Qwen2.5-7B | 0.05 | 28/28 | 29136 ∗ | 16648 | 43% |
| Llama-3.1-8B | 0.05 | 32/32 | 30634 ∗ | 17322 | 43% |
| Qwen2.5-0.5B | 0.06 | 24/24 | 1900 | 1210 | 36% |
Appendix figures & tables20 assets
Supplementary material from the paper’s appendix.
Appendix
| Family | Params | Blocks | Precision |
|---|---|---|---|
| Qwen2.5-0.5B | 0.5B | 24 | bf16 |
| Qwen2.5-3B | 3B | 36 | bf16 |
| Qwen2.5-7B | 7B | 28 | bf16 |
| Llama-3.2-1B | 1.2B | 16 | bf16 |
| Llama-3.2-3B | 3B | 28 | bf16 |
| Llama-3.1-8B | 8B | 32 | bf16 |
| Family | Saved | MMLU | ARC | Hella | Wino |
|---|---|---|---|---|---|
| Mistral-7B | 48% | 101 | 87 | 96 | 101 |
| Qwen2.5-3B | 45% | 99 | 97 | 98 | 98 |
| Llama-3.1-8B | 43% | 96 | 97 | 101 | 99 |
| Qwen2.5-7B | 43% | 102 | 101 | 101 | 103 |
| Qwen2.5-0.5B | 36% | 102 | 95 | 96 | 100 |
| Llama-3.2-3B | 7% † | 98 | 102 | 100 | 99 |
| Family | Mode | MMLU | ARC | Hella | Wino |
|---|---|---|---|---|---|
| Mistral-7B | instruct | 61.1 | 59.3 | 73.0 | 76.3 |
| shared | 61.5 | 51.7 | 70.3 | 77.0 | |
| Qwen2.5-3B | instruct | 65.5 | 48.1 | 75.1 | 69.4 |
| shared | 65.0 | 46.8 | 73.5 | 68.0 | |
| Llama-3.1-8B | instruct | 67.7 | 51.7 | 69.0 | 74.3 |
| shared | 65.0 | 50.0 | 69.3 | 73.7 |
| Family | Mean | Blocks shared | |
|---|---|---|---|
| Mistral-7B-v0.3 | 0.006 | 0.05 | 32/32 |
| Qwen2.5-3B | 0.011 | 0.05 | 36/36 |
| Qwen2.5-7B | 0.015 | 0.05 | 28/28 |
| Qwen2.5-0.5B | 0.045 | 0.06 | 24/24 |
| Llama-3.1-8B | 0.045 | 0.05 | 32/32 |
| Gemma-2-2B | 0.049 | 0.07 | 12/26 |
| Family | mean | max- mean | global max | |
|---|---|---|---|---|
| Mistral-7B-v0.3 | 0.05 | 0.016 | 0.024 | 0.029 |
| Qwen2.5-3B | 0.05 | 0.007 | 0.014 | 0.018 |
| Llama-3.2-1B | 0.20 | 0.122 | 0.182 | 0.192 |
| Family | Pair | Tightening | |
|---|---|---|---|
| Gemma | Gemma-1-2B (Feb ’24) | 0.610 | |
| Gemma-2-2B (Jun ’24) | 0.049 | ||
| Mistral | Mistral-v0.1-7B (Sep ’23) | 0.140 | |
| Mistral-v0.3-7B (May ’24) | 0.006 | ||
| Llama | Llama-2-7B (Jul ’23) | 0.052 | (flat) |
| Llama-3.1-8B (Jul ’24) | 0.045 |
| Source | blocks | mean ratio | min | max |
|---|---|---|---|---|
| qwen05b (tol=0.05) | 24 | 1.219 | 1.194 | 1.223 |
| qwen3b (tol=0.05) | 36 | 1.180 | 0.800 | 1.206 |
| qwen7b (tol=0.05) | 28 | 1.198 | 1.112 | 1.209 |
| Family | Method | Save | Fidelity | Overhead |
|---|---|---|---|---|
| Qwen-3B | LinkerLLM | 45% | Determ. | 0 ms |
| DeltaZip | 83% | 0.99995 | 21 s | |
| Llama-1B | LinkerLLM | 32% | Determ. | 0 ms |
| DeltaZip | 85% | 0.991 | 9 s |
| Per-block | Full-model | ||
| Family | max | peak | |
| Post-training (instruct) | |||
| Llama-3.1-8B | 32 | +0.0000 | +0.0000 |
| Qwen2.5-7B | 28 | +0.0004 | 0.0000 |
| Mistral-7B | 32 | +0.0016 | +0.0000 |
| Qwen2.5-1.5B | 28 | +0.0062 | +0.0000 |
| Qwen2.5-3B | Qwen2.5-7B | Mistral-7B | ||||
|---|---|---|---|---|---|---|
| MiB | Save | MiB | Save | MiB | Save | |
| 1 | 5994 | 0% | 14568 | 0% | 13824 | 0% |
| 2 | 6588 | 45% | 16648 | 43% | 14336 | 48% |
| 3 | 7182 | 60% | 18728 | 57% | 14848 | 64% |
| 4 | 7776 | 68% | 20808 | 64% | 15360 | 72% |
| 5 | 8370 | 72% | — | — | 15872 | 77% |
| Family | CPU load | Scan | Alias | Move | Total | Naive |
|---|---|---|---|---|---|---|
| Qwen-3B | 1.4s | 19.8s | 0.6s | 0.3s | 22.1s | 5.8s |
| Qwen-7B | 2.8s | 51.5s | 1.4s | 0.6s | 56.3s | 11.9s |
| Group | min | mean | max | gap |
|---|---|---|---|---|
| Shared (0–11) | 0.99844 | 0.99929 | 0.99998 | 0.00084 |
| Rejected (12–25) | 0.99788 | 0.99887 | 0.99998 | 0.00099 |
| Group | ||
|---|---|---|
| Shared (0–11) | 0.0447 | |
| Rejected (12–25) | 0.0402 |
Language Model Post-Training
Language model post-training adapts pretrained models to follow instructions, reason, use tools, and meet task-specific or human-defined goals.
See all 195 papers