Home▸AI & Machine Learning▸Deep Compression of a Tiny Neural Network: Weight Sharing by k-Means, Tuned Shared Values and Huffman Coding (2D)

Deep Compression of a Tiny Neural Network: Weight Sharing by k-Means, Tuned Shared Values and Huffman Coding (2D)

The same compression pipeline in 2D: decision maps of the float and the compressed network side by side with wrong test points in red, to-scale memory bars of the dense and the compressed model, and the weights as dots on a value axis snapping onto the shared values, plus charts of accuracy, size, error and entropy against bits.

AI & Machine Learning2DAdvanced60 FPS📱 Mobile-adapted🟠 Blender⇄ 3D version
Deep Compression of a Tiny Neural Network: Weight Sharing by k-Means, Tuned Shared Values and Huffman Coding (2D) ↗ Open standalone

The same compression pipeline in 2D: decision maps of the float and the compressed network side by side with wrong test points in red, to-scale memory bars of the dense and the compressed model, and the weights as dots on a value axis snapping onto the shared values, plus charts of accuracy, size, error and entropy against bits.

⚙ Under the hood

The same compression pipeline in 2D: decision maps of the float and the compressed network side by side with wrong test points in red, to-scale memory bars of the dense and the compressed model, and the weights as dots on a value axis snapping onto the shared values, plus charts of accuracy, size, error and entropy against bits.

Neural networksModel compressionQuantizationk-meansHuffman codingWeight sharingMachine learning

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)