Reproduce “LENS: Replacing LayerNorm and Softmax in Transformers with Learnable Normalization States” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Yuhao Liu, Salim Ullah, Akash Kumar

LENS replaces LayerNorm and attention Softmax in Transformers with small learned networks that generate token-level or score-level control values. This design aims to shift computation toward matrix-multiplication hardware. On CIFAR-10, retraining all weights for 50 epochs reached 81.00% Top-1 accuracy, versus 80.33% for the baseline after 400 epochs. This shows recovery in that setup, not measured hardware savings.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.