How does a neural network without an activation function compare to logistic regression?

Quick Overview

Asks what a neural network with no activation functions can represent and how it relates to logistic regression. Tests understanding of how linear layers compose, the role of the output activation and loss, and why hidden non-linearities change what a model can learn.

How does a neural network without an activation function compare to logistic regression?

Role: Data Scientist

Category: Machine Learning

Difficulty: easy

Interview Round: Other

How does a neural network without an activation function compare to logistic regression? Consider a feed-forward network with one or more hidden layers and no non-linear activation between them. ```hint Multiply it out Write the output of two stacked layers with no activation as a single expression in $x$, biases included, and simplify it. ``` ### What a Strong Answer Covers - What stacked linear layers compute once the layers are multiplied out, including the bias terms. - Which output activation and loss make the collapsed network match logistic regression, and what it matches with other choices. - What hidden non-linear activations add, with an example of a decision boundary a linear model cannot represent. - Any differences that remain between a deep linear network and logistic regression during training. ### Follow-up Questions - In a multiclass linear network, what constraint does a hidden layer narrower than the number of classes place on the model? - Can logistic regression learn a non-linear decision boundary in the original inputs? How? - Why is ReLU enough non-linearity even though it is piecewise linear? - What classical method does a linear autoencoder trained with squared error recover?

Overview: Asks what a neural network with no activation functions can represent and how it relates to logistic regression. Tests understanding of how linear layers compose, the role of the output activation and loss, and why hidden non-linearities change what a model can learn.

General logo
General
Nov 24, 2026
easyData ScientistOtherMachine Learning
0
0

How does a neural network without an activation function compare to logistic regression?

Consider a feed-forward network with one or more hidden layers and no non-linear activation between them.

What a Strong Answer Covers Guidance

  • What stacked linear layers compute once the layers are multiplied out, including the bias terms.
  • Which output activation and loss make the collapsed network match logistic regression, and what it matches with other choices.
  • What hidden non-linear activations add, with an example of a decision boundary a linear model cannot represent.
  • Any differences that remain between a deep linear network and logistic regression during training.

Follow-up Questions Guidance

  • In a multiclass linear network, what constraint does a hidden layer narrower than the number of classes place on the model?
  • Can logistic regression learn a non-linear decision boundary in the original inputs? How?
  • Why is ReLU enough non-linearity even though it is piecewise linear?
  • What classical method does a linear autoencoder trained with squared error recover?