The "Zero-Gradient" Problem
Training neural networks with threshold (step) activation functions has long been considered a "forbidden fruit" in deep learning. Modern neural networks rely heavily on gradient signals to update weights via backpropagation. However, the derivative of a step function is zero everywhere except at the jump, where it is undefined. This "zero-gradient" problem renders standard Gradient Descent useless.
Despite this, hardware engineers and biologists highly prefer threshold activation functions. These simple step functions (outputting 0 or 1) are incredibly energy-efficient for hardware, requiring only bitwise operations, and they more closely resemble how biological neurons actually fire. To train these networks, researchers typically resort to heuristics like the Straight-Through Estimator (STE), which "pretends" the gradient is a non-zero value during the backward pass. Unfortunately, these heuristics are unstable, highly sensitive to initialization, and offer no guarantees of finding a good—let alone globally optimal—solution.
This paper proves that we can bypass gradients entirely. By reformulating the training of threshold networks as a convex optimization problem (specifically, a LASSO-style problem), these networks can be solved to global optimality in polynomial time.
A Geometric Approach to Training
The authors move away from local search methods like gradient descent and instead leverage global geometry. Their methodology relies on several key insights:
- Hyperplane Arrangements: Instead of focusing on continuous weight values, the authors define the discrete "patterns" a neuron can create. For a given dataset, there are a finite number of ways a linear boundary (hyperplane) can split the data points into two groups. These are known as hyperplane arrangements.
- Convex Reformulation: They mathematically prove that training a two-layer threshold network with weight decay is equivalent to a standard LASSO problem. The optimization shifts from "searching for weights" to "selecting which combination of fixed hyperplane patterns best reconstructs the target labels."
- Scaling to Depth: This framework is extended to $L$-layer networks. While the number of possible patterns grows with depth, the underlying problem remains a convex Lasso-style optimization.
- The "Shattering" Regime: The authors derive a simplified convex formulation for cases where the network is wide enough to "shatter" the dataset (i.e., represent any possible labeling). Interestingly, deeper networks require significantly fewer neurons per layer ($O(\sqrt{n}/L)$) to reach this shattering regime compared to shallow ones, providing a geometric justification for the benefits of depth.
Key Results
The authors validated their theoretical findings across synthetic datasets, image classification tasks (MNIST, CIFAR-10), and 11 diverse datasets from the UCI Machine Learning Repository.
Superior Training and Global Optimality
Unlike Gradient Descent, which can easily get stuck in local minima, the proposed convex programs are guaranteed to find the global minimum of the regularized training objective. In every test case, the convex approach achieved a lower objective value than the non-convex STE heuristic, regardless of how the non-convex method was initialized.
Better Generalization
Beyond just minimizing the training objective, the convex formulation translates to better real-world performance. On 13 real-world datasets, the "Convex-Lasso" approach achieved the highest test accuracy on 9 of them, whereas the best non-convex heuristic (STE or its variants) only won on 4.
Furthermore, the proposed method is highly efficient. For fixed-rank data, it runs in polynomial time. In the "complete arrangement" regime, the problem simplifies so significantly that it can be solved in $O(n)$ time.
Limitations and Future Work
While a major theoretical leap, the approach has practical limitations. The number of hyperplane arrangements depends heavily on the rank of the data matrix. For very high-dimensional, high-rank data, enumerating all arrangements becomes computationally expensive, necessitating subsampling heuristics.
Additionally, while the convex problem identifies the optimal hidden layer representations, reconstructing the specific weights for the early layers still requires solving a system of linear inequalities. Finally, the current proofs focus on fully connected parallel architectures; extending these global optimality guarantees to complex architectures like CNNs or Transformers remains an exciting open challenge.
Summary updated