uiz Space

May 2025 term · Deep Learning Practice · BSDA5013

Deep Learning Practice End Term: 31 August 2025, Set QDB1 (May 2025 term)

The IIT Madras BS Deep Learning Practice (Deep Learning Practice) End Term paper sat on 31 Aug 2025, in the May 2025 term, set QDB1: 22 questions for 100 marks in 180 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.

Questions
22
Marks
100
Duration
180 min
MCQ
7
MSQ
8
Numerical
7

Updated

Official paper: IIT M DEGREE AN EXAM QDB3 31 Aug 2025 · No negative marking.

Question 1

+5 marksOne correct option

Consider the task of applying a convolutional layer with a stride of 1 to an image of size 227 × 227 (Grayscale), while ensuring that the output feature map retains the same spatial dimensions. Which of the following code snippets correctly implements this using PyTorch?

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • D

Question 2

+5 marksOne correct option
  1. A

    Output size: 8 × 8; Effective receptive field: 5 × 5

  2. B

    Output size: 10 × 10; Effective receptive field: 5 × 5

  3. C

    Output size: 10 × 10; Effective receptive field: 3 × 3

  4. D

    Output size: 12 × 12; Effective receptive field: 7 × 7

Show answer

Correct answer

  • B

    Output size: 10 × 10; Effective receptive field: 5 × 5

Question 3

+5 marksOne correct option

You are given the following CNN architectures:

  • AlexNet
  • VGG-19
  • Inception-v3
  • ResNet-50

Which of the following correctly orders these networks in terms of their increasing depth (i.e., from the fewest to the greatest number of layers)?

  1. A

    AlexNet < InceptionNet-v3 < VGG-19 < ResNet-50

  2. B

    AlexNet < VGG-19 < Inception-v3 < ResNet-50

  3. C

    Inception-v3 < AlexNet < VGG-19 < ResNet-50

  4. D

    AlexNet < Inception-v3 < ResNet-50 < VGG-19

Show answer

Correct answer

  • B

    AlexNet < VGG-19 < Inception-v3 < ResNet-50

Question 4

+5 marksOne correct option

Consider the following PyTorch CNN model used for a classification task on a small dataset of 64×6464 \times 64 RGB images:

python
class SimpleCNN(nn.Module):
def __init__(self):
super(SimpleCNN, self).__init__()
self.conv = nn.Sequential(
nn.Conv2d(3, 64, kernel_size=3, padding=1),
nn.ReLU(),
nn.Conv2d(64, 128, kernel_size=3, padding=1),
nn.ReLU(),
nn.MaxPool2d(2),
nn.Conv2d(128, 256, kernel_size=3, padding=1),
nn.ReLU(),
nn.MaxPool2d(2)
)
self.fc = nn.Sequential(
nn.Flatten(),
nn.Linear(256*16*16, 512),
nn.ReLU(),
nn.Linear(512, 10)
)
def forward(self, x):
x = self.conv(x)
return self.fc(x)

Suppose the model is underperforming and you consider replacing it with a deeper ResNet architecture. However, it turns out that this change does not improve performance significantly.

Which of the following is the most likely reason why switching to ResNet does not help?

  1. A

    ResNet has too many parameters for this simple task.

  2. B

    Residual connections are only useful when training very deep networks, and this task does not require such depth.

  3. C

    ResNet architectures perform poorly on low-resolution inputs due to their reliance on fixed feature scales.

  4. D

    InceptionNet would have been better because it uses multiple receptive fields in parallel.

Show answer

Correct answer

  • B

    Residual connections are only useful when training very deep networks, and this task does not require such depth.

Question 5

+5 marksOne correct option

You are building an image classifier for the Nature12K dataset, which contains 12 categories of natural scenes (i.e., 12 output classes). You decide to use VGG-16 pretrained on ImageNet as a feature extractor and modify only the final layer for fine-tuning.

Below is a partially completed PyTorch code snippet:

python
import torch
import torch.nn as nn
from torchvision.models import vgg16
class Nature12KClassifier(nn.Module):
def __init__(self):
super(Nature12KClassifier, self).__init__()
self.base = vgg16(pretrained=True)
# [Missing Line]
def forward(self, x):
x = self.base.features(x)
x = self.base.avgpool(x)
x = torch.flatten(x, 1)
x = self.base.classifier(x)
return x
model = Nature12KClassifier()

Which of the following lines correctly fills in the missing line to adapt the VGG-16 model for Nature12K?

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • A

Question 6

+5 marksOne correct option

The diagram below represents the block-wise flow of an unsupervised depth estimation pipeline using left-right stereo image pairs.

A⟶B⟶C⟶D⟶E\boxed{A} \longrightarrow \boxed{B} \longrightarrow \boxed{C} \longrightarrow \boxed{D} \longrightarrow \boxed{E}

The blocks (not in order) are described as:

(a) Image warping / reconstruction using disparity.
(b) Photometric loss computation
(c) Disparity map prediction
(d) Input stereo pair
(e) Left-right consistency loss

Match the blocks to the diagram and choose the correct sequence of labels corresponding to boxes A through E.

  1. A

    A–(e), B–(c), C–(a), D–(d), E–(b)

  2. B

    A–(e), B–(b), C–(c), D–(a), E–(d)

  3. C

    A–(e), B–(a), C–(c), D–(d), E–(b)

  4. D

    A–(c), B–(e), C–(a), D–(b), E–(d)

Show answer

Correct answer

  • A

    A–(e), B–(c), C–(a), D–(d), E–(b)

Question 7

+5 marksOne correct option

Consider the original U-Net architecture.
Which of the following statements about the convolutional and pooling operations is correct?

  1. A

    U-Net uses 5 × 5 convolutional filters and 2 × 2 max pooling filters with stride 2 in the encoder path.

  2. B

    U-Net uses 3 × 3 convolutional filters and 2 × 2 average pooling filters with stride 1 in both encoder and decoder.

  3. C

    U-Net uses 3 × 3 convolutional filters (with padding) and 2 × 2 max pooling filters with stride 2 to halve the spatial resolution in the encoder.

  4. D

    U-Net uses 3 × 3 filters and 1 × 1 pooling to preserve spatial dimensions between contracting and expanding paths.

Show answer

Correct answer

  • C

    U-Net uses 3 × 3 convolutional filters (with padding) and 2 × 2 max pooling filters with stride 2 to halve the spatial resolution in the encoder.

Question 8

+5 marksOne or more correct options

Which of the following are valid advantages of using Convolutional Neural Networks (CNNs) instead of fully connected Multilayer Perceptrons (MLPs) for image-based tasks?

Select all that apply.

  1. A

    CNNs require significantly fewer parameters than MLPs for high-dimensional image inputs.

  2. B

    CNNs are better at capturing spatial hierarchies due to weight sharing and local connectivity.

  3. C

    CNNs can approximate any function with fewer layers than MLPs due to the universal approximation theorem.

  4. D

    CNNs are translation invariant by design, making them robust to object position shifts in images.

  5. E

    CNNs do not require any activation functions since convolutions are linear operators.

  6. F

    CNNs are computationally faster than MLPs on image data due to sparse connections and weight sharing.

Show answer

Correct answers

  • A

    CNNs require significantly fewer parameters than MLPs for high-dimensional image inputs.

  • B

    CNNs are better at capturing spatial hierarchies due to weight sharing and local connectivity.

  • D

    CNNs are translation invariant by design, making them robust to object position shifts in images.

  • F

    CNNs are computationally faster than MLPs on image data due to sparse connections and weight sharing.

Question 9

+5 marksOne or more correct options

In the Faster R-CNN architecture, the Region Proposal Network (RPN) plays a critical role in object detection.
Which of the following statements correctly describe the role of the RPN?

Select all that apply.

  1. A

    The RPN generates a set of class-agnostic region proposals likely to contain objects.

  2. B

    The RPN performs classification and bounding box regression to output object classes and their exact locations.

  3. C

    The RPN uses anchor boxes of different scales and aspect ratios to slide over convolutional feature maps.

  4. D

    The RPN replaces traditional region proposal methods like selective search, making the pipeline faster and end-to-end trainable.

  5. E

    The RPN outputs fixed-size feature maps that are directly used for object classification.

  6. F

    The RPN filters out background regions by assigning objectness scores to anchors.

Show answer

Correct answers

  • A

    The RPN generates a set of class-agnostic region proposals likely to contain objects.

  • C

    The RPN uses anchor boxes of different scales and aspect ratios to slide over convolutional feature maps.

  • D

    The RPN replaces traditional region proposal methods like selective search, making the pipeline faster and end-to-end trainable.

  • F

    The RPN filters out background regions by assigning objectness scores to anchors.

Question 10

+5 marksOne or more correct options

Which of the following are valid advantages of YOLO compared to Fast R-CNN or Faster R-CNN?

Select all that apply.

  1. A

    YOLO performs object classification and localization in a single forward pass, making it faster than two-stage detectors like Fast R-CNN and Faster R-CNN.

  2. B

    YOLO does not require region proposal generation, making the entire pipeline fully end-to-end trainable.

  3. C

    YOLO achieves higher localization accuracy than Faster R-CNN on small objects due to its coarse grid-based prediction.

  4. D

    YOLO treats bounding box coordinates and objectness score as regression outputs, while computing class probabilities through classification.

  5. E

    YOLO achieves higher precision by using a large number of anchor boxes per region.

  6. F

    YOLO treats object detection as a regression problem, which simplifies the detection pipeline and reduces computational overhead.

Show answer

Correct answers

  • A

    YOLO performs object classification and localization in a single forward pass, making it faster than two-stage detectors like Fast R-CNN and Faster R-CNN.

  • B

    YOLO does not require region proposal generation, making the entire pipeline fully end-to-end trainable.

  • D

    YOLO treats bounding box coordinates and objectness score as regression outputs, while computing class probabilities through classification.

  • F

    YOLO treats object detection as a regression problem, which simplifies the detection pipeline and reduces computational overhead.

Question 11

+5 marksOne or more correct options

Which of the following are advantages of ResNet over VGG-19?

Select all that apply.

  1. A

    ResNet requires fewer parameters than VGG-19 while achieving higher accuracy.

  2. B

    ResNet’s residual connections help mitigate vanishing gradients in very deep networks.

  3. C

    On the CIFAR-10 dataset, ResNet achieves higher training and validation accuracy using significantly fewer convolutional layers than VGG-19.

  4. D

    ResNet models can be trained with depths exceeding 100 layers without suffering from degradation problems.

  5. E

    ResNet blocks require more memory and training time due to the skip connections compared to VGG-19.

  6. F

    VGG-19 is easier to deploy on edge devices because of its lightweight residual architecture.

Show answer

Correct answers

  • A

    ResNet requires fewer parameters than VGG-19 while achieving higher accuracy.

  • B

    ResNet’s residual connections help mitigate vanishing gradients in very deep networks.

  • D

    ResNet models can be trained with depths exceeding 100 layers without suffering from degradation problems.

Question 12

+5 marksOne or more correct options

Which of the following code snippets can be used for data augmentation during training in PyTorch?

Select all that apply.

  1. A
  2. B
  3. C
  4. D
  5. E
Show answer

Correct answers

  • A
  • C
  • E

Question 13

+5 marksOne or more correct options

Which of the following statements are correct regarding Generative Adversarial Networks (GANs)?

Select all that apply.

  1. A

    The generator tries to minimize the probability that the discriminator correctly classifies fake samples.

  2. B

    The discriminator is trained to maximize the probability of correctly classifying real and generated (fake) data.

  3. C

    The generator directly receives labeled training data to learn the target distribution.

  4. D

    During training, the generator is updated based on the discriminator’s feedback to improve sample quality.

  5. E

    GAN training can suffer from instability due to the adversarial objective, leading to issues like mode collapse.

  6. F

    A perfectly trained discriminator ensures faster convergence of the generator.

Show answer

Correct answers

  • A

    The generator tries to minimize the probability that the discriminator correctly classifies fake samples.

  • B

    The discriminator is trained to maximize the probability of correctly classifying real and generated (fake) data.

  • D

    During training, the generator is updated based on the discriminator’s feedback to improve sample quality.

  • E

    GAN training can suffer from instability due to the adversarial objective, leading to issues like mode collapse.

Question 14

+5 marksOne or more correct options

SRGAN and ESRGAN are both deep learning architectures designed for single image super- resolution. Which of the following statements correctly describe the key differences between ESRGAN and SRGAN?

Select all that apply.

  1. A

    ESRGAN replaces the standard residual blocks in SRGAN with Residual-in- Residual Dense Blocks (RRDB) for better performance.

  2. B

    SRGAN employs Perceptual Loss, while ESRGAN removes it to focus only on pixel-wise MSE loss for training stability.

  3. C

    ESRGAN produces sharper and more realistic textures than SRGAN due to architectural and loss function improvements.

  4. D

    Both SRGAN and ESRGAN use a VGG-based perceptual loss computed on feature maps extracted from deeper and shallower layers, respectively, of a pretrained classifier.

  5. E

    SRGAN is trained using only adversarial and perceptual losses, whereas ESRGAN includes a content loss computed using pixel-wise L1 loss.

Show answer

Correct answers

  • A

    ESRGAN replaces the standard residual blocks in SRGAN with Residual-in- Residual Dense Blocks (RRDB) for better performance.

  • C

    ESRGAN produces sharper and more realistic textures than SRGAN due to architectural and loss function improvements.

  • E

    SRGAN is trained using only adversarial and perceptual losses, whereas ESRGAN includes a content loss computed using pixel-wise L1 loss.

Question 15

+5 marksOne or more correct options

The Multi-stage Progressive Image Restoration Network (MPRNet) is a state-of-the-art architecture for tasks like image deblurring and deraining. It follows a multi-stage design where features are progressively refined across stages. how many of the above components are explicitly part of the original MPRNet architecture?

Select all that apply.

  1. A

    a single layer neural network.

  2. B

    UNet

  3. C

    Supervised Attention Module

  4. D

    Channel Attention Block

  5. E

    Fast RCNN block

Show answer

Correct answers

  • B

    UNet

  • C

    Supervised Attention Module

  • D

    Channel Attention Block

Question 16

+5 marksNumerical answer

You are given a feature map of size 32×32×12832 \times 32 \times 128 (height ×\times width ×\times channels). Three convolution operations are applied in parallel on this input with stride=1 and padding=1, maintaining the spatial dimensions:

  • 1×11 \times 1 convolution with 256 filters
  • 3×33 \times 3 convolution with 128 filters
  • 5×55 \times 5 convolution with 64 filters

Each convolution operates on all input channels (i.e., Cin=128C_{\text{in}} = 128). Compute the total number of operations performed across all three convolutions.[Assume bias=0]

Show answer

Correct answer: 3029908880

Question 17

+5 marksNumerical answer
Show answer

Correct answer: 0.63 (accepted within ±0.02)

Question 18

+5 marksNumerical answer

You are evaluating an object detection model using the Mean Intersection over Union (mIoU) metric.

The model predicts the following 3 bounding boxes for a given image:

  • Predicted Box 1: (10,10)(10, 10) to (30,30)(30, 30)
  • Predicted Box 2: (40,40)(40, 40) to (60,60)(60, 60)
  • Predicted Box 3: (70,70)(70, 70) to (90,90)(90, 90)

The ground truth boxes for these objects are:

  • Ground Truth Box 1: (15,15)(15, 15) to (35,35)(35, 35)
  • Ground Truth Box 2: (40,40)(40, 40) to (60,60)(60, 60)
  • Ground Truth Box 3: (80,80)(80, 80) to (100,100)(100, 100)

The Mean IoU is defined as:

Mean IoU=1N∑i=1NArea of Bipred∩BigtArea of Bipred∪Bigt\text{Mean IoU} = \frac{1}{N} \sum_{i=1}^{N} \frac{\text{Area of } B_i^{\text{pred}} \cap B_i^{\text{gt}}}{\text{Area of } B_i^{\text{pred}} \cup B_i^{\text{gt}}}

Compute the Mean IoU (rounded to two decimal places) over the 3 box pairs.

Show answer

Correct answer: 0.51 (accepted within ±0.02)

Question 19

+5 marksNumerical answer
Show answer

Correct answer: 64

Question 20

+1.5 marksNumerical answer

Two models, Model 1 and Model 2, are used to reconstruct grayscale images with pixel intensity values in the range [0,255][0, 255]. Their performance is evaluated by computing the Mean Squared Error (MSE) between the reconstructed images and their corresponding ground truth images.

The reported MSE values are:

  • Model 1: MSE1=205.80\text{MSE}_1 = 205.80
  • Model 2: MSE2=180.50\text{MSE}_2 = 180.50

The Peak Signal-to-Noise Ratio (PSNR) is calculated using the formula:

PSNR=10⋅log⁡10(MAX2MSE),where MAX=255\text{PSNR} = 10 \cdot \log_{10}\left(\frac{MAX^2}{\text{MSE}}\right), \quad \text{where } MAX = 255

Based on the above data, answer the given subquestions.

Compute the PSNR for Model 1 (in dB) (rounded to 2 decimal places) :

Show answer

Correct answer: 25.00

Question 21

+1.5 marksNumerical answer

Two models, Model 1 and Model 2, are used to reconstruct grayscale images with pixel intensity values in the range [0,255][0, 255]. Their performance is evaluated by computing the Mean Squared Error (MSE) between the reconstructed images and their corresponding ground truth images.

The reported MSE values are:

  • Model 1: MSE1=205.80\text{MSE}_1 = 205.80
  • Model 2: MSE2=180.50\text{MSE}_2 = 180.50

The Peak Signal-to-Noise Ratio (PSNR) is calculated using the formula:

PSNR=10⋅log⁡10(MAX2MSE),where MAX=255\text{PSNR} = 10 \cdot \log_{10}\left(\frac{MAX^2}{\text{MSE}}\right), \quad \text{where } MAX = 255

Based on the above data, answer the given subquestions.

Compute the PSNR for Model 2 (in dB) (rounded to 2 decimal places):

Show answer

Correct answer: 25.57 (accepted within ±0.02)

Question 22

+2 marksNumerical answer

Two models, Model 1 and Model 2, are used to reconstruct grayscale images with pixel intensity values in the range [0,255][0, 255]. Their performance is evaluated by computing the Mean Squared Error (MSE) between the reconstructed images and their corresponding ground truth images.

The reported MSE values are:

  • Model 1: MSE1=205.80\text{MSE}_1 = 205.80
  • Model 2: MSE2=180.50\text{MSE}_2 = 180.50

The Peak Signal-to-Noise Ratio (PSNR) is calculated using the formula:

PSNR=10⋅log⁡10(MAX2MSE),where MAX=255\text{PSNR} = 10 \cdot \log_{10}\left(\frac{MAX^2}{\text{MSE}}\right), \quad \text{where } MAX = 255

Based on the above data, answer the given subquestions.

Which model produces an image more similar to the ground truth?

Show answer

Correct answer: 2