Deep networks embed inputs in high-dimensional representations, but how much of this capacity actually drives behavior? We introduce a framework for identifying, at each layer, the subspace of the representation that is functionally sensitive to the task. Using a matrix analogous to the Fisher information but defined over the hidden representation, we rank directions by their influence on downstream computation and project onto the most task-sensitive subspace. Across pretrained vision networks, representations are remarkably compressible: a small fraction of the task-sensitive subspace preserves most performance, often requiring far fewer dimensions than geometric alternatives. We find that this compressed representation is also more robust to adversarial attacks generated on the full network. We additionally show that this decomposition recovers functionally distinct subspaces within the same representation: on cue-conflict stimuli, shape-sensitive and texture-sensitive directions are largely non-overlapping, and ablating one selectively impairs the corresponding task while leaving the other intact. Task-sensitive subspaces also provide a principled foundation for continual learning: constraining gradient updates to lie orthogonal to the task-sensitive subspaces of prior tasks outperforms standard variance-based gradient projection methods. Finally, restricting representational comparisons to task-sensitive subspaces reveals that inter-model alignment is higher in task-sensitive directions than in task-insensitive directions at later layers, and that conditioning on different tasks over the same stimuli uncovers asymmetries that full-space similarity measures cannot detect. Together, these results establish that deep networks compute through a low-dimensional functional spine embedded within a much larger representational space.
Figures & tables
Figure 1: Representations are dramatically compressible along task-sensitive directions. Top-5 ImageNet accuracy drop from baseline when projecting onto the top- r % task-sensitive directions at each layer. + : accuracy exceeds uncompressed baseline.
Figure 2: Task-sensitive compression outperform geometric alternatives at most middle and late layers. Per-layer top-5 ImageNet accuracy vs. retained rank fraction for five compression methods (ViT-B/16). At early layers, PCA and task-sensitivity perform similarly. They diverge from layers 4–6, task-sensitive projections preserve > 93% top-5 at 10% retention while geometric alternatives fall below 35%.
Figure 3: Task-sensitive compression maintains a large advantage under global rank budgets. Top-5 ImageNet accuracy when a total rank budget is distributed across layers via dynamic programming (solid) or uniform allocation (dashed). At 30% global retention, task-sensitivity achieves 89.5% top-5 vs. 15.3% for PCA. Inset: optimal rank allocation across layers at 0.5 retained fraction.
Figure 4: Adversarial Vulnerability of Compressed Representations. Adversarial robustness evaluated across projection methods and compression budgets under PGD-20 attack ( ϵ=4/255 , ℓ∞ ). 4(a) Layer-wise view at four rank fractions. 4(b) Global view under fixed allocation. Dashed line indicates uncompressed robust baseline.
Figure 5: Task-conditioned representational comparison. A–B) Task-sensitive CKA (blue) and null-space CKA (red) are comparable at early layers but diverge at later layers across all subspace ranks. C) Texture-conditioned CKA exceeds shape-conditioned CKA for every network pair.
Figure 6: Task-sensitivity matrices identify functionally specific subspaces. Solid: shape; dashed: texture. A–B) Ablating top eigenvectors of Fshape (A) or Ftexture (B) selectively impairs the corresponding task. C–D) Perturbations along each task’s top eigenvector flip that task’s predictions first.
CIFAR-10 (5 tasks)
CIFAR-100 (20 tasks)
Acc ↑
Fgt ↓
Acc ↑
Fgt ↓
Naive
GPM
FGPM
Joint
Naive
GPM
FGPM
Naive
GPM
FGPM
Joint
Naive
GPM
FGPM
AlexNet
73.5
86.4
86.6
94.2
24.5
7.6
8.3
44.9
61.3
65.3
84.2
39.3
15.7
15.1
AlexNet-L
61.3
71.5
78.8
90.5
34.8
24.3
11.8
54.6
52.0
60.5
79.4
18.8
11.1
5.7
LeNet
83.6
83.9
86.9
92.1
10.5
8.8
6.2
53.8
66.6
70.0
80.9
27.5
8.2
8.0
ResNet-18
76.7
89.2
87.8
94.3
21.8
1.7
7.6
45.2
65.6
64.3
85.7
38.0
11.0
12.4
Table 1: Continual learning with task-sensitive gradient projection (FGPM). We report average final accuracy (Acc, %) and forgetting (Fgt, %) on split CIFAR-10 (5 tasks) and split CIFAR-100 (20 tasks each). For GPM and FGPM, we select the best threshold ε∈{0.9,0.95,0.97} per architecture. Bold : best non-oracle accuracy per row.
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
Figure A.7 : Layer-wise compressibility across ViT architectures. Top-5 ImageNet accuracy difference between compressed and full model as a function of layer index and retained rank fraction, shown for ViT-B/16, ViT-S/16, and ViT-Ti/16 (columns) under task-sensitive, PCA, and random projections (rows). Cells marked + indicate accuracy exceeding the uncompressed baseline. The compressibility advantage of task-sensitivity over geometric alternatives generalizes across all three architectures.
Shape
Texture
Eff. rank (PR)
Principal angle ( ∘ )
Model
Train
Test
Train
Test
Fshape
Ftexture
Median
Range
ViT-B/16
100.0
72.5
100.0
100.0
6.9
7.6
83.2
77.8–89.7
ViT-B/16 (IN-21k)
100.0
71.2
100.0
100.0
8.4
7.7
82.7
72.7–88.7
DeiT3-B/16
100.0
75.0
100.0
100.0
6.9
5.4
83.3
80.0–89.9
ViT-L/16
100.0
79.2
100.0
100.0
5.7
5.4
84.0
78.4–89.8
DINOv2 ViT-B/14
100.0
62.1
100.0
98.3
7.1
6.1
83.4
73.8–89.7
Appendix
Table A.2 : Shape and texture space statistics
Dataset
Architecture
GPM
FGPM
FGPM − GPM
CIFAR-10
AlexNet
72.65 ± 3.47
86.53 ± 0.29
+13.88 ± 3.35
CIFAR-10
AlexNet-L
69.56 ± 0.66
76.00 ± 0.17
+6.44 ± 0.81
CIFAR-10
LeNet
77.74 ± 1.21
86.72 ± 0.22
+8.98 ± 1.10
CIFAR-10
ResNet-18
89.17 ± 0.44
87.16 ± 0.57
− 2.01 ± 0.59
CIFAR-100
AlexNet
62.18 ± 1.48
64.46 ± 1.71
+2.27 ± 2.91
CIFAR-100
AlexNet-L
44.96 ± 2.28
53.66 ± 1.82
+8.70 ± 1.66
Appendix
Table A.3 : Multi-seed comparison of GPM and FGPM across architectures and datasets.
Dataset
Architecture
GPM time (s)
FGPM time (s)
CIFAR-10
AlexNet
309.9±13.1
292.5±13.9
CIFAR-10
AlexNet
316.1±14.9
301.1±13.5
CIFAR-10
LeNet
296.8±14.8
285.4±16.1
CIFAR-10
ResNet-18
1336.7±18.7
677.8±17.6
CIFAR-100
AlexNet
420.9±23.4
416.3±22.0
CIFAR-100
AlexNet
459.6±10.0
462.3±6.1
Appendix
Table A.4 : FGM and FGPM execution times (mean ± std.) across architectures.
Figure A.8 : (Layer-wise alignment Between Projected and Base Representations. Centered Kernel Alignment between compressed and uncompressed representations at each transformer layer, shown as line plots across layers for four fixed retained rank fractions.
Figure A.9 : (Projection Self-Alignment CKA between representations compressed with the same method at different rank fractions and layers. Lighter colors are closer to CKA score of 1 and darker color is closer to 0.
Figure A.10 : (Cross-Projection Representational Similarity. CKA between representations produced by five pairs of projection methods: task-sensitive vs. PCA, PCA vs. local geometry, local geometry vs. geotopology, random vs. task-sensitive, and random vs. PCA. Values are averaged across matched layers and shown as a function of retained rank fraction.