In a standard transformer, each layer computes attention once: queries examine keys, select values, and move on. Fixed-Point Self-Attention (FPSA) revisits that computation by iterating the attention state within a layer until it approximately stabilizes. Values $V$ are derived from the layer input and held fixed, while queries and keys are recomputed from an evolving state $Z_t$ until the representation approaches an equilibrium, $Z^* = f(Z^*)$. FPSA preserves the parameter count of the underlying attention block and can be inserted into existing architectures with only local changes to the attention module. Easy inputs often stabilize in $2$-$3$ iterations, while harder ones may require substantially more. Compared with repeating full transformer blocks, FPSA iterates only the attention step, keeping overhead moderate: a median of $3$-$6$ steps per layer corresponds to roughly $1.6\times$ GFLOPs and $1.3$-$1.4\times$ wall-clock time over a size-matched BERT-Base baseline. FPSA improves reproduced encoder baselines on GLUE ($+10.1$ avg.) and SQuAD ($+15.1$ F1), yields consistent gains on vision and vision-language tasks, and transfers to 7B decoder-only models under matched LoRA fine-tuning. These results establish in-layer fixed-point refinement as a highly versatile and parameter-efficient architectural primitive, offering a compelling new direction for adaptive computation across deep learning modalities.
翻译:暂无翻译