TL;DR
"Teleportation" is an optimization technique that accelerates deep learning training by moving model parameters within a loss-invariant level set to find regions with better geometric properties. This paper introduces a novel null-space gradient projection method that eliminates the heavy computational overhead of prior approaches, making teleportation highly efficient and generalizable to advanced architectures like CNNs and Transformers for the first time.
What Problem Does This Paper Address?
Modern deep learning models are highly over-parameterized, meaning many different combinations of network weights can yield the exact same loss value. These combinations form a "loss-invariant level set." Teleportation algorithms exploit this by moving parameters along this level set to find regions with a higher gradient norm, effectively escaping flat regions and accelerating convergence.
However, existing teleportation methods suffer from two major flaws:
- Limited Generalizability: They rely on specific algebraic group actions tailored exclusively for Multi-Layer Perceptrons (MLPs), making them difficult to extend to Convolutional Neural Networks (CNNs) or Transformers.
- High Computational Cost: They require expensive pseudo-inverse matrix operations, leading to poor scaling. Alternative methods that use linear approximations of the level set suffer from severe error accumulation over multiple steps.
This paper addresses these bottlenecks by proposing a general framework that projects the teleportation gradient directly onto the layerwise input null space, ensuring accurate level-set navigation with minimal computational cost.
Methods
The authors introduce Teleportation with Input Null Space Gradient Projection. Instead of relying on complex group transformations, they optimize the weights directly to maximize the primary task's gradient norm. To ensure the primary loss doesn't change during this optimization, they perform a gradient projection trick:
- Construct a Representation Matrix: During a forward pass, they collect the inputs to each layer for a random batch of data.
- Singular Value Decomposition (SVD): They apply SVD to this representation matrix to partition the gradient space into two orthogonal subspaces: the Core Gradient Space (CGS), which contains the significant representations, and the Residual Gradient Space (RGS), which acts as the input null space.
- Null Space Projection: They project the gradient of the teleportation objective function onto the RGS. Because the RGS is orthogonal to the core feature space, updating the weights along this projected gradient alters the network's internal parameters (boosting the gradient norm) without changing the overall loss value.
Crucially, this method removes the mathematical dependency on the number of teleportation steps ($t$), reducing the time complexity from $O(d^2nlbt)$ to $O(d^2nlb)$, where $d$ is the feature dimension, $n$ is batch size, $l$ is the number of layers, and $b$ is the number of batches.
Datasets
The authors evaluated their algorithm across a diverse suite of standard benchmarks:
- Image Classification: MNIST, FashionMNIST, CIFAR-10, CIFAR-100, and Tiny-ImageNet.
- Multi-variate Time Series Forecasting: Electricity and Traffic datasets.
- Language Modeling: Penn Treebank (PTB).
Key Insights and Ideas
- Gradients Naturally Live in the Input Space: The authors mathematically prove that for MLPs, CNNs, and attention mechanisms, the gradient of the teleportation objective function naturally resides within the space spanned by each layer's inputs.
- The Abundance of the Null Space: SVD analysis reveals that a vast majority of input variance is captured by a relatively small proportion of total dimensions (the CGS). This leaves a clean, high-dimensional null space (the RGS) perfectly suited for teleportation without degrading the primary loss.
- Optimizer Agnosticism: Unlike previous teleportation studies that only evaluated vanilla Stochastic Gradient Descent (SGD), this null-space projection method works seamlessly with modern first- and second-moment optimizers like Momentum, Adagrad, and Adam.
Key Results
- Faster Convergence: Across all architectures (MLPs, CNNs, Transformers) and datasets, adding teleportation consistently led to faster training convergence and lower final training losses.
- Negligible Computational Overhead: The time cost of performing the null-space projection is minimal compared to standard gradient descent steps.
- Superior Scaling: As shown in runtime scaling experiments, the proposed algorithm achieves near-constant runtime relative to batch size and feature dimension, vastly outperforming the polynomial scaling of older symmetry teleportation methods.
Limitations and Future Work
- Hyperparameter Sensitivity: The selection of optimal hyperparameters—such as the teleportation learning rate ($\eta_{tele}$) and the exact epoch schedule ($K$)—remains challenging and varies across different datasets and model architectures. The authors note that developing a universal hyperparameter selection strategy is a key direction for future work.
- Unrealized Parallelization: Because the null-space projection is layer-independent, the computations could theoretically be parallelized across all layers simultaneously to achieve even greater speedups. However, the authors leave this engineering optimization for future implementation.
Summary updated