TL;DR
Agglomerative vision models distill multiple heterogeneous foundation models (like CLIP, DINOv2, and SAM) into a single student network, but drastic differences in activation scale across teachers cause standard loss functions to implicitly favor high-variance models. This paper introduces PHI Standardization (PHI-S), a method that uses Hadamard matrices and PCA to rotate and uniformly scale teacher representations. PHI-S balances multi-teacher distillation, enabling compact ViT-B and ViT-L students to match or outperform models more than twice their size.
What Problem Does This Paper Address?
Recent work on agglomerative models (such as AM-RADIO) fuses distinct vision foundation models—spanning contrastive vision-language models, self-supervised encoders, and segmentation networks—into a unified student model via multi-teacher feature distillation. However, these teachers output features with radically different activation statistics. For instance, SAM’s feature variance is over $190\times$ larger than DFN CLIP’s.
When training with standard Mean Squared Error (MSE) or Smooth-L1 loss, this variance mismatch creates an unintended implicit weighting where the student expends most of its capacity matching the high-magnitude teacher while neglecting others. Finding manual loss-weight coefficients across many teachers is difficult, prompting the need for principled, invertible target normalization.
Methods
The authors investigate various target conditioning and normalization techniques to ensure fair gradient contributions across teachers:
- Baseline & Prior Losses: Evaluates standard MSE, cosine loss, and AM-RADIO’s hybrid cosine + Smooth-L1 objective.
- Standardization & Whitening: Explores global standardization (scalar mean/variance), channel-wise standardization, and decorrelation via ZCA and PCA Whitening.
- Hadamard-based Rotations:
- Hadamard Whitening (HCA): Uses a normalized Hadamard matrix $\mathbf{H}$ as an orthogonal rotation matrix after PCA decorrelation so every dimension explains an identical amount of variance.
- PHI Standardization (PHI-S): Proves that for any mean-centered normal distribution, applying an orthogonal transform $\mathbf{R} = \mathbf{H}\mathbf{U}^\top$ (where $\mathbf{U}$ comes from PCA) equalizes the variance across all dimensions. A single isotropic scalar $\alpha$ then standardizes the distribution without distorting relative feature geometries.
- Zero Runtime Overhead: Because these linear transforms are invertible, the normalization operations are folded directly into the weights and biases of the model's final linear projection layers at inference time.
Datasets
- Training Data: Unlabeled images from DataComp-1B (DC1B).
- Evaluation Benchmarks:
- Classification: ImageNet-1K (Zero-shot text-prompted and $k$-NN).
- Dense Prediction & Segmentation: ADE20k and Pascal VOC (linear probe semantic segmentation), and SAM COCO (zero-shot instance segmentation mIoU).
- 3D Awareness: Probe 3D benchmark (evaluating Depth, Surface Normals, Multi-View consistency, and SPair-71k).
- Vision-Language Integration: LLaVA-1.5 multimodal evaluation on GQA, POPE, TextVQA, and VQAv2.
Key Insights and Ideas
- Whitening fails due to low effective rank: Full whitening (PCA-W, ZCA) led to the worst student performance. Vision foundation models possess an effective rank far lower than their channel dimensionality (e.g., SAM has an effective rank of ~776 vs. 1,280 channels). Inverting near-zero eigenvalues causes severe numerical instability and forces the student to fit noise.
- Hadamard matrices eliminate directional bias: By spreading variance uniformly across coordinates ($R_{ij} = \pm \frac{1}{\sqrt{C}}$), Hadamard transforms ensure that an estimation error along any single axis maps to an equal error magnitude in the unnormalized teacher space.
- Isotropic scaling is superior: Unlike standard per-channel standardization (which shrinks high-variance directions and stretches low-variance directions), PHI-S preserves the internal geometry of the representation space while ensuring every feature dimension shares identical scale.
Key Results
- Lowest Benchmark Rank: In comprehensive evaluations on ViT-B/16 and ViT-L/16 across 10 evaluation categories, PHI-S achieved the best overall average ordinal rank (2.92 for ViT-B and 1.98 for ViT-L), consistently beating standard MSE (7.83 and 3.38) and standard per-channel standardization.
- Beating Larger Models: A ViT-L/16 trained with PHI-S (320M parameters) outperforms the original 653M parameter AM-RADIO ViT-H/16 on:
- ADE20k semantic segmentation: 51.47 vs. 51.34 mIoU.
- LLaVA-1.5 TextVQA: 62.48 vs. 56.32.
- LLaVA-1.5 VQAv2: 81.10 vs. 79.28.
- Teacher Minimization: PHI-S achieved the lowest reconstruction MSE simultaneously across DFN CLIP, SigLIP, and DINOv2 compared to all other normalization methods.
Limitations and Future Work
- Dimensionality Constraints: Hadamard matrices strictly require dimension $C$ to be divisible by 4. While the authors found valid Sylvester and Paley constructions for standard ViT embedding sizes (768, 1024, 1152, 1280, 1408), arbitrary layer widths may lack accessible constructions.
- Distributional Assumptions: The theoretical guarantees rely on assumptions of normality and stationary feature distributions.
- Future Directions: Applying PHI-S to post-hoc model standardization and exploring its interaction with low-bit quantization schemes (such as QuaRot), where balanced channel variance can prevent activation outliers.
Summary updated