mlsanityData to 7 Oct 2026

ClipFormer: Key-Value Clipping of Transformers on Memristive Crossbars for Write Noise Mitigation

arXiv 2402.02586 ↗First posted 4 Feb 2024cs.LG cs.ETcited by 4

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  4. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  5. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  6. 2021DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsificationcited by 849
  7. 2023Scaling Vision Transformers to 22 Billion Parameterscited by 690
  8. 2020A Survey on Visual Transformercited by 653
  9. 2017In-Datacenter Performance Analysis of a Tensor Processing Unitcited by 610
  10. 2020MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devicescited by 476
  11. 2021All Tokens Matter: Token Labeling for Training Better Vision Transformerscited by 144
  12. 2023Hardware-aware training for large-scale and diverse deep learning inference workloads using in-memory computing-based acceleratorscited by 42
7 more
  1. 2022LightViT: Towards Light-Weight Convolution-Free Vision Transformerscited by 40
  2. 2020DNN+NeuroSim V2.0: An End-to-End Benchmarking Framework for Compute-in-Memory Accelerators for On-chip Trainingcited by 32
  3. 2023X-Former: In-Memory Acceleration of Transformerscited by 25
  4. 2018RxNN: A Framework for Evaluating Deep Neural Networks on Resistive Crossbarscited by 17
  5. 2020TxSim:Modeling Training of Deep Neural Networks on Resistive Crossbar Systemscited by 7
  6. 2022Examining and Mitigating the Impact of Crossbar Non-idealities for Accurate Implementation of Sparse Deep Neural Networkscited by 5
  7. 2023Examining the Role and Limits of Batchnorm Optimization to Mitigate Diverse Hardware-noise in In-memory Computingcited by 5

Built on by

Cited by year

Citing papers per year: 2024: 3; 2025: 1.

4 papers.