Hyper-Compression: Model Compression via Hyperfunction

Fenglei Fan, Juntong Fan, Dayang Wang, Jingbo Zhang, Zelin Dong, Shijun Zhang, Ge Wang, Tieyong Zeng · DOI

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.

Overview of the Hyper-Compression framework, illustrating the mapping between neural network weights and hyperfunction trajectories.

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.

Detailed workflow of Hyper-Compression encoding and decoding, showing the transformation of model tensors into compressed composition numbers.

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

BibTeX
@article{fan2026hyper,
  author = {Fenglei Fan and Juntong Fan and Dayang Wang and Jingbo Zhang and Zelin Dong and Shijun Zhang and Ge Wang and Tieyong Zeng},
  title = {{Hyper-Compression: Model Compression via Hyperfunction}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2026},
  doi = {10.1109/tpami.2026.3673772},
}
Figure