[Paper Review] From Hashing to CNNs: Training BinaryWeight Networks via Hashing
The paper reframes training binary weight CNNs as an inner-product preserving hashing problem and proposes BWNH, an alternating optimization method with a scaling factor, achieving state-of-the-art results on CIFAR-10/100 and ImageNet.
Deep convolutional neural networks (CNNs) have shown appealing performance on various computer vision tasks in recent years. This motivates people to deploy CNNs to realworld applications. However, most of state-of-art CNNs require large memory and computational resources, which hinders the deployment on mobile devices. Recent studies show that low-bit weight representation can reduce much storage and memory demand, and also can achieve efficient network inference. To achieve this goal, we propose a novel approach named BWNH to train Binary Weight Networks via Hashing. In this paper, we first reveal the strong connection between inner-product preserving hashing and binary weight networks, and show that training binary weight networks can be intrinsically regarded as a hashing problem. Based on this perspective, we propose an alternating optimization method to learn the hash codes instead of directly learning binary weights. Extensive experiments on CIFAR10, CIFAR100 and ImageNet demonstrate that our proposed BWNH outperforms current state-of-art by a large margin.
Motivation & Objective
- Motivate reduction of CNN parameter size and computation for deployment on mobile/embedded devices.
- Show a strong link between inner-product preserving hashing and binary weight networks.
- Develop a hashing-based optimization framework to learn binary weights with a scaling factor.
- Demonstrate superior performance over prior binary weight networks on standard benchmarks.
- Provide a practical training scheme including layer-wise optimization and fine-tuning.
Proposed method
- Formulate binary weight learning as an inner-product preserving hashing problem.
- Introduce a scaling factor to compensate quantization loss: g(W) = B A.
- Solve for B and A via alternating optimization per layer with closed-form updates.
- Use discrete cyclic coordinate descent (DCC) to update binary codes B.
- Adopt layer-wise optimization to mitigate accumulation of quantization errors across layers.
- Fine-tune the binarized network initialized with learned binary codes and scaling factors.
Experimental results
Research questions
- RQ1Can binary weight networks be effectively trained by recasting the problem as hashing?
- RQ2Does introducing a per-filter scaling factor improve accuracy of binary-weight CNNs?
- RQ3How well does a layer-wise hashing-based approach scale to large models and datasets (ImageNet) compared to prior binary-weight methods?
- RQ4What is the impact of the scaling factor on performance and network adaptability during fine-tuning?
Key findings
- BWNH outperforms state-of-the-art binary weight methods on CIFAR-10/100 and ImageNet.
- On ImageNet with ResNet-18, BWNH achieves 64.3% Top-1 and 85.9% Top-5 versus 60.8%/83.0% for BWN and 69.3%/89.2% for full-precision.
- BWNH yields 3.0 percentage points higher Top-1 accuracy than the best reported binary weight networks for ImageNet with ResNet-18.
- In CIFAR-10/100 with VGG-9, BWNH achieves 9.21% (CIFAR-10) and 34.35% (CIFAR-100) error, surpassing BinaryConnect, BWN, and SQ-BWN.
- The scaling factor is crucial; without it, accuracy collapses, while scaling can be absorbed into BatchNorm during inference.
- BWNH can provide useful initialization for other binary-weight training methods and benefits from a subsequent fine-tuning stage.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.