NS-ATTENTION: Newton-Schulz Transformations of Attention Outputs in Vision Transformers

Xiaohe Jiang, Guoqiang Zhang, Tianjin Huang, Ronghui Mu
9/23/2026
cs.LG

No confident code implementation found for this paper.

Abstract

Newton-Schulz (NS) iteration has recently been used in the Muon optimizer to transform update matrices during the training of large language models. Motivated by its spectral effect, we investigate applying NS directly to Transformer attention representations. We introduce Newton-Schulz Attention (NS-Attn.), a parameter-free transformation applied to the output of each attention head. Each head output is arranged as a feature-by-token matrix and normalized by its Frobenius norm. We then apply a finite NS polynomial step and restore the original norm. The objective is to reduce spectral concentration and increase effective rank before standard head merging and output projection. Across ViT and Swin on CIFAR-10 and CIFAR-100, NS-Attn. improves final-epoch accuracy in all 12 matched-seed comparisons, with mean gains of 0.25--0.83 percentage points. ViT ablations show higher mean accuracy with one iteration than with two. Spectral analysis further shows reduced leading-eigenvalue concentration and increased effective rank. These gains incur additional inference latency.

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{jiang2026nsattention,
  title  = {NS-ATTENTION: Newton-Schulz Transformations of Attention Outputs in Vision Transformers},
  author = {Xiaohe Jiang and Guoqiang Zhang and Tianjin Huang and Ronghui Mu},
  year   = {2026},
  eprint = {2609.27735},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.27735v1}
}

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/2609.27735.svg)](https://codeofpaper.com/paper/2609.27735)

Discussion