FeReX: A Reconfigurable Design of Multi-bit Ferroelectric Compute-in-Memory for Nearest Neighbor Search

Zhicheng Xu, Che-Kai Liu, Chao Li, Ruibin Mao, Jianyi Yang, Thomas Kämpfe, Mohsen Imani, Can Li, Cheng Zhuo, Xunzhao Yin · DOI

Abstract

FeReX is a novel compute-in-memory (CIM) architecture that utilizes multi-bit ferroelectric transistors to create a reconfigurable associative memory. Unlike previous hardware accelerators fixed to a single distance metric, FeReX can be dynamically programmed to perform Hamming, Manhattan, or Euclidean distance searches. Through a hardware-software co-design, FeReX achieves up to 250× speedup and $10^4$ energy savings over traditional GPUs while maintaining high accuracy across various machine learning benchmarks.

Introduction

Modern AI models are increasingly data-intensive, leading to a significant "data-transfer bottleneck" in traditional von Neumann architectures. Compute-in-Memory (CIM) addresses this by performing calculations directly within the memory array, minimizing energy-expensive data movement. However, existing CIM accelerators for Nearest Neighbor Search (NNS)—a core component of tasks like voice recognition and image classification—are typically "hard-wired" for specific distance metrics. FeReX overcomes this limitation by introducing a programmable hardware-software co-design that makes the distance function reconfigurable.

Hardware Architecture

The core of the FeReX design is the 1FeFET1R memory cell, which combines a multi-bit Ferroelectric Field-Effect Transistor (FeFET) with a resistor. FeFETs are uniquely suited for this task because their threshold voltage ($V_{th}$) can be tuned to multiple levels, allowing them to store multi-bit information rather than simple binary states.

The 1FeFET1R cell structure and its multi-bit threshold voltage characteristics.

The architecture organizes these cells into a crossbar array. By carefully selecting input voltages, the physical current flowing through each row directly represents the distance between a query vector and the stored data. A Loser-Take-All (LTA) circuit then identifies the row with the lowest current, corresponding to the "nearest" match.

The FeReX CIM array architecture, including the LTA and interface circuits.

Software-Driven Reconfigurability

To enable dynamic reconfiguration, the authors formulated the mapping of distance metrics to hardware parameters as a Constraint Satisfaction Problem (CSP). An automated algorithm determines the optimal gate-source ($V_{gs}$), drain-source ($V_{ds}$), and threshold ($V_{th}$) voltages required to emulate specific mathematical functions, such as $L_1$ or $L_2$ norms. This approach allows the same physical silicon to be repurposed for different AI tasks without hardware modification.

Evaluation and Results

The performance of FeReX was evaluated using standard machine learning benchmarks, including ISOLET (voice recognition), UCIHAR (physical activity monitoring), and MNIST (handwritten digits). The system was tested on k-Nearest Neighbor (KNN) and Hyperdimensional Computing (HDC) tasks.

Key results include:

  • Efficiency: FeReX demonstrated a 250× speedup and $10^4$ energy savings compared to an Nvidia RTX 3090 GPU.
  • Accuracy: On the MNIST dataset, FeReX achieved 90% accuracy, representing a negligible 0.6% drop compared to software-only implementations.
  • Robustness: The 1FeFET1R structure proved resilient to device-to-device variations, maintaining high performance even with non-uniform hardware.

Conclusion and Future Work

FeReX represents a significant step toward versatile and efficient CIM accelerators. By combining multi-bit FeFET technology with a CSP-based mapping algorithm, it provides a programmable platform for high-speed similarity search. Future research will focus on full-scale physical chip implementation and extending the architecture to support more complex primitives, such as those used in transformer-based models.

Summary updated

BibTeX
@inproceedings{xu2024ferex,
  author = {Zhicheng Xu and Che-Kai Liu and Chao Li and Ruibin Mao and Jianyi Yang and Thomas Kämpfe and Mohsen Imani and Can Li and Cheng Zhuo and Xunzhao Yin},
  title = {{FeReX: A Reconfigurable Design of Multi-bit Ferroelectric Compute-in-Memory for Nearest Neighbor Search}},
  booktitle = {DATE},
  year = {2024},
  doi = {10.23919/date58400.2024.10546615},
}
Figure