{
  "schema": "auturnal.deep-research-review.v2",
  "slug": "vision-transformer-inductive-bias",
  "title": "Where Vision Transformers Put Their Inductive Bias",
  "category": "Representation & Architecture",
  "dek": "Patch boundaries, position signals, attention connectivity and supervision all constrain what a visual transformer can learn efficiently.",
  "abstract": "Vision transformers are sometimes described as architectures without inductive bias. This review replaces that description with an explicit accounting of where constraints enter: patch projection, position encoding, attention connectivity, hierarchy and teacher supervision. ViT, DeiT and Swin supply three primary architectural anchors. The article develops a rank-nullity test for irreversible patch compression, a permutation-equivariance identity for content-only attention, and a transparent operation-count comparison between global and fixed-window attention. These constructions separate representational possibility, statistical preference and execution cost. Proposed experiments distinguish changes to architecture from changes to training data and supervision. The figures are analytic counts and linear-algebra examples, not hardware measurements or replicated image-classification benchmarks. The central conclusion is that a defensible comparison should name the information and symmetries each pipeline preserves, discards or learns from data instead of treating attention as the absence of prior structure.",
  "english": "Vision transformers are sometimes described as architectures without inductive bias. This review replaces that description with an explicit accounting of where constraints enter: patch projection, position encoding, attention connectivity, hierarchy and teacher supervision. ViT, DeiT and Swin supply three primary architectural anchors. The article develops a rank-nullity test for irreversible patch compression, a permutation-equivariance identity for content-only attention, and a transparent operation-count comparison between global and fixed-window attention. These constructions separate representational possibility, statistical preference and execution cost. Proposed experiments distinguish changes to architecture from changes to training data and supervision. The figures are analytic counts and linear-algebra examples, not hardware measurements or replicated image-classification benchmarks. The central conclusion is that a defensible comparison should name the information and symmetries each pipeline preserves, discards or learns from data instead of treating attention as the absence of prior structure.",
  "refs": [
    "dl-08-1",
    "dl-08-2",
    "dl-08-3"
  ],
  "sections": [
    [
      "1. Bias is a property of the entire pipeline",
      "An inductive bias is a preference among possible input-output relations, arising from architecture, data, optimization or supervision. A network that processes a fixed grid of patches already commits to a representation of the image. A model trained with spatial augmentations acquires additional preferences even if its attention layer is algebraically flexible. A pretrained teacher can supply still more structure.\n\nThe relevant scientific question is therefore not whether a vision transformer has bias, but where a particular bias is implemented and how it affects the intended task. Structural constraints can make a useful rule easier to learn, or exclude a distinction that the task needs. Data-driven preferences can adapt to a rich training distribution, or inherit a spurious regularity. This article separates three issues that are often mixed together: which functions are representable, which are favored by learning, and how expensive their computation is.",
      []
    ],
    [
      "2. ViT as an architectural anchor",
      "Dosovitskiy and colleagues apply a transformer to a sequence of linearly embedded image patches, with position embeddings and a classification setup. Their paper evaluates large-scale pretraining and transfer and demonstrates that this design can perform strongly within the reported conditions. It does not show that image structure has disappeared from the pipeline or that training-data scale is irrelevant.\n\nThe construction examined here is the patch-to-token interface. Once a patch has been mapped into its embedding, all later computation depends on the information retained at that interface. The rank calculation below is an independent linear-algebra diagnostic of this step. It is not a claim that the actual ViT configurations in the source necessarily compress patches below their dimension.",
      [
        "dl-08-1"
      ]
    ],
    [
      "3. DeiT changes the supervision story",
      "Touvron and colleagues study data-efficient transformer training and introduce a distillation token through which a student learns from a teacher. Their primary publisher record describes competitive training using ImageNet and a teacher-student strategy specific to the architecture.\n\nThe relevant distinction is that a student's architectural form does not fully describe its supervision. A convolutional teacher can influence a transformer through its targets without placing convolutional layers in the deployed student. This does not make distillation illegitimate; it means that a comparison about inductive bias must account for the teacher and its training history. This review does not reproduce the source's optimization recipe or numerical benchmark results. It uses the teacher-student design as a concrete reason to track knowledge sources beyond the student graph.",
      [
        "dl-08-2"
      ]
    ],
    [
      "4. Swin makes locality explicit",
      "Liu and colleagues organize attention within local windows, shift the window partition between blocks, and use a hierarchy that changes spatial resolution. The author preprint explains how this permits cross-window communication while controlling attention cost. Its computational scaling statement assumes a fixed window size when image resolution increases.\n\nLocality has therefore not been eliminated; it is designed into the communication pattern. A shifted partition can connect regions that were separated in a previous block, but it does not make one block equivalent to unrestricted global attention. This article's operation counts isolate candidate query-key pairs. They neither reproduce the source's benchmark numbers nor estimate actual accelerator latency. The distinction between connectivity and executed runtime is essential when interpreting the resulting curves.",
      [
        "dl-08-3"
      ]
    ],
    [
      "5. Patch projection has a precise information boundary",
      "Flatten a patch of P by P pixels with C channels into D coordinates, where D equals P squared times C. A linear embedding of width d maps those coordinates through a matrix. If d is smaller than D, rank-nullity guarantees a nonzero nullspace even when the matrix has maximal rank. Two patches differing by a nullspace vector produce the same token.\n\nNo deterministic downstream network can distinguish those two patches from that token alone. This is an impossibility about the interface, not about attention training. It does not imply that the lost directions matter for a given dataset, nor that every practical patch embedding is compressive. Panel 2 shows the minimum nullspace dimension for a declared 48-dimensional patch as width varies. The executable example constructs a collision directly and checks identical embeddings. A sound architecture study should ask whether the projected-away variation is irrelevant to the intended labels or contains rare but decisive features.",
      []
    ],
    [
      "6. Patch size trades counts against granularity",
      "For a square image of side H divisible by patch side P, the patch count is the square of H divided by P. Increasing patch size therefore changes both the number of tokens and the raw dimensionality of each patch. These effects should not be described as a single efficiency knob.\n\nWith H equal to 224, panel 1 compares pair counts for patch sides of four, eight, sixteen and thirty-two pixels. The global attention term uses all token pairs. The windowed comparison uses at most forty-nine keys per query and equals global attention once the whole seven-by-seven token grid fits a single window. These are exact candidate counts under the stated partition, excluding class tokens, padding and other layers. A coarser patch grid reduces the number of attention scores but may shift the burden of preserving fine detail into the embedding. Whether that detail survives depends on projection width and learned weights, rather than on token count alone.",
      []
    ],
    [
      "7. Content-only attention respects token permutations",
      "Let a token matrix be permuted by a permutation matrix. If queries, keys and values are computed by shared row-wise linear maps and no position-dependent term is present, the attention output is permuted in the same way. Row-wise softmax respects the corresponding row and column permutation of the score matrix. The identity can be checked directly with small matrices.\n\nThis equivariance concerns reordering complete tokens, not arbitrary pixel translations or rotations of an image. A patch permutation changes the visual arrangement while preserving the multiset of token contents. A permutation-invariant readout of content-only attention cannot distinguish arrangements that differ only through such a permutation. Spatial position signals intentionally break that particular symmetry, enabling the model to use arrangement. Calling this symmetry breaking an implementation detail misses its functional role. It determines which distinctions the model can express and which must be supplied by an external coordinate convention.",
      []
    ],
    [
      "8. Position signals carry assumptions about coordinates",
      "Absolute position embeddings attach learned identifiers to particular slots. Relative position terms describe relationships between positions. Both provide spatial information, but they need not behave identically when resolution changes, an image is cropped, or the coordinate frame shifts.\n\nA resolution-change experiment must declare how position parameters are interpolated or otherwise mapped. The operation can introduce behavior that was not learned directly at the new locations. A translation experiment must distinguish translating the underlying scene from changing its patch alignment: a small pixel shift can move content across patch boundaries even when its semantic identity is unchanged. Exact token-permutation identities do not imply exact equivariance to those pixel operations. The finite companion demonstrates that an unpermuted absolute position signal can break content-only permutation equivariance, while jointly permuting content and position restores the algebraic identity. This is a mathematical check of the interface, not a statement that one position strategy is universally preferable.",
      []
    ],
    [
      "9. Communication depth should be measured explicitly",
      "A global attention layer permits every token to directly weight every other token, though learned weights can still make useful communication difficult. A windowed layer restricts the set of possible immediate interactions. Alternating partitions expands reachability across depth, and a hierarchy changes the meaning of a token as regions are merged.\n\nReachability is a necessary condition for some computations, not proof that the computation is learned or stable. An experiment can distinguish these concepts by creating tasks whose labels require a known relation between distant regions and varying separation while holding local visual statistics fixed. It should report the number of layers required for information to travel under the actual mask, rather than relying on an architecture name. Additional global tokens or cross-window routes must be included in the graph. Such a diagnostic would test whether a claimed long-range benefit follows from accessible communication or from other differences in data and optimization.",
      []
    ],
    [
      "10. A fair comparison has several budgets",
      "Matching parameter count does not match training compute, data exposure, activation memory or teacher supervision. Matching elapsed time on one accelerator does not match the number of optimization updates. Comparing architectures without recording these distinctions can turn a resource advantage into an architectural explanation.\n\nA useful evaluation should publish at least the student parameter count, image-token exposure, training operations under a stated accounting convention, optimizer steps and external teacher or pretraining data. If hardware is part of the claim, report actual throughput and memory separately from analytic counts. The same data split and augmentation policy should be used when testing an architectural intervention, unless the purpose is explicitly to compare complete pipelines. Complete-pipeline comparisons are valuable, but their interpretation is different: they identify which package works under a resource envelope, not which isolated mechanism caused the gain. This distinction is especially important when one package has inherited information through distillation.",
      []
    ],
    [
      "11. A verification ladder for visual models",
      "The proposed evaluation begins with exact interface tests: nullspace collisions, token permutation identities, and reachability of attention masks. These tests are cheap and make architectural claims precise. The next level uses controlled visual tasks with known relevant and irrelevant variables, allowing patch alignment, scale and position changes to be varied independently.\n\nOnly then should natural-image benchmarks be used to assess practical relevance. Their results should include prespecified subgroups, multiple training seeds and a clear policy for tuning on validation data. A low average error can coexist with failures on small objects or unusual spatial arrangements. Conversely, a synthetic failure may concern a distinction absent from the deployment scope. Both facts should be documented. The companion code checks the finite algebra and pair counts only; it does not train a transformer, profile a GPU or independently replicate the three cited systems. The boundaries of each evidence level remain separate.",
      []
    ],
    [
      "12. From slogans to architectural claims",
      "A vision architecture is best described by the information it retains, the transformations it respects, and the communication it permits at a given cost. Patch projection, position signals, window structure and teacher targets each contribute to that description. Their effects need not be classified as universally beneficial or harmful.\n\nThe analysis yields three falsifiable statements: a compressive linear patch interface identifies some distinct inputs; content-only attention is equivariant to token permutation under shared maps; and fixed-size windows change candidate-pair scaling with token count. These statements are exact within their assumptions. Whether any of them improves a real recognition task remains empirical. Reporting both levels gives readers a stronger explanation than declaring that one model has more or less bias. It also guides design: preserve distinctions that matter, constrain transformations that the task warrants, and allocate computation to relations that the decision actually requires.",
      []
    ]
  ],
  "section_kinds": [
    "author_analysis_or_verification_proposal",
    "source_based_review",
    "source_based_review",
    "source_based_review",
    "author_analysis_or_verification_proposal",
    "author_analysis_or_verification_proposal",
    "author_analysis_or_verification_proposal",
    "author_analysis_or_verification_proposal",
    "author_analysis_or_verification_proposal",
    "author_analysis_or_verification_proposal",
    "author_analysis_or_verification_proposal",
    "author_analysis_or_verification_proposal"
  ],
  "equations": [
    {
      "tex": "D=P^2C,\\qquad z=E x,\\quad E\\in\\mathbb R^{d\\times D},\\qquad \\dim\\ker E=D-\\operatorname{rank}(E)\\geq\\max(0,D-d)",
      "explanation": "Flattened patch dimension D, embedding width d; lower bound applies to a linear map without side channels."
    },
    {
      "tex": "\\operatorname{Attn}(\\Pi Q,\\Pi K,\\Pi V)=\\Pi\\operatorname{Attn}(Q,K,V),\\qquad \\operatorname{Attn}(Q,K,V)=\\operatorname{softmax}_{\\rm row}(QK^\\top/\\sqrt{d_k})V",
      "explanation": "Permutation matrix Pi acts on token rows; shared projections and no untransformed position-dependent term."
    },
    {
      "tex": "N=(H/P)^2,\\qquad C_{\\rm global}=N^2,\\qquad C_{\\rm window}=N\\min(N,w^2)",
      "explanation": "Query-key pair counts for divisible image grids, windows of w by w tokens, with no class tokens or padding."
    },
    {
      "tex": "\\dim\\ker E_{\\rm maximal\\ rank}=\\max(0,48-d)",
      "explanation": "Panel 2 uses a hypothetical 4 by 4 RGB patch (48 coordinates); it is not a dimensional claim about published ViT configurations."
    }
  ],
  "table": {
    "headers": [
      "Design choice",
      "Structural effect",
      "Claim that needs additional evidence"
    ],
    "rows": [
      [
        "Linear patch projection",
        "Can identify distinct patches through a nullspace",
        "Whether lost directions matter for the target"
      ],
      [
        "Position embeddings",
        "Make spatial arrangement available",
        "Generalization to unseen coordinate conditions"
      ],
      [
        "Local or shifted windows",
        "Constrain immediate communication",
        "Learned use of long-range dependencies"
      ],
      [
        "Distillation",
        "Adds teacher-derived supervision",
        "Attribution of gains to the student architecture alone"
      ]
    ]
  },
  "protocol": [
    "Check patch dimension, embedding rank and explicit collision examples.",
    "Verify token permutation identities with and without position signals.",
    "Calculate attention-mask reachability and pair counts under declared padding rules.",
    "Build controlled tasks varying object scale, patch alignment and long-range relations.",
    "Compare matched data exposure and compute while recording teachers and pretraining provenance.",
    "Report natural-image performance separately from exact algebra, analytic cost and measured hardware behavior."
  ],
  "limitations": [
    "Rank-nullity says which collisions must exist, not whether natural images occupy those directions.",
    "Pair counts exclude projections, feed-forward layers, memory movement and hardware effects.",
    "Three foundational architectures do not exhaust subsequent vision-transformer designs.",
    "No published accuracy or wall-clock result is reproduced by these finite checks."
  ],
  "evidence": [
    {
      "source": "dl-08-1",
      "result": "ViT applies a transformer to embedded image patches and studies pretraining and transfer.",
      "boundary": "Its empirical results depend on the specified data and optimization conditions.",
      "locator": "Model description and abstract."
    },
    {
      "source": "dl-08-2",
      "result": "DeiT introduces a teacher-student distillation token in data-efficient image-transformer training.",
      "boundary": "Teacher supervision is part of the comparison; full training details were not reimplemented.",
      "locator": "Primary publisher abstract."
    },
    {
      "source": "dl-08-3",
      "result": "Swin combines windowed attention, shifted partitions and hierarchical representations.",
      "boundary": "Linear scaling assumes fixed window size; the inspected version is the author preprint.",
      "locator": "Abstract and architecture overview."
    }
  ],
  "research_questions": [
    "Which task-relevant variations are consistently lost at the patch interface before attention begins?",
    "Can coordinate generalization be predicted from an explicit position-transformation contract?",
    "How should architectural efficiency be compared when teacher supervision and data exposure differ?"
  ],
  "kind": "ai_assisted_research_guide",
  "author": "Codex (AI)",
  "original_language": "en",
  "created_date": "2026-10-22",
  "published_date": null,
  "publication_status": "local_draft_pending_owner_upload",
  "version": 1,
  "previous_version": null,
  "analytic": "vision-transformer-inductive-bias",
  "peer_reviewed": false,
  "journal_publication": false,
  "disclosure": {
    "authorship": "Written and technically self-reviewed by Codex (AI). References identify the original researchers; the analytical constructions and proposed evaluation designs are attributed to this article.",
    "figures": "Covers are conceptual ImageGen illustrations. Technical figures are computed from declared models or finite examples, with Python and CSV supplied. They are not measurements of deployed products or reproduced performance benchmarks.",
    "review": "This local draft has no independent peer-review or journal-acceptance record. Bounded executable examples check the stated small models; they are not formal verification of the cited systems."
  },
  "review_scope": "A focused analytical review of three selected foundational primary sources, with original worked examples. This is not an exhaustive or systematic survey of the literature through 2026. Source access and version notes are recorded with the bibliography.",
  "revision_note": "Initial local English manuscript; no server upload or publication action."
}
