Weight Pair Encoding: Inducing a Smaller Grammar in Neural Network Weights
We show that neural network weights can be explicilty fintuned to admit a smaller grammar. Weight Pair Encoding (WeightPE) does so by placing a lossy Re-Pair compressor inside a straight-through estimator. The int8 weights of the network are flattened into one string, and near-matching Re-Pair patterns are made exactly equal within a global L2 budget. The network computes with
Reading in Plain English mode — toggle below to switch
We show that neural network weights can be explicilty fintuned to admit a smaller grammar. Weight Pair Encoding (WeightPE) does so by placing a lossy Re-Pair compressor inside a straight-through estimator. The int8 weights of the network are flattened into one string, and near-matching Re-Pair patterns are made exactly equal within a global L2 budget. The network computes with
This paper introduces a novel method for compressing neural network weights, leading to smaller model sizes and potentially faster inference. For ML engineers, understanding such techniques is crucial for deploying efficient models, especially in resource-constrained environments or for large-scale applications where even small gains in compression can lead to significant cost savings.