Skip to content
NewA calmer, faster ZeroHour

Weight Pair Encoding: Inducing a Smaller Grammar in Neural Network Weights

arXiv cs.AI / cs.LG / cs.CLby Irene Tallini ()1 min read1
AI summary · grok-4.7Summaries by Vani AI

WeightPE finetunes int8 weights so Re-Pair grammars shrink to 0.38–0.43x of QAT, costing about 1–2 accuracy points.

Weight Pair Encoding finetunes int8 network weights so a lossy Re-Pair compressor finds a smaller grammar, using a straight-through estimator under a global L2 budget. On MLP weights of ViT-B/16 and ViT-L/16 finetuned on CIFAR-10, grammars are 0.43x and 0.38x the size of an equivalent int8 QAT run, costing 1.9 and 1.1 accuracy points. The same trend appears with LZ78 and SEQUITUR, compressors the networks were not trained against. The authors call grammar size a new explicit training objective for weights.

Key facts
  • Straight-through estimator trains through lossy Re-Pair rewritten weights
  • ViT-B/16 grammar is 0.43x QAT size, minus 1.9 accuracy points
  • ViT-L/16 grammar is 0.38x QAT size, minus 1.1 accuracy points
  • Gains also appear under LZ78 and SEQUITUR without matched finetuning
Explain this AI news with Vani AIWhat was announced, what is new and why it matters, in a new chat

From the original article

1 min read at arxiv.org

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.

arXiv cs.AI / cs.LG / cs.CL

By Irene Tallini · arxiv.org

Read the full article at arXiv cs.AI / cs.LG / cs.CL

A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.