32 x memory saving and 58 x faster convolution operation. Only 2.9% performance loss (Top-1) with Binary-Weight version for AlexNet compared to the full precision version. Input and Weight binarization, XNOR-Net, scales the gap to 12.5%.
When the weights are binary convolution operation can be approximated by only summation and subtraction. Binary-Wight networks can fit into mobile devices with 2x speed-up on the operations.
To take the idea further, XNER-Net uses both binary weights and inputs. When both of them binary this allows convolution with XNOR and bitcount operation. This enable both CPU time inference and training of even state of art models.
Here they give a good summary of compressing models into smaller sizes.
- Shallow networks — estimate deep models with shallower architectures with different methods like information distilling.
- Compressing networks — compression of larger networks.
- Weight Decay 
- Optimal Brain Damage 
- Optimal Brain Surgeon 
- Deep Compression 
- Design compact layers — From the beginning keep the network minimal
- Decomposing 3×3 layers to 2 1×1 layers 
- Replace 3×3 layers with 1×1 layers achieving 50% less parameters.
- Quantization of parameters — High precision is not so important for good results in deep networks 
- 8-bit values instead of 32-bit float weight values 
- Ternary weights and 3-bits activation 
- Quantization of layers with L2 loss 
- Network binarization —
- Expectation Backpropagation 
- Binary Connect 
- BinaryNet 
- Retaining of a pre-trained model 
Binary-Weight-Net is defined as a approximateion of real-valued layers as
is scaling factor and
. Since values are binary we can perform convolution operation with only summation and subtraction.
With the details given in the paper:
Training of Binary-Weights-Net includes 3 main steps; forward pass, backward pass, parameters update. In both forward and backward stages weights are binarized but for updates real value weights are used to keep the small changes effective enough.
At this stage, the idea is extended and input values are also binarized to reduce the convolution operation cost by using only binary operation XNOR and bitcount. Basically, input values are binarized as the precious way they use for weight values. Sign operation is used for binary mapping of values and scale values are estimated by l1 norm of input values.
is the scale vector and
is binary mapping of the feature mapping after convolution.
I am lazy to go into much more details. For more and implementation details have a look at the paper.
For such works, this is always pain to replicate the results. I hope they will release some code work for being a basis. Other then this, using such tricks to compress gargantuan deep models into more moderate sizes is very useful for small groups who has no GPU back-end like big companies or deploy such models into small computing devices. Given such boost on computing time and small memory footprint, it is tempting to train such models as a big ensemble and compare against single full precision model.