IRIS: A Visual Cortex-Inspired Framework for Analyzing Orientation Selectivity in Vision Transformers
2026-08-05 • Computer Vision and Pattern Recognition
Computer Vision and Pattern Recognition
AI summaryⓘ
The authors study how vision transformers (ViTs), a popular type of image-processing model, learn to recognize simple visual features like orientation, which biological brains do using local information. They created new ways to measure how well these models develop orientation sensitivity during training and found that the training method strongly influences this ability. Early and middle layers of the model tend to become selective to orientations, while deeper layers focus on more complex, semantic features. Their work helps explain how ViTs process visual information and suggests how to use these insights to improve model training and performance.
Vision Transformers (ViTs)Orientation SelectivityPrimary Visual CortexRepresentation LearningInductive BiasNeuroscience MetricsSemantic EncodingModel TrainingLayer-wise Analysis
Authors
Vaishnavi B Mohan, Vijayakrishna Naganoor, Yashas Annadani, Shashank Hegde
Abstract
Vision transformers (ViTs) have become the de facto standard for image encoding across many perception tasks. Despite their empirical success, it remains mechanistically unclear how they encode low-level features, given their lack of inductive biases: ViTs process information globally rather than relying on local structure. Biological visual systems, in contrast, build low-level features, such as orientation selectivity in the primary visual cortex, by combining information from small, localized regions of the visual field. These features are general-purpose representations, shared and required across multiple specialized neural pathways, unlike higher-level, task-specific semantic features. This raises the question if such biologically-grounded features arise in ViTs. In this work, we systematically study how orientation selectivity emerges in ViTs by introducing a suite of neuroscience-inspired metrics: representational similarity score (RSS), orientation recruitment score (ORS), and orientation tuning bandwidth to quantify how orientation is encoded in representational geometry and as a function of model depth. Through extensive analysis, we find that: (1) the training paradigm is the strongest determinant of orientation selectivity, with models sharing an objective, peaking at comparable relative depths regardless of scale (2) many units are orientation-selective early in training, with early-to-middle layers recruiting more such units over time, while deeper layers lose selectivity and broaden their tuning toward semantic encoding and (3) our metrics offer a mechanistic heuristic for how many layers to unfreeze for best downstream generalization. Our framework presents a way to track biologically-grounded features during ViT training, probes how desired properties are encoded in transformer representations, and builds a systematic understanding of how ViTs generalize across tasks.