LENS: Replacing LayerNorm and Softmax in Transformers with Learnable Normalization States

Yuhao Liu, Salim Ullah, Akash Kumar
11/15/2026
cs.LGcs.AIcs.AR
transformer-attention

No confident code implementation found for this paper.

Abstract

LayerNorm and attention Softmax are critical operations in Transformers. However, they cannot be efficiently mapped to General Matrix Multiplication (GEMM) computations on hardware.

Show full abstract

Therefore, modern hardware accelerator designs, such as NPUs on ASIC/FPGA, consume a large amount of hardware resources or chip area to implement their specific arithmetic units. Building on previous work about LayerNorm, Softmax, and their alternatives, we introduce Learnable Normalization States (LENS), a framework that reformulates LayerNorm as tiny MLPs by abstracting a common structure from related methods and extends this method to Softmax, which moves more of the computation in Transformers to GEMM as a hardware-friendly architecture. We evaluate LENS on image classification with Vision Transformers (ViT) and autoregressive language modeling with Pythia models, including generalization tests on WikiText and LAMBADA. Across these tasks, LENS matches or exceeds baseline performance in several vision settings and retains most of the baseline performance in the remaining vision and language experiments. These findings may suggest that hand-designed normalization and attention functions are not the only choice as alternatives to LayerNorm and Softmax. LENS also provides a basis for exploring Transformer architectures for resource-limited accelerators.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{liu2026lens,
  title  = {LENS: Replacing LayerNorm and Softmax in Transformers with Learnable Normalization States},
  author = {Yuhao Liu and Salim Ullah and Akash Kumar},
  year   = {2026},
  eprint = {2611.20331},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.20331v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.20331.svg)](https://codeofpaper.com/paper/2611.20331)

Discussion