Skip to main content
QUICK REVIEW

[Paper Review] Tree-based machine learning performed in-memory with memristive analog CAM

Giacomo Pedretti, Catherine E. Graves|arXiv (Cornell University)|Mar 16, 2021
Advanced Memory and Neural ComputingEngineering43 references107 citations
TL;DR

This paper proposes a novel in-memory computing accelerator for large-scale random forest inference using memristive analog content addressable memory (CAM). By mapping decision trees to arrays of analog CAMs coupled with analog RAM, the architecture enables high-speed, low-energy tree traversal through parallel multi-bit pattern matching, achieving 1000× higher throughput and 100× lower energy per decision compared to state-of-the-art accelerators for image classification tasks.

ABSTRACT

Tree-based machine learning techniques, such as Decision Trees and Random Forests, are top performers in several domains as they do well with limited training datasets and offer improved interpretability compared to Deep Neural Networks (DNN). However, while easier to train, they are difficult to optimize for fast inference without accuracy loss in von Neumann architectures due to non-uniform memory access patterns. Recently, we proposed a novel analog, or multi-bit, content addressable memory(CAM) for fast look-up table operations. Here, we propose a design utilizing this as a computational primitive for rapid tree-based inference. Large random forest models are mapped to arrays of analog CAMs coupled to traditional analog random access memory (RAM), and the unique features of the analog CAM enable compression and high performance. An optimized architecture is compared with previously proposed tree-based model accelerators, showing improvements in energy to decision by orders of magnitude for common image classification tasks. The results demonstrate the potential for non-volatile analog CAM hardware in accelerating large tree-based machine learning models.

Motivation & Objective

  • Address the performance and energy inefficiency of von Neumann architectures in accelerating large tree-based models like Random Forests due to non-uniform memory access patterns.
  • Overcome the scalability limitations of existing tree-based model accelerators, which suffer from super-linear runtime growth with decision tree depth.
  • Leverage the unique capabilities of non-volatile, multi-bit memristive analog CAM to enable high-throughput, low-energy in-memory inference for tree-based models.
  • Design an optimized hardware-software co-design framework that maps large Random Forest models efficiently onto analog CAM and analog RAM arrays.
  • Demonstrate significant improvements in energy efficiency and throughput for real-world image classification workloads compared to existing accelerators.

Proposed method

  • Map large Random Forest models to arrays of analog CAMs, where each decision tree node is represented as a range-matching operation using multi-bit conductance states stored in memristors.
  • Utilize a 1T1R resistive RAM (RRAM) architecture for the analog CAM, where lower and upper conductance thresholds (M1 and M2) define a valid range for pattern matching.
  • Implement a compact behavioral model of the analog CAM circuit based on post-layout simulations, capturing subthreshold, intermediate, and ohmic conduction regimes for accurate prediction of match line discharge current.
  • Integrate the analog CAM arrays with traditional analog random access memory (RAM) for majority voting, enabling final class prediction through parallel voting across all trees.
  • Optimize the digital-to-analog converter (DAC) and data line (DL) routing to minimize power consumption and propagation delay, using Elmore delay modeling with parasitic resistance and capacitance.
  • Apply model compression techniques during training to reduce memory footprint while preserving accuracy, enabling deployment of large models on the in-memory architecture.

Experimental results

Research questions

  • RQ1Can memristive analog CAMs enable efficient, high-throughput in-memory inference for large-scale Random Forest models?
  • RQ2How does the performance of the proposed analog CAM-based accelerator compare to existing von Neumann and accelerator-based solutions in terms of energy efficiency and throughput for image classification tasks?
  • RQ3To what extent can model compression and hardware-aware training preserve accuracy while enabling deployment on analog CAM arrays?
  • RQ4What are the key architectural trade-offs in designing an analog CAM array for tree traversal, particularly regarding power, area, and delay?
  • RQ5Can the analog CAM's multi-bit pattern matching capability effectively represent decision tree logic with minimal accuracy loss?

Key findings

  • The proposed analog CAM-based accelerator achieves a 1000× improvement in throughput over state-of-the-art accelerators for image classification tasks.
  • The energy per decision is reduced by a factor of 100 compared to existing accelerators, demonstrating orders-of-magnitude improvement in energy efficiency.
  • The analog CAM architecture enables parallel, in-memory evaluation of decision tree nodes through multi-bit range matching, eliminating the need for sequential memory access.
  • Post-layout simulations confirm the accuracy of the compact behavioral model, with experimental data closely matching the model predictions across 16 conductance levels.
  • The system maintains high accuracy (≥0.94) even after accounting for non-idealities such as device variability and stuck-at faults, with only 128 out of 256 devices per cell used due to reliability issues.
  • The integration of analog CAM with analog RAM for majority voting enables scalable, low-latency inference, with the overall architecture showing strong potential for deployment in real-time, energy-constrained applications.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.