Abstract
The rapid advancement of artificial intelligence has raised concerns regarding its trustworthiness, especially in terms of interpretability and robustness. Tree-based models like Random Forest and XGBoost excel in interpretability and accuracy for tabular data, but scaling them remains computationally expensive due to poor data locality and high data dependence. Previous efforts to accelerate these models with analog content addressable memory (CAM) have struggled, due to the fact that the difficult-to-implement sharp decision boundaries are highly susceptible to device variations, which leads to poor hardware performance and vulnerability to adversarial attacks. This work presents a novel hardware-software co-design approach using MoS₂ Flash-based analog CAM with inherent soft boundaries, enabling efficient inference with soft tree-based models. Our soft tree model inference experiments on MoS₂ analog CAM arrays show this method achieves exceptional robustness against device variation and adversarial attacks while achieving state-of-the-art accuracy. Specifically, our fabricated analog CAM arrays achieve 97% accuracy on the Iris dataset, while our experimentally calibrated model shows only a 0.6% accuracy drop on the MNIST dataset under 10% device threshold variation, compared to a 45.3% drop for traditional decision trees. This work paves the way for specialized hardware that enhances AI’s trustworthiness and efficiency.
Introduction
In critical sectors like healthcare, finance, and legal systems, the interpretability of AI models is as important as their accuracy. Tree-based models, such as Random Forests and XGBoost, are the gold standard for these applications because their decision-making process is transparent. However, these models are notoriously difficult to accelerate on standard CPUs and GPUs because of "poor data locality"—the hardware spends more time moving data through memory than performing actual calculations.
Researchers have looked to Analog Content Addressable Memory (CAM) as a potential solution. Analog CAM can compare input data to stored values in parallel, offering massive speedups. However, traditional decision trees rely on "hard" boundaries (binary yes/no decisions). Implementing these sharp transitions in physical analog hardware is extremely difficult; device noise and manufacturing variations often "soften" these boundaries, leading to catastrophic failures in accuracy and making the systems vulnerable to adversarial attacks.
Embracing "Softness": A Hardware-Software Co-design
Rather than fighting the inherent variability of analog devices, this research proposes a "hardware-software co-design" that embraces it. The team utilized the natural, sigmoid-like (S-shaped) transition of MoS₂ (Molybdenum Disulfide) Flash transistors to implement Soft Decision Trees (SDTs).
In an SDT, an input does not follow a single binary path. Instead, it is assigned a probability of following every possible path. This probabilistic approach is naturally suited to the gradual switching behavior of MoS₂ transistors. By mapping the discharging physics of a CAM array to the gating functions of an SDT, the researchers turned a traditional hardware weakness into a robust feature.
Parallel Probabilistic Inference
The architecture uses an 8x8 array of 2D MoS₂ Flash-based analog CAM cells. In this setup, each row of the CAM array represents a path in the decision tree. As an input is processed, the array calculates the product of probabilities along each path simultaneously using Kirchhoff’s laws. This results in a match voltage that represents the likelihood of that path being the correct one.
This approach achieves O(1) time complexity, meaning the entire tree (or even an entire forest) can be evaluated in a single step, regardless of its depth. This is a massive improvement over digital hardware, where processing time scales with the complexity of the tree.
Key Results and Robustness
The performance of the MoS₂-based SDT was evaluated across several benchmarks, demonstrating significant advantages in both efficiency and reliability:
- Exceptional Accuracy: The fabricated MoS₂ array achieved 97% accuracy on the Iris dataset.
- Inherent Robustness: The "softness" of the boundaries acts as a built-in noise filter. When subjected to a 10% device threshold variation, the SDT model on MNIST showed only a 0.6% accuracy drop, while a traditional "hard" decision tree plummeted by 45.3%.
- Adversarial Resilience: The smooth decision surfaces make it much harder for adversarial perturbations to trick the model. Against root-node attacks, the SDT maintained its performance with only a 1.7% drop, compared to a 14.4% drop for traditional trees.
- Efficiency Gains: Simulations indicate that this CAM-implemented SDT is 1,000x to 10,000x faster than current GPU/CPU solutions and improves energy efficiency by five to six orders of magnitude.
Conclusion
By aligning the physics of 2D materials with the probabilistic nature of soft decision trees, this work demonstrates a path toward AI hardware that is both high-performance and inherently trustworthy. While challenges remain in scaling 2D material manufacturing and optimizing peripheral circuitry, this MoS₂ Flash-based analog CAM architecture provides a blueprint for the next generation of interpretable, robust, and energy-efficient machine learning accelerators.
Summary updated