Skip to main content
QUICK REVIEW

[Paper Review] Fast Learning Requires Good Memory: A Time-Space Lower Bound for Parity Learning

Ran Raz|arXiv (Cornell University)|Feb 16, 2016
Cryptography and Data SecurityComputer Science7 references16 citations
TL;DR

This paper establishes a time-space tradeoff lower bound for parity learning, proving that any algorithm using less than $\frac{n^2}{25}$ memory bits requires an exponential number of samples to learn a random $n$-bit parity function. The result resolves a conjecture by Steinhardt, Valiant, and Wager, demonstrating that for certain learning problems, large memory is essential for efficient learning, with implications for computational complexity and bounded-storage cryptography.

ABSTRACT

We prove that any algorithm for learning parities requires either a memory of quadratic size or an exponential number of samples. This proves a recent conjecture of Steinhardt, Valiant and Wager and shows that for some learning problems a large storage space is crucial. More formally, in the problem of parity learning, an unknown string $x \in \{0,1\}^n$ was chosen uniformly at random. A learner tries to learn $x$ from a stream of samples $(a_1, b_1), (a_2, b_2) \ldots$, where each~$a_t$ is uniformly distributed over $\{0,1\}^n$ and $b_t$ is the inner product of $a_t$ and $x$, modulo~2. We show that any algorithm for parity learning, that uses less than $\frac{n^2}{25}$ bits of memory, requires an exponential number of samples. Previously, there was no non-trivial lower bound on the number of samples needed, for any learning problem, even if the allowed memory size is $O(n)$ (where $n$ is the space needed to store one sample). We also give an application of our result in the field of bounded-storage cryptography. We show an encryption scheme that requires a private key of length $n$, as well as time complexity of $n$ per encryption/decription of each bit, and is provenly and unconditionally secure as long as the attacker uses less than $\frac{n^2}{25}$ memory bits and the scheme is used at most an exponential number of times. Previous works on bounded-storage cryptography assumed that the memory size used by the attacker is at most linear in the time needed for encryption/decription.

Motivation & Objective

  • To resolve a conjecture by Steinhardt, Valiant, and Wager on the necessity of large memory for efficient parity learning.
  • To establish the first non-trivial lower bound on the number of samples required for learning, even under subquadratic memory constraints.
  • To demonstrate that memory size is a critical bottleneck for learning efficiency in certain problems.
  • To provide a formal time-space tradeoff lower bound for the parity learning problem.
  • To apply the result to bounded-storage cryptography, constructing a scheme secure against adversaries with limited memory.

Proposed method

  • Uses a branching program model to formalize learning algorithms with bounded memory and sample constraints.
  • Applies a probabilistic analysis of affine subspace evolution over random samples to bound the probability of reaching correct solutions.
  • Employs a union bound over possible subspaces to control the probability of incorrect path progression in the branching program.
  • Introduces a layered analysis of the branching program's computation path, tracking dimensionality reduction of subspaces over time.
  • Derives a bound on the success probability of any algorithm by combining memory and sample constraints via combinatorial and information-theoretic arguments.
  • Uses the structure of the parity problem—where each sample reveals a linear equation modulo 2—to model learning as subspace recovery and analyze the likelihood of correct convergence.

Experimental results

Research questions

  • RQ1Can there exist a learning problem that requires either exponential samples or quadratic memory, even when the memory bound is subquadratic?
  • RQ2Is it possible to prove a non-trivial lower bound on the number of samples needed for learning, when memory is restricted to $o(n^2)$ bits?
  • RQ3Does the parity learning problem exhibit a fundamental time-space tradeoff where small memory forces exponential sample complexity?
  • RQ4Can such a time-space tradeoff be leveraged to construct cryptosystems secure against adversaries with limited memory?
  • RQ5Is the conjecture by Steinhardt, Valiant, and Wager—that parity learning requires $\frac{n^2}{4}$ memory or $2^{n/4}$ samples—valid under relaxed constants?

Key findings

  • Any algorithm for parity learning that uses less than $\frac{n^2}{25}$ bits of memory requires an exponential number of samples.
  • The paper proves a time-space tradeoff lower bound: for parity learning, either memory size must be $\Omega(n^2)$ or sample complexity must be $2^{\Omega(n)}$.
  • The success probability of any branching program with width at most $2^{cn^2}$ and length at most $2^{\alpha n}$ is at most $O(2^{-\alpha n})$ for $c < \frac{1}{20}$.
  • The result implies that no efficient learning algorithm exists under subquadratic memory constraints, even with polynomial sample access.
  • A new encryption scheme is constructed that is unconditionally secure as long as the attacker uses less than $\frac{n^2}{25}$ memory bits and the scheme is used at most exponentially many times.
  • The analysis shows that even with $2^{\alpha n}$ samples and $2^{cn^2}$ memory, the success probability decays exponentially in $n$, confirming the necessity of large memory for efficient learning.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.