Abstract
We propose Deterministic Binary Filters, an approach to Convolutional Neural Networks that learns weighting coefficients of predefined orthogonal binary basis instead of the conventional approach of learning directly the convolutional filters. This approach results in model architectures with significantly fewer parameters (4x to 16x) and smaller model sizes (32x due to the use of binary rather than floating point precision). We show our deterministic filter design can be integrated into well-known network architectures (such as ResNet and SqueezeNet) with as little as 2% loss of accuracy (under datasets like CIFAR-10). Under ImageNet, they result in 3x model size reduction compared to sub-megabyte binary networks while reaching comparable accuracy levels.
Introduction
State-of-the-art Convolutional Neural Networks (CNNs) like ResNet achieve remarkable accuracy but are often too computationally expensive and memory-intensive for resource-constrained edge devices, such as smartwatches or embedded sensors. Existing solutions typically involve post-training compression (pruning and quantization) or designing lightweight architectures like SqueezeNet. However, purely binary networks often suffer from reduced representational power, failing to capture the intricate details necessary for complex datasets like ImageNet.
This paper introduces Deterministic Binary Filters (DBF), a novel approach that bridges the gap between the efficiency of binary structures and the expressiveness of floating-point networks. Instead of learning filter weights directly, DBF learns how to optimally combine a set of fixed, orthogonal binary bases.
Methodology: Learning with Orthogonal Bases
The core innovation of DBF lies in redefining the convolutional filter. Rather than treating a filter as a grid of $N$ tunable floating-point parameters, it is modeled as a linear combination of predefined binary vectors.
The Basis Set and OVSF Codes
The authors utilize Orthogonal Variable Spreading Factor (OVSF) codes, originally developed for 3G wireless communications. These codes are binary (values $\in \{-1, +1\}$) and strictly orthogonal. By using a complete orthogonal basis, the network can theoretically represent any filter. In practice, efficiency is gained by using a subset of these bases.
Learning and Efficiency
During training, the binary bases remain fixed. The network only learns a set of scalar weighting coefficients ($\alpha$). The final filter is generated by summing the weighted bases. This approach introduces a hyperparameter, $\rho$, representing the percentage of available bases used. Adjusting $\rho$ allows for a direct trade-off between model size and accuracy. For non-power-of-two filter sizes (e.g., 3x3), the authors employ "square-pseudo OVSF" (sp-OVSF), which involves clipping the codes to the desired dimensions.
Experimental Results
The DBF approach was evaluated on MNIST, CIFAR-10, and ImageNet using standard architectures like ResNet-18, ResNet-34, and SqueezeNet.
Parameter and Size Reduction
DBF achieved a 4x to 16x reduction in trainable parameters. For instance, a ResNet-18 model on CIFAR-10 was reduced from 1.37 MB to just 0.48 MB (using $\rho = 0.35$) while maintaining over 89% accuracy. On ImageNet, the proposed "DBFNet" was 3x smaller than comparable binary networks like BinaryConnect, occupying only 2.2 MB.
Accuracy Maintenance
As shown in the comparative results, integrating DBF or sp-OVSF into established architectures results in minimal accuracy degradation, often within 1-2% of the full-precision baseline. In some cases, such as SqueezeNet with DBF, accuracy even slightly improved.
Conclusion
Deterministic Binary Filters offer a compelling path toward deploying high-performance vision models on the edge. By leveraging the linearity of convolution and the efficiency of orthogonal binary bases, DBF significantly reduces model footprint without the drastic accuracy loss typical of standard binary networks. Future work may explore hardware-specific optimizations, such as XOR-based implementations on FPGAs, and the introduction of sparsity in the learned coefficients to further enhance computational efficiency.
Summary updated