paper-with-me

Papers

Efficient Deployment of Transformer Models in Analog In-Memory Computing Hardware

2024-11-26 · Chen Li, Corey Lammie, Manuel Le Gallo, Bipin Rajendran

Analog in-memory computing (AIMC) has emerged as a promising solution to overcome the von Neumann bottleneck, accelerating neural network computations and improving computational efficiency. While AIMC has demonstrated success with architectures such as CNNs, MLPs, and RNNs, deploying transformer-based models using AIMC presents unique challenges. Transformers are expected to handle diverse downstream tasks and adapt to new user data or instructions after deployment, which requires more flexible approaches to suit AIMC constraints. In this paper, we propose a novel method for deploying pre-trained transformer models onto AIMC hardware. Unlike traditional approaches requiring hardware-aware training, our technique allows direct deployment without the need for retraining the original model. Instead, we utilize lightweight, low-rank adapters -- compact modules stored in digital cores -- to adapt the model to hardware constraints. We validate our approach on MobileBERT, demonstrating accuracy on par with, or even exceeding, a traditional hardware-aware training approach. Our method is particularly appealing in multi-task scenarios, as it enables a single analog model to be reused across multiple tasks. Moreover, it supports on-chip adaptation to new hardware constraints and tasks without updating analog weights, providing a flexible and versatile solution for real-world AI applications. Code is available.

📄 PDF Abstract BibTeX arXiv:2411.17367

Code (1)

chenlicodebank/lora_on_analog_hardware 공식 구현 pytorch

Tasks

Computational Efficiency

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Residual Connection 설명 없음
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Multi-Head Attention 설명 없음
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
MobileBERT MobileBERT is a type of inverted-bottleneck BERT that compresses and accelerates the popular BERT model. MobileBERT is a thin version…

Similar Papers 제목 키워드 기반

QS4D: Quantization-aware training for efficient hardware deployment of structured state-space sequential models

2025-07-08 · Sebastian Siegel, Ming-Jay Yang, Younes Bouhadjar, Maxime Fabre 외

Structured State Space models (SSM) have recently emerged as a new class of deep learning models, particularly well-suited for processing long sequences. Their constant memory footprint, in contrast to the linearly scali…

Computational EfficiencyEdge-computingQuantizationState Space Models

AnalogNAS: A Neural Network Design Framework for Accurate Inference with Analog In-Memory Computing

2023-05-17 · Hadjer Benmeziane, Corey Lammie, Irem Boybat, Malte Rasch 외

The advancement of Deep Learning (DL) is driven by efficient Deep Neural Network (DNN) design and new hardware accelerators. Current DNN design is primarily tailored for general-purpose use and deployment on commercially…

ARTEMIS: A Mixed Analog-Stochastic In-DRAM Accelerator for Transformer Neural Networks

2024-07-17 · Salma Afifi, Ishan Thakkar, Sudeep Pasricha

Transformers have emerged as a powerful tool for natural language processing (NLP) and computer vision. Through the attention mechanism, these models have exhibited remarkable performance gains when compared to conventio…

CPUGPU

Pruning random resistive memory for optimizing analogue AI

2023-11-13 · Yi Li, Songqi Wang, Yaping Zhao, Shaocong Wang 외

The rapid advancement of artificial intelligence (AI) has been marked by the large language models exhibiting human-like intelligence. However, these models also present unprecedented challenges to energy consumption and…

Audio ClassificationImage SegmentationSemantic Segmentation

Edge Training and Inference with Analog ReRAM Technology for Hand Gesture Recognition

2025-02-25 · Victoria Clerico, Anirvan Dutta, Donato Francesco Falcone, Wooseok Choi 외

Tactile hand gesture recognition is a crucial task for user control in the automotive sector, where Human-Machine Interactions (HMI) demand low latency and high energy efficiency. This study addresses the challenges of p…

Feature EngineeringGesture RecognitionHand Gesture RecognitionHand-Gesture Recognition