Learning Boolean Circuits with Neural Networks

Eran Malach, Shai Shalev-ShwartzarXiv 2019

Abstract

While training neural networks is theoretically NP-hard, gradient-based optimization succeeds in practice across diverse domains. This paper bridges this gap by introducing the Local Correlation Assumption (LCA), a statistical property of data distributions where local input patterns correlate with the target label. We demonstrate that under the LCA, deep tree-structured networks can efficiently learn Boolean circuits using layerwise gradient descent. Our findings provide a formal justification for the success of deep architectures over shallow ones in learning hierarchical functions like parity on biased distributions.

Introduction

A persistent challenge in machine learning theory is explaining why simple algorithms like Stochastic Gradient Descent (SGD) efficiently find global minima in high-dimensional, non-convex landscapes. The "parity problem"—determining if the number of active bits in a subset is even or odd—serves as a benchmark for this difficulty. On uniform distributions, parity features have zero correlation with the label, rendering them invisible to local search algorithms. This paper argues that the learnability of such functions depends on the underlying data distribution and the presence of local signals that guide the optimization process.

The Local Correlation Assumption (LCA)

The authors propose the Local Correlation Assumption (LCA) as the key to learnability. A distribution satisfies the LCA for a specific Boolean circuit if every influential gate in that circuit maintains a non-negligible correlation with the final output label. Essentially, the LCA ensures that there is a "gradient signal" at every level of the hierarchy, preventing the optimization from getting stuck in regions with zero gradient.

Methodology: Neural-Gate Architectures

To analyze the learning process, the researchers utilize a hierarchical approach:

  1. Tree-Structured Circuits: Target functions are modeled as full binary trees of Boolean logic gates.
  2. Neural-Gates: Each discrete logic gate is replaced by a small, two-layer ReLU sub-network (a "neural-gate").
  3. Layerwise Training: Instead of end-to-end backpropagation, the network is trained one layer at a time, from the input upwards. This modular approach allows for rigorous mathematical proofs of convergence while remaining representative of practical training dynamics.
Figure 6: (a) A single 'neural-gate' sub-network and (b) the full tree-structured architecture used to learn Boolean circuits.

Key Results and Depth Separation

The paper provides both theoretical proofs and empirical validation for the necessity of depth and the role of correlation.

The Power of Biased Distributions

A central insight is that even a slight bias in the input distribution (e.g., bits having a 0.6 probability of being 1 instead of 0.5) can transform a "hard" problem into an "easy" one. In the case of parity, a biased distribution introduces the local correlations required by the LCA.

Figure 1: Comparison of training accuracy on biased vs. uniform distributions. A small bias allows the network to find the signal and achieve perfect accuracy, whereas it fails on uniform data.

Depth and Expressivity

The authors identify a class of AND/OR circuits that exhibit a "depth separation" property. While a shallow (two-layer) network would require an exponential number of neurons to represent these functions, a deep network can represent them compactly. More importantly, the paper proves that these deep networks can learn these functions in polynomial time and sample complexity, provided the LCA holds.

Conclusion

This work highlights that the success of deep learning is not just a matter of representational power, but of learnability. By identifying the Local Correlation Assumption, the authors provide a framework for understanding how hierarchical architectures exploit local signals in data. While the current analysis focuses on tree-structured circuits, it lays the groundwork for future exploration into more general architectures like CNNs and the role of local correlations in natural datasets like ImageNet.

Summary updated

BibTeX
@misc{malach2019learning,
  author = {Eran Malach and Shai Shalev-Shwartz},
  title = {{Learning Boolean Circuits with Neural Networks}},
  year = {2019},
  eprint = {1910.11923},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1910.11923},
}
Figure