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

Niharika Thakuria, Akul Malhotra, Sandeep K. Thirumala, Reena Elangovan, Anand Raghunathan, Sumeet K. Gupta

TL;DR

The paper introduces SiTe CiM, a novel computing-in-memory architecture designed specifically for signed ternary ($\{-1, 0, 1\}$) deep neural networks. By dynamically cross-coupling memory bitcells, the design enables efficient, in-situ dot-product computations for both signed inputs and weights across SRAM, eDRAM, and FEMFET technologies. The proposed flavors achieve up to a 7X throughput boost and a 2.5X reduction in energy compared to conventional near-memory architectures.

What Problem Does This Paper Address?

As Deep Neural Networks (DNNs) expand, deploying them on energy-constrained edge devices becomes a massive challenge due to the "memory wall"—the energy and time wasted constantly moving data between the processor and memory. Quantizing networks to ultra-low precisions, like ternary precision ($\{-1, 0, 1\}$), offers an excellent compromise between high accuracy and low power.

However, existing Computing-in-Memory (CiM) hardware struggles to handle signed ternary inputs and signed ternary weights simultaneously. Most current solutions either support only unsigned inputs (requiring extra cycles or duplicated arrays to handle negative signs) or suffer from massive area overheads. This paper tackles the challenge of creating a hardware primitive that natively computes signed ternary dot products efficiently and with minimal area penalties.

Methods

The authors propose SiTe CiM (Signed Ternary Computing-in-Memory), which uses differential encoding—storing a single ternary weight across two standard binary memory cells ($M_1$ and $M_2$). To compute the multiplication of signed inputs and weights natively inside the memory array, they introduce two distinct design flavors:

  1. SiTe CiM I (Optimized for Speed & Energy): This flavor adds two cross-coupling transistors directly to every ternary cell. Depending on the sign of the input, these transistors dynamically route or swap the read paths to the Read Bit Lines ($RBL_1$ and $RBL_2$). This allows negative products (e.g., $-1 \times 1$) to be computed instantly via voltage-based sensing, though it incurs an 18% to 34% area overhead.
  2. SiTe CiM II (Optimized for Area Efficiency): To mitigate the area penalty, this flavor shares four cross-coupling transistors across a "sub-column" of 16 cells. It utilizes current-based sensing to prevent errors from charge sharing, shrinking the area overhead to just 6% at the cost of slightly slower operations.

The authors evaluate both flavors across three prominent memory technologies: standard 8T-SRAM, asymmetric 3T-eDRAM, and non-volatile 3T-FEMFET (Ferroelectric Metal FET).

Figure 2: (a) Schematic of SiTe CiM I cell. Inset shows that the underlying cell/storage element can be 8T-SRAM, 3T-eDRAM or 3T-FEMFET cell, (b) symbol of a SiTe CiM I cell.

Datasets

To evaluate system-level performance, the proposed hardware macros were simulated using a suite of five standard DNN benchmarks spanning convolutional and recurrent architectures:

  • AlexNet
  • ResNet34
  • Inception
  • LSTM
  • GRU

No new datasets were introduced in this work.

Key Insights and Ideas

  • The Cross-Coupling "Aha!" Moment: Instead of performing mathematical negation using complex peripheral logic, SiTe CiM achieves negation physically inside the array. By turning on cross-coupled transistors, the hardware physically swaps which bitline discharges, effectively flipping the sign of the output value in a single step.
  • Sparsity as a Safeguard: Activating too many rows simultaneously in an analog CiM array degrades the "sense margin" (the ability to distinguish between different voltage/current levels) due to circuit non-linearities. However, the authors leverage the inherent sparsity of DNNs (the high frequency of zero weights/inputs) to safely activate up to 16 rows simultaneously while maintaining robust compute accuracy.
  • Granular Hardware Trade-offs: SiTe CiM II demonstrates that hardware designers can successfully trade off sensing efficiency (moving from voltage to current sensing) to achieve a massive 4X reduction in area overhead (from ~24% down to 6%).

Key Results

Array-Level Performance

Compared to traditional near-memory computing (NMC) baselines, the SiTe CiM arrays achieved:

  • Up to 88% lower latency during compute cycles.
  • Up to 78% energy savings for multiply-and-accumulate (MAC) operations.
  • Area Overhead: SiTe CiM I introduced an 18% (SRAM) to 34% (eDRAM/FEMFET) area penalty, while SiTe CiM II restricted the penalty to a uniform 6% across all technologies.

System-Level Performance

When integrated into a full ternary DNN accelerator architecture:

  • SiTe CiM I delivered an average speedup of 6.5X to 7.1X and an energy reduction of ~2.5X across the DNN benchmarks.
  • SiTe CiM II delivered a 4.7X to 5X latency reduction and an energy reduction of ~2.1X.
Figure 5: (a) Schematic of a column of SiTe CiM II cells, (b) weight, (c) input, (d) output encoding, (e) truth table for ternary scalar product computation, (f-g) examples of scalar multiplication in SiTe CiM II, (h) dot product computation in a column of SiTe CiM II cells.

Limitations and Future Work

  • Row Activation Limits: Due to diminishing analog sense margins, the architecture is limited to activating 16 rows simultaneously. Scaling beyond this requires higher-precision ADCs, which would compromise the system's strict energy budget.
  • Current-Sensing Overhead: SiTe CiM II is locked into current-based sensing to avoid charge-sharing bugs, making it less energy-efficient than the voltage-based SiTe CiM I.
  • Non-Separated Memory Paths: The current study focuses on memories with decoupled read and write paths. Extending SiTe CiM to shared-path architectures—like 1T1R resistive RAM (RRAM)—introduces severe write-path degradation challenges that require further transistor sizing optimizations.

Summary updated

BibTeX
@misc{thakuria2024site,
  author = {Niharika Thakuria and Akul Malhotra and Sandeep K. Thirumala and Reena 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