Minimal Perceptrons for Memorizing Complex Patterns

Marissa Pastor, Juyong Song, Danh-Tai Hoang, Junghyo JoarXiv 2015 · DOI

Abstract

Feedforward neural networks are fundamental tools for understanding learning and memory. While it is widely accepted that task difficulty dictates network size, determining the optimal architecture remains an open challenge. This study investigates three-layered neural networks for the memorization of binary patterns. By introducing a novel complexity measure ($K$) based on local neighborhood flips in an $N$-dimensional binary cube, we estimate the minimal number of hidden nodes ($H$) required for storage. We provide mathematical formulations for regular, random, and complex patterns, using Hamming distance to interpolate between ordered and disordered states. Theoretical predictions are validated through extensive simulations using the back-propagation algorithm.

Introduction

In deep learning, selecting the appropriate network architecture is often a heuristic process. While larger networks are generally required for more complex tasks, identifying the absolute minimum size—the smallest network capable of perfect memorization—is a computationally difficult problem. This research addresses this gap by focusing on the memorization of binary patterns in three-layer feedforward networks.

Network Architecture

The study utilizes a standard three-layer perceptron model consisting of an input layer, a hidden layer, and a single output node. The goal is to determine the minimum number of hidden nodes ($H$) necessary to perfectly map $2^N$ input patterns to their corresponding binary outputs.

Figure 1: The three-layer feedforward neural network architecture used to memorize binary patterns.

Complexity Measure and Geometric Strategy

To quantify the difficulty of a pattern, the authors developed a Complexity Index ($K$). This index is derived from the local properties of data points on an $N$-dimensional binary cube. A pattern is considered simple if adjacent vertices share the same output value, whereas frequent flips between 0 and 1 indicate high complexity.

Geometrically, hidden nodes function as hyperplanes that partition the input space. For regular patterns, such as those following parity rules, the required number of hidden nodes scales linearly with complexity ($H \approx K/2$). For random patterns, which contain numerous "impurities" or points that defy simple linear separation, a strategy involving pairs of hyperplanes is employed to isolate these outliers.

Figure 2: Visualization of binary patterns on a 3-cube. (a) A linearly separable pattern divided by a hyperplane. (b) A complex, non-linearly separable pattern.

Classification of Patterns

The researchers categorized patterns into three types:

  1. Regular Patterns: Highly ordered data following global mathematical rules (e.g., parity).
  2. Random Patterns: Data with no underlying structure, representing the maximum storage difficulty.
  3. Complex Patterns: The intermediate regime. These are generated by introducing disorder into regular patterns. The study uses Hamming distance—the number of bit differences between strings—to map these patterns onto a linear scale ($\lambda$), allowing for predictable interpolation of the required hidden layer size.

Results and Validation

Theoretical estimates for the minimal hidden layer size were compared against empirical results obtained via the back-propagation (BP) algorithm. Despite the potential for BP to converge to local minima, ensemble simulations consistently reached the theoretical lower bounds. The results confirmed that for regular patterns, $H$ is approximately half the complexity index. For random patterns, the required size scales based on the ratio of total points to input dimensionality ($2^N / N$).

Conclusion

This work establishes a formal link between the complexity of binary data and the minimal architecture required for its memorization. By bridging the gap between perfectly ordered and completely random patterns, the proposed framework provides a mathematical basis for network design. While currently limited to three-layer architectures and binary inputs, this approach offers a foundation for future studies into generalization and more deep, continuous-value networks.

Summary updated

BibTeX
@misc{pastor2015minimal,
  author = {Marissa Pastor and Juyong Song and Danh-Tai Hoang and Junghyo Jo},
  title = {{Minimal Perceptrons for Memorizing Complex Patterns}},
  year = {2015},
  eprint = {1512.03850},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1512.03850},
}
Figure