uiz Space

May 2025 term · Deep Learning Practice · BSDA5013

Deep Learning Practice End Term: 31 August 2025, Set QDB3 (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 QDB3: 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 111 × 111 (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

  • A

Question 2

+5 marksOne correct option
  1. A

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

  2. B

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

  3. C

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

  4. D

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

Show answer

Correct answer

  • A

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

Question 3

+5 marksOne correct option
  1. A

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

  2. B

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

  3. C

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

  4. D

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

Show answer

Correct answer

  • A

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

Question 4

+5 marksOne correct option

Consider the following PyTorch CNN model used for a classification task on a small dataset of 32 x 32 RGB images:

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

You replace this model with a much deeper VGG-19 network, hoping to improve performance. However, you observe that the performance remains the same or even slightly worsens.

Which of the following is the most likely reason why this replacement did not help?

  1. A

    VGG-19 uses too many skip connections, which interfere with shallow patterns.

  2. B

    The original model had batch normalization, and VGG-19 lacks it by default.

  3. C

    The dataset is too small and simple for a deep architecture like VGG-19 to show its advantages, and may even overfit.

  4. D

    VGG-19 performs better only on grayscale images, not RGB images.

Show answer

Correct answer

  • C

    The dataset is too small and simple for a deep architecture like VGG-19 to show its advantages, and may even overfit.

Question 5

+5 marksOne correct option

You are building a classifier for a medical imaging dataset with 5 categories (e.g., types of skin lesions). You decide to use ResNet-18 pretrained on ImageNet and fine-tune only the final layer.

Below is a partially completed PyTorch code snippet:

python
import torch
import torch.nn as nn
from torchvision.models import resnet18
class MedicalImageClassifier(nn.Module):
def __init__(self):
super(MedicalImageClassifier, self).__init__()
self.base = resnet18(pretrained=True)
# [Missing Line]
def forward(self, x):
return self.base(x)
model = MedicalImageClassifier()

Which of the following lines correctly fills in the missing line to adapt the ResNet-18 model for 5-class classification?

  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 the Faster R-CNN object detection pipeline:

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) RoI Pooling
(c) Classification and Bounding Box Regression
(d) Input image
(e) Backbone CNN (e.g., ResNet)

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

  1. A

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

  2. B

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

  3. C

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

  4. D

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

Show answer

Correct answer

  • A

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

Question 7

+5 marksOne correct option

In the original U-Net architecture, which of the following statements about the decoder (expanding) path is correct?

  1. A

    The decoder upsamples the feature maps using 2 x 2 transposed convolutions and concatenates them with corresponding encoder features.

  2. B

    The decoder uses 3 x 3 max pooling to increase the spatial resolution before feature fusion.

  3. C

    The decoder applies 1 x 1 convolutions to increase spatial dimensions and reduce channel depth.

  4. D

    The decoder merges encoder and decoder features using element-wise addition instead of concatenation.

Show answer

Correct answer

  • A

    The decoder upsamples the feature maps using 2 x 2 transposed convolutions and concatenates them with corresponding encoder features.

Question 8

+5 marksOne or more correct options

Which of the following are valid reasons why Convolutional Neural Networks (CNNs) are preferred over fully connected Multilayer Perceptrons (MLPs) for image processing tasks?

Select all that apply.

  1. A

    CNNs reduce the number of parameters by using local connections and weight sharing.

  2. B

    CNNs can process images of arbitrary size without any architectural changes.

  3. C

    CNNs exploit the spatial structure of images, making them more efficient at recognizing patterns.

  4. D

    CNNs perform better than MLPs because they always use deeper networks.

  5. E

    CNNs maintain spatial hierarchies by stacking convolution and pooling layers.

  6. F

    CNNs can generalize better to unseen data due to their built-in translational invariance.

Show answer

Correct answers

  • A

    CNNs reduce the number of parameters by using local connections and weight sharing.

  • C

    CNNs exploit the spatial structure of images, making them more efficient at recognizing patterns.

  • E

    CNNs maintain spatial hierarchies by stacking convolution and pooling layers.

  • F

    CNNs can generalize better to unseen data due to their built-in translational invariance.

Question 9

+5 marksOne or more correct options

In the Faster R-CNN architecture, the Region of Interest (RoI) Pooling layer plays a key role in the object detection pipeline.
Which of the following statements correctly describe the function and properties of RoI Pooling?

Select all that apply.

  1. A

    RoI Pooling converts variable-sized region proposals into fixed-size feature maps for the classifier head.

  2. B

    RoI Pooling crops the region proposals from the input image and resizes them to a fixed dimension.

  3. C

    RoI Pooling enables batching and fully connected layers by standardizing the input dimensions.

  4. D

    RoI Pooling uses bilinear interpolation to produce smoother feature maps for each proposal.

  5. E

    RoI Pooling operates on convolutional feature maps, not directly on the raw image.

  6. F

    RoI Pooling discards proposals with low objectness scores before passing them to the classifier.

Show answer

Correct answers

  • A

    RoI Pooling converts variable-sized region proposals into fixed-size feature maps for the classifier head.

  • C

    RoI Pooling enables batching and fully connected layers by standardizing the input dimensions.

  • E

    RoI Pooling operates on convolutional feature maps, not directly on the raw image.

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 is faster at inference time because it predicts bounding boxes and class probabilities in a single pass.

  2. B

    YOLO is fully end-to-end trainable and does not rely on external region proposal mechanisms.

  3. C

    YOLO achieves higher recall than Faster R-CNN on all types of objects, especially small and overlapping ones.

  4. D

    YOLO formulates detection as a combination of regression (for bounding box coordinates and objectness score) and classification (for discrete object categories).

  5. E

    YOLO uses multi-scale feature fusion to improve detection of small objects.

  6. F

    YOLO’s architecture allows it to be deployed more easily on real-time and edge devices due to its compactness.

Show answer

Correct answers

  • A

    YOLO is faster at inference time because it predicts bounding boxes and class probabilities in a single pass.

  • B

    YOLO is fully end-to-end trainable and does not rely on external region proposal mechanisms.

  • D

    YOLO formulates detection as a combination of regression (for bounding box coordinates and objectness score) and classification (for discrete object categories).

  • F

    YOLO’s architecture allows it to be deployed more easily on real-time and edge devices due to its compactness.

Question 11

+5 marksOne or more correct options

Which of the following are NOT advantages of AlexNet over InceptionNet?

Select all that apply.

  1. A

    AlexNet is simpler and easier to implement compared to the complex multi- branch design of InceptionNet.

  2. B

    AlexNet requires fewer parameters than InceptionNet due to its shallow architecture.

  3. C

    AlexNet has better accuracy on ImageNet than InceptionNet due to its early adoption of ReLU and dropout.

  4. D

    AlexNet is faster to train on small datasets because of its shallow depth and simpler structure.

  5. E

    InceptionNet extracts multi-scale features using filters of different sizes in parallel, which improves accuracy.

  6. F

    AlexNet lacks 1 x 1 convolutions, which are used in InceptionNet for dimensionality reduction and increased efficiency.

Show answer

Correct answers

  • C

    AlexNet has better accuracy on ImageNet than InceptionNet due to its early adoption of ReLU and dropout.

  • E

    InceptionNet extracts multi-scale features using filters of different sizes in parallel, which improves accuracy.

  • F

    AlexNet lacks 1 x 1 convolutions, which are used in InceptionNet for dimensionality reduction and increased efficiency.

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 the training dynamics and properties of Generative Adversarial Networks (GANs)?

Select all that apply.

  1. A

    The generator’s objective is to produce data that the discriminator cannot distinguish from real data.

  2. B

    The discriminator is trained to minimize the distance between the generated data and the real data distributions.

  3. C

    GAN training is a min-max game where the generator and discriminator have opposing goals.

  4. D

    Mode collapse refers to the generator producing diverse outputs that cover multiple modes of the data distribution.

  5. E

    A balance between generator and discriminator learning rates is important to ensure stable training.

  6. F

    Conditional GANs extend standard GANs by incorporating label information into both the generator and discriminator.

Show answer

Correct answers

  • A

    The generator’s objective is to produce data that the discriminator cannot distinguish from real data.

  • C

    GAN training is a min-max game where the generator and discriminator have opposing goals.

  • E

    A balance between generator and discriminator learning rates is important to ensure stable training.

  • F

    Conditional GANs extend standard GANs by incorporating label information into both the generator and discriminator.

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 about the differences between ESRGAN and SRGAN are NOT correct?

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 layers 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

  • B

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

  • D

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

Question 15

+5 marksOne or more correct options

The Multi-stage Progressive Image Restoration Network (MPRNet) is designed to progressively restore degraded images across multiple stages. It integrates several architectural innovations to enhance image restoration performance. How many of the above components are explicitly part of the original MPRNet architecture?

Select all that apply.

  1. A

    UNet-style encoder-decoder at each stage

  2. B

    Residual Channel Attention Network (RCAN)

  3. C

    Supervised Attention Module (SAM)

  4. D

    Skip connections across stages

  5. E

    Non-local Attention Module

Show answer

Correct answers

  • A

    UNet-style encoder-decoder at each stage

  • C

    Supervised Attention Module (SAM)

  • D

    Skip connections across stages

Question 16

+5 marksNumerical answer

You are given a feature map of size 64×64×6464 \times 64 \times 64 (height ×\times width ×\times channels). Three convolution operations are applied in parallel on this input, maintaining the spatial dimensions:

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

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

Show answer

Correct answer: 394264576

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: (20,20)(20, 20) to (50,50)(50, 50)
  • Predicted Box 2: (60,60)(60, 60) to (80,80)(80, 80)
  • Predicted Box 3: (100,100)(100, 100) to (130,130)(130, 130)

The ground truth boxes for these objects are:

  • Ground Truth Box 1: (30,30)(30, 30) to (60,60)(60, 60)
  • Ground Truth Box 2: (55,55)(55, 55) to (75,75)(75, 75)
  • Ground Truth Box 3: (110,110)(110, 110) to (140,140)(140, 140)

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.32 (accepted within ±0.02)

Question 19

+5 marksNumerical answer
Show answer

Correct answer: 25

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=150.25\text{MSE}_1 = 150.25
  • Model 2: MSE2=210.90\text{MSE}_2 = 210.90

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: 26.35 (accepted within ±0.02)

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=150.25\text{MSE}_1 = 150.25
  • Model 2: MSE2=210.90\text{MSE}_2 = 210.90

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: 24.88 (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=150.25\text{MSE}_1 = 150.25
  • Model 2: MSE2=210.90\text{MSE}_2 = 210.90

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: 1