NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Tangent Space Separability in Feedforward Neural Networks

Bálint Daróczy, Rita Aleksziev, András A. BenczúrarXiv 2019 · DOI

Abstract

Hierarchical neural networks are exponentially more efficient than their corresponding "shallow" counterparts with the same expressive power, but involve a huge number of parameters and require tedious amounts of training. By approximating the tangent subspace, we suggest a sparse representation that enables switching to shallow networks, GradNet, after a very early training stage. Our experiments show that the proposed approximation of the metric improves and sometimes even surpasses the achievable performance of the original network significantly even after a few epochs of training the original feedforward network.

Introduction

Deep hierarchical neural networks are the gold standard for performance in modern machine learning, but they come with a significant computational "tax": they require massive parameter counts and extensive training time to converge. Conversely, shallow networks are easier to reason about and faster to train but often lack the expressive power to handle complex datasets like CIFAR-10.

This research explores a middle ground rooted in information geometry. It investigates whether a "snapshot" of what a deep network has learned early in its training process can be used to power a simpler, more efficient model. Specifically, the authors look at the tangent space—the way the network's loss changes with respect to its parameters—to see if it provides a more separable representation of data than the raw features themselves.

Methodology

The core contribution of this work is GradNet, a framework that shifts the learning task from the original parameter space to the tangent bundle of the network's manifold.

Gradient Representation and Sparsification

Instead of using the output of a hidden layer as a feature vector, GradNet utilizes the partial derivatives (gradients) of the loss function with respect to the network's parameters. Because gradients in deep networks are high-dimensional, the authors apply "per-sample sparsification." By keeping only the most significant gradients (e.g., those in the top 85th or 90th percentile of absolute value) and discarding the rest, the model retains predictive power while drastically reducing dimensionality.

The GradNet pipeline: from a simple DNN to sparsified gradient representations.

GradNet Architecture

GradNet is a shallow, multi-layer network designed to process these sparsified gradients. It employs a block-like structure to capture connections between gradients from adjacent layers of the original "base" network. To generate these gradient features without knowing true labels during inference, the model uses a heuristic involving random label assignments to probe the loss surface.

The GradNet architecture, illustrating the concatenation of gradients from the base network into a shallow linear structure.

Experimental Results

The researchers evaluated GradNet on two classic computer vision benchmarks: MNIST (70,000 handwritten digits) and CIFAR-10 (60,000 color images). They used these datasets to train "base" models (standard CNNs, ResNets, and DenseNets) and then used those models to feed GradNet.

Key Insights

  • Early-Stage Superiority: GradNet's performance boost is most dramatic when the base network is "weakly trained." This suggests that the geometry of the loss surface is established very early in the training process, long before weights reach optimal values.
  • Sparsity is Sufficient: Retaining only the "important" edges in the gradient graph (highest absolute values) is sufficient for high-quality feature representation.
  • Optimization and Regularization: Standard Stochastic Gradient Descent (SGD) consistently outperformed Adam when training GradNet. Furthermore, traditional regularization like Dropout was often unnecessary because the gradient representation is inherently robust.

Quantitative Performance

The gains are particularly substantial for under-trained models:

  • CIFAR-10: For a base CNN achieving only 49% accuracy, GradNet pulled performance up to 67.8% (a +38.3% gain). Even as the base network reached 79% accuracy, GradNet provided a boost to 82.89%.
  • MNIST: GradNet achieved 99.14% accuracy using gradients from a base model that was at 98.94%.

Conclusion

GradNet demonstrates that the tangent space of a neural network contains highly separable information that can be extracted early in training. While handling gradients is computationally intensive, sparsification makes the approach feasible. Future work may involve extending this to Hessian metrics (second-order derivatives) to provide even richer geometric information about the data manifold.

Summary updated

BibTeX
@misc{daroczy2019tangent,
  author = {Bálint Daróczy and Rita Aleksziev and András A. Benczúr},
  title = {{Tangent Space Separability in Feedforward Neural Networks}},
  year = {2019},
  eprint = {1912.09306},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1912.09306},
}
Figure