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. Assign one label to the entire image
C. Assign a class label to every pixel
D. Draw one box around each object

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

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

3 What does instance segmentation produce for each detected object?

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

4 Which feature distinguishes instance segmentation from semantic segmentation?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

15 How are the outputs of attention heads commonly combined?

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

16 Why is positional encoding added to Transformer inputs?

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

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 keeps only the center pixel
C. It converts the image into audio
D. It sorts pixels by brightness

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

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

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

Swin Transformer Easy
A. Random-pixel attention
B. Shifted-window attention
C. Recurrent-state 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. Each object is represented only by a bounding box
B. All foreground pixels receive the same object identifier
C. All car pixels share one class label, and all pedestrian pixels share another
D. Each car and pedestrian receives a unique class label

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. Average image brightness
B. Number of model parameters
C. Total inference time
D. Mean intersection over union

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. One class probability for the image
B. One depth value for each apple
C. One foreground mask for all apples
D. A separate pixel mask 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 recover fine spatial details lost during downsampling
C. To remove the need for nonlinear activation functions
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 reduce every feature map to one spatial location
B. To capture contextual information at multiple spatial scales
C. To replace all learned filters with fixed filters
D. To assign a unique mask identifier to every object

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. Region Proposal Network
C. RoI Align
D. Global average pooling

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 box coordinate regression branch
B. The proposal objectness branch
C. The parallel mask prediction branch
D. The backbone classification stem

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

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

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 processes only one fixed input class
B. Different heads can model different relationships between tokens
C. Each head guarantees a perfectly independent prediction
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 must classify every patch as the same category
B. It cannot reliably distinguish the two patch arrangements
C. It cannot calculate attention weights between patches
D. It requires convolution to normalize the embeddings

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. Sort the patches according to their average intensity
B. Duplicate the class token for every additional patch
C. Replace all patch embeddings with constant vectors
D. Interpolate the embeddings to the new two-dimensional grid

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

Transformer-based models Medium
A. Its normalization layers require memory proportional to
B. Its attention matrix requires computation proportional to
C. Its convolution kernels grow proportionally to
D. Its output classes increase proportionally 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 specifies the fixed position of the image center
B. It replaces the query vector in every attention head
C. It reconstructs every patch at the original pixel resolution
D. It provides an aggregate representation for image classification

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

Swin Transformer Medium
A. To enable information exchange across neighboring window boundaries
B. To ensure every window always contains identical patch values
C. To make attention global in every layer without added cost
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. Replace pixel labels with image-level class probabilities
B. Use only global average pooling before the decoder
C. Increase the number of semantic classes for vehicle types
D. Predict a separate instance identifier for each foreground region

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. Low class accuracy with unchanged instance-level AP
B. High mean IoU with improved boundary recall
C. Unchanged AP because overlapping masks are always valid
D. High pixel accuracy with reduced instance-level AP

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 decoder becomes equivalent to a fully connected classifier
B. The decoder loses localization detail but gains translation invariance
C. The decoder gains localization detail but may need deeper layers to resolve class ambiguity
D. The encoder features automatically become instance-specific embeddings

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. Remove all decoder skip connections
B. Increase the batch size without changing the objective
C. Apply stronger color normalization to the inputs
D. Use a foreground-weighted or overlap-sensitive loss

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. ; smaller context with denser local sampling
C. ; larger context with quadratic parameter growth
D. ; larger context with fewer sampled intermediate pixels

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 branches may sample overlapping periodic locations and amplify gridding artifacts
C. The classifier has too many channels and therefore loses all spatial information
D. The decoder cannot represent any receptive field larger than the kernel

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. Lower-resolution feature maps with fewer boundary errors
C. Higher-resolution feature maps with no change in inference cost
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 removes the need for region proposals during training
B. RoIAlign avoids quantization so mask features remain spatially aligned
C. RoIAlign shares one mask across all detected object classes
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. Select the channel with the largest spatial area regardless of class
B. Multiply every channel by the objectness score and retain them all
C. Average all class channels and assign the global image label
D. Select the channel for the predicted class and threshold its probabilities

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. Use a higher-resolution mask branch or a feature pyramid level suited to small objects
B. Use global pooling to add more image-level context to the mask
C. Increase the confidence threshold for the bounding-box classifier
D. Remove the mask loss so classification receives more gradient

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

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

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. because each token attends to only one neighbor
C. due to the token-to-token attention matrix
D. due only to the softmax normalization

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 increases the sequence length before feature projection
C. Each head learns a separate projection subspace and attention pattern
D. Each head uses a different positional encoding dimension by definition

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 assigns different positions using the order of pixels inside each patch
B. It becomes convolutional because self-attention preserves local neighborhoods
C. It produces the same output up to the corresponding permutation of token representations
D. It automatically reconstructs the original arrangement from patch appearance

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. Duplicate the class token once for every additional image patch
C. Discard the positional embeddings and freeze all attention weights
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. Increase patch size so each token covers more boundary context
C. Use only the class token for dense pixel-level predictions
D. Remove all skip connections to enforce global token mixing

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 decreases by approximately a factor of four
B. It remains constant because the embedding dimension is unchanged
C. It increases 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. Fixed convolution kernels that cannot adapt to image content
B. Weaker built-in locality and translation-equivariant inductive biases
C. A mandatory recurrent bottleneck between successive patch embeddings
D. No ability to model long-range interactions between image regions

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. Every token attends globally in one layer without forming any pairwise scores
B. Attention is computed within local windows, reducing the dominant cost toward linear scaling in
C. Attention is removed entirely, reducing the model to a standard convolutional network
D. The number of channels becomes independent of the input resolution

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. Information exchange between tokens belonging to different fixed windows
B. The hierarchical reduction of spatial resolution between stages
C. The projection of tokens into query, key, and value spaces
D. The normalization of attention logits within each local window