Recent algebraic analysis shows that in decoder-only and encoder-only transformers, the Query projection may be set to identity without noticeable performance deterioration. This is possible because attention depends on only through the products , allowing basis transformations to be absorbed by adjacent layers and propagated through the network. We replace with a nonlinear residual of the form , where is a bottleneck MLP with parameters. The identity term anchors the nonlinearity to a known-good prior. Experiments on GPT-3 small style models show consistent improvement over the baseline ( lower validation log-loss, lower perplexity), comfortably outperforming a model with 12.5% more non-embedding parameters. These results motivate investigation at larger scales and across modalities.

生成讲解博客的中文版本

生成AI智能校验的中文版本