This paper introduces MF-Net, a novel compute-in-memory (CIM) architecture for deep neural networks (DNNs) that significantly boosts energy efficiency and reduces hardware complexity. By employing multiplication-free operators and an integrated SRAM-based analog-to-digital converter (ADC), MF-Net eliminates the need for bulky digital-to-analog converters (DACs) and achieves impressive performance metrics.
What Problem Does This Paper Address?
Deep neural networks (DNNs) are incredibly powerful for tasks like image recognition and natural language processing, but they are computationally intensive. Running DNNs on traditional processors involves massive data movement between memory and processing units, creating a significant bottleneck and consuming a lot of energy. Compute-in-memory (CIM) architectures aim to solve this by performing computations directly within the memory cells. However, existing CIM solutions for DNNs face several challenges:
High area and power overhead: They often require dedicated digital-to-analog converters (DACs) for each SRAM row/column and high-precision analog-to-digital converters (ADCs).
Limited support for multi-bit precision: Many approaches are restricted to binary weights and inputs, which can sacrifice accuracy.
Limited parallelism: Scaling the number of computations performed simultaneously is difficult.
This paper tackles these limitations by proposing a co-design approach that integrates a new type of DNN operator with the CIM architecture.
Methods
The core of MF-Net's innovation lies in two key areas:
Multiplication-Free Neural Network Operator: Instead of traditional multiply-accumulate operations, the authors propose a novel operator based on the L1 norm. This operator, represented as $w \cdot x = \sum \text{sign}(x_i) |\text{w}_i| + \text{sign}(\text{w}_i) |x_i|$, effectively replaces high-precision multiplications with simpler operations involving signs and absolute values. This significantly reduces the complexity of the computations performed within the SRAM cells. They further reformulate this to minimize dynamic energy.
SRAM-Immersed Successive Approximation ADC (SA-ADC): To address the need for ADCs, the authors propose an ingenious solution: they leverage the parasitic capacitance of the SRAM bit lines themselves to act as a capacitive DAC. This "SRAM-immersed" SA-ADC is integrated directly into the CIM macro, eliminating the need for external, area-consuming DACs. This approach also allows for lower ADC precision requirements, as the multiplication-free operator simplifies the output signal.
The architecture is built around "µArrays" and "µChannels." µArrays are the core CIM blocks where weights are stored and computations occur, while µChannels handle data input/output and can be used to stitch multiple µArrays together for increased parallelism.
Datasets
The paper evaluates the proposed MF-Net architecture on the following standard benchmark datasets:
MNIST: A dataset of handwritten digits.
CIFAR10: A dataset of 10 classes of everyday objects.
CIFAR100: A dataset of 100 classes of objects, making it more challenging.
The authors trained and tested neural network configurations on these datasets to demonstrate the accuracy and performance of their approach.
Key Insights and Ideas
Multiplication-free operators are a game-changer for CIM: By reformulating DNN operations, the authors show that it's possible to achieve high accuracy without the complex multiplications that plague traditional CIM designs. This directly leads to reduced hardware complexity and power consumption.
Leveraging parasitic capacitance is a clever hack: Using the inherent parasitic capacitance of SRAM bit lines as a DAC for the ADC is a brilliant way to integrate analog-to-digital conversion without adding significant area or power overhead. This is a key enabler for their compact CIM macro.
Co-design is crucial: The success of MF-Net hinges on the tight co-design of the neural network operator and the CIM hardware. This integrated approach allows them to overcome limitations that would be difficult to address in isolation.
Dynamic precision scaling offers flexibility: The architecture allows for runtime control over weight and ADC precision, enabling a trade-off between accuracy, energy, and latency. This is particularly useful for applications with varying resource constraints.
Synergistic integration with digital processing is the future: For very deep or complex networks, the authors suggest a hybrid approach where CIM handles computationally intensive, high-weight-reuse layers, while traditional digital processors handle other layers. This strategy maximizes the benefits of both worlds.
Key Results
High Energy Efficiency: The 8x62 SRAM macro achieves approximately 105 TOPS/W with 8-bit input/weight processing at 45nm CMOS. The 8x30 macro achieves 84 TOPS/W. This is significantly higher than many existing CIM solutions.
Competitive Accuracy: The proposed network configurations achieved high accuracy on benchmark datasets: 98.6% for MNIST, 90.2% for CIFAR10, and 66.9% for CIFAR100. These results are comparable to or better than many existing approaches, especially binarized networks.
Reduced Hardware Complexity: The elimination of external DACs and the integration of an SRAM-based ADC significantly reduce the area and power overhead of the CIM macro.
Improved Parallelism: The architecture supports higher vector-scale parallelism compared to previous methods.
Process Variability Tolerance: Macros requiring lower ADC precision are more tolerant of process variations.
Limitations and Future Work
Accuracy Trade-off: While competitive, the multiplication-free operator's accuracy is noted to be slightly lower than typical deep learning operators due to the non-differentiability of gradients.
System-Level Efficiency: The paper focuses on macro-level efficiency. Future work will consider system-level efficiency, accounting for routing and control flow overheads.
Hybrid Architectures: The authors propose a synergistic integration of CIM and digital processing for deeper networks, suggesting this as a promising future direction to balance performance and resource utilization.
Dynamic Precision Control: While demonstrated, further exploration of dynamic precision scaling for optimal trade-offs across various applications is suggested.
Summary updated
Abstract
We propose a co-design approach for compute-in-memory inference for deep neural networks (DNN). We use multiplication-free function approximators based on l1 norm along with a co-adapted processing array and compute flow. Using the approach, we overcame many deficiencies in the current art of in-SRAM DNN processing such as the need for digital-to-analog converters (DACs) at each operating SRAM row/column, the need for high precision analog-to-digital converters (ADCs), limited support for multi-bit precision weights, and limited vector-scale parallelism. Our co-adapted implementation seamlessly extends to multi-bit precision weights, it doesn't require DACs, and it easily extends to higher vector-scale parallelism. We also propose an SRAM-immersed successive approximation ADC (SA-ADC), where we exploit the parasitic capacitance of bit lines of SRAM array as a capacitive DAC. Since the dominant area overhead in SA-ADC comes due to its capacitive DAC, by exploiting the intrinsic parasitic of SRAM array, our approach allows low area implementation of within-SRAM SA-ADC. Our 8×62 SRAM macro, which requires a 5-bit ADC, achieves ~105 tera operations per second per Watt (TOPS/W) with 8-bit input/weight processing at 45 nm CMOS. Our 8×30 SRAM macro, which requires a 4-bit ADC, achieves ~84 TOPS/W. SRAM macros that require lower ADC precision are more tolerant of process variability, however, have lower TOPS/W as well. We evaluated the accuracy and performance of our proposed network for MNIST, CIFAR10, and CIFAR100 datasets. We chose a network configuration which adaptively mixes multiplication-free and regular operators. The network configurations utilize the multiplication-free operator for more than 85% operations from the total. The selected configurations are 98.6% accurate for MNIST, 90.2% for CIFAR10, and 66.9% for CIFAR100. Since most of the operations in the considered configurations are based on proposed SRAM macros, our compute-in-memory's efficiency benefits broadly translate to the system-level.
L4: We propose a co-design approach for compute-in-memory inference for deep neural networks (DNN). We use multiplication-free function approximators based on \ell_1 norm along with a co-adapted processing array and compute flow. Using the approach, we overcame many deficiencies in the current art of in-SRAM DNN processing such as the need for digital-to-analog converters (DACs) at each operating SRAM row/column, the need for high precision analog-to-digital converters (ADCs), limited support for multi-bit precision weights, and limited vector-scale parallelism. Our co-adapted implementation seamlessly extends to multi-bit precision weights, it doesn't require DACs, and it easily extends to higher vector-scale parallelism. We also propose an SRAM-immersed successive approximation ADC (SA-ADC), where we exploit the parasitic capacitance of bit lines of SRAM array as a capacitive DAC. Since the dominant area overhead in SA-ADC comes due to its capacitive DAC, by exploiting the intrinsic parasitic of SRAM array, our approach allows low area implementation of within-SRAM SA-ADC. Our 8×62 SRAM macro, which requires a 5-bit ADC, achieves \sim105 tera operations per second per Watt (TOPS/W) with 8-bit input/weight processing at 45 nm CMOS. Our 8×30 SRAM macro, which requires a 4-bit ADC, achieves \sim84 TOPS/W. SRAM macros that require lower ADC precision are more tolerant of process variability, however, have lower TOPS/W as well. We evaluated the accuracy and performance of our proposed network for MNIST, CIFAR10, and CIFAR100 datasets. We chose a network configuration which adaptively mixes multiplication-free and regular operators. The network configurations utilize the multiplication-free operator for more than 85% operations from the total. The selected configurations are 98.6% accurate for MNIST, 90.2% for CIFAR10, and 66.9% for CIFAR100. Since most of the operations in the considered configurations are based on proposed SRAM macros, our compute-in-memory's efficiency benefits broadly translate to the system-level.
L4: We propose a co-design approach for compute-in-memory inference for deep neural networks (DNN). We use multiplication-free function approximators based on \ell_1 norm along with a co-adapted processing array and compute flow. Using the approach, we overcame many deficiencies in the current art of in-SRAM DNN processing such as the need for digital-to-analog converters (DACs) at each operating SRAM row/column, the need for high precision analog-to-digital converters (ADCs), limited support for multi-bit precision weights, and limited vector-scale parallelism. Our co-adapted implementation seamlessly extends to multi-bit precision weights, it doesn't require DACs, and it easily extends to higher vector-scale parallelism. We also propose an SRAM-immersed successive approximation ADC (SA-ADC), where we exploit the parasitic capacitance of bit lines of SRAM array as a capacitive DAC. Since the dominant area overhead in SA-ADC comes due to its capacitive DAC, by exploiting the intrinsic parasitic of SRAM array, our approach allows low area implementation of within-SRAM SA-ADC. Our 8×62 SRAM macro, which requires a 5-bit ADC, achieves \sim105 tera operations per second per Watt (TOPS/W) with 8-bit input/weight processing at 45 nm CMOS. Our 8×30 SRAM macro, which requires a 4-bit ADC, achieves \sim84 TOPS/W. SRAM macros that require lower ADC precision are more tolerant of process variability, however, have lower TOPS/W as well. We evaluated the accuracy and performance of our proposed network for MNIST, CIFAR10, and CIFAR100 datasets. We chose a network configuration which adaptively mixes multiplication-free and regular operators. The network configurations utilize the multiplication-free operator for more than 85% operations from the total. The selected configurations are 98.6% accurate for MNIST, 90.2% for CIFAR10, and 66.9% for CIFAR100. Since most of the operations in the considered configurations are based on proposed SRAM macros, our compute-in-memory's efficiency benefits broadly translate to the system-level.
L4: We propose a co-design approach for compute-in-memory inference for deep neural networks (DNN). We use multiplication-free function approximators based on \ell_1 norm along with a co-adapted processing array and compute flow. Using the approach, we overcame many deficiencies in the current art of in-SRAM DNN processing such as the need for digital-to-analog converters (DACs) at each operating SRAM row/column, the need for high precision analog-to-digital converters (ADCs), limited support for multi-bit precision weights, and limited vector-scale parallelism. Our co-adapted implementation seamlessly extends to multi-bit precision weights, it doesn't require DACs, and it easily extends to higher vector-scale parallelism. We also propose an SRAM-immersed successive approximation ADC (SA-ADC), where we exploit the parasitic capacitance of bit lines of SRAM array as a capacitive DAC. Since the dominant area overhead in SA-ADC comes due to its capacitive DAC, by exploiting the intrinsic parasitic of SRAM array, our approach allows low area implementation of within-SRAM SA-ADC. Our 8×62 SRAM macro, which requires a 5-bit ADC, achieves \sim105 tera operations per second per Watt (TOPS/W) with 8-bit input/weight processing at 45 nm CMOS. Our 8×30 SRAM macro, which requires a 4-bit ADC, achieves \sim84 TOPS/W. SRAM macros that require lower ADC precision are more tolerant of process variability, however, have lower TOPS/W as well. We evaluated the accuracy and performance of our proposed network for MNIST, CIFAR10, and CIFAR100 datasets. We chose a network configuration which adaptively mixes multiplication-free and regular operators. The network configurations utilize the multiplication-free operator for more than 85% operations from the total. The selected configurations are 98.6% accurate for MNIST, 90.2% for CIFAR10, and 66.9% for CIFAR100. Since most of the operations in the considered configurations are based on proposed SRAM macros, our compute-in-memory's efficiency benefits broadly translate to the system-level.
@article{nasrin2021mf,
author = {Shamma Nasrin and Diaa Badawi and Ahmet Enis Çetin and Wilfred Gomes and Amit Ranjan Trivedi},
title = {{MF-Net: Compute-In-Memory SRAM for Multibit Precision Inference Using Memory-Immersed Data Conversion and Multiplication-Free Operators}},
journal = {IEEE Trans. Circuits Syst. I Regul. Pap.},
year = {2021},
url = {https://openreview.net/forum?id=MH5Xtj8d0Z},
}