A General Memory-Bounded Learning Algorithm

Michal Moshkovitz, Naftali TishbyarXiv 2017

Abstract

This paper introduces a general-purpose algorithm for learning with bounded memory, filling a critical gap in a field previously dominated by impossibility results. By defining a new combinatorial property called separability (the "anti-mixing" property), we demonstrate that if a hypothesis class is separable and the data distribution is known, it can be learned using significantly less memory than traditional methods. We provide a general upper bound and demonstrate quadratic efficiency gains for specific classes like decision lists.

Introduction

In the era of big data and edge computing, learning from massive streams of information on devices with limited RAM—such as mobile phones or IoT sensors—is a necessity. While classical learning theory provides bounds on sample complexity, it often ignores the memory constraints of the learner. Prior research focused heavily on "lower bounds," using the property of "mixing" to prove that certain tasks are impossible with limited memory because the learner "forgets" previous observations. This paper addresses the inverse: designing a general algorithm that succeeds when memory is tight.

Methodology

The proposed General Bounded-Memory Learning Algorithm operates through a framework of iterative pruning and aggregate statistics.

Bipartite Graph Representation and Pruning

The hypothesis class is represented as a bipartite graph where nodes represent examples and hypotheses. An edge exists if a hypothesis labels an example as "1". The algorithm maintains a set of candidate hypotheses $T$ and aims to remove a large fraction of $T$ in each step.

The algorithm iteratively prunes the hypothesis space $\mathcal{H}$ by identifying subsets that do not match observed data statistics.

The Separability Oracle

The algorithm relies on separability. If the current set of candidates is not "tight" (i.e., they are not all very similar), an oracle identifies a subset of examples $S$ that behaves differently for different groups of hypotheses. Instead of storing individual examples, the algorithm performs density estimation, saving only the "important bits"—specifically, an estimate of the density of edges between the examples and the true hypothesis.

Theoretical Insights

The most significant conceptual contribution is defining separability as "anti-mixing." If mixing makes a class unlearnable with low memory, separability is the structural property that allows a learner to distinguish between hypotheses using only aggregate information.

Separability illustrated for threshold functions: distinct regions $T_1, T_2, T_0$ allow the learner to distinguish between candidate hypotheses.

Furthermore, the algorithm is compatible with Statistical Queries (SQ). It does not need to inspect individual examples directly but rather looks at aggregate statistics, making it naturally robust to random classification noise.

Key Results

The authors establish a general upper bound, proving that any $(\alpha, \epsilon)$-separable class can be learned with $O(\log |H| \cdot \frac{1}{\alpha^2})$ bits of memory. For specific classes, the gains are substantial:

  • Decision Lists: The algorithm uses $O(n \log \frac{1}{\epsilon})$ bits, a quadratic improvement over previous specialized algorithms requiring $O(n^2 \log n \cdot \frac{1}{\epsilon})$.
  • Mathematical Classes: The paper proves that discrete threshold functions and equal-piece classifiers also satisfy the separability condition.

Discussion and Future Work

While this work provides a counterpart to the VC-dimension for bounded-memory learning, several challenges remain. A major limitation is the requirement of a known underlying distribution. Extending this to distribution-independent learning is a significant open problem. Additionally, while "separability" is related to the negation of mixing, a full characterization—a single condition that is both necessary and sufficient—is still sought. Finally, the computational complexity of the "separability oracle" for highly complex classes warrants further investigation.

Summary updated

BibTeX
@misc{moshkovitz2017general,
  author = {Michal Moshkovitz and Naftali Tishby},
  title = {{A General Memory-Bounded Learning Algorithm}},
  year = {2017},
  eprint = {1712.03524},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1712.03524},
}
Figure