three main strategies extend binary classifiers to
K classes. OvR (one-vs-rest): train
K 'class-vs-others' classifiers and predict by the highest score,
O(K⋅d) parameters; OvO (one-vs-one): train
(2K)=2K(K−1) pairwise classifiers and vote, simpler per model but
O(K2) total cost; Softmax (direct multiclass): a single model outputs
K-dim probabilities
pi=∑j=1Kezj/τezi/τ, with temperature
τ controlling smoothness —
τ→0 collapses to argmax,
τ→∞ approaches uniform; with cross-entropy the gradient is still
p−y (Softmax is the multiclass logistic regression).