Dynamics as Code: On Model Compression via Dynamic System
Organizations: School of Information Science and Engineering, Lanzhou University, Lanzhou, Gansu Province, China · Department of Data Science, City University of Hong Kong, Hong Kong, China SAR · Department of Mathematics, City University of Hong Kong, Hong Kong, China SAR · School of Science, Great Bay University, Dongguan, China
Abstract
The escalating size of pretrained neural networks has rendered model compression a prerequisite for deployment under stringent memory and compute constraints. With the irrational winding as an example, earlier work introduced a dynamic system (DS) paradigm that reconceptualizes compression as compact weight representation: high-dimensional parameters are encoded by the index of a trajectory produced by a dynamic system, from which the vector is recovered during decompression. This mechanism is fundamentally distinct from pruning, quantization, knowledge distillation, and low-rank decomposition. Along this direction, we prove that under a Diophantine condition, a finite trajectory of states in the irrational winding constitutes an -net over the -dimensional weight space, thereby linking state resolution, decompression error, and compression ratio in a predictable manner. Furthermore, we propose a generalized DS-based model compression framework by unifying four DS families---space-filling curves (Hilbert, Peano, Morton/Z-order, Snake), chaotic systems (Lorenz), congruential and pseudo-random generators (LCG, PCG), and low-discrepancy sequences (Halton). Also, we introduce the KD-tree and coordinate-template acceleration to scale to large models as well as outlier identification to control the error. Experiments on ResNet-18 and Qwen2.5-1.5B/Qwen1.5-7B validate that DS-based compression achieves competitive compression ratios without post-hoc retraining, with controllable decompression error and flexible state-space design, establishing it as a principled and practical compression approach.
Figures & tables
| Method | Scale setting | |
| Space-filling curves and traversal mappings | ||
| Hilbert | – | |
| – | ||
| Snake | – | |
| – | ||
| Z-order | – | |
| Method | D | S | CR | Top-1 Acc. ( )% | Top-5 Acc. ( )% |
|---|---|---|---|---|---|
| Hilbert | 3 | 5.77 | 69.17 (-0.59) | 88.67 (-0.40) | |
| Peano | 5 | 69.62 (-0.14) | 88.91 (-0.16) | ||
| Lorenz | 2 | 69.64 (-0.12) | 89.07 (0.00) | ||
| LCG | 3 | 69.52 (-0.24) | 88.99 (-0.08) | ||
| PCG | 2 | 69.49 (-0.27) | 88.86 (-0.21) | ||
| QMC | 3 | 69.18 (-0.58) | 88.72 (-0.35) |
| Model | Method | CR | PPL ( ) | Avg. Score ( )% |
|---|---|---|---|---|
| Qwen2.5-1.5B | Original | – | 9.26 | 67.31 |
| Hilbert | 9.61 (+0.35) | 66.52 (-0.79) | ||
| Peano | 2.37 | 9.55 (+0.29) | ||
| Lorenz | 1.68 | 67.31 (+0.00) | ||
| QMC | 2.56 | 9.75 (+0.49) | 66.44 (-0.87) | |
| LCG | 2.36 | 9.62 (+0.36) | 66.79 (-0.52) |
| Reference | Dyn-Sys | Previous | Conventional PTQ | Advanced Weight-only | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Metric / Task | Original | Hilbert | IR | ZQ4 | ZQ8 | SQ4 | SQ8 | PTQ4 | PTQ8 | GPTQ | AWQ | SpQR | QuIP |
| CR | – | 2.67 | 2.67 | 2.74 | 1.73 | 2.74 | 1.73 | 2.74 | 1.73 | 2.68 | 2.69 | 2.50 | 2.75 |
| PPL | 9.26 | 9.61 | 9.84 | 13.50 | 9.27 | 13.53 | 9.27 | 15.14 | 9.28 | 10.24 | 9.98 | 9.45 | 9.63 |
| ( PPL) | – | +0.35 | +0.58 | +4.24 | +0.01 | +4.27 | +0.01 | +5.88 | +0.02 | +0.98 | +0.72 | +0.19 | +0.37 |
| SciQ | 93.30 | 94.20 | 93.70 | 89.60 | 93.40 | 89.60 | 93.40 | 86.30 | 93.30 | 93.70 | 93.80 | 93.40 | 93.40 |
| WinoGrande | 63.38 | 62.19 | 64.40 | 58.17 | 63.93 | 59.75 | 63.69 | 59.27 | 63.38 | 62.51 | 63.85 | 63.54 | 64.25 |
| Reference | Dyn-Sys | Previous | Conventional PTQ | Advanced Weight-only | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Metric / Task | Original | Hilbert | IR | ZQ4 | ZQ8 | SQ4 | SQ8 | PTQ4 | PTQ8 | GPTQ | AWQ | SpQR | QuIP |
| CR | – | 3.00 | 2.91 | 3.21 | 1.85 | 3.21 | 1.85 | 3.21 | 1.85 | 2.63 | 2.64 | 2.47 | 2.69 |
| PPL | 11.30 | 11.81 | 12.47 | 13.98 | 11.30 | 13.97 | 11.30 | 14.57 | 11.31 | 11.92 | 11.68 | 11.29 | 11.99 |
| ( PPL) | – | +0.51 | +1.17 | +2.68 | +0.00 | +2.67 | +0.00 | +3.27 | +0.01 | +0.62 | +0.38 | -0.01 | +0.69 |
| SciQ | 83.40 | 85.30 | 82.70 | 79.50 | 83.80 | 80.20 | 83.80 | 80.80 | 83.90 | 79.00 | 84.80 | 83.10 | 83.90 |
| WinoGrande | 65.19 | 64.17 | 62.75 | 61.72 | 64.96 | 62.12 | 65.19 | 61.33 | 65.27 | 65.19 | 65.19 | 65.75 | 66.06 |
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.