From Random Features to Feature Learning: A Visual Guide to When Nonlinearity Emerges

Zafer DoganNeurIPS 2026 Education Track 2026

TL;DR

Just because a neural network has nonlinear activations doesn't mean it has actually learned a nonlinear representation. This NeurIPS 2026 Education Track resource introduces a five-stage visual and computational curriculum that teaches learners how to diagnose where predictive nonlinearity actually comes from—whether from frozen random features, structured data, or genuine gradient-based feature learning.

What Problem Does This Paper Address?

In modern machine learning, it is easy to conflate a nonlinear architecture with nonlinear representation learning. A two-layer neural network with nonlinear activations can still behave like a linear or kernel model if its first layer doesn't move meaningfully during training.

While recent high-dimensional theory explains these distinctions, the mathematical tools behind them—such as random matrix theory, Neural Tangent Kernel (NTK) theory, mean-field limits, and Hermite analysis—can be intimidating for advanced undergraduates and beginning graduate students. The author bridges this gap by offering a hands-on, CPU-only educational pathway that makes these phenomena visually observable before introducing heavy theory.

Methods

The core of the resource is a scaffolded sequence of five executed Jupyter notebooks, built around a predict–observe–explain–transfer loop. Instead of presenting five unrelated case studies, only one conceptual ingredient changes at each stage:

  1. Stage 1 (Fixed Random Features): A baseline where the first layer is frozen and only the readout layer is trained.
  2. Stage 2 (Structured Fixed Random Features): Keeps the features frozen but introduces structured data (spiked covariance and input–label alignment).
  3. Stage 3 (Learned Features): Allows the first-layer representation to move via a single gradient step.
  4. Stage 4 (Structured Learning): Transfers the setup to covariance-matched non-Gaussian data (structured Gaussian mixtures).
  5. Stage 5 (In-Context Learning): Extends the diagnostic lens to task-level structure in in-context learning (ICL) with nonlinear MLPs.

At every stage, learners ask the same diagnostic question—What changed: the data, the representation, the task distribution, or only the readout?—and inspect the same three observables: prediction error, task alignment, and spectrum (such as weight and gradient spectra). The package also includes an offline, five-tab "Feature Learning Laboratory" with exact analytical controls, alongside standalone math notes, lecture decks, and an exercise workbook.

Overview of the five-stage learning progression and companion resources

Datasets

The paper does not use standard external benchmark datasets. Instead, it uses controlled, synthetic data distributions—specifically spiked-covariance data and covariance-matched non-Gaussian data (structured Gaussian mixtures)—as well as structured task distributions for in-context learning.

Key Insights and Ideas

  • Nonlinear activations $\neq$ learned representations: A model can produce nonlinear predictions even when its internal features are completely frozen.
  • Data structure can unlock nonlinearity for free: Under spiked covariance, strong input–label alignment can trigger a transition from effectively linear to genuinely nonlinear behavior even in frozen random features.
  • One gradient step is enough to see feature learning: A single first-layer gradient step can create task-aligned, low-rank structure, which shows up simultaneously as a drop in prediction error and a separated component in the weight/gradient spectrum.
  • Learning rate and data geometry act together: In one-step training, the learning-rate scale and the geometry of the data jointly control the effective polynomial degree the network learns.
  • Task structure matters for ICL: Extending the framework to in-context learning shows that nonlinear MLP feature learning requires sufficient task-covariance structure.

Key Results

Because this is an Education Track resource rather than an empirical benchmark paper, it does not report traditional accuracy or speedup metrics. Instead, it delivers a self-contained, CPU-only teaching package with validated cached evidence, publication-grade figures (vector PDF and 600-dpi PNG), and three flexible adoption routes: a 15–20 minute visual introduction, a 60–90 minute guided computational core (Modules 1–3), and a six-session graduate pathway covering all five notebooks.

Limitations and Future Work

Not discussed in the paper.

Summary updated

BibTeX
@inproceedings{dogan2026from,
  author = {Zafer Dogan},
  title = {{From Random Features to Feature Learning: A Visual Guide to When Nonlinearity Emerges}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=5OECxk59TR},
}
Figure