Skip to main content
QUICK REVIEW

[Paper Review] Neural Networks can Learn Representations with Gradient Descent

Alex Damian, Jason D. Lee|arXiv (Cornell University)|Jun 30, 2022
Domain Adaptation and Few-Shot LearningComputer Science10 citations
TL;DR

This paper demonstrates that gradient descent on two-layer neural networks can learn low-dimensional, task-relevant representations for polynomial functions, achieving sample complexity $ n \asymp d^2 r + d r^p $, which significantly improves upon the $ d^p $ requirement of kernel methods. The method enables efficient transfer learning with sample complexity independent of ambient dimension $ d $, breaking the limitations of the neural tangent kernel regime.

ABSTRACT

Significant theoretical work has established that in specific regimes, neural networks trained by gradient descent behave like kernel methods. However, in practice, it is known that neural networks strongly outperform their associated kernels. In this work, we explain this gap by demonstrating that there is a large class of functions which cannot be efficiently learned by kernel methods but can be easily learned with gradient descent on a two layer neural network outside the kernel regime by learning representations that are relevant to the target task. We also demonstrate that these representations allow for efficient transfer learning, which is impossible in the kernel regime. Specifically, we consider the problem of learning polynomials which depend on only a few relevant directions, i.e. of the form $f^\star(x) = g(Ux)$ where $U: \R^d o \R^r$ with $d \gg r$. When the degree of $f^\star$ is $p$, it is known that $n \asymp d^p$ samples are necessary to learn $f^\star$ in the kernel regime. Our primary result is that gradient descent learns a representation of the data which depends only on the directions relevant to $f^\star$. This results in an improved sample complexity of $n\asymp d^2 r + dr^p$. Furthermore, in a transfer learning setup where the data distributions in the source and target domain share the same representation $U$ but have different polynomial heads we show that a popular heuristic for transfer learning has a target sample complexity independent of $d$.

Motivation & Objective

  • To explain why neural networks generalize better than kernel methods in practice, despite theoretical analyses suggesting otherwise.
  • To investigate the representation learning capability of gradient descent in overparameterized neural networks beyond the lazy (NTK) regime.
  • To establish improved sample complexity bounds for learning polynomial functions with low-dimensional latent structure.
  • To demonstrate the feasibility of efficient transfer learning using gradient descent-based representation learning.
  • To identify conditions under which representation learning via gradient descent is provably effective, including a necessary non-degeneracy assumption.

Proposed method

  • Analyzes two-layer ReLU networks trained via gradient descent on functions of the form $ f^\star(x) = g(Ux) $, where $ U \in \mathbb{R}^{d \times r} $ with $ d \gg r $.
  • Uses random matrix theory and moment bounds to show that gradient descent learns features aligned with the true subspace $ \operatorname{span}(U) $, even from random initialization.
  • Establishes generalization bounds via Rademacher complexity, controlling the network's capacity based on width and weight norms.
  • Derives sample complexity bounds by analyzing the expected norm of tensorized weight updates and their alignment with the target function's structure.
  • Introduces a non-degeneracy assumption to rule out pathological cases where representation learning fails.
  • Applies transfer learning analysis by showing that fine-tuning the head with $ O(r^p) $ samples suffices when the representation $ U $ is shared across domains.

Experimental results

Research questions

  • RQ1Can gradient descent on overparameterized neural networks learn task-relevant representations that are not captured by kernel methods?
  • RQ2What is the sample complexity of learning low-rank polynomial functions via gradient descent, and how does it compare to kernel-based methods?
  • RQ3Can transfer learning be achieved efficiently with gradient descent when the underlying representation is shared across tasks?
  • RQ4What conditions are necessary for gradient descent to successfully learn representations in high-dimensional input spaces?
  • RQ5Is there a fundamental lower bound on sample complexity when representation learning fails due to degeneracy in the data structure?

Key findings

  • Gradient descent learns a representation that spans the true low-dimensional subspace $ \operatorname{span}(U) $, enabling efficient learning of $ f^\star(\cdot) = g(U\cdot) $.
  • The sample complexity for learning degree-$ p $ polynomials with $ r $ relevant directions is $ n \asymp d^2 r + d r^p $, which is strictly better than the $ d^p $ bound of kernel methods.
  • In transfer learning, fine-tuning the network head requires only $ O(r^p) $ target samples, independent of the ambient dimension $ d $, unlike pre-training from scratch which requires $ O(d^{\Omega(p)}) $ samples.
  • A lower bound shows that without the non-degeneracy assumption, learning such functions requires $ \Omega(d^{p/2}) $ samples, proving the assumption is necessary.
  • The improved sample complexity is achieved through dynamic feature learning, not fixed features, distinguishing it from the NTK regime.
  • The results demonstrate that representation learning via gradient descent enables generalization and transfer learning beyond the limitations of kernel-based analysis.

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.