Compressible Representations: Functional Spines in Deep Neural Networks

Niranjan Rajesh, Meenakshi Khosla

TL;DR

Deep neural networks build massive, high-dimensional internal representations, yet almost all of their actual decision-making travels along a tiny, low-dimensional "functional spine." By ranking activation directions based on how much they causally influence the network's output—rather than how much statistical variance they carry—we can throw away 90% of a middle layer's dimensions without losing accuracy. Isolating this spine simultaneously improves adversarial robustness, protects against catastrophic forgetting in continual learning, and fixes blind spots in how we compare different models.

What Problem Does This Paper Address?

We have known for years that neural networks are bloated in their weight space—you can prune away most parameters and the model still works fine. Whether networks are similarly bloated in their activation (representational) space has remained much murkier.

Normally, when researchers want to compress activations or compare how two different networks "think" (using tools like PCA or Centered Kernel Alignment, CKA), they look at the geometry of the data. They assume the directions with the biggest swings in variance are the ones doing the heavy lifting. What if a network shouts along behaviorally useless directions and whispers the actual answer along low-variance ones? Standard geometric tools cannot tell the difference between representational noise and functional signal. The authors set out to separate what a representation looks like geometrically from what it actually does causally.

Methods

To find the directions that actually drive behavior, the authors introduce the task-sensitivity matrix ($F_\ell^g$). For a given layer, they compute the Jacobian of the network's final output (e.g., class logits) with respect to that layer's hidden activations, averaged across input samples. Intuitively, if you nudge a hidden state along a specific direction, the top eigenvectors of this matrix tell you which directions cause the biggest ripples at the output—a hidden-layer cousin of the Fisher Information Matrix.

By projecting activations onto the top-$r$ eigenvectors of this matrix mid-network, they isolate the functional spine. They benchmark this causal intervention against standard random projections and three purely geometric compression criteria:

  • PCA (preserves global variance).
  • Local-neighborhood (preserves $k$-nearest-neighbor graph structure).
  • Geotopology (acts as a band-pass filter to preserve intermediate-range relational distances).

They also adapt this matrix into a continual learning algorithm called Fisher GPM (FGPM). Standard Gradient Projection Memory (GPM) prevents forgetting by forcing new weight updates to be orthogonal to the high-variance directions of old tasks; FGPM instead protects the high task-sensitivity directions.

Datasets

The authors evaluate their framework using established vision benchmarks (no new datasets are introduced):

  • ImageNet (and ImageNet-21k pretrained weights) for compression, adversarial robustness, and inter-model CKA comparisons.
  • Stylized/Cue-Conflict ImageNet (Geirhos et al., 2018)—images like a cat's silhouette rendered in elephant skin—to disentangle shape vs. texture subspaces.
  • Split CIFAR-10 (5 tasks) and Split CIFAR-100 (20 tasks) for continual learning benchmarks.

Key Insights and Ideas

  • Variance $\neq$ Importance in deeper layers: Early in a network, high-variance directions align well with task-relevant ones. By the middle layers, they divorce completely. Downstream computation relies heavily on subtle, low-variance directions that geometric methods like PCA immediately throw in the trash.
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%.
  • Distinct tasks live on orthogonal spines: Within the exact same layer and over the exact same images, "shape" and "texture" computations occupy largely non-overlapping subspaces. You can surgically ablate a network's ability to recognize shape while leaving texture recognition virtually untouched, and vice versa.
  • Standard model comparisons are diluted by "null" space: Full-space similarity metrics like CKA average over everything. Restricting CKA to task-sensitive spines reveals that different ViT architectures align much more on task-relevant directions than on inert ones—and agree far more on texture than on shape.
  • Redundancy breeds fragility: Adversarial attacks crafted on the full network struggle to transfer when activations are squeezed through the functional spine, suggesting perturbations exploit behaviorally redundant directions.

Key Results

  • Extreme Compressibility: In a pretrained ViT-B/16 (95.1% baseline top-5 accuracy), keeping just 10% of the dimensions (77 of 768) at layer 7 preserves 94.1% accuracy. At layer 6 (10% retention), task-sensitive compression hits 93.8%, while PCA, Local, and Geotopology crash to 27.9%, 29.8%, and 30.4%, respectively.
Figure 1: Representations are dramati- cally 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 base- line.
  • Global Compression: Compressing all layers simultaneously to a 30% total rank budget via dynamic programming yields 89.5% top-5 accuracy for task-sensitive compression, versus 15.3% for PCA and 16.9% for geotopology.
  • Task-Conditioned Alignment: On cue-conflict stimuli, inter-model CKA across vision transformers ranges from 0.51–0.89 along texture-sensitive directions, but drops to 0.10–0.53 along shape-sensitive directions.
  • Continual Learning: FGPM beats or matches variance-based GPM on 6 of 8 architecture-dataset pairs. On 20-task Split CIFAR-100, FGPM boosts final accuracy over GPM by +8.5 points on AlexNet-L, +4.0 on AlexNet, and +3.4 on LeNet.

Limitations and Future Work

Because the task-sensitivity matrix relies on local Jacobians, it is ultimately a linear, second-order approximation. It misses nonlinear cross-layer interactions, and its estimation quality can degrade in very early layers far from the output. Furthermore, FGPM slightly trailed standard GPM on ResNet-18, likely because per-sample Jacobians clash with the running statistics of Batch Normalization layers.

Looking ahead, the authors propose mapping functional spines inside Large Language Models—testing whether skills like syntax, factual recall, and math share spines, and whether spine overlap predicts fine-tuning interference. Finally, it leaves open a tantalizing theoretical puzzle: if a network only uses 10% of its representational space to act, what is the other 90% doing during training—perhaps acting as scaffolding for plasticity?

Summary updated

Abstract

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. We benchmark this behaviorally grounded compression against three geometric alternatives that preserve variance, local neighborhood structure, or global topology. We investigate the utility of the task-sensitive subspace across a range of domains concerned with network representations. 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, that these spines differ across tasks, and that they provide a unifying basis for compression, continual learning, and representational comparison.
BibTeX
@inproceedings{rajesh2026compressible,
  author = {Niranjan Rajesh and Meenakshi Khosla},
  title = {{Compressible Representations: Functional Spines in Deep Neural Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=El13WPr9FG},
}
Figure