How does softmax logistic regression reduce to the sigmoid form when there are only two classes?

Quick Overview

Asks how two-class softmax logistic regression turns into the sigmoid form of binary logistic regression. Tests the algebra of softmax and sigmoid, parameter identifiability, and whether the loss, decision boundary and regularization carry over between the two models.

How does softmax logistic regression reduce to the sigmoid form when there are only two classes?

Role: Data Scientist

Category: Machine Learning

Difficulty: medium

Interview Round: Other

How does softmax logistic regression reduce to the sigmoid form when there are only two classes? Take a softmax model with one linear score per class, $z_k = w_k^\top x + b_k$, and set the number of classes to two. ```hint Look for a free shift Is there a change you can make to every class's score at once that leaves all the softmax probabilities unchanged? ``` ```hint Match the shape Compare your expression for $P(y=1 \mid x)$ with $\sigma(z) = 1/(1+e^{-z})$. What has to play the role of $z$? ``` ### What a Strong Answer Covers - The algebra that takes the two-class softmax probability to a sigmoid of a single score. - What that single score is in terms of the two classes' weights and biases. - Why the softmax parameters are not unique, and which quantity is identifiable. - Whether the loss, the decision boundary and regularization carry over between the two forms. ### Follow-up Questions - With $K$ classes, how many weight vectors are identifiable, and how do you pin down the rest? - If both class weight vectors get the same L2 penalty, which binary logistic regression penalty does that match? - Is a two-output softmax layer in a neural network more expressive than a single sigmoid output? - How does a model with $K$ independent sigmoids differ from softmax when there are more than two classes?

Overview: Asks how two-class softmax logistic regression turns into the sigmoid form of binary logistic regression. Tests the algebra of softmax and sigmoid, parameter identifiability, and whether the loss, decision boundary and regularization carry over between the two models.

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

How does softmax logistic regression reduce to the sigmoid form when there are only two classes?

Take a softmax model with one linear score per class, zk=wk⊤x+bkz_k = w_k^\top x + b_k, and set the number of classes to two.

What a Strong Answer Covers Guidance

  • The algebra that takes the two-class softmax probability to a sigmoid of a single score.
  • What that single score is in terms of the two classes' weights and biases.
  • Why the softmax parameters are not unique, and which quantity is identifiable.
  • Whether the loss, the decision boundary and regularization carry over between the two forms.

Follow-up Questions Guidance

  • With KK classes, how many weight vectors are identifiable, and how do you pin down the rest?
  • If both class weight vectors get the same L2 penalty, which binary logistic regression penalty does that match?
  • Is a two-output softmax layer in a neural network more expressive than a single sigmoid output?
  • How does a model with KK independent sigmoids differ from softmax when there are more than two classes?