Deep Neural Networks (DNNs) are notoriously resource-hungry, making them difficult to deploy on edge devices like smartphones or IoT sensors. Binary Neural Networks (BNNs) offer a solution by compressing weights and activations to just 1-bit. This allows expensive multiplications to be replaced by lightning-fast bitwise operations (XNOR and BitCount), theoretically offering a 64× speedup and 32× memory saving.
However, traditional BNNs use a simple sign function that forces all values into a fixed set: $\{-1, +1\}$. Real-world data distributions in deep networks are incredibly diverse; forcing a bell-shaped weight distribution or a skewed activation distribution into a rigid $\{-1, +1\}$ box results in massive information loss and a significant drop in accuracy.
The AdaBin Approach
AdaBin introduces a flexible approach to BNNs by replacing fixed $\{-1, +1\}$ quantization with Adaptive Binary Sets. Instead of a static set, the authors redefine the binary set as $\{b_1, b_2\}$, where these values are adapted for each layer. These values are defined using two parameters: a center ($β$) and a half-distance ($α$), such that $b_1 = β - α$ and $b_2 = β + α$.
To find the optimal $α$ and $β$, AdaBin employs two distinct strategies:
- Weight Equalization: For static weights, the model minimizes the Kullback-Leibler (KL) Divergence to ensure the binary distribution matches the "shape" of the real-valued weights. The optimal center is derived as the mean of the weights, while the distance relates to the $\ell_2$-norm.
- Gradient-based Activation Binarization: Since activations change with every input, $α$ and $β$ are treated as learnable parameters updated via backpropagation during training.
- Maxout Non-linearity: To prevent the "representation collapse" often seen with PReLU in binary settings, a Maxout-based structure is introduced to provide stronger non-linear features.
Crucially, even with these flexible values, the core computation still utilizes efficient XNOR-BitCount operations, followed by a simple linear transformation to account for $α$ and $β$.
Experimental Results
AdaBin was evaluated on major benchmarks including CIFAR-10, ImageNet, and PASCAL VOC. The results demonstrate that simply shifting the binary center to align with the mean of the distribution significantly boosts representation power without sacrificing hardware efficiency.
Key Performance Metrics:
- ImageNet Accuracy: On ResNet-18, AdaBin achieved 66.4% Top-1 accuracy, a significant jump over previous SOTA methods like ReActNet (65.5%) and IR-Net (58.1%).
- Object Detection: On PASCAL VOC, it reached 69.4 mAP, outperforming the previous best binary detector (AutoBiDet) by 1.9 points.
- Efficiency: The method maintains a theoretical 60.85× acceleration and 31× memory saving compared to 32-bit floating-point models.
Conclusion
AdaBin proves that the rigid $\{-1, +1\}$ constraint is a major bottleneck for BNNs. By introducing layer-wise adaptive binary sets, the model prioritizes "information entropy" and distribution matching. While realizing these gains in production requires specialized software kernels to handle the linear shifts, AdaBin significantly closes the accuracy gap between 1-bit models and their full-precision counterparts while retaining massive computational efficiency.
Summary updated