Abstract
Deep Neural Networks (DNNs) are computationally intensive, hindering deployment on resource-constrained edge devices. We present Fixed-Point Factorized Networks (FFN), a framework that utilizes Semidiscrete Decomposition (SDD) to factorize weight matrices into ternary values ({-1, 0, 1}). This approach replaces expensive floating-point multiplications with simple additions and subtractions. By employing a pseudo full-precision weight recovery method and a novel weight balancing technique, FFNs achieve up to a 1000x reduction in multiply operations with minimal accuracy degradation across standard architectures like AlexNet, VGG-16, and ResNet-50.
Introduction
Deep Neural Networks (DNNs) have revolutionized computer vision but remain notoriously "heavy." A classic model like AlexNet requires over 60 million parameters and hundreds of millions of multiply-accumulate (MAC) operations for a single forward pass. This computational burden makes deploying state-of-the-art models on resource-constrained devices—such as smartphones, IoT sensors, or wearable tech—incredibly difficult.
Existing efficiency solutions typically fall into two categories: low-rank factorization and quantization. Low-rank factorization decomposes matrices into smaller, full-precision ones, saving space but retaining expensive floating-point math. Quantization forces weights into low-bit representations (e.g., binary or ternary), but training these from scratch is challenging, and converting pre-trained models often leads to significant accuracy loss. FFNs bridge this gap by factorizing pre-trained models into a hardware-friendly fixed-point format.
Methodology
The core of the FFN approach is Semidiscrete Decomposition (SDD). Unlike standard Singular Value Decomposition (SVD), SDD decomposes a weight matrix $W$ into $XDY^T$, where $X$ and $Y$ are matrices containing only ternary values ($\{-1, 0, 1\}$) and $D$ is a diagonal scaling matrix.
Fine-Tuning and Optimization
Factorization alone is insufficient; the model requires fine-tuning to recover accuracy. The authors introduce two critical techniques to stabilize this process:
- Full-precision Weight Recovery: To accumulate small gradient updates during fine-tuning, the authors maintain a "pseudo" full-precision version of the weights as a reference. This high-precision version is quantized back to the fixed-point format for inference.
- Weight Balancing: Factorization can lead to "gradient imbalance," where layers exhibit vastly different gradient scales, making training unstable. A normalization technique, inspired by Xavier initialization, balances the scales of $X, Y,$ and $D$ to stabilize the gradient flow during backpropagation.
Key Insights and Results
A primary advantage of FFNs is the replacement of expensive multiplications with simple sign-flips or zeroing-out operations, which are significantly more efficient in hardware like FPGAs or ASICs. Furthermore, FFNs offer flexibility through the decomposition rank ($k$). Users can select a larger $k$ for sensitive layers to preserve accuracy and a smaller $k$ for redundant layers to maximize compression.
The authors evaluated FFNs on the ImageNet (ILSVRC-12) dataset using AlexNet, VGG-16, and ResNet-50 architectures. Key results include:
- AlexNet: Reduced multiply operations from 725M to 0.66M (~1100x reduction) with only a 1.2% drop in Top-5 accuracy.
- VGG-16: Outperformed the original model by 0.2% in Top-5 accuracy after fine-tuning, while achieving a 1000x reduction in multiplications.
- ResNet-50: Maintained 90.9% Top-5 accuracy (from 92.2%) with significant compression.
- Storage: Achieved a 15x to 20x reduction in the weight storage footprint compared to 32-bit floating-point models.
Conclusion
Fixed-Point Factorized Networks provide a robust framework for compressing DNNs without the typical "accuracy cliff" associated with low-bit quantization. By leveraging ternary factorization and specialized fine-tuning techniques, FFNs enable massive reductions in computational complexity and storage. Future work may explore the synergy between FFNs and other compression methods like pruning or knowledge distillation, as well as native hardware support for ternary arithmetic.
Summary updated