Provable Advantage of Curriculum Learning on Parity Targets with Mixed Inputs

Emmanuel Abbe, Elisabetta Cornacchia, Aryo Lotfi

Abstract

Experimental results have shown that curriculum learning, i.e., presenting simpler examples before more complex ones, can improve the efficiency of learning. Some recent theoretical results also showed that changing the sampling distribution can help neural networks learn parities, with formal results only for large learning rates and one-step arguments. Here we show a separation result in the number of training steps with standard (bounded) learning rates on a common sample distribution: if the data distribution is a mixture of sparse and dense inputs, there exists a regime in which a 2-layer ReLU neural network trained by a curriculum noisy-GD (or SGD) algorithm that uses sparse examples first, can learn parities of sufficiently large degree, while any fully connected neural network of possibly larger width or depth trained by noisy-GD on the unordered samples cannot learn without additional steps. We also provide experimental results supporting the qualitative separation beyond the specific regime of the theoretical results.

Introduction

In human education, pedagogical structures often follow a progression from simple concepts to complex applications. This "easy-to-hard" strategy, known in machine learning as Curriculum Learning (CL), has been empirically shown to improve training efficiency in domains like computer vision and natural language processing. However, theoretical justification for why CL provides a fundamental advantage—rather than just a minor speedup—has remained elusive. Does it actually enable a network to learn something it couldn't otherwise, or does it simply accelerate convergence?

This research provides a theoretical "smoking gun" for CL by demonstrating a provable separation in training complexity for parity functions. By studying these classic "hard" problems, the authors show that presenting sparse, "easy" examples first allows neural networks to learn in significantly fewer steps and with far fewer samples than standard random-order training.

The Learning Challenge: Parity Functions

Parity functions (think of a high-dimensional XOR function) are notoriously difficult for gradient-based learning. On a standard uniform distribution, the gradient signal for a parity function is exponentially small. To a standard neural network, the target looks like random noise until the model suddenly "clicks" into the correct solution. This makes parity functions a perfect test case for whether a curriculum can provide a provable shortcut in an otherwise flat optimization landscape.

Methodology

The paper introduces a rigorous framework to compare Standard Training (shuffling all data) against Curriculum Training (showing "simple" data first).

1. The Data Mixture

The authors define a dataset composed of a small fraction ($\rho$) of sparse inputs (mostly +1s, which are "easy" for parities) and a majority of dense inputs (random $\pm 1$s, which are "hard").

2. The Algorithm and Architecture

The study utilizes a 2-layer ReLU neural network trained with noisy-SGD. To handle the inherent class imbalance in sparse parity data, the authors introduce a Covariance Loss, a variation of the hinge loss designed to amplify the signal from rare samples.

3. The Curriculum Phases

Training is split into two distinct phases:

  • Phase 1: The network is exposed only to the sparse "easy" samples. This acts as a "magnifying glass," allowing the first layer to identify the "support" (the specific bits that matter for the parity) before the dense noise overwhelms the gradient.
  • Phase 2: The network is trained on the full mixed dataset to refine the solution and achieve high accuracy on dense inputs.

Key Theoretical Insights

The core contribution is the proof of a computational gap. The authors prove that without a curriculum, any fully connected network needs at least $\Omega(d^2)$ steps to learn. With a curriculum, a simple 2-layer network can achieve the same result in $\Theta(d)$ steps.

This separation suggests that the benefit of starting with sparse data is a fundamental property of gradient-based learning. By starting with sparse data, the curriculum allows the network to lock onto the correct features early, effectively bypassing the "noise floor" that plagues standard training on dense data.

Experimental Results

The theoretical findings are supported by experiments across various architectures, including Transformers and Mean-field models:

  • Training Speedup: In experiments with $d=100$, standard training required the number of iterations to increase sharply as the fraction of sparse samples decreased. In contrast, curriculum-trained models converged in a constant number of steps, regardless of how rare the sparse samples were.
  • Sample Efficiency: For a fixed number of training steps, the curriculum approach reached near 100% accuracy with significantly fewer total samples—often an order of magnitude less—than standard training.
  • Complexity Scaling: As the "degree" of the parity ($k$) increased—making the problem exponentially harder—the curriculum method maintained its advantage, while standard training quickly became unfeasible.

Limitations and Future Work

While this work provides a rigorous foundation, several challenges remain:

  • Layer-wise Constraints: Much of the formal proof relies on "layer-wise" training (freezing one layer while training another). While experiments show success with joint training, the full theory for the joint case is still under development.
  • Defining "Easy": In this study, "easy" is defined by sparsity (Hamming weight). In real-world tasks like image recognition, defining what constitutes an "easy" version of a complex object remains subjective and an open area of research.
  • Multi-stage Curricula: The current curriculum helps most with the lowest-degree part of a function. Targets with multiple parts of equal complexity may require more sophisticated, multi-stage curricula.

Summary updated

BibTeX
@inproceedings{abbe2023provable,
  author = {Emmanuel Abbe and Elisabetta Cornacchia and Aryo Lotfi},
  title = {{Provable Advantage of Curriculum Learning on Parity Targets with Mixed Inputs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=9Ihu0VBOTq},
}
Figure