TL;DR
Just because a deep neural network can represent a function efficiently doesn't mean it can learn it. This paper demonstrates that for two classic compositional functions—the parity function and the Fast Fourier Transform (FFT)—standard gradient-based optimization fails to find efficient deep representations unless the network is initialized extremely close to the known optimal solution.
The Gap Between Existence and Attainability
A cornerstone of deep learning theory is representational efficiency. Researchers have proven that deep networks can represent certain complex functions using exponentially fewer neurons or parameters than shallow networks. This "depth efficiency" is often cited as the primary reason deep learning is so successful.
However, there is a significant gap between existence and attainability. While a perfect, efficient set of weights might exist in the hypothesis space, can standard algorithms like Stochastic Gradient Descent (SGD) actually find them? The authors tackle this "learnability" question by testing whether deep networks can discover the efficient, recursive structures inherent in the parity function and the FFT—two problems where the "perfect" deep solutions are already known.
Experimental Setup
The authors conducted two primary experiments using standard deep learning toolkits on synthetic datasets to test fundamental learnability:
1. The Parity Function
The authors designed a deep network of sigmoidal neurons to compute the $n$-bit parity function (using randomly sampled binary vectors of lengths $n \in \{16, 32, 64, 128\}$). They hand-coded an "optimal" solution based on a tree of XOR gates. To test learnability, they initialized the network at this optimal solution and added varying levels of Gaussian noise.
They also ran a version where the "sparsity pattern" (which weights are non-zero) was fixed, forcing the network only to learn the values of those specific weights. In networks with 32 inputs, the final test error remained high (near 0.5, or random guessing) for almost all initialization noise scales. Only when the noise was nearly zero did the network "stay" in the solution.
2. The Fast Fourier Transform (FFT)
Since the FFT is a linear operation, the authors used a deep linear neural network with inputs drawn from a white noise distribution. They hand-coded the weights to match the $O(n \log n)$ butterfly structure of the FFT algorithm.
They used $L_1$ regularization to encourage the network to find sparse solutions and exploited the linearity of the model to perform full gradient descent. However, networks initialized randomly and trained with sparsity constraints failed to recover this scaling. Instead, they behaved like dense $O(n^2)$ models or failed to reach low error, showing that the optimization process could not "discover" the FFT algorithm's efficiency.
Key Insights
- The "Basin of Attraction" is Tiny: For both parity and FFT, the "efficient" solution acts like a needle in a haystack. Unless the network starts very close to the hand-coded weights, gradient descent drifts toward poor local minima or fails to find the sparse structure entirely.
- Sparsity Isn't a Silver Bullet: Even when the authors "cheated" by telling the network exactly which weights should be non-zero (enforcing the correct sparsity pattern for the parity function), the network still failed to converge if the initial weight values were too far off.
- Optimization vs. Representation: The results confirm that a low approximation error (the ability to represent a function) does not guarantee that a global minimum can be found via local search (gradient descent).
The Performance Paradox and Future Work
This creates a theoretical puzzle: if deep networks struggle to learn these "perfect" compositional functions, why do they work so well on real-world tasks like image recognition?
The authors acknowledge that their study is limited to two specific, highly structured functions. While historically significant in AI theory, they may not represent the "average" task a deep network faces. This suggests that the "compositional" nature of real-world data might be fundamentally different—and perhaps more "learnable"—than the rigid, recursive logic of parity or FFT.
Future directions must explore what mathematically separates a "hard" function like parity from an "easy" function like identifying a cat. Furthermore, the paper suggests that for certain functions to be learned, we might need specific architectural inductive biases (like Convolutions for images) that "force" the right compositional structure, rather than relying on a generic multi-layer perceptron to find it from scratch.
Summary updated