Unit 5: Image Segmentation and Advanced Vision Architectures - Practice Quiz

CSE471 — Deep Learning For Computer Vision 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 What is the main goal of semantic segmentation?

Semantic segmentation Easy
A. Generate a caption for the image
B. Draw one box around each object
C. Assign a class label to every pixel
D. Assign one label to the entire image

2 How does semantic segmentation usually treat two objects of the same class?

Semantic segmentation Easy
A. It removes one of the objects
B. It assigns them different class names
C. It gives them the same class label
D. It gives them separate instance labels

3 What does instance segmentation produce for each detected object?

Instance segmentation Easy
A. A single image-level label
B. A global color histogram
C. A separate pixel-level mask
D. A sequence of text tokens

4 Which feature distinguishes instance segmentation from semantic segmentation?

Instance segmentation Easy
A. Recognizing classes present in an image
B. Assigning category labels to image pixels
C. Processing images with convolutional layers
D. Separating individual objects of one class

5 Why is the UNet architecture named "U-Net"?

UNet Easy
A. Its encoder-decoder layout resembles a U
B. It was designed for unsupervised learning
C. It accepts only U-shaped input images
D. It uses a loss function called U-loss

6 What is the main purpose of skip connections in UNet?

UNet Easy
A. Remove all encoder features
B. Preserve fine spatial information
C. Reduce the number of classes
D. Convert images into text

7 What is the primary role of the decoder path in UNet?

UNet Easy
A. Restore spatial resolution
B. Shuffle the input pixels
C. Calculate image captions
D. Store training labels

8 Which type of convolution is widely used in DeepLab to capture wider context?

DeepLab architectures Easy
A. Atrous convolution
B. Depthwise convolution
C. Pointwise convolution
D. Transposed convolution

9 What is the purpose of Atrous Spatial Pyramid Pooling in DeepLab?

DeepLab architectures Easy
A. Capture features at multiple scales
B. Remove every background pixel
C. Convert pixels into word tokens
D. Assign one label per image

10 Mask R-CNN extends Faster R-CNN by adding which output branch?

Instance segmentation using Mask R-CNN Easy
A. Depth sensor prediction
B. Audio signal prediction
C. Image caption prediction
D. Object mask prediction

11 What does the mask branch of Mask R-CNN predict?

Instance segmentation using Mask R-CNN Easy
A. A camera pose for each frame
B. A single class for all pixels
C. A binary mask for each instance
D. A sentence for each image

12 What does self-attention allow each input token to do?

Self-attention Easy
A. Reduce every image to one pixel
B. Attend to other input tokens
C. Delete all neighboring tokens
D. Replace training labels automatically

13 Which three components are commonly used to compute self-attention?

Self-attention Easy
A. Width, height, and depth
B. Mean, median, and mode
C. Red, green, and blue
D. Query, key, and value

14 Why does multi-head attention use several attention heads?

Multi-head attention Easy
A. To remove positional information completely
B. To learn different relationships in parallel
C. To process only one token at a time
D. To convert every image into grayscale

15 How are the outputs of attention heads commonly combined?

Multi-head attention Easy
A. They are sorted by token position
B. They are converted into class labels
C. They are discarded after averaging
D. They are concatenated and projected

16 Why is positional encoding added to Transformer inputs?

Positional encoding Easy
A. To reduce images to binary colors
B. To generate object bounding boxes
C. To replace the attention mechanism
D. To represent token order and position

17 Which mechanism is central to Transformer-based models?

Transformer-based models Easy
A. Attention
B. Median filtering
C. Histogram equalization
D. Edge thresholding

18 How does a Vision Transformer typically prepare an image for processing?

ViT Easy
A. It divides the image into patches
B. It sorts pixels by brightness
C. It converts the image into audio
D. It keeps only the center pixel

19 In a standard ViT classifier, what is the main role of the class token?

ViT Easy
A. Control the image color space
B. Mark every object boundary
C. Store the original image dimensions
D. Represent the image for classification

20 What type of attention is a key feature of the Swin Transformer?

Swin Transformer Easy
A. Shifted-window attention
B. Recurrent-state attention
C. Random-pixel attention
D. Channel-only attention

21 A semantic segmentation model processes a street image containing three cars and two pedestrians. How should the output represent these objects?

Semantic segmentation Medium
A. All foreground pixels receive the same object identifier
B. Each car and pedestrian receives a unique class label
C. All car pixels share one class label, and all pedestrian pixels share another
D. Each object is represented only by a bounding box

22 A segmentation model predicts the correct class for most large background regions but performs poorly on small foreground objects. Which metric would better reveal this weakness than overall pixel accuracy?

Semantic segmentation Medium
A. Mean intersection over union
B. Total inference time
C. Average image brightness
D. Number of model parameters

23 An application must count individual apples in an image even when several apples touch or overlap. Which output is most appropriate?

Instance segmentation Medium
A. A separate pixel mask for each apple
B. One class probability for the image
C. One foreground mask for all apples
D. One depth value for each apple

24 Two predicted masks correspond to the same ground-truth object. Their intersection over union values are and , and the matching threshold is . What is the usual evaluation outcome?

Instance segmentation Medium
A. Both predictions are ignored during evaluation
B. The first is a true positive, and the second is a false positive
C. Both predictions are counted as true positives
D. The first is a false positive, and the second is a true positive

25 In UNet, why are encoder feature maps concatenated with decoder feature maps through skip connections?

UNet Medium
A. To make every convolution use identical kernel weights
B. To remove the need for nonlinear activation functions
C. To recover fine spatial details lost during downsampling
D. To convert segmentation into image-level classification

26 A UNet model correctly identifies organs but produces coarse boundaries. Which modification most directly increases the decoder's output resolution?

UNet Medium
A. Replace skip connections with dense classification layers
B. Add another upsampling stage with corresponding skip features
C. Increase the stride of every encoder convolution
D. Add another global average pooling layer

27 A DeepLab model uses an atrous convolution with kernel size and dilation rate . What is its effective kernel size along one spatial dimension?

DeepLab architectures Medium
A.
B.
C.
D.

28 Why does Atrous Spatial Pyramid Pooling use several atrous convolution rates in parallel?

DeepLab architectures Medium
A. To assign a unique mask identifier to every object
B. To replace all learned filters with fixed filters
C. To capture contextual information at multiple spatial scales
D. To reduce every feature map to one spatial location

29 In Mask R-CNN, which component preserves spatial alignment when extracting features for a proposed region?

Instance segmentation using Mask R-CNN Medium
A. Non-maximum suppression
B. Global average pooling
C. RoI Align
D. Region Proposal Network

30 A Mask R-CNN system detects an object with the correct class and bounding box, but its predicted mask is inaccurate. Which branch most directly requires improvement?

Instance segmentation using Mask R-CNN Medium
A. The backbone classification stem
B. The parallel mask prediction branch
C. The box coordinate regression branch
D. The proposal objectness branch

31 In scaled dot-product self-attention, why is divided by before applying softmax?

Self-attention Medium
A. To convert the attention matrix into positional encodings
B. To make attention weights independent of the input
C. To force every token to attend only to itself
D. To prevent large dot products from saturating the softmax

32 Suppose one attention row has pre-softmax scores . What attention distribution is produced for the three tokens?

Self-attention Medium
A.
B.
C.
D.

33 What practical benefit does multi-head attention provide compared with a single attention head of similar total size?

Multi-head attention Medium
A. Each head guarantees a perfectly independent prediction
B. Each head processes only one fixed input class
C. Different heads can model different relationships between tokens
D. All heads eliminate the need for learned projections

34 A transformer has model dimension and uses attention heads with equal dimensions. What is the usual query dimension of each head?

Multi-head attention Medium
A.
B.
C.
D.

35 A vision transformer receives the same set of patch embeddings in two different spatial orders but uses no positional encoding. What limitation is most likely?

Positional encoding Medium
A. It cannot calculate attention weights between patches
B. It cannot reliably distinguish the two patch arrangements
C. It requires convolution to normalize the embeddings
D. It must classify every patch as the same category

36 A model trained on image patches is fine-tuned using a patch grid. What is a common way to adapt its learned positional embeddings?

Positional encoding Medium
A. Replace all patch embeddings with constant vectors
B. Interpolate the embeddings to the new two-dimensional grid
C. Sort the patches according to their average intensity
D. Duplicate the class token for every additional patch

37 Why can full self-attention become expensive for high-resolution feature maps containing tokens?

Transformer-based models Medium
A. Its convolution kernels grow proportionally to
B. Its attention matrix requires computation proportional to
C. Its output classes increase proportionally to
D. Its normalization layers require memory proportional to

38 A image is divided into non-overlapping patches for a ViT. Excluding the class token, how many patch tokens are created?

ViT Medium
A.
B.
C.
D.

39 In a standard ViT classifier, what is the primary role of the class token after the transformer encoder?

ViT Medium
A. It provides an aggregate representation for image classification
B. It replaces the query vector in every attention head
C. It specifies the fixed position of the image center
D. It reconstructs every patch at the original pixel resolution

40 Why does a Swin Transformer alternate between regular window attention and shifted-window attention?

Swin Transformer Medium
A. To ensure every window always contains identical patch values
B. To make attention global in every layer without added cost
C. To enable information exchange across neighboring window boundaries
D. To remove the need for hierarchical feature representations

41 A semantic segmentation model predicts a class label for every pixel, but two adjacent cars touching each other are merged into one connected region. Which change directly addresses the limitation while preserving per-pixel classification?

Semantic segmentation Hard
A. Use only global average pooling before the decoder
B. Replace pixel labels with image-level class probabilities
C. Predict a separate instance identifier for each foreground region
D. Increase the number of semantic classes for vehicle types

42 An instance segmentation system achieves high mask IoU on isolated objects but frequently assigns overlapping pixels to multiple objects in crowded scenes. Which evaluation behavior is most likely to expose this failure?

Instance segmentation Hard
A. Unchanged AP because overlapping masks are always valid
B. Low class accuracy with unchanged instance-level AP
C. High pixel accuracy with reduced instance-level AP
D. High mean IoU with improved boundary recall

43 In a UNet, skip connections concatenate encoder features with upsampled decoder features at matching resolutions. What is the principal effect when the encoder features retain fine spatial detail but have weak semantic context?

UNet Hard
A. The encoder features automatically become instance-specific embeddings
B. The decoder becomes equivalent to a fully connected classifier
C. The decoder loses localization detail but gains translation invariance
D. The decoder gains localization detail but may need deeper layers to resolve class ambiguity

44 A UNet is trained on a dataset where foreground pixels occupy only 2% of each image. The model predicts background everywhere and obtains high pixel accuracy. Which loss modification most directly counters this failure?

UNet Hard
A. Increase the batch size without changing the objective
B. Use a foreground-weighted or overlap-sensitive loss
C. Remove all decoder skip connections
D. Apply stronger color normalization to the inputs

45 DeepLab uses atrous convolution with dilation rate . For a kernel, what is the effective kernel size, and what trade-off does increasing introduce?

DeepLab architectures Hard
A. ; identical context with higher parameter count
B. ; larger context with quadratic parameter growth
C. ; larger context with fewer sampled intermediate pixels
D. ; smaller context with denser local sampling

46 A DeepLab model uses ASPP branches with dilation rates that share a common factor. The output shows repeated checkerboard-like gaps in textured regions. Which explanation is most appropriate?

DeepLab architectures Hard
A. The dilation rates force every branch to use identical learned weights
B. The decoder cannot represent any receptive field larger than the kernel
C. The classifier has too many channels and therefore loses all spatial information
D. The branches may sample overlapping periodic locations and amplify gridding artifacts

47 In DeepLab, output stride is changed from 16 to 8 while the input and decoder remain otherwise unchanged. Which consequence is most expected?

DeepLab architectures Hard
A. Identical feature resolution with half the convolutional parameters
B. Higher-resolution feature maps with no change in inference cost
C. Lower-resolution feature maps with fewer boundary errors
D. Higher-resolution feature maps with greater memory and computation

48 Why does Mask R-CNN use RoIAlign rather than RoIPool for predicting object masks?

Instance segmentation using Mask R-CNN Hard
A. RoIAlign avoids quantization so mask features remain spatially aligned
B. RoIAlign shares one mask across all detected object classes
C. RoIAlign removes the need for region proposals during training
D. RoIAlign replaces non-maximum suppression with differentiable ranking

49 Mask R-CNN predicts a binary mask for each detected RoI using a class-specific mask branch. During inference, which operation converts that mask into the final class-conditioned instance mask?

Instance segmentation using Mask R-CNN Hard
A. Multiply every channel by the objectness score and retain them all
B. Average all class channels and assign the global image label
C. Select the channel for the predicted class and threshold its probabilities
D. Select the channel with the largest spatial area regardless of class

50 A small object is correctly localized by the bounding-box branch but receives a poor mask because its RoI feature is too coarse. Which architectural adjustment most directly improves this issue?

Instance segmentation using Mask R-CNN Hard
A. Remove the mask loss so classification receives more gradient
B. Use global pooling to add more image-level context to the mask
C. Increase the confidence threshold for the bounding-box classifier
D. Use a higher-resolution mask branch or a feature pyramid level suited to small objects

51 For self-attention with queries , keys , and values , the output is . What problem does the factor primarily address?

Self-attention Hard
A. It prevents large dot products from saturating the softmax
B. It guarantees that every token attends to itself equally
C. It reduces the sequence length before matrix multiplication
D. It removes the need for learned query and key projections

52 In a vision transformer, a global self-attention layer processes image tokens with embedding dimension . Which asymptotic cost is the main bottleneck as image resolution increases?

Self-attention Hard
A. independent of the number of image tokens
B. due only to the softmax normalization
C. due to the token-to-token attention matrix
D. because each token attends to only one neighbor

53 Why can multi-head attention represent relationships that a single attention head with the same total embedding dimension may miss?

Multi-head attention Hard
A. Each head removes the softmax constraint from the other heads
B. Each head uses a different positional encoding dimension by definition
C. Each head learns a separate projection subspace and attention pattern
D. Each head increases the sequence length before feature projection

54 A transformer receives image patch embeddings without any positional information. Two images contain identical patch content but with patches permuted spatially. What behavior should be expected from the transformer encoder?

Positional encoding Hard
A. It automatically reconstructs the original arrangement from patch appearance
B. It produces the same output up to the corresponding permutation of token representations
C. It assigns different positions using the order of pixels inside each patch
D. It becomes convolutional because self-attention preserves local neighborhoods

55 A model trained with learned absolute positional embeddings at one fixed image resolution is evaluated at a larger resolution. Which adaptation is commonly required?

Positional encoding Hard
A. Interpolate the positional embedding grid to the new patch-grid dimensions
B. Discard the positional embeddings and freeze all attention weights
C. Duplicate the class token once for every additional image patch
D. Replace every patch embedding with a one-dimensional pixel index

56 A transformer-based segmentation model has excellent global recognition but poor thin-structure boundaries. Which design modification best addresses the mismatch?

Transformer-based models Hard
A. Add a high-resolution feature pathway or decoder with multiscale fusion
B. Use only the class token for dense pixel-level predictions
C. Remove all skip connections to enforce global token mixing
D. Increase patch size so each token covers more boundary context

57 A Vision Transformer uses patch size on an image of dimensions . Ignoring a class token, how does the token count change when the patch size is halved while and remain fixed?

ViT Hard
A. It remains constant because the embedding dimension is unchanged
B. It increases by approximately a factor of four
C. It decreases by approximately a factor of four
D. It increases by approximately a factor of two

58 Compared with a convolutional network, a vanilla ViT trained from scratch on a small image dataset often underperforms primarily because it has:

ViT Hard
A. No ability to model long-range interactions between image regions
B. A mandatory recurrent bottleneck between successive patch embeddings
C. Weaker built-in locality and translation-equivariant inductive biases
D. Fixed convolution kernels that cannot adapt to image content

59 What is the key computational advantage of shifted-window attention in Swin Transformer over global self-attention for a feature map with tokens?

Swin Transformer Hard
A. Attention is computed within local windows, reducing the dominant cost toward linear scaling in
B. Attention is removed entirely, reducing the model to a standard convolutional network
C. The number of channels becomes independent of the input resolution
D. Every token attends globally in one layer without forming any pairwise scores

60 A Swin Transformer uses alternating regular and shifted windows. If shifted windows were removed while all other components remained unchanged, what capability would be most impaired?

Swin Transformer Hard
A. The hierarchical reduction of spatial resolution between stages
B. The projection of tokens into query, key, and value spaces
C. The normalization of attention logits within each local window
D. Information exchange between tokens belonging to different fixed windows