Final 选择题|F 第 8–10 讲
非官方期末自拟单选题 18 道:图任务与 GCN 归一化、DiffPool、自编码器与转置卷积、胶囊与动态路由、VAE、GAN、扩散模型与 LDM,附逐项解析与课件页码。
手机上宽表格可左右滑动;自测答案默认收起,点击题目下方按钮查看。
使用边界:期末复习,非官方材料。课程信息写期末闭卷、3 小时、选择题加数学计算题;日期、地点与范围尚未公布,以讲师通知和课堂公告为准。本页是按第 8–10 讲课件自拟的单选题。
复习资料:考试形式与范围地图 · 闭卷公式默写表 · 算法横向对照
先做题再看解析:A 计算:第 1–3 讲 · B 选择:第 1–3 讲 · C 计算:第 4–7 讲 · D 选择:第 4–7 讲 · E 计算:第 8–10 讲 · F 选择:第 8–10 讲
怎么做:每题先排除再选,四个选项都要能说出对错的理由,再展开对照。
F 选择题:第 8–10 讲
单选,题面用英文。F1–F6 第 8 讲,F7–F12 第 9 讲,F13–F18 第 10 讲。考查点与 R02–R04 的判断题不重复。第 11、12 讲待补。
F1 · Why not a CNN
Why can a standard CNN not be applied directly to graph data such as a social network?
- A. Graph nodes carry no features, so there is nothing to convolve.
- B. Different nodes have different numbers of neighbours, so there is no fixed-shape window for a kernel.
- C. Graphs are always larger than images, so the memory cost is too high.
- D. A CNN can only process single-channel inputs.
F1 · 查看答案与解析
答案:B。图里每个节点的边数不同,网格里像素的邻居个数固定。A 错,节点和边各带特征;C 课件没有这种说法;D 错,卷积核深度等于输入通道数,多通道照样处理。
English:B. Nodes have different numbers of neighbours, so a fixed-shape convolution window cannot slide over a graph.
回查:L08 p.8–9。L08a 图数据与任务
F2 · Task type
Predicting whether a molecule is stable or unstable is an example of:
- A. node classification
- B. graph classification
- C. link prediction
- D. dimension reduction
F2 · 查看答案与解析
答案:B。一整张分子图一个标签。A 是每个节点一个标签;C 判断两节点间有没有边;D 是第 9 讲的无监督任务。
English:B. One label is predicted for the whole molecular graph.
回查:L08 p.11;L09 p.8。L08a 图数据与任务
F3 · An entry of Â
For two connected nodes i ≠ j, the (i, j) entry of  = D̃^-1/2 à D̃^-1/2 equals:
- A. 1
- B. 1/d̃_i
- C. 1/(d̃_i d̃_j)
- D. 1/√(d̃_i d̃_j)
F3 · 查看答案与解析
答案:D。左右各乘 D̃^-1/2,分别除 √d̃_i 和 √d̃_j。A 是 à 本身(直接求和);B 是按行平均 D̃⁻¹Ã;C 是平均两次 D̃⁻¹ÃD̃⁻¹。
English:D. Â_ij = 1/√(d̃_i d̃_j), the modified average.
回查:L08 p.19–20。L08b 邻居聚合与归一化
F4 · Why normalise ÃX
The lecture marks ÃX with ✗. Which reason does it give?
- A. ÃX ignores each node’s own features.
- B. High-degree nodes get larger values because more terms are added.
- C. ÃX changes the number of nodes in the graph.
- D. Ã is not a symmetric matrix.
F4 · 查看答案与解析
答案:B。课件红字 High-degree nodes have larger values。A 错,Ã = A + I 已加自环;C 错,ÃX 行数不变,缩图靠池化;D 错,课件写 Ã Symmetric but not normalized。
English:B. ÃX sums over a node and its neighbours, so high-degree nodes get larger values and must be normalised.
回查:L08 p.15–16、p.19。L08b 邻居聚合与归一化
F5 · The two-layer GCN
Which expression is the lecture’s two-layer GCN?
- A. y = sigmoid(Â ReLU(ÂXW⁰) W¹)
- B. y = ReLU(Â sigmoid(ÂXW⁰) W¹)
- C. y = sigmoid(ReLU(ÂXW⁰) W¹)
- D. y = sigmoid(Â ReLU(ÂXW⁰_v) W¹_v), with separate weights for every node v
F5 · 查看答案与解析
答案:A。中间 ReLU,输出 sigmoid。B 两个激活对调;C 第二层漏了 Â,少一次邻居聚合;D 错,W 是所有节点共用的 shared dense layer。
English:A. ReLU between the layers, sigmoid at the output, and W⁰, W¹ shared by all nodes.
回查:L08 p.20–21。L08c GCN 层
F6 · The DiffPool assignment matrix
In DiffPool, S = softmax(GNN₂(A, X)). Which statement is correct?
- A. Each column of S sums to 1, because the softmax runs over the old nodes.
- B. Each row of S sums to 1; row i tells how node i is split among the new clusters.
- C. S itself is the feature matrix of the new clusters.
- D. S is square and has the same size as A.
F6 · 查看答案与解析
答案:B。softmax 在新簇上按行做。A 方向反了;C 错,新特征是 SᵀZ;D 错,S 是 节点数 × 簇数,课件例子 5×4。
English:B. S is (nodes) × (clusters) and each row sums to 1; the new features are SᵀZ.
回查:L08 p.25。L08d 图池化与 DiffPool
F7 · Unsupervised tasks
Which of the following is NOT listed in the lecture as an unsupervised learning task?
- A. Clustering (K-means)
- B. Dimension reduction (PCA, autoencoder)
- C. Density estimation (generative model)
- D. Regression
F7 · 查看答案与解析
答案:D。课件把分类、回归列在有监督一边;无监督一边是聚类、降维、密度估计、自监督学习。A、B、C 都在无监督列表里。
English:D. Regression needs labels and is supervised.
回查:L09 p.8。L09a 无监督学习与自编码器
F8 · Upsampling in the decoder
In the lecture’s convolutional autoencoder (28x28x1 → … → h of length 10 → … → 28x28x1), which layer type enlarges the feature maps in the decoder?
- A. Max-pooling
- B. Stride-2 convolution
- C. Transposed convolution
- D. Flatten
F8 · 查看答案与解析
答案:C。DeConv 层把 7x7x64 放大到 14x14x32 再到 28x28x1。A 只会缩小;B 是编码器用的,28 → 14 → 7;D 只改形状,3x3x128 拉平成 1152。
English:C. Transposed convolutions upsample in the decoder; stride-2 convolutions downsample in the encoder.
回查:L09 p.12。L09b 卷积自编码器
F9 · What the latent codes show
The convolutional autoencoder is trained on MNIST without labels, yet in the lecture’s scatter plot the codes h of the same digit lie close together. What does this show?
- A. The autoencoder was in fact trained with the digit labels.
- B. The code keeps the main information needed to rebuild the input, so similar inputs get similar codes usable for clustering.
- C. The decoder outputs class probabilities for the 10 digits.
- D. The latent code h has exactly 2 dimensions.
F9 · 查看答案与解析
答案:B。h 是 latent representation,应用里有聚类与特征提取。A 错,损失只比 x’ 和 x;C 错,解码器输出重构图;D 错,h 是 10 维,散点图只是画成二维。
English:B. Training only minimises reconstruction error, so h is a compact code and similar digits get nearby codes.
回查:L09 p.11–13。L09b 卷积自编码器
F10 · Learnable parameters of a capsule layer
In the lecture’s capsule layer, which step contains the learnable parameters?
- A. Step 1: transforming each u_i with W_i
- B. Step 2: the coefficients c_ij in the weighted sum
- C. Step 3: the squash function
- D. Step 4: the initial values b_ij = 0
F10 · 查看答案与解析
答案:A。课件写 Include learnable parameters。B 错,c_ij 每次前向由动态路由算出;C 错,squash 是固定公式;D 错,b 从 0 开始按内积更新。
English:A. Only the matrices W_i are learned; c_ij come from dynamic routing.
回查:L09 p.17–19。L09c 胶囊层
F11 · Squash of a long vector
A vector s_j has length 4. After squash, v_j:
- A. has length 4/5 = 0.8 and the direction of s_j
- B. has length 16/17 ≈ 0.941 and the same direction as s_j
- C. has length exactly 1, because squash normalises to unit length
- D. has length 16/17 but a rotated direction
F11 · 查看答案与解析
答案:B。系数 ||s||²/(1 + ||s||²) = 16/17 ≈ 0.941,方向不变。A 用了 ||s||/(1 + ||s||);C 错,单位长度的只是 s/||s||,乘系数后小于 1;D 错,squash 不改方向。
English:B. The length becomes 16/17 ≈ 0.941 and the direction is unchanged.
回查:L09 p.18。L09c 胶囊层
F12 · Which coefficients add up to 1
In the lecture’s dynamic routing, the softmax is taken over [b_1j … b_ij … b_Ij]. Which coefficients therefore add up to 1?
- A. For a fixed input capsule i, its coefficients to all output capsules j
- B. For a fixed output capsule j, the coefficients c_1j, …, c_Ij of all input capsules
- C. All c_ij in the layer taken together
- D. None; the c_ij are unconstrained learnable weights
F12 · 查看答案与解析
答案:B。课件对固定的 j 在所有输入 i 之间做 softmax。A 是原论文的方向,作答按课件;C 错,softmax 只在一组 b 里做;D 错,c 是 softmax 输出,也不是训练参数。
English:B. Following the lecture, c_1j + … + c_Ij = 1 for each output capsule j.
易错点:原论文在输出 j 之间归一化,课件写法相反,两者别混。
回查:L09 p.19。L09d 动态路由与 CapsNet
F13 · The non-differentiable term
In the VAE loss KL(N(μ, σ²) ‖ N(0, 1)) + E_{q_φ(z|x)}(−log p_θ(x|z)), which part does the lecture mark “Non-differentiable after sampling”?
- A. The KL term, because it has a log
- B. The expectation (reconstruction) term, because z is sampled from q_φ(z|x)
- C. The prior N(0, 1), because it has no parameters
- D. Neither; both terms can be back-propagated directly
F13 · 查看答案与解析
答案:B。期望项要先从 q_φ(z|x) 采样,重参数化就是为它解决。A 错,KL 有闭式,对 μ、σ 直接可导;C 先验不是被标注的那项;D 错,不重参数化梯度过不去。
English:B. The reconstruction term needs a sampled z, which blocks the gradient; the reparameterization trick fixes this.
回查:L10 p.13–14。L10a 概率编码与 VAE
F14 · The form of ℓ_D
The discriminator loss ℓ_D = −log D(x) − log(1 − D(x̂)) has the same form as:
- A. the binary cross-entropy, with real images labelled 1 and generated images labelled 0
- B. the mean squared error between D(x) and D(x̂)
- C. the KL divergence between N(μ, σ²) and N(0, 1)
- D. the binary cross-entropy, with generated images labelled 1
F14 · 查看答案与解析
答案:A。真图标签 1 罚 −log D(x),假图标签 0 罚 −log(1 − D(x̂))。B、C 形式对不上;D 标签反了,课件真图 Category 1、生成图 Category 0。
English:A. ℓ_D is binary cross-entropy with label 1 for real and 0 for generated images.
回查:L10 p.21–22。L10b GAN
F15 · CycleGAN
Which description of CycleGAN in the lecture is correct?
- A. One generator and one discriminator; training needs paired horse and zebra photos.
- B. Two generators G and F in opposite directions and two discriminators D_X and D_Y; the two domains need not be paired.
- C. Two generators sharing one discriminator; training needs paired photos.
- D. No discriminator; it is trained only with a reconstruction loss.
F15 · 查看答案与解析
答案:B。X → G → Y,Y → F → X,D_X、D_Y 各管一个域,标题 Unpaired。A、C 的个数与「成对」都错;D 错,图里有两个判别器。
English:B. Two generators (G, F), two discriminators (D_X, D_Y), unpaired training data.
回查:L10 p.24。L10b GAN
F16 · What the DDPM network predicts
According to the lecture, Ho et al. model each reverse step p_θ(x_t | x_{t+1}) by:
- A. predicting both the mean and the variance with the network
- B. predicting only the mean μ_θ(x_{t+1}, t), with a fixed variance σ_t² I
- C. learning the noise schedule β_t and keeping the mean fixed
- D. copying the forward step q(x_{t+1} | x_t), so no network is needed
F16 · 查看答案与解析
答案:B。课件写 only predict the mean with a fixed variance schedule。A 是一般写法 N(μ_θ, Σ_θ),不是 Ho 等人的做法;C 错,β 是固定值;D 错,反向过程必须学。
English:B. The network predicts only the mean; the variance is fixed at σ_t² I.
回查:L10 p.32、p.34、p.36。L10d 扩散模型反向与 LDM
F17 · Drawbacks of diffusion models
Which pair lists the two disadvantages of diffusion models given in the lecture?
- A. It is slow, and it has no latent space.
- B. It suffers from mode collapse, and it is hard to train.
- C. Its samples have low quality and low diversity.
- D. It is slow, and it suffers from mode collapse.
F17 · 查看答案与解析
答案:A。缺点两条:慢(采样要过网络 T 次)、没有潜空间。B、C 正好是它的优点反过来:没有 mode collapse、好训练、质量高且多样;D 后半句错。
English:A. Diffusion models are slow (T network passes per sample) and have no latent space.
回查:L10 p.30、p.39。L10c 扩散模型前向 · L10d 扩散模型反向与 LDM
F18 · Conditioning in a latent diffusion model
Which statement about the latent diffusion model (LDM) in the lecture is correct?
- A. Diffusion and denoising are done directly on the pixels.
- B. Conditions such as text are encoded by τ_θ and injected through cross-attention or concatenation.
- C. The decoder 𝒟 is applied after every denoising step.
- D. The denoising U-Net is called x_θ because it predicts the clean image x0.
F18 · 查看答案与解析
答案:B。条件经 τ_θ 送进 cross-attention 或 concat。A 错,扩散在 Latent Space 里做;C 错,𝒟 只在最后解码一次;D 错,U-Net 是 ε_θ,预测噪声。
English:B. Conditions are encoded by τ_θ and injected by cross-attention or concatenation; diffusion runs in the latent space.
回查:L10 p.38、p.40。L10d 扩散模型反向与 LDM
这组材料已读完,可以回课程页选择配套资料或练习:COMP5541 课程页。
个人整理的学习笔记,不是官方材料;数字与结论以课件和讲师为准。