GATE DA 2025 · Multi-Layer Perceptron & Feed-Forward Neural Networks

MCQ · 1 mark · Problem ML-NNET-0021

Consider designing a linear classifier\(y = \text{sign}(f(x; w, b)), \quad f(x; w, b) = w^T x + b\)on a dataset \(D = \{(x_1, y_1), (x_2, y_2), \dots, (x_N, y_N)\}\), \(x_i \in \mathbb{R}^d, y_i \in \{+1, -1\}, i = 1, 2, \dots, N\). Recall that the sign function outputs +1 if the argument is positive, and −1 if the argument is non-positive. The parameters \(w\) and \(b\) are updated as per the following training algorithm:\(w_{\text{new}} = w_{\text{old}} + y_n x_n, \quad b_{\text{new}} = b_{\text{old}} + y_n\)whenever \(\text{sign}(f(x_n; w_{\text{old}}, b_{\text{old}})) \neq y_n\). In other words, whenever the classifier wrongly predicts a sample \((x_n, y_n)\) from the dataset, \(w_{\text{old}}\) gets updated to \(w_{\text{new}}\), and likewise \(b_{\text{old}}\) gets updated to \(b_{\text{new}}\). Consider the case \((x_n, +1)\), \(f(x_n; w_{\text{old}}, b_{\text{old}}) < 0\). Then
  1. A
    \(f(x_n; w_{\text{new}}, b_{\text{new}}) > f(x_n; w_{\text{old}}, b_{\text{old}})\)
  2. B
    \(f(x_n; w_{\text{new}}, b_{\text{new}}) < f(x_n; w_{\text{old}}, b_{\text{old}})\)
  3. C
    \(f(x_n; w_{\text{new}}, b_{\text{new}}) = f(x_n; w_{\text{old}}, b_{\text{old}})\)
  4. D
    \(y_n f(x_n; w_{\text{old}}, b_{\text{old}}) > 1\)

Solve it on GATE DA practice →More Model Validation & Neural Networks problems

Show the worked solutionIn the classic Perceptron learning rule, whenever the current classifier misclassifies a training point \((x_n,y_n)\) (i.e. \(y_nf(x_n;w,b)\le0\)), the weight update is \(w_{\text{new}}=w_{\text{old}}+y_nx_n\), \(b_{\text{new}}=b_{\text{old}}+y_n\).A short computation shows this update always increases the (signed) score \(f(x_n)\) in the direction of the correct label \(y_n\) for that specific misclassified point — specifically, \(y_nf(x_n;w_{\text{new}},b_{\text{new}})\) increases relative to \(y_nf(x_n;w_{\text{old}},b_{\text{old}})\), which for a previously-misclassified point (where the old score had the wrong sign) means the raw score \(f(x_n;w_{\text{new}},b_{\text{new}})\) moves in the corrective direction, i.e. becomes larger for a positive-label point that was undervalued. This guarantees \(f(x_n;w_{\text{new}},b_{\text{new}})>f(x_n;w_{\text{old}},b_{\text{old}})\) for the point that triggered the update.Answer: A

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com