Lossless compression of packed Transformer state 01 | Lossless compression of packed state A binary transformer can read one bit per weight while keeping more information for training. Here, the packed four-bit training samples compressed to forty-five point two three percent of their raw size. That is a saving of fifty-four point seven seven percent. Every tested byte came back exactly. To understand why, separate the one-bit sign used by the model, the small state changed by training, and the reversible codec that stores that state. 02 | What is actually stored? The sign determines the value used by each binary matrix in the forward calculation. Packed four stores an integer per coefficient, two four-bit codes to a byte. The sign of that integer supplies the forward value. Its magnitude carries additional training information. The seven-bit error feedback example is a different method. It keeps one sign bit plus seven feedback bits. It is not packed four with extra precision. For these packed four samples, the measured archive is equivalent to about one point eight one bits per stored weight. That is an archive average, not random-access memory or inference precision. 03 | Inside the four-bit update First divide the transient gradient by its matrix root mean square plus a tiny epsilon. Then clip that normalised gradient to minus four through plus four. Multiply the old integer state by seven eighths, and subtract two fifths of the normalised gradient. Round to the nearest integer, clamp to minus seven through plus seven, and if the result is zero, replace it with the old sign at magnitude one. Pack the resulting code again. The bounds and rounding constrain training; they are not archive compression. 04 | What the closed form says Turn rounding, saturation and the zero rule off, and hold the normalised gradient sequence fixed. Now the simplified update is linear. After each step, the previous state and the earlier gradient contributions are multiplied by lambda once more. The closed form is the decayed starting value minus a weighted sum of the gradients. Lambda is seven eighths; eta is two fifths. This formula does not solve the exact packed training trajectory, and real gradients depend on model and data. 05 | The ideal path can be wrong Start from plus one and use a normalised gradient of one half. The actual rule proposes zero point six seven five, then rounds back to plus one. The same thing happens again at every step. The ideal path carries that fraction forward. It is still positive at step three, but goes negative at step four. That difference is real information lost in the update, not a decompression error. Clipping and the zero rule are separate ways the exact path can differ. 06 | Different parts compress differently The CPU study checked forty-three real component groups across several representations. The packed four-bit subset is about two hundred and thirteen thousand sampled bytes, not an entire checkpoint. The tied embedding and output head stored at about thirty-six percent with Brotli eleven. The feed-forward up and down samples needed about forty-eight and forty-nine percent. Different byte patterns can lead to different ratios. This sample does not say why all those tensors differ, or tell us the result for a different model. 07 | Choose the codec for the job Z-standard level three stored about forty-nine point four six percent, with an encode time around one point one milliseconds. Brotli eleven got down to forty-five point two three percent but took around two hundred and sixteen milliseconds to encode. These timings are sums of per-component medians on one CPU thread. The already packed signs became slightly larger, and the seven-bit feedback barely shrank. Smaller storage here is not proof of faster training or better intelligence. 08 | Check the bytes, then the workload To validate a whole checkpoint, round-trip its actual contents and compare the bytes, then check full reload and the next update. Include metadata and state beyond the weight sample. Measure save and load cost on the real training path before changing it. Low precision and lossless compression answer different questions. One says what state survives an update. The other says whether those exact state bytes return. This clip reports the sampled experiment, not a result for the very large production model.