3
$\begingroup$

I just started learning about neural networks and was wondering what a neural network with 2 hidden layers is able to express over a neural network with just 1 hidden layer (where number of neurons are limited). Specifically, I am trying to come up with an binary classification example with a decision boundary that can be expressed with 2 hidden layers but not one (assuming input is a point in the 2D space, ReLU activation for the hidden layers, and sigmoid activation for the output). The 1-layer network has 4 hidden neurons in its layer while the 2-layer network has 2 neurons each layer, so still 4 hidden neurons total. I've tried looking at concentric circles, enclosed shapes, and nonlinear boundaries but have no luck so far.

What is an example of a binary decision boundary that 2 hidden layers (2 neurons each layer) are able to capture but 1 hidden layer (4 neurons) isn't? Is this even possible?

Update: I edited my question to a limited number of neurons as that the universal approximation theorem does not apply.

$\endgroup$
1
  • $\begingroup$ Welcome to CV! Please add the self-study tag & read its wiki. $\endgroup$ Commented Mar 12, 2024 at 8:34

1 Answer 1

3
$\begingroup$

Neural networks with one hidden layer are universal approximators (given some constraints), so you won't find such a class of functions. See Does the universal approximation theorem apply to ReLu?

$\endgroup$
2
  • 1
    $\begingroup$ I believe that universal approximation theorem only holds for a large amount of neurons in the 1 hidden layer. What about if the 1 hidden layer network had 4 neurons in the hidden layer and the 2 layer network had 2 neurons each layer (so still 4 hidden neurons total)? $\endgroup$ Commented Mar 12, 2024 at 17:00
  • $\begingroup$ @ReginaDea in general it's a good idea to ask a new question in this case, otherwise people could keep narrowing down their question indefinitely. $\endgroup$ Commented Mar 12, 2024 at 22:55

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.