Edge PoolFormer: Modeling and Training of PoolFormer Network on RRAM Crossbar for Edge-AI Applications
- 15 October 2024
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Very Large Scale Integration (VLSI) Systems
- Vol. 33 (2) , 384-394
Abstract
PoolFormer is a subset of Transformer neural network with a key difference of replacing computationally demanding token mixer with pooling function. In this work, a memristor-based PoolFormer network modeling and training framework for edge-artificial intelligence (AI) applications is presented. The original PoolFormer structure is further optimized for hardware implementation on RRAM crossbar by replacing the normalization operation with scaling. In addition, the nonidealities of RRAM crossbar from device to array level as well as peripheral readout circuits are analyzed. By integrating these factors into one training framework, the overall neural network performance is evaluated holistically and the impact of nonidealities to the network performance can be effectively mitigated. Implemented in Python and PyTorch, a 16-block PoolFormer network is built with $64\times 64$ four-level RRAM crossbar array model extracted from measurement results. The total number of the proposed Edge PoolFormer network parameters is 0.246 M, which is at least one order smaller than the conventional CNN implementation. This network achieved inference accuracy of 88.07% for CIFAR-10 image classification tasks with accuracy degradation of 1.5% compared to the ideal software model with FP32 precision weights.Keywords
Funding Information
- Agency for Science, Technology and Research (A*STAR), Singapore, through the Nanosystems at the Edge Program (A18A1b0055)
- High Linearity Silicon Germanium Photonic Modulator for 6G Analog Radio over Fiber Project (M24M8b0004)
This publication has 41 references indexed in Scilit:
- ECG Classification using Binary CNN on RRAM Crossbar with Nonidealities-Aware Training, Readout Compensation and CWT Preprocessing2023
- A Ternary Weight Mapping and Charge-mode Readout Scheme for Energy Efficient FeRAM Crossbar Compute-in-Memory System2023
- Stand-Alone Inter-Frame Attention in Video Models2022
- MetaFormer is Actually What You Need for Vision2022
- TransPIM: A Memory-based Acceleration via Software-Hardware Co-Design for Transformer2022
- Efficient Training of the Memristive Deep Belief Net Immune to Non‐Idealities of the Synaptic DevicesAdvanced Intelligent Systems, 2022
- End-to-End Object Detection with Transformers2020
- An Energy-Efficient Quantized and Regularized Training Framework For Processing-In-Memory Accelerators2020
- Deep Residual Learning for Image Recognition2016
- The International Technology Roadmap for Semiconductors (ITRS): "Past, present and future"2002