paper-with-me

Papers

Transformer Normalisation Layers and the Independence of Semantic Subspaces

2024-06-25 · Stephen Menary, Samuel Kaski, Andre Freitas

Recent works have shown that transformers can solve contextual reasoning tasks by internally executing computational graphs called circuits. Circuits often use attention to logically match information from subspaces of the representation, e.g. using position-in-sequence to identify the previous token. In this work, we consider a semantic subspace to be any independent subspace of the latent representation that can fully determine an attention distribution. We show that Pre-Norm, the placement of normalisation layer used by state-of-the-art transformers, violates this ability unless the model learns a strict representation structure of orthogonal spheres. This is because it causes linear subspaces to interfere through their common normalisation factor. Theoretically, we analyse circuit stability by modelling this interference as random noise on the $L_2$-norms of the query/key/value vectors, predicting a phenomenon of circuit collapse when sparse-attention shifts to a different token. Empirically, we investigate the sensitivity of real-world models trained for mathematical addition, observing a 1% rate of circuit collapse when the norms are artificially perturbed by $\lesssim$10%. We contrast Pre-Norm with QKV-Norm, which places normalisation after the attention head's linear operators. Theoretically this relaxes the representational constraints. Empirically we observe comparable in-distribution but worse out-of-distribution performance.

📄 PDF Abstract BibTeX arXiv:2406.17837

Code (0)

등록된 구현이 없습니다.

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Attention 설명 없음

Similar Papers 제목 키워드 기반

A new effective and efficient measure for outlying aspect mining

2020-04-28 · Durgesh Samariya, Sunil Aryal, Kai Ming Ting

Outlying Aspect Mining (OAM) aims to find the subspaces (a.k.a. aspects) in which a given query is an outlier with respect to a given dataset. Existing OAM algorithms use traditional distance/density-based outlier scores…

Density Estimation

Deep Transformers without Shortcuts: Modifying Self-attention for Faithful Signal Propagation

2023-02-20 · Bobby He, James Martens, Guodong Zhang, Aleksandar Botev 외

Skip connections and normalisation layers form two standard architectural components that are ubiquitous for the training of Deep Neural Networks (DNNs), but whose precise roles are poorly understood. Recent approaches s…

Simplifying Transformer Blocks

2023-11-03 · Bobby He, Thomas Hofmann

A simple design recipe for deep Transformers is to compose identical building blocks. But standard transformer blocks are far from simple, interweaving attention and MLP sub-blocks with skip connections & normalisation l…

Decoder

The Affine Divergence: Aligning Activation Updates Beyond Normalisation

2025-12-24 · George Bird arxiv

A systematic mismatch exists between mathematically ideal and effective activation updates during gradient descent. As intended, parameters update in their direction of steepest descent. However, activations are argued t…

Is Inference Mediated by Distinct Semantic Structures in LLMs? A Mechanistic Interpretation

2026-05-25 · Nura Aljaafari, Marco Valentino, André Freitas arxiv

Predicting a label correctly does not necessarily require representing the operation that produces it. Transformer representations are known to carry label-level information, but whether they encode semantic operations p…

Natural Language Inference