mlsanityData to 7 Oct 2026

Mask-Based Priors Are More Persistent than Query-Key Initializations

arXiv 2608.00418 ↗First posted 1 Aug 2026cs.AIcited by 1

Not on the map. Why?

Abstract (arXiv)

Transformers do not merely lack data on some Boolean extrapolation tasks; they generalize in a systematically wrong way. Recent work on generalization on the unseen has shown that, despite fitting the observed domain, Transformers often extrapolate according to a simpler minimum-degree interpolator rather than the true target function. These Boolean tasks are not practical applications, but controlled stress tests for understanding Transformer inductive bias. We ask whether this failure mode can be corrected by injecting explicit structural priors into attention. Existing structured-initialization methods alter Transformer inductive bias indirectly, by choosing query and key projections whose similarity scores approximate a desired attention pattern. However, we find that when applied to Boolean extrapolation, these QK-based priors can be rapidly overwritten during training and fail to change the learned extrapolation rule. We propose a simpler alternative: initialize the additive attention mask directly. Unlike standard hard masks used for causality or locality attention, our mask is a finite, learnable attention-logit bias initialized from task-level interaction structure. This separates the structural prior from content-dependent attention scores, allowing it to persist throughout optimization. On Boolean reasoning tasks, mask-based initialization achieves near-perfect extrapolation where vanilla and QK-initialized Transformers remain trapped by the default inductive bias. The same mechanism also improves low-data arithmetic performance and remains competitive on vision and language benchmarks. These results show that attention masks can serve not only as architectural constraints, but as a simple substrate for encoding persistent inductive bias in Transformers.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 38 of its 46 references that are in the map. First posted on arXiv 1 Aug 2026.

Builds on

38 of 46 references.

References · 38

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  3. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  4. 2014ImageNet Large Scale Visual Recognition Challengecited by 8,441
  5. 2022Scalable Diffusion Models with Transformerscited by 5,931
  6. 2015Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classificationcited by 3,590
  7. 2020Longformer: The Long-Document Transformercited by 3,362
  8. 2016Pointer Sentinel Mixture Modelscited by 2,992
  9. 2021Masked-attention Mask Transformer for Universal Image Segmentationcited by 2,338
  10. 2020Implicit Neural Representations with Periodic Activation Functionscited by 2,214
  11. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
  12. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
26 more
  1. 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
  2. 2023TinyStories: How Small Can Language Models Be and Still Speak Coherent English?cited by 425
  3. 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 391
  4. 2019Axial Attention in Multidimensional Transformerscited by 350
  5. 2020Sparse Sinkhorn Attentioncited by 250
  6. 2021BACON: Band-limited Coordinate Networks for Multiscale Scene Representationcited by 142
  7. 2022Anti-Oversmoothing in Deep Vision Transformers via the Fourier Domain Analysis: From Theory to Practicecited by 136
  8. 2024Transformers Can Do Arithmetic with the Right Embeddingscited by 77
  9. 2023Generalization on the Unseen, Logic Reasoning and Degree Curriculumcited by 73
  10. 2018Neural Arithmetic Logic Unitscited by 69
  11. 2017On weight initialization in deep neural networkscited by 67
  12. 2023Mimetic Initialization of Self-Attention Layerscited by 52
  13. 2023Initializing Models with Larger Onescited by 39
  14. 2019Mask-Guided Attention Network for Occluded Pedestrian Detectioncited by 36
  15. 2023Weight subcloning: direct initialization of transformers using larger pretrained onescited by 30
  16. 2024Scaling Smart: Accelerating Large Language Model Pre-training with Small Model Initializationcited by 29
  17. 2024StableMask: Refining Causal Masking in Decoder-only Transformercited by 20
  18. 2024Algorithmic Capabilities of Random Transformerscited by 17
  19. 2024Rethinking Attention: Polynomial Alternatives to Softmax in Transformerscited by 8
  20. 2025Can You Learn to See Without Images? Procedural Warm-Up for Vision Transformerscited by 8
  21. 2025Cutting the Skip: Training Residual-Free Transformerscited by 7
  22. 2025Rethinking Causal Mask Attention for Vision-Language Inferencecited by 6
  23. 2025Structured Initialization for Vision Transformerscited by 6
  24. 2024Structured Initialization for Attention in Vision Transformerscited by 4
  25. 2026Can Transformers Really Do It All? On the Compatibility of Inductive Biases Across Taskscited by 2
  26. 2024On the Minimal Degree Bias in Generalization on the Unseen for non-Boolean Functionscited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.