Task-Induced Riemannian Metrics for Vision Transformer Feature Spaces
Andrew Bond, Ege Erdem Özlü, Tuna Çimen, Ilkin Umut Melanlioglu, Tolga Birdal, Erkut Erdem, Aykut Erdem
Abstract
Methods operating on Vision Transformer (ViT) feature spaces typically rely on Euclidean distance or cosine similarity. This assumes that every direction is equally meaningful, but there is no reason to believe the true task geometry has this property. The task-sensitive geometry of the feature space is given by the pullback metric , where is the Jacobian of the decoder's output fed to a task-specific distance, with respect to the features. Storing the full is infeasible at modern scales, and for dense outputs such as depth maps even forming is impractical. We show that whether a low-rank approximation of this metric can be learned depends on the model-decoder pair, and we characterize this with a matrix-free diagnostic computable with a low number of Jacobian-vector products. For tractable pairs, we develop the Spectral Pullback Network (SPN), which learns a low-rank version of the metric from randomized power iteration, and we distill it into a K-parameter importance head that predicts token importance directly from the features. When the Jacobian spectrum is too spread out for a low-rank approximation, passing the decoder's input features through a VAE bottleneck can restore tractability. Across DPT, DINOv2, CLIP, and VGGT backbones, predicts which learned-metric architectures are viable. The importance head reaches Spearman on DINOv2 CLS, and our geometric token pruning reduces the additional depth error of ToMe-based token selection by on DPT depth at prune ratio , without fine-tuning the ViT. Project page: https://cyberiada.github.io/TaskInducedViTs/
Create a lesson
Metadata
- Categories
- cs.CV, cs.LG
Related papers
High-Fidelity Image Matting with Pixel-Space Diffusion Transformers
Shared title terminologycs.CVBaihan Yang, Xin Lin, Yufan Wei et al.
Focus Only on What's Important: Training-Free Focus Maps for Frozen Vision Transformers in Long-Video Object Segmentation
Shared title terminologycs.CVHarsha Karipineni, Rajesh Reddy Chintha
UltraG-Bench: A Multi-task Benchmark for assessing Large Vision-Language Models on Pixel-level Evidence Grounding in Ultrasound
Shared title terminologycs.CVQuanhao Zhu, Bo Xu, Rui Lin et al.
Lightweight Vision Transformer-Based U-Net for Brain Tumor Segmentation from MRI
Shared title terminologycs.CVSheekar Banerjee, Md. Srabon Chowdhury, Md. Mahbub Hasan Akash et al.
Detecting Glaucoma Across Multi-ethnic Myopic and Non-Myopic Populations Using an Uncertainty-Aware Vision Transformer: A Multicentre Model Development and Validation Study
Shared title terminologycs.CVRaghavan Lavanya, Yangqin Feng, Ten Cheer Quek et al.
Seeing Is Not Measuring: Tool-Augmented Metric Spatial Reasoning for Vision-Language Models
Shared title terminologycs.CVKai Glantz, Clemens Grange