Abstract
Hyper-Compression is a novel model compression framework that replaces traditional pruning and quantization with "hyperfunctions" derived from mathematical ergodic theory. By representing high-dimensional weight vectors as single trajectory lengths along a space-filling curve, the authors achieve significant compression (e.g., 2.6x for LLaMA2-7B) in under an hour with less than a 1% performance drop—all without any post-hoc retraining or calibration data.
Introduction
The "Scaling Law" has led to a massive gap between the size of state-of-the-art models and the memory capacity of available hardware. While a GPT-3 model requires ~700 GB, even a top-tier NVIDIA H100 only offers 80 GB. Existing solutions like pruning, quantization, and distillation face three major hurdles: scaling limits (quantization is bounded by bit-width), high retraining costs due to model distortion, and deployment friction in agile industry environments.
The authors propose Hyper-Compression, moving away from "cropping" models toward finding a more parsimonious way to represent their parameters.
Methodology
Inspired by the "genomic bottleneck"—where a tiny genome contains enough information to build a complex brain—Hyper-Compression utilizes Ergodic Theory. This theory suggests that a trajectory of a low-dimensional dynamic system can eventually visit every point in a high-dimensional space. The authors treat model weights as points in this space and use a hyperfunction (HF) to map a single number (the trajectory length or "composition number" $\theta$) to those weights.
Irrational Winding on a Torus
The specific implementation uses irrational winding. By employing irrational numbers (like $\pi$), the system ensures that a one-dimensional line winds through a multi-dimensional space without ever overlapping, eventually getting "close enough" to any desired weight value.
The Hyper-Compression Workflow
To make this practical, the authors propose a workflow that emphasizes speed and efficiency, utilizing KD-Trees and parallelization to turn the compression task into a fast nearest-neighbor search.
The framework adheres to four "PNAS" merits:
- Preferable compression ratio: Scaling and translation are used to handle weight outliers.
- No post-hoc retraining: The approximation is accurate enough for "out of the box" performance.
- Affordable inference time: A "simultaneous inference and decompression" scheme recovers weights for layer $n+1$ while layer $n$ is computing.
- Short compression time: Optimized search algorithms allow for rapid processing of massive parameter sets.
Experimental Evaluation
The authors evaluated Hyper-Compression across a diverse range of models and tasks, including Large Language Models (LLaMA, Qwen) and Vision Models (ResNet, UNet).
Key Results
- LLaMA2-7B: Compressed by 2.60x in approximately one hour, with an average score decrease of less than 1% across benchmarks.
- Efficiency: Achieved "close-to-int4" quantization performance without needing the calibration datasets required by methods like GPTQ.
- Vision Speedups: On UNet, a 7.87x reduction in model size was achieved within a 1% performance drop.
- Search Optimization: Modified KD-Tree search achieved a 5x speedup, processing $10^9$ nodes in 13.4 seconds.
Discussion and Future Work
Hyper-Compression treats compression as a search problem: finding the right "time" ($\theta$) to stop a dynamic system so its state matches the model's weights. Because it relies on trajectory density rather than data-driven statistics, it is zero-shot by design, making it ideal for privacy-sensitive applications. Furthermore, it is "stackable" with other methods like pruning.
Limitations
- Initial Latency: A minor "warm-up" delay exists to restore the first layer's parameters before inference.
- Theoretical Gap: Current error bounds are "worst-case"; real-world performance is better because weights are not randomly distributed.
Future work will focus on "decode-compute" kernels to integrate weight recovery directly into matrix multiplication and exploring alternative dynamic systems like chaotic maps.
Summary updated