IRIS: A Visual Cortex-Inspired Framework for Analyzing Orientation Selectivity in Vision Transformers. Provides neuroscience-inspired metrics (RSS, ORS, orientation tuning bandwidth) to quantify how orientation selectivity emerges in ViTs and tracks biologically-grounded features during training. Use when analyzing low-level feature encoding in vision transformers, studying orientation selectivity, or probing representational geometry in transformer models.
Scanned 9/11/2026
Install to Claude Code
npx -y skills add hiyenwong/ai_collection --skill iris-visual-cortex-framework-vit --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Iris Visual Cortex Framework Vit?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/hiyenwong-iris-visual-cortex-framework-vit-ai-collection)More formats (shields.io, HTML) on the badges page.
---
name: iris-visual-cortex-framework-vit
description: "IRIS: A Visual Cortex-Inspired Framework for Analyzing Orientation Selectivity in Vision Transformers. Provides neuroscience-inspired metrics (RSS, ORS, orientation tuning bandwidth) to quantify how orientation selectivity emerges in ViTs and tracks biologically-grounded features during training. Use when analyzing low-level feature encoding in vision transformers, studying orientation selectivity, or probing representational geometry in transformer models."
metadata:
arxiv_id: "2608.05122"
published: "2026-08-05"
authors: "Vaishnavi B Mohan, Vijayakrishna Naganoor, Yashas Annadani, Shashank Hegde"
tags: [vision-transformers, orientation-selectivity, visual-cortex, representational-similarity, neuroscience, computer-vision]
license: Complete terms in LICENSE.txt
---
# IRIS: Visual Cortex-Inspired Framework for Vision Transformers
## Overview
This skill implements the IRIS (Visual Cortex-Inspired Framework) methodology from the paper "IRIS: A Visual Cortex-Inspired Framework for Analyzing Orientation Selectivity in Vision Transformers" (arXiv:2608.05122). The framework introduces a suite of neuroscience-inspired metrics to systematically study how orientation selectivity emerges in Vision Transformers (ViTs), despite their lack of local inductive biases.
## Key Contributions
1. **Neuroscience-Inspired Metrics**: Introduces Representational Similarity Score (RSS), Orientation Recruitment Score (ORS), and orientation tuning bandwidth
2. **Training Paradigm Analysis**: Shows that training paradigm is the strongest determinant of orientation selectivity
3. **Layer-wise Dynamics**: Reveals that early-to-middle layers recruit orientation-selective units while deeper layers lose selectivity
4. **Mechanistic Heuristic**: Provides guidance for downstream task fine-tuning based on layer selectivity patterns
## When to Use This Skill
- Analyzing low-level feature encoding in Vision Transformers
- Studying orientation selectivity emergence in neural networks
- Comparing biological vs artificial visual systems
- Probing representational geometry in transformer models
- Determining optimal layer unfreezing strategies for transfer learning
## Core Methodology
### Neuroscience-Inspired Metrics
#### Representational Similarity Score (RSS)
- Quantifies similarity between model representations and biological orientation responses
- Measures how well model units capture orientation information
- Used to track orientation selectivity across model depth
#### Orientation Recruitment Score (ORS)
- Measures the proportion of orientation-selective units at each layer
- Tracks how recruitment changes during training
- Identifies layers with highest orientation encoding capacity
#### Orientation Tuning Bandwidth
- Quantifies the specificity of orientation tuning in individual units
- Narrow bandwidth = highly selective, broad bandwidth = general semantic encoding
- Shows progression from specific to general representations with depth
### Key Findings
1. **Training Paradigm Dominance**: Models sharing an objective show similar orientation selectivity patterns regardless of scale
2. **Early Selectivity**: Many units are orientation-selective early in training
3. **Layer Progression**: Early-to-middle layers recruit more selective units over time; deeper layers broaden tuning toward semantics
4. **Fine-tuning Guidance**: Metrics provide heuristic for optimal layer unfreezing
## Implementation Guidelines
### Metric Calculation
#### RSS Implementation
1. **Stimulus Set**: Create oriented grating stimuli covering full orientation range
2. **Model Responses**: Extract activations for each orientation at target layers
3. **Similarity Computation**: Calculate representational similarity matrices (RSMs)
4. **Biological Comparison**: Compare against idealized biological orientation response patterns
#### ORS Implementation
1. **Unit Selection**: Identify units with significant orientation response modulation
2. **Recruitment Tracking**: Count selective units per layer across training epochs
3. **Statistical Thresholding**: Apply significance tests to determine selectivity
#### Tuning Bandwidth
1. **Response Curves**: Plot unit responses across orientation space
2. **Bandwidth Fitting**: Fit tuning curves (e.g., von Mises distributions)
3. **Width Measurement**: Extract full-width at half-maximum (FWHM) or equivalent
### Analysis Workflow
1. **Model Selection**: Choose ViT models with different architectures/scales but same training objective
2. **Baseline Comparison**: Include CNNs and biological data for reference
3. **Longitudinal Tracking**: Measure metrics across training epochs
4. **Depth Analysis**: Compare metrics across all model layers
5. **Downstream Validation**: Test fine-tuning performance correlation with metrics
## Applications
- **Model Interpretability**: Understand what low-level features ViTs actually learn
- **Architecture Design**: Inform design choices for better low-level feature extraction
- **Transfer Learning**: Optimize fine-tuning strategies based on layer selectivity
- **Neuroscience-AI Bridge**: Compare artificial and biological visual processing
- **Representation Analysis**: Probe how desired properties emerge in transformer representations
## Pitfalls and Considerations
- **Stimulus Design**: Orientation stimuli must be carefully controlled for spatial frequency and contrast
- **Biological Validity**: Idealized biological responses may not capture real neuron complexity
- **Computational Cost**: Full orientation space sampling can be expensive for large models
- **Metric Correlation**: Ensure metrics actually correlate with downstream performance
- **Generalization**: Findings may not extend to other low-level features beyond orientation
## Related Concepts
- **Orientation Selectivity**: Fundamental property of primary visual cortex neurons
- **Representational Similarity Analysis (RSA)**: General framework for comparing representations
- **Vision Transformers**: Transformer architecture applied to computer vision
- **Inductive Biases**: Built-in assumptions that guide learning (absent in standard ViTs)
- **Transfer Learning**: Fine-tuning pre-trained models for downstream tasks
## References
- Original Paper: [arXiv:2608.05122](https://arxiv.org/abs/2608.05122)
- Representational Similarity Analysis: Kriegeskorte et al. (2008)
- Vision Transformers: Dosovitskiy et al. (2020)
- Orientation Selectivity: Hubel & Wiesel (1962)
## Activation Keywords
- IRIS framework
- orientation selectivity
- vision transformers
- visual cortex
- representational similarity
- RSS metric
- ORS metric
- tuning bandwidth
- low-level features
- transformer interpretability
- biological inspiration
- fine-tuning heuristicIs this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!