Skip to content
nonconvexcard

Width needed to represent a piecewise linear function

ProofAdvanced⏱ 1 hourDeep Learningreluexpressivitydepthpiecewise linear

Problem

  1. Show that a one-hidden-layer ReLU network with mm units on R\R computes a piecewise linear function with at most m+1m+1 pieces.
  2. Show that a depth-LL network of width 22 can compute a sawtooth with 2L2^L pieces.
  3. Deduce a depth separation and state its scope carefully.

Write a complete argument. Every inequality you use should be one you could state precisely.

Solution

Opening this before you have a real attempt on paper is the fastest way to feel like you understand something you cannot reproduce.

Related problems

All problems
SolvedProblemFieldTypeDifficultyTime
XOR is not linearly separableDeep LearningProofFoundation15 min
Derive the backpropagation recursionDeep LearningProofIntermediate30 min
Gradient magnitude through a deep chainDeep LearningProofIntermediate30 min
Implement backpropagation from scratch runDeep LearningCodingIntermediate3 hours