Hardware–Algorithm Co-design for Developing Secure Analog In-Memory Computing Architectures for Edge AI Compute


Student Name: S M Mojahidul Ahsan
Defense Date:
Location: LEEP2, Room 1415A
Chair: Tamzidul Hoque

Esam El-Araby

Sumaiya Shomaji

Hongyang Sun

Shiguang Deng

Abstract:

Edge artificial intelligence (AI) increasingly demands the deployment of large neural networks, ranging from vision transformers to large language models (LLMs), within stringent power, performance, area, and thermal constraints. Analog in-memory computing (AIMC) offers a promising solution by performing matrix operations directly within memory arrays, reducing data movement and improving energy efficiency. However, realizing these benefits requires accurate simulation and modeling of the hardware. Transistor-level SPICE simulations cannot scale to large models due to high computational and convergence costs. Additionally, data-dependent power consumption in AIMC readout circuits exposes models to power side-channel attacks in untrusted environments. These challenges motivate scalable, circuit-accurate co-design methodologies that jointly address performance, accuracy, and security.

 

To address these challenges, this research develops SPICE-accurate hardware–algorithm co-design frameworks for memory-centric computing. For ReRAM-based AIMC, reusable netlist methodologies and device-aware weight mapping enable up to 35× simulation speedup for MLPs with over 800,000 parameters, with less than 3.8% accuracy degradation. These methods are extended to Transformer inference through reusable subarray netlists, voltage pre-warp linearization, and workload-aware demapping, achieving 90.6–99.6% accuracy agreement with PyTorch and over 50× speedup over SPICE. A circuit-level DRAM analysis substrate further predicts cell retention with less than 1% error. Building on these foundations, we developed an agentic framework that enables SPICE-referenced co-design of heterogeneous chiplet architectures for edge LLM inference, achieving up to 1490× faster tile-level analysis while maintaining close agreement with SPICE. To address security, we developed a power trace generator which generates SPICE-calibrated AIMC power traces up to 180,000× faster than SPICE and enables evaluation of weight-recovery attacks. A programmable ReRAM AIMC macro incorporating complete programming and readout circuitry has been fabricated in TSMC 40 nm technology for silicon validation of these methods.

 

Building on these contributions, the remaining research will develop a secure, heterogeneous in-memory architecture for efficient edge LLM inference. While ReRAM is well suited for static matrix–vector operations, its write characteristics limit its suitability for dynamic attention computation and key–value (KV) cache management. This work investigates hafnium-zirconium oxide (HZO)-based ferroelectric capacitors (FeCAPs) in a 1T–1C configuration as an alternative for these operations, leveraging their potential for 100–10,000× faster writes and up to 50× lower write energy. The proposed architecture will distribute static computation and dynamic attention/KV-cache operations across ReRAM and FeCAP arrays, respectively. The two memory technologies will be integrated into separate backend layers of a 28 nm CXR process, targeting chip design and fabrication. The resulting silicon implementation will demonstrate how circuit-accurate modeling, hardware–algorithm co-design, and heterogeneous memory integration can advance the development of accurate, energy-efficient, and secure edge LLM accelerators.

 

Degree: PhD Comprehensive Defense (EE)
Degree Type: PhD Comprehensive Defense
Degree Field: Electrical Engineering