SiTe CiM: Signed Ternary Computing-in-Memory for Ultra-Low Precision Deep Neural Networks

Niharika Thakuria, Akul Malhotra, Sandeep Krishna Thirumala, R. Elangovan, Anand Raghunathan, Sumeet K. Gupta · DOI

Introduction

Deep Neural Networks (DNNs) are increasingly deployed on edge devices with stringent power constraints. Quantization to ternary precision ({-1, 0, 1}) offers a significant reduction in computational complexity and memory footprint while maintaining competitive accuracy. However, traditional architectures suffer from the von Neumann bottleneck, where data movement between memory and processing units dominates energy consumption. Computing-in-Memory (CiM) addresses this by performing operations directly within the memory array. While binary CiM is well-explored, signed ternary CiM remains challenging due to the complexity of representing three states and performing signed multiplication efficiently.

Proposed Architecture: SiTe CiM

We propose SiTe CiM (Signed Ternary Computing-in-Memory), a novel architecture that enables dot-product operations between signed ternary inputs and weights. The design utilizes differential encoding, where each ternary value is represented by two binary bit cells ($M_1, M_2$).

Cross-Coupling Mechanism

The core innovation of SiTe CiM is the cross-coupling of bit cells to implement signed multiplication in the analog domain. By using additional access transistors, the polarity of the read current or voltage on the bitlines can be controlled based on the input value.

Cross-coupling mechanism in SiTe CiM I

In SiTe CiM I, two extra transistors per ternary cell enable fast, voltage-based sensing. This design supports various memory technologies, including 8T-SRAM, 3T-embedded DRAM (3T-eDRAM), and 3T-ferroelectric metal FET (FEMFET).

Design Flavors: Performance vs. Area

To balance performance and area, we propose two variants:

  1. SiTe CiM I: Optimized for high speed, adding two transistors per cell. This results in an area overhead of 18-34% compared to standard ternary memories.
  2. SiTe CiM II: Optimized for area efficiency by sharing four cross-coupling transistors across a sub-column of 16 cells. This reduces the area overhead to approximately 6% while utilizing current-based sensing.
Architecture of SiTe CiM II with shared read access transistors

Experimental Results

The SiTe CiM designs were evaluated across multiple memory technologies and benchmarked against near-memory computing (NMC) baselines using standard DNN models like ResNet34 and LSTM.

  • Array-Level Performance: SiTe CiM achieves up to 88% lower latency and 78% energy savings compared to NMC counterparts.
  • System-Level Impact: When integrated into a ternary DNN accelerator, SiTe CiM provides up to a 7x throughput boost and a 2.5x reduction in total energy consumption.
  • Technology Versatility: The architecture is compatible with non-volatile FEMFETs, enabling zero-leakage standby modes suitable for intermittent edge computing.

Conclusion

SiTe CiM provides an efficient hardware substrate for signed ternary DNNs by leveraging the physical properties of memory bitlines. By offering two design flavors, it allows for flexible trade-offs between computational throughput and silicon area, significantly outperforming traditional near-memory architectures in both energy and speed.

Summary updated

BibTeX
@misc{thakuria2024site,
  author = {Niharika Thakuria and Akul Malhotra and Sandeep Krishna Thirumala and R. Elangovan and Anand Raghunathan and Sumeet K. Gupta},
  title = {{SiTe CiM: Signed Ternary Computing-in-Memory for Ultra-Low Precision Deep Neural Networks}},
  year = {2024},
  eprint = {2408.13617},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.13617},
}
Figure