Correct Answer: Assign a class label to every pixel
Explanation:
Semantic segmentation classifies each image pixel into a category such as road, person, or sky.
Incorrect! Try again.
2How 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
Correct Answer: It gives them the same class label
Explanation:
Semantic segmentation identifies pixel classes but does not distinguish separate objects belonging to the same class.
Incorrect! Try again.
3What 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
Correct Answer: A separate pixel-level mask
Explanation:
Instance segmentation identifies each object separately and provides a pixel-level mask for it.
Incorrect! Try again.
4Which 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
Correct Answer: Separating individual objects of one class
Explanation:
Instance segmentation assigns a distinct mask to each object, even when several objects share the same class.
Incorrect! Try again.
5Why 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
Correct Answer: Its encoder-decoder layout resembles a U
Explanation:
UNet has a contracting encoder path and an expanding decoder path, forming a U-shaped architecture.
Incorrect! Try again.
6What 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
Correct Answer: Preserve fine spatial information
Explanation:
Skip connections pass detailed encoder features to the decoder, helping recover precise object boundaries.
Incorrect! Try again.
7What 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
Correct Answer: Restore spatial resolution
Explanation:
The decoder upsamples feature maps to produce a segmentation output at the required spatial resolution.
Incorrect! Try again.
8Which 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
Correct Answer: Atrous convolution
Explanation:
Atrous, or dilated, convolution enlarges the receptive field without greatly reducing feature-map resolution.
Incorrect! Try again.
9What 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
Correct Answer: Capture features at multiple scales
Explanation:
Atrous Spatial Pyramid Pooling applies atrous operations at different rates to capture objects and context at multiple scales.
Incorrect! Try again.
10Mask 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
Correct Answer: Object mask prediction
Explanation:
Mask R-CNN adds a branch that predicts a binary segmentation mask for each detected object.
Incorrect! Try again.
11What 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
Correct Answer: A binary mask for each instance
Explanation:
The mask branch predicts which pixels belong to each individual detected object.
Incorrect! Try again.
12What 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
Correct Answer: Attend to other input tokens
Explanation:
Self-attention lets each token weigh information from other tokens in the same input sequence.
Incorrect! Try again.
13Which 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
Correct Answer: Query, key, and value
Explanation:
Self-attention compares queries with keys to determine weights and then combines the corresponding values.
Incorrect! Try again.
14Why 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
Correct Answer: To learn different relationships in parallel
Explanation:
Multiple heads can focus on different patterns or relationships within the same input.
Incorrect! Try again.
15How 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
Correct Answer: They are concatenated and projected
Explanation:
Multi-head attention typically concatenates the head outputs and applies a learned linear projection.
Incorrect! Try again.
16Why 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
Correct Answer: To represent token order and position
Explanation:
Attention alone does not inherently encode sequence order, so positional information is added to the input representations.
Incorrect! Try again.
17Which mechanism is central to Transformer-based models?
Transformer-based models
Easy
A.Attention
B.Median filtering
C.Histogram equalization
D.Edge thresholding
Correct Answer: Attention
Explanation:
Transformers primarily use attention mechanisms to model relationships between input elements.
Incorrect! Try again.
18How 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
Correct Answer: It divides the image into patches
Explanation:
ViT splits an image into fixed-size patches and represents those patches as a sequence of tokens.
Incorrect! Try again.
19In 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
Correct Answer: Represent the image for classification
Explanation:
The class token gathers information from image patch tokens and is used to predict the image class.
Incorrect! Try again.
20What 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
Correct Answer: Shifted-window attention
Explanation:
Swin Transformer computes attention within local windows and shifts the windows between layers to exchange information across regions.
Incorrect! Try again.
21A 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
Correct Answer: All car pixels share one class label, and all pedestrian pixels share another
Explanation:
Semantic segmentation assigns a category to every pixel but does not distinguish separate objects belonging to the same category.
Incorrect! Try again.
22A 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
Correct Answer: Mean intersection over union
Explanation:
Mean intersection over union computes overlap per class before averaging, so large background regions cannot dominate the score as strongly.
Incorrect! Try again.
23An 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
Correct Answer: A separate pixel mask for each apple
Explanation:
Instance segmentation separates objects of the same class by predicting an individual mask for every detected instance.
Incorrect! Try again.
24Two 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
Correct Answer: The first is a true positive, and the second is a false positive
Explanation:
A ground-truth instance is normally matched to only one prediction. The prediction above the threshold is matched, while the duplicate remains a false positive.
Incorrect! Try again.
25In 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
Correct Answer: To recover fine spatial details lost during downsampling
Explanation:
Encoder features preserve localization details that help the decoder reconstruct accurate object boundaries.
Incorrect! Try again.
26A 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
Correct Answer: Add another upsampling stage with corresponding skip features
Explanation:
An additional decoder upsampling stage restores a finer spatial grid, while skip features provide matching high-resolution information.
Incorrect! Try again.
27A 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.
Correct Answer:
Explanation:
The effective size is .
Incorrect! Try again.
28Why 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
Correct Answer: To capture contextual information at multiple spatial scales
Explanation:
Different dilation rates produce different receptive fields, allowing the network to recognize structures that appear at varied scales.
Incorrect! Try again.
29In 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
Correct Answer: RoI Align
Explanation:
RoI Align uses interpolation instead of coarse coordinate quantization, preserving the alignment needed for accurate masks.
Incorrect! Try again.
30A 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
Correct Answer: The parallel mask prediction branch
Explanation:
Mask R-CNN predicts masks in a dedicated branch, separate from the classification and bounding-box regression outputs.
Incorrect! Try again.
31In 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
Correct Answer: To prevent large dot products from saturating the softmax
Explanation:
As the key dimension grows, dot products can become large. Scaling keeps softmax gradients in a useful range.
Incorrect! Try again.
32Suppose one attention row has pre-softmax scores . What attention distribution is produced for the three tokens?
Self-attention
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Softmax assigns equal probabilities to equal scores, so each of the three tokens receives weight .
Incorrect! Try again.
33What 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
Correct Answer: Different heads can model different relationships between tokens
Explanation:
Separate learned projections allow heads to focus on different spatial patterns, features, or token relationships.
Incorrect! Try again.
34A 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.
Correct Answer:
Explanation:
With equal head sizes, each head uses dimensions.
Incorrect! Try again.
35A 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
Correct Answer: It cannot reliably distinguish the two patch arrangements
Explanation:
Self-attention alone does not encode token order, so positional information is needed to distinguish different spatial arrangements.
Incorrect! Try again.
36A 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
Correct Answer: Interpolate the embeddings to the new two-dimensional grid
Explanation:
Two-dimensional interpolation resizes learned positional embeddings while approximately preserving their spatial structure.
Incorrect! Try again.
37Why 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
Correct Answer: Its attention matrix requires computation proportional to
Explanation:
Every token attends to every other token, producing an attention matrix.
Incorrect! Try again.
38A 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.
Correct Answer:
Explanation:
There are patches per dimension, giving patch tokens.
Incorrect! Try again.
39In 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
Correct Answer: It provides an aggregate representation for image classification
Explanation:
The class token interacts with patch tokens through attention, and its final representation is passed to the classification head.
Incorrect! Try again.
40Why 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
Correct Answer: To enable information exchange across neighboring window boundaries
Explanation:
Shifting the window partition connects patches that were placed in separate windows in the preceding layer.
Incorrect! Try again.
41A 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
Correct Answer: Predict a separate instance identifier for each foreground region
Explanation:
Semantic segmentation assigns the same class to all cars and does not distinguish object identities. Instance-aware predictions must encode separate object instances.
Incorrect! Try again.
42An 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
Correct Answer: High pixel accuracy with reduced instance-level AP
Explanation:
Pixel accuracy can remain high when the semantic regions are correct, while instance-level average precision decreases because duplicate or poorly separated detections produce incorrect matching.
Incorrect! Try again.
43In 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
Correct Answer: The decoder gains localization detail but may need deeper layers to resolve class ambiguity
Explanation:
UNet skips preserve edges and fine structure. However, low-level features alone are semantically ambiguous, so decoder processing must combine them with contextual, high-level representations.
Incorrect! Try again.
44A 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
Correct Answer: Use a foreground-weighted or overlap-sensitive loss
Explanation:
Class-weighted cross-entropy, Dice loss, or related objectives increase the contribution of rare foreground pixels and reduce the incentive to predict only background.
Incorrect! Try again.
45DeepLab 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
Correct Answer: ; larger context with fewer sampled intermediate pixels
Explanation:
For kernel size , the effective size is . With , this becomes . Larger dilation expands context without adding kernel parameters, but can create gridding artifacts.
Incorrect! Try again.
46A 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
Correct Answer: The branches may sample overlapping periodic locations and amplify gridding artifacts
Explanation:
Dilation patterns with shared periodic structure can leave systematic unsampled locations. ASPP reduces this risk through multiple rates, but poorly chosen rates can still produce gridding artifacts.
Incorrect! Try again.
47In 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
Correct Answer: Higher-resolution feature maps with greater memory and computation
Explanation:
Reducing output stride preserves more spatial resolution in the backbone. This generally improves boundary localization but increases activation memory and computational cost.
Incorrect! Try again.
48Why 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
Correct Answer: RoIAlign avoids quantization so mask features remain spatially aligned
Explanation:
Mask prediction is sensitive to pixel-level alignment. RoIAlign uses interpolation at continuous coordinates instead of rounding RoI boundaries and sampling bins.
Incorrect! Try again.
49Mask 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
Correct Answer: Select the channel for the predicted class and threshold its probabilities
Explanation:
The mask branch produces class-specific mask logits or probabilities for each RoI. Inference selects the channel associated with the predicted class and applies a threshold.
Incorrect! Try again.
50A 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
Correct Answer: Use a higher-resolution mask branch or a feature pyramid level suited to small objects
Explanation:
Small-object masks require sufficient spatial resolution. Higher-resolution RoI features and appropriate FPN levels preserve the detail needed for precise boundaries.
Incorrect! Try again.
51For 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
Correct Answer: It prevents large dot products from saturating the softmax
Explanation:
The variance of dot products tends to grow with key dimension. Scaling by keeps logits in a range that allows useful softmax gradients.
Incorrect! Try again.
52In 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
Correct Answer: due to the token-to-token attention matrix
Explanation:
Computing forms an attention matrix, producing quadratic dependence on the number of tokens. Since image tokens grow with resolution, this becomes expensive.
Incorrect! Try again.
53Why 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
Correct Answer: Each head learns a separate projection subspace and attention pattern
Explanation:
Different heads can specialize in distinct spatial or semantic relationships. Their outputs are concatenated and projected, combining complementary relational patterns.
Incorrect! Try again.
54A 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
Correct Answer: It produces the same output up to the corresponding permutation of token representations
Explanation:
Self-attention without positional information is permutation equivariant. It can model token relationships but cannot distinguish spatial arrangements solely from token order.
Incorrect! Try again.
55A 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
Correct Answer: Interpolate the positional embedding grid to the new patch-grid dimensions
Explanation:
Absolute positional embeddings are tied to the training grid size. Reshaping the spatial positions into a grid and interpolating them allows use at another resolution.
Incorrect! Try again.
56A 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
Correct Answer: Add a high-resolution feature pathway or decoder with multiscale fusion
Explanation:
Global transformer representations can lose fine spatial detail, especially with coarse patches. High-resolution features and multiscale decoding restore boundary information.
Incorrect! Try again.
57A 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
Correct Answer: It increases by approximately a factor of four
Explanation:
The number of patches is . Halving multiplies by four, which also substantially increases global attention cost.
Incorrect! Try again.
58Compared 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
Correct Answer: Weaker built-in locality and translation-equivariant inductive biases
Explanation:
Vanilla ViT can learn spatial structure, but it does not impose convolutional locality or translation equivariance. This increases data requirements when training from scratch.
Incorrect! Try again.
59What 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
Correct Answer: Attention is computed within local windows, reducing the dominant cost toward linear scaling in
Explanation:
Windowed attention limits pairwise interactions to fixed-size regions, so total attention cost scales approximately linearly with token count. Shifted windows provide cross-window communication across layers.
Incorrect! Try again.
60A 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
Correct Answer: Information exchange between tokens belonging to different fixed windows
Explanation:
Regular window attention restricts communication to each window. Shifting the partition in the next layer causes tokens from neighboring windows to interact.
Incorrect! Try again.
Did this save you a night before the exam?
LPU Notes is free, and it stays free. Ads cover part of the server bill.
The rest comes out of a student's own pocket: the domain, the storage,
and keeping the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it.
What it pays for →