Free SKILL.md scraped from GitHub. Clone the repo or copy the file directly into your Claude Code skills directory.
npx versuz@latest install hiyenwong-ai-collection-collection-skills-brain-alignment-crap-analysisgit clone https://github.com/hiyenwong/ai_collection.gitcp ai_collection/SKILL.MD ~/.claude/skills/hiyenwong-ai-collection-collection-skills-brain-alignment-crap-analysis/SKILL.md---
name: brain-alignment-crap-analysis
description: "Cross-Region Alignment Patterns (CRAP) analysis for evaluating model-brain alignment. Exposes vulnerability where models achieve high alignment scores without biologically plausible computations. Activation: model-brain alignment, CRAP analysis, cross-region patterns, biological plausibility testing."
---
# Cross-Region Alignment Pattern (CRAP) Analysis
> Framework to expose vulnerability in model-brain alignment: models can achieve high alignment without biologically plausible computations by examining cross-region alignment patterns.
## Metadata
- **Source**: arXiv:2604.21780
- **Authors**: Nancy Chen, David Park, Wei Zhang
- **Published**: 2026-04-23
- **Category**: q-bio.NC
## Core Methodology
### The CRAP Vulnerability
Traditional model-brain alignment benchmarks measure how well DNN internal representations predict neural responses to visual stimuli. However, this approach has a fundamental flaw:
- High alignment does not imply biological plausibility
- Models can exploit dataset-specific statistical regularities
- Without implementing actual brain-like computations
### Cross-Region Alignment Patterns Analysis
True biological alignment should show:
- Consistent patterns across different brain regions
- Alignment reflecting known anatomical hierarchies
- Region-specific signatures matching neural circuit organization
### Key Principle
If a model truly implements brain-like computations, its alignment patterns should:
1. Vary systematically across cortical regions
2. Mirror anatomical hierarchy (V1 -> V2 -> V4 -> IT)
3. Show characteristic patterns expected from neural circuit structure
## Implementation Guide
### Prerequisites
- Pre-trained deep neural networks (vision models)
- Neural recordings from multiple brain regions
- Stimulus set used for both model and neural data
### CRAP Analysis Pipeline
#### Step 1: Compute Region-Specific Alignment
```python
from scipy.stats import pearsonr
import numpy as np
def compute_region_alignment(model_features, neural_responses, regions):
"""Compute alignment between model and neural data for each region."""
alignment_scores = {}
for region in regions:
best_score = -np.inf
for layer_name, features in model_features.items():
score, _ = pearsonr(features.flatten(),
neural_responses[region].flatten())
if score > best_score:
best_score = score
alignment_scores[region] = best_score
return alignment_scores
```
#### Step 2: Analyze Cross-Region Patterns
```python
def analyze_cross_region_patterns(alignment_scores, expected_hierarchy):
"""Analyze if alignment patterns match expected anatomical hierarchy."""
regions = list(alignment_scores.keys())
scores = [alignment_scores[r] for r in regions]
hierarchy_levels = [expected_hierarchy[r] for r in regions]
score_variance = np.var(scores)
hierarchical_correlation = np.corrcoef(scores, hierarchy_levels)[0, 1]
crap_score = score_variance * abs(hierarchical_correlation)
is_biological = crap_score > 0.1
return crap_score, is_biological
```
#### Step 3: Multi-Model Comparison
```python
def compare_models_crapped(models_results, expected_hierarchy):
"""Compare multiple models using CRAP analysis."""
results = []
for model_name, alignments in models_results.items():
crap_score, is_bio = analyze_cross_region_patterns(
alignments, expected_hierarchy
)
results.append((model_name, crap_score, is_bio))
results.sort(key=lambda x: x[1], reverse=True)
return results
```
## Evaluation Criteria
### Biological Plausibility Tests
1. Hierarchical Structure: Alignment varies across regions
2. Non-Uniformity: Not all regions show equally high alignment
3. Anatomical Consistency: Patterns match known cortical organization
4. Cross-Region Correlation: Alignment correlates with hierarchical position
### Red Flags (Spurious Alignment)
- Uniformly high alignment across all regions
- No variation matching anatomical hierarchy
- Similar patterns to untrained/random networks
- Dataset-specific artifacts in alignment
## Applications
- Model-Brain Alignment Evaluation: Rigorous testing of ANN-brain similarity
- Deep Neural Network Validation: Checking biological plausibility claims
- Biological Plausibility Testing: Framework for neuroscience-grounded evaluation
- Computer Vision Benchmarking: Beyond accuracy to neural realism
## Pitfalls
- Requires multi-region neural recordings
- Hierarchy mapping must be accurate
- Stimulus set must be matched between model and neural data
- Threshold tuning needed for different datasets
## Related Skills
- visual-imagery-decoding-fmri
- brain-connectivity-analysis
- neuromimetic-perceptual-compression
## References
- Chen et al. (2026). Only Brains Align with Brains. arXiv:2604.21780