Skip to main content
eScholarship
Open Access Publications from the University of California

UC Irvine

UC Irvine Electronic Theses and Dissertations bannerUC Irvine

In-Memory Computing to Accelerate Machine Learning

Abstract

The growing demand for deploying machine learning workloads in both cloud and edge environments has intensified the need for energy-efficient and scalable hardware solutions. Traditional von Neumann architectures suffer from the memory wall problem due to their separation of memory and compute, making them increasingly inadequate for emerging applications such as Convolutional Neural Networks (CNNs), Reinforcement Learning (RL), and Large Language Models (LLMs). In response, this dissertation explores Associative Processors (APs), in-memory computing architectures, as a unified platform for accelerating diverse quantized machine learning inference tasks. The first contribution is HDRLPIM, an AP-based simulator that accelerates Q-value computation in Hyper Dimensional Computing-based Reinforcement Learning (HDC-based RL), achieving up to 152.3x energy and 6.4x time savings, and up to 968.2x Energy-Delay Product (EDP) improvement compared to an FPGA implementation. The second contribution is presenting a comprehensive survey on mixed-precision neural network frameworks, identifying their optimization techniques, quantization granularity, limitations, and proposing future research directions to guide hardware-aware inference. The third contribution is BF-IMNA, a bit-fluid (i.e. supports mixed-precision) AP-based architecture for accelerating CNN inference, that supports both static and dynamic mixed-precision configurations without hardware reconfiguration. BF-IMNA enables end-to-end inference for AlexNet, VGG16, and ResNet50 on ImageNet, demonstrating a trade-off between accuracy and energy efficiency across precision configurations. BF-IMNA achieves 20% higher energy efficiency than PipeLayer and 2% higher throughput than ISAAC using fixed-precision configurations. The fourth contribution is accelerating LLMs by accelerating a major bottleneck: the Softmaxkernel. Specifically, we propose SoftmAP, a low-precision integer-only implementation of the Softmax operator mapped to APs, achieving up to three orders of magnitude improvement in the EDP compared to A100 and RTX3090 GPUs, making LLMs more deployable without compromising performance. Together, these contributions establish IMC in general and APs specifically as a viable and scalable solution that enables energy-efficient, bit-fluid inference across a spectrum of machine learning workloads, contributing to the next generation of sustainable, high-performance computing architectures.