Network Generality, Training Required, and Precision Required

John S. Denker, Ben S. WittnerNeurIPS 1987

Introduction: The Generality Paradox

A foundational question in deep learning is how a neural network's architecture dictates its ability to generalize. Emerging from the late 1980s, this theoretical research establishes a fundamental information-theoretic trade-off: a network cannot be both "perfectly general" (capable of learning any arbitrary function) and "highly efficient" (capable of generalizing from a small number of examples).

The authors address three core questions:

  1. How many distinct functions can a specific network architecture actually implement?
  2. How much analog precision (bits per weight) is practically useful before becoming redundant?
  3. How many training examples are required before a network's predictions on unseen data can be trusted?

At the heart of this inquiry is the Generality Paradox. If a network is powerful enough to implement any possible truth table, it effectively possesses no "prior knowledge." Consequently, to "learn" a function, it would need to see every single possible input-output pair, rendering the concept of generalization entirely moot.

The Ensemble Viewpoint

Rather than viewing learning as the incremental adjustment of weights in a single network, the authors introduce the Ensemble Viewpoint. They conceptualize a massive ensemble of network replicas, all sharing the same architecture but possessing different weight configurations.

In this framework, learning is redefined as a process of elimination, or "winnowing":

  • Categorization: Networks are grouped into "bins" based on the specific Boolean functions they implement.
  • Winnowing: As training data is introduced, any bin (and therefore any function) that disagrees with a training example is immediately discarded.
  • Entropy Calculation: The initial entropy, denoted as $S_0$, is defined as the number of bits required to specify which bin a network belongs to. This is estimated using combinatorial counting, carefully accounting for architectural symmetries. For instance, swapping the order of hidden units (permutation) or flipping their polarities does not change the network's overall function.

Key Insights: Precision, Symmetries, and The Cost of Power

By analyzing networks through this information-theoretic lens, several critical insights emerge regarding network capacity and precision:

  • The Cost of Power: A truly general network—one capable of representing all $2^{2^N}$ possible functions for $N$ bits—requires $2^N$ training examples to learn. Because there are only $2^N$ possible inputs in total, such a network requires 100% of the data to "generalize," which is a logical contradiction.
  • Symmetry Redundancy: The number of unique functions a network can implement is vastly smaller than its raw number of weight combinations. Because hidden units can be permuted ($N!$ ways) and their polarities flipped ($2^N$ ways), many distinct weight settings map to the exact same input-output behavior.
  • Logarithmic Precision: The authors identify a crossover point for weight precision, arguing that the number of "useful" bits ($b^*$) scales logarithmically with the number of connections ($N$). For storing the final function, 32-bit or 64-bit precision is often overkill; the dynamic range only needs to be comparable to the number of inputs to a unit.
  • Guard Bits: While high precision is unnecessary for the final stored function, the authors note that the process of learning (such as backpropagation) may still require temporary "guard bits" to accurately accumulate small gradient updates.

Theoretical Results

The paper formalizes these insights by deriving an approximation for the number of implementable Boolean functions ($2^{S_0}$) in a fully connected network with $L$ layers and $N$ units per layer:

$$2^{S_0} \approx \frac{2^B}{N! 2^N}$$

Here, $B$ represents the total bits of specification, approximated as $B \approx LN^2 \log N$.

The most significant qualitative takeaway is the winnowing rule. To reach a state where only one consistent function remains—guaranteeing reliable generalization—the number of training examples $m$ must be roughly proportional to the initial entropy $S_0$. If $m < S_0$, the network has not seen enough data to distinguish between multiple valid-looking functions, and generalization cannot be trusted.

Limitations

Because this is a purely theoretical work grounded in abstract Boolean logic, it carries several limitations:

  • Discrete Focus: The core arguments rely on discrete inputs and outputs. While continuous-valued networks are acknowledged, the counting-based entropy model is difficult to apply directly to purely analog systems.
  • Ignoring Learning Dynamics: The ensemble viewpoint elegantly describes capacity but ignores the "search" problem. It assumes we can perfectly winnow the ensemble, whereas practical algorithms like backpropagation can get stuck in local minima or fail to find the correct functional bin.
  • Restricted Units: The mathematical derivations depend on the assumption that units use monotone functions of weighted sums (e.g., sigmoids or thresholds). Employing different activation functions could alter the underlying entropy calculations.

Summary updated

BibTeX
@inproceedings{denker1987network,
  author = {John S. Denker and Ben S. Wittner},
  title = {{Network Generality, Training Required, and Precision Required}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {1987},
}
Figure