京都大学 情報学研究科 知能情報学専攻 2025年8月実施 専門科目 S-2
Author
Description
Let us consider a binary classification problem in which a real-valued vector in a -dimensional space is classified into a class . The boundary between class 0 and class 1 in this space defined by a classification method is referred to as the decision boundary.
Q.1
Let be a prototype vector of class 0 and be a prototype vector of class 1, and consider a method to classify into the class with a smaller squared distance between its prototype vector and . Derive an equation of the decision boundary and show whether it is linear or not. Here we assume .
Q.2
Assume that class 0 follows a multi-variate normal distribution with a mean vector and a covariance matrix , and that class 1 follows a normal distribution with a mean vector and the same covariance matrix . Then, we consider a method to classify into the class with a larger likelihood for . Derive an equation of the decision boundary and show whether it is linear or not. Here we assume that there exists an inverse matrix of , and .
Q.3
Consider a method that models the posterior probability of class 1 given , , with the standard sigmoid function of the inner product , where is a weight parameter vector. Derive the logarithm of the ratio of the posterior probabilities of class 0 and class 1, and show whether it is linear or not.
Q.4
In the method of Q.3, let us define the loss function with the binary cross-entropy of the posterior probabilities of class 0 and class 1. Derive its gradient with respect to the weight parameter by showing the derivation process.
Q.5
Describe a method to extend the method of Q.3 and Q.4 to a multi-class classification problem. Specifically, show a function to compute the posterior probability of class and a loss function, together with its gradient with respect to the weight parameter. You do not have to show the derivation process.
Q.6
Briefly describe a method to extend the method of Q.5 to a multi-layer feed-forward neural network. Specifically, show an activation function used in each layer and a loss function, together with a method to compute the gradients with respect to the weight parameters.
题目描述
考虑二分类问题:把 维空间中的实向量 分类到 。某分类方法在该空间中划分类别 0 与类别 1 的边界称为决策边界。
-
设 分别是类别 0、1 的原型向量。把 分到其原型与 的平方距离较小的类别。推导决策边界方程,并说明该边界是否为线性边界。假设 。
-
假设类别 0 服从均值向量为 、协方差矩阵为 的多元正态分布,类别 1 服从均值向量为 、协方差矩阵同为 的多元正态分布。采用把 分到对它具有较大似然的类别的方法。推导决策边界方程,并说明其是否为线性边界。假设 可逆且 。
-
考虑用内积 的标准 sigmoid 函数建模后验概率 ,其中 是权重参数向量。推导类别 0 与类别 1 后验概率之比的对数,并说明它是否为线性函数。
-
在第 3 问的方法中,以类别 0、1 后验概率的二元交叉熵定义损失函数。写出推导过程,求该损失关于权重参数 的梯度。
-
说明如何把第 3、4 问的方法扩展到多分类问题。具体给出类别 的后验概率函数、损失函数,以及损失对权重参数的梯度;本问无需写推导过程。
-
简要说明如何把第 5 问的方法扩展为多层前馈神经网络。具体给出各层使用的激活函数和损失函数,并说明计算各权重参数梯度的方法。
考点
- 最近原型分类器:展开平方欧氏距离并化简决策边界。
- 共享协方差的线性判别分析:比较高斯类条件似然,消去共同二次项得到线性判别面。
- Logistic 回归:理解 sigmoid、对数几率、二元交叉熵及其梯度。
- Softmax 多分类回归:给出归一化类别概率、交叉熵目标及参数梯度。
- 前馈神经网络与反向传播:组合逐层仿射变换和非线性激活,并用链式法则计算梯度。