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

Tensor Switching Networks

Chuan-Yung Tsai, Andrew M. Saxe, David D. Cox

Abstract

Tensor Switching (TS) networks generalize the standard Rectified Linear Unit (ReLU) activation by allowing hidden units to pass along entire input tensors rather than just single scalars. This architectural shift allows a simple linear readout to "reach back" to the original input across all layers, effectively bypassing the vanishing gradient problem and enabling significantly faster learning than traditional deep networks.

The Problem: Vanishing Gradients and Limited Expressiveness

Deep learning's success is largely built on the ReLU, which acts as a "scalar switch": it either passes a signal forward or blocks it. However, this simplicity comes with a cost. As networks get deeper, the error signal used for training must pass through a long chain of layers, often leading to the vanishing gradient problem, where the signal becomes too weak to effectively update early layers.

Furthermore, a standard ReLU unit is limited in its expressiveness; when active, it only conveys a single scalar value (a rank-1 mapping). By "severing" the decision to activate from the actual information being passed, we can create models that are both more expressive and easier to train.

Methods: The Tensor Switching Unit

The core innovation of this paper is the Tensor Switching (TS) unit.

  • Standard ReLU (Scalar Switching): If the input $X$ meets a threshold, the unit outputs a scalar value $w^TX$.
  • TS-ReLU: If the input $X$ meets a threshold, the unit copies the entire input vector (or tensor from the previous layer) to its output. If not, it outputs zeros.
Comparison of Scalar Switching (standard ReLU) and Tensor Switching architectures.

By doing this, the network creates a massive, expanded representation where the input is "switched" into different slots based on which hidden units are active. Because the input is preserved rather than collapsed into a scalar, a linear classifier at the end of the network has direct access to the original input data, parcellated by the activation patterns of the hidden layers.

The authors propose three ways to train these networks:

  1. One-pass Ridge Regression: Use random activation weights and solve for the final readout weights analytically in a single pass over the data.
  2. Inverted Backpropagation: A novel "pseudo-gradient" method that allows training the activation weights by mimicking the behavior of standard networks while maintaining the TS advantage.
  3. Linear Rotation-Compression: A GPU-friendly version that flattens the expanded tensors and projects them back to a manageable size, making it compatible with standard deep learning libraries.

Key Insights

  • Direct Input Access: Because TS networks don't "contract" the signal into scalars at every layer, the final readout doesn't have to wait for gradients to trickle down through a deep hierarchy. It can "see" the input immediately, which is why it learns so much faster in the early stages of training.
  • Fine-grained Modeling: A single TS unit is mathematically more powerful than a standard ReLU unit. While a ReLU unit can only represent a simple linear relationship, a TS unit can implement any full-rank linear map between input and output.
  • Kernel Divergence: The authors derived "equivalent kernels" for infinitely deep TS networks. They found that while standard deep ReLU kernels eventually "collapse" (treating different inputs as the same), TS kernels become increasingly "sharp." This results in a quasi-nearest-neighbor behavior that is highly discriminative.

Experimental Results

The researchers evaluated their approach on three standard computer vision benchmarks: MNIST, CIFAR10, and SVHN (Street View House Numbers).

  • Faster Convergence: In almost every test, TS networks achieved lower error rates after just one epoch ("one-pass") than standard ReLU networks. For example, on MNIST, a TS MLP achieved ~3% error in one pass, while a standard MLP was still at ~16%.
  • Superior Accuracy: Asymptotically (after many training epochs), TS networks generally outperformed their standard counterparts. On SVHN, the TS CNN achieved a 5.06% error rate compared to 4.96% for the SS CNN, but the TS version reached its peak performance much earlier in the training process.
Training curves comparing Error Rate over time for Tensor Switching (TS) vs. Scalar Switching (SS) networks.
  • Expressiveness with Randomness: The "One-pass Ridge Regression" results were particularly striking; even with completely random, untrained hidden layers, the TS network's linear readout was powerful enough to compete with fully trained standard networks.

Limitations and Future Work

The primary trade-off for the TS network's power is representation size. Because the network copies tensors rather than scalars, the memory requirements grow exponentially with depth if not managed. While the "Linear Rotation-Compression" method helps mitigate this, deep TS networks are still more computationally expensive than standard ones.

Additionally, the "sharpness" of deep TS kernels can be a double-edged sword. While it makes the network highly discriminative, it can hurt the network's ability to recognize objects that are visually different but belong to the same category (invariant recognition). Future work aims to improve scalability through custom GPU kernels that exploit the sparsity of TS representations and to explore better regularization techniques.

Summary updated

BibTeX
@inproceedings{tsai2016tensor,
  author = {Chuan-Yung Tsai and Andrew M. Saxe and David D. Cox},
  title = {{Tensor Switching Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2016},
  url = {https://openreview.net/forum?id=SkZXH_Zd-r},
}
Figure