ClipFormer: Key-Value Clipping of Transformers on Memristive Crossbars for Write Noise Mitigation
Not on the map. Why?
Abstract (arXiv)
Transformers have revolutionized various real-world applications from natural language processing to computer vision. However, traditional von-Neumann computing paradigm faces memory and bandwidth limitations in accelerating transformers owing to their massive model sizes. To this end, In-memory Computing (IMC) crossbars based on Non-volatile Memories (NVMs), due to their ability to perform highly parallelized Matrix-Vector-Multiplications (MVMs) with high energy-efficiencies, have emerged as a promising solution for accelerating transformers. However, analog MVM operations in crossbars introduce non-idealities, such as stochastic read & write noise, which affect the inference accuracy of the deployed transformers. Specifically, we find pre-trained Vision Transformers (ViTs) to be vulnerable on crossbars due to the impact of write noise on the dynamically-generated Key (K) and Value (V) matrices in the attention layers, an effect not accounted for in prior studies. We, thus, propose ClipFormer, a transformation on the K and V matrices during inference, to boost the non-ideal accuracies of pre-trained ViT models. ClipFormer requires no additional hardware and training overhead and is amenable to transformers deployed on any memristive crossbar platform. Our experiments on Imagenet-1k dataset using pre-trained DeiT-S transformers, subjected to standard training and variation-aware-training, show >10-40% higher non-ideal accuracies at the high write noise regime by applying ClipFormer.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 19 of its 40 references that are in the map. First posted on arXiv 4 Feb 2024.
Builds on
19 of 40 references.
References · 19
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2021DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsificationcited by 849
- 2023Scaling Vision Transformers to 22 Billion Parameterscited by 690
- 2020A Survey on Visual Transformercited by 653
- 2017In-Datacenter Performance Analysis of a Tensor Processing Unitcited by 610
- 2020MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devicescited by 476
- 2021All Tokens Matter: Token Labeling for Training Better Vision Transformerscited by 144
- 2023Hardware-aware training for large-scale and diverse deep learning inference workloads using in-memory computing-based acceleratorscited by 42
7 more
- 2022LightViT: Towards Light-Weight Convolution-Free Vision Transformerscited by 40
- 2020DNN+NeuroSim V2.0: An End-to-End Benchmarking Framework for Compute-in-Memory Accelerators for On-chip Trainingcited by 32
- 2023X-Former: In-Memory Acceleration of Transformerscited by 25
- 2018RxNN: A Framework for Evaluating Deep Neural Networks on Resistive Crossbarscited by 17
- 2020TxSim:Modeling Training of Deep Neural Networks on Resistive Crossbar Systemscited by 7
- 2022Examining and Mitigating the Impact of Crossbar Non-idealities for Accurate Implementation of Sparse Deep Neural Networkscited by 5
- 2023Examining the Role and Limits of Batchnorm Optimization to Mitigate Diverse Hardware-noise in In-memory Computingcited by 5
Built on by
Citing papers per year: 2024: 3; 2025: 1.
4 papers.
- 2024A Survey: Collaborative Hardware and Software Design in the Era of Large Language Modelscited by 21
- 2024Analog In-Memory Computing Attention Mechanism for Fast and Energy-Efficient Large Language Modelscited by 11
- 2024When In-memory Computing Meets Spiking Neural Networks -- A Perspective on Device-Circuit-System-and-Algorithm Co-designcited by 1
- 2025A Provably Convergent Plug-and-Play Framework for Stochastic Bilevel Optimizationcited by 0
- 2025A Provably Convergent Plug-and-Play Framework for Stochastic Bilevel Optimization2 May 2025
- 2024A Survey: Collaborative Hardware and Software Design in the Era of Large Language Models8 Oct 2024
- 2024Analog In-Memory Computing Attention Mechanism for Fast and Energy-Efficient Large Language Models28 Sep 2024
- 2024When In-memory Computing Meets Spiking Neural Networks -- A Perspective on Device-Circuit-System-and-Algorithm Co-design22 Aug 2024