FPSA Explorer
NeurIPS 2026 Interactive Paper Explainer ~5 min read

Closing the Loop with
Fixed-Point Self-Attention

Standard Transformers compute attention once and move on. FPSA turns each attention layer into a self-refining equilibrium—giving hard tokens room to think, with zero added parameters.

Mrinal Mathur, Barak A. Pearlmutter, Sergey Plis  ·  Google Research, Maynooth University, Georgia State University

+0
Added parameters — drop-in replacement for MHA
3–6
Median iterations per layer (2–3 easy, 15+ hard)
1.3–1.4×
Wall-clock time (~1.6× GFLOPs vs BERT-Base)
O(1)
Backward memory via implicit differentiation
01 · The Core Idea

Attention depends on representations — and vice versa

In a standard Transformer layer, queries examine keys, pull values once, and immediately hand off to the next layer. Every token gets the exact same single pass, whether it is trivial punctuation or an ambiguous pronoun.

Fixed-Point Self-Attention (FPSA) closes this loop inside a single attention module. The value vectors V = X WV are computed once from the layer input and held fixed. Meanwhile, Qt and Kt are repeatedly recomputed from the evolving state Zt until the representation settles into an equilibrium Z* = f(Z*).

Interactive Single-Pass Attention vs. Closed-Loop FPSA
X Layer in V = X W_V Locked · computed once Q_t, K_t from state Z_t Softmax Attn(Q,K) · V step t = 0 Z_{t+1} = f(Z_t) Z* Equilib.
Status Iterating
Iteration step t = 0
Relative residual ‖ΔZ‖ / ‖Z‖ 0.480

Press Play Loop or Step +1 to watch Qt, Kt re-query the locked V until the state stops changing.

Math Formal fixed-point update equation

Given layer input X, FPSA precomputes the value matrix once, V = X WV, initializes Z0 = X, and iterates the attention operator:

Qt = Zt WQ,    Kt = Zt WK,    V = X WV  (fixed)
f(Zt; X) = softmax( Qt Kt⊤ √dk ) V WO

With optional damping α ∈ (0, 1], the iterate updates as Zt+1 = (1 − α)Zt + α · f(Zt; X) (alongside residual/norm stabilization) until the per-token relative change ‖Zt+1 − Zt‖ / ‖Zt‖ falls below tolerance ε.

02 · Live Simulation

Watch easy tokens freeze while hard tokens keep thinking

Because convergence is measured per token, FPSA produces adaptive computation depth without any learned halting network.

Below is a live Fixed-Point Self-Attention dynamical system running directly in your browser. Pick a sentence, scrub the iteration slider, and click any token to see how its attention sharpens from an uncertain first pass into a clean fixed point.

Live Math FPSA Token Refinement Sandbox
Iteration step t = 1 / 14
Damping α 0.65
Sharpness 1/τ 2.2
Attention from "it" at step 1 entropy: —
Per-token residual ‖Δzi‖ / ‖zi‖ across steps ε = 0.04
Full attention matrix A(t) rows = query · cols = key
Why does iterating attention sharpen focus? A single softmax pass averages across competing candidates. When queries and keys are recomputed from the evolving state, the loop creates a positive feedback dynamic akin to modern Hopfield retrieval — weak distractors fade out while the true referent locks in.
03 · Stability & Geometry

Why hold Values fixed — and when does the loop settle?

Iterating an arbitrary attention block can fail in two ways: representations either collapse to a single average vector, or bounce around forever without converging.

FPSA avoids both traps through two clean geometric choices: holding V anchored to the input preserves token identity and prevents rank collapse, while keeping the local map contractive (spectral radius ρ < 1, aided by damping) guarantees convergence to a unique equilibrium.

Phase Space Drag Z0 to Explore Fixed-Point Convergence
Click or drag anywhere to move initial state Z₀
Effective Contraction Rate ρ 0.72
Damping α 0.80
Contractive Regime (ρ < 1)

Every starting state Z₀ spirals smoothly into the same unique fixed point Z* anchored by V.

Steps to ε < 0.02 7
Final distance to Z* 0.008
Theory Banach fixed-point theorem & damping

If the attention update map f is a contraction with Lipschitz constant Lf < 1, Banach's theorem guarantees a unique equilibrium Z* = f(Z*) and geometric convergence ‖Zt − Z*‖ ≤ Lft ‖Z0 − Z*‖ from any initialization.

When raw attention updates oscillate, damped iteration Zt+1 = (1 − α)Zt + α f(Zt) averages the current state with the new proposal, shrinking oscillation modes without changing the fixed point itself (since Z* = f(Z*) still satisfies Z* = (1 − α)Z* + α f(Z*)).

04 · Training & Efficiency

Backpropagating through a loop in constant O(1) memory

Normally, iterating a layer T times means storing T copies of intermediate activations for backpropagation — exploding GPU memory.

Because FPSA solves for an equilibrium Z* = f(Z*), it can bypass unrolling entirely. Using the Implicit Function Theorem, gradients are computed directly at the converged state Z* regardless of how many forward iterations it took to get there.

Memory Lab Activation Memory: Unrolled BPTT vs. Implicit Differentiation
Forward depth T = 8 steps
Standard Unrolling (BPTT) O(T) · 8× stored

Must keep every intermediate state Z₁ … Z_T in VRAM to trace gradients backward through time.

FPSA Implicit Differentiation O(1) · 1× stored

Runs the forward loop under no_grad(), then computes gradients analytically at the equilibrium Z*.

Code Drop-in PyTorch diff: Standard MHA → FPSA (~15 lines)

FPSA reuses the exact same W_Q, W_K, W_V, W_O weights — zero new parameters, localized to the attention module:

def forward(self, x, mask=None):
    # 1. Compute V once from input and hold fixed
    v = split_heads(self.W_V(x))

    # 2. Iterate Q, K from evolving state z under no_grad
    z = x
    with torch.no_grad():
        for _ in range(self.max_iter):
            z_next = self._attn_step(z, v, mask)
            if rel_residual(z_next, z) < self.tol:
                break
            z = (1 - self.alpha) * z + self.alpha * z_next

    # 3. Attach O(1) implicit gradient at equilibrium z*
    z_star = self._attn_step(z.detach(), v, mask)
    return adjoint_or_phantom_grad(z_star, z, v, mask)
Math Implicit Function Theorem gradient formula

Differentiating both sides of the equilibrium equation Z* = fθ(Z*, X) with respect to parameters θ yields:

∂ℒ ∂θ = ∂ℒ ∂Z* (I − Jf(Z*))−1 ∂fθ(Z*, X) ∂θ

No intermediate states Z1, …, ZT−1 appear in this expression. The inverse Jacobian-vector product can be approximated with a 1-step phantom gradient or refined via a short Neumann / adjoint solve in constant memory.

05 · Empirical Evidence

One primitive, consistent gains across modalities

Rather than overwhelming you with wall-to-wall tables, explore the paper's key empirical findings one domain at a time.

Benchmarks Results Explorer (arXiv:2611.40535)
+10.1
Average Gain on GLUE

Over scale-matched reproduced encoder baselines, using the exact same parameter count.

+15.1 F1
Improvement on SQuAD

Question answering benefits strongly from iterative query-key disambiguation over passage context.

Why encoders shine here: Tasks like natural language inference, linguistic acceptability, and extractive QA frequently require resolving subtle cross-sentence dependencies where a single attention pass under-commits.

Illustrative per-patch iteration depth (2–3 bg · 10+ edges)

Consistent gains across Vision & Vision-Language

Plugging FPSA directly into Vision Transformers (e.g., ViT-B/16) and multimodal vision-language architectures delivers consistent accuracy improvements with zero added parameters.

Just like text tokens, uniform background patches stabilize in 2–3 steps while complex object boundaries and cross-modal alignments naturally spend more iterations refining.

7B Scale
Transfers to Decoder-Only LLMs

Evaluated under matched LoRA fine-tuning — no full pretraining required to unlock iterative intra-layer refinement.

Adaptive
Multi-Step Reasoning Lift

Allows pretrained autoregressive models to spend extra refinement cycles inside attention on harder reasoning steps.

Practical takeaway: Because FPSA keeps the exact W_Q, W_K, W_V, W_O parameter layout, existing pretrained weights transfer cleanly into the closed-loop regime via lightweight LoRA adaptation.

Compared to repeating entire Transformer blocks (which duplicates FFN, LayerNorm, and residual overhead), FPSA iterates only the attention sub-layer. At a median of 3–6 steps per layer relative to a scale-matched BERT-Base baseline:

Parameter Count 1.00× (exact match)
Wall-Clock Latency 1.3× – 1.4×
Compute (GFLOPs) ~1.6×
Backward Activation Memory (in iteration depth) O(1) constant

Cite this paper

Read on arXiv ↗
@inproceedings{mathur2026closing,
  title     = {Closing the Loop with Fixed-Point Self-Attention},
  author    = {Mathur, Mrinal and Pearlmutter, Barak A. and Plis, Sergey},
  booktitle = {Advances in Neural Information Processing Systems (NeurIPS)},
  year      = {2026},
  eprint    = {2611.40535},
  archivePrefix = {arXiv}
}