Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.

Unit 5 MCQs Transformers and Pretrained Language Models

CSE472 — Deep Learning For Natural Language Processing 60 questions. Pick an option to check it.

Read the notes Subjective questions

0 of 60 answered 0 right 0 wrong , 60 left

  1. Question 1 of 60 Transformer architecture Easy

    What mechanism allows a Transformer to model relationships between tokens without using recurrence?

  2. Question 2 of 60 Self-attention Easy

    In self-attention, what does each token attend to?

  3. Question 3 of 60 Multi-head attention Easy

    What is the main purpose of using multiple attention heads?

  4. Question 4 of 60 Positional encoding Easy

    Why is positional encoding added to token embeddings in a Transformer?

  5. Question 5 of 60 Transformer encoder and decoder blocks Easy

    Which Transformer component typically processes the input sequence into contextual representations?

  6. Question 6 of 60 Tokenization methods Easy

    What is the purpose of tokenization in NLP?

  7. Question 7 of 60 Byte-Pair Encoding Easy

    How does Byte-Pair Encoding commonly build subword tokens?

  8. Question 8 of 60 WordPiece Easy

    What kind of units does WordPiece primarily use to represent text?

  9. Question 9 of 60 Pretrained transformer models Easy

    What does it mean when a Transformer model is pretrained?

  10. Question 10 of 60 BERT Easy

    Which Transformer structure is primarily used by the original BERT model?

  11. Question 11 of 60 GPT Easy

    Which task is GPT especially well suited for?

  12. Question 12 of 60 T5 Easy

    How does T5 represent many NLP tasks?

  13. Question 13 of 60 Masked language modeling Easy

    What does a model learn to do during masked language modeling?

  14. Question 14 of 60 Next sentence prediction Easy

    What does next sentence prediction ask a model to determine?

  15. Question 15 of 60 Causal language modeling Easy

    In causal language modeling, which information is used to predict the next token?

  16. Question 16 of 60 Transfer learning for NLP tasks Easy

    What is transfer learning in NLP?

  17. Question 17 of 60 Fine-tuning for text classification Easy

    What is typically added to a pretrained Transformer for text classification?

  18. Question 18 of 60 Named entity recognition Easy

    What does named entity recognition identify in text?

  19. Question 19 of 60 Question answering Easy

    In extractive question answering, where does the answer usually come from?

  20. Question 20 of 60 HuggingFace Transformers Easy

    What does the HuggingFace Transformers library primarily provide?

  21. Question 21 of 60 Transformer architecture Medium

    A Transformer processes a sequence without using recurrence. Which mechanism allows each token representation to incorporate information from other tokens in the same layer?

  22. Question 22 of 60 Self-attention Medium

    In scaled dot-product attention, why is the query-key dot product divided by ?

  23. Question 23 of 60 Multi-head attention Medium

    Why can multi-head attention represent relationships that a single attention head might miss?

  24. Question 24 of 60 Positional encoding Medium

    A Transformer receives the same set of token embeddings in two different orders. What is the main purpose of positional encoding in this situation?

  25. Question 25 of 60 Transformer encoder and decoder blocks Medium

    During text generation, which attention pattern is required in a Transformer decoder to prevent a token from using future target tokens?

  26. Question 26 of 60 Tokenization methods Medium

    A tokenizer represents an unfamiliar word using several meaningful or partially meaningful pieces instead of mapping it to one unknown token. What advantage does this provide?

  27. Question 27 of 60 Byte-Pair Encoding Medium

    In Byte-Pair Encoding for subword tokenization, a frequent adjacent symbol pair is repeatedly merged. If t and h frequently occur together, what may happen after training?

  28. Question 28 of 60 WordPiece Medium

    A WordPiece tokenizer splits the word "unhappiness" into un, ##happi, and ##ness. What does the ## marker usually indicate?

  29. Question 29 of 60 Pretrained transformer models Medium

    A team has limited labeled data for sentiment analysis but access to a large pretrained Transformer. Which strategy is generally most appropriate?

  30. Question 30 of 60 BERT Medium

    Why is BERT particularly suitable for classifying a sentence based on both earlier and later context?

  31. Question 31 of 60 GPT Medium

    Which task aligns most directly with the original design of a GPT-style Transformer?

  32. Question 32 of 60 T5 Medium

    A T5 model is fine-tuned to answer questions. How is the task typically represented for the model?

  33. Question 33 of 60 Masked language modeling Medium

    During masked language model pretraining, a model sees the sentence "The cat sat on the [MASK]." Which prediction best describes the training target?

  34. Question 34 of 60 Next sentence prediction Medium

    In the next sentence prediction objective, what does the model typically learn to determine?

  35. Question 35 of 60 Causal language modeling Medium

    For the token sequence , what conditional factorization is used by a causal language model?

  36. Question 36 of 60 Transfer learning for NLP tasks Medium

    What is the main benefit of transferring a pretrained language model to a new NLP task?

  37. Question 37 of 60 Fine-tuning for text classification Medium

    A binary text classifier is built with BERT. Which change is normally made to produce the final prediction?

  38. Question 38 of 60 Named entity recognition Medium

    For named entity recognition, why are predictions usually made for individual tokens rather than only for the entire sentence?

  39. Question 39 of 60 Question answering Medium

    In extractive question answering, the answer is contained in a context passage. What does the model typically predict?

  40. Question 40 of 60 HuggingFace Transformers Medium

    When using HuggingFace Transformers for a pretrained model, why should the tokenizer match the model checkpoint?

  41. Question 41 of 60 Transformer architecture Hard

    A Transformer processes a sequence of length with hidden size . Ignoring constants and feed-forward layers, which change most directly reduces the asymptotic self-attention cost while preserving ?

  42. Question 42 of 60 Self-attention Hard

    For and , what is the first output row of scaled dot-product self-attention with key dimension and no mask?

  43. Question 43 of 60 Multi-head attention Hard

    A model has and 12 attention heads. It is changed to 24 heads while all query, key, value, and output projections remain dense matrices. Which statement is correct?

  44. Question 44 of 60 Positional encoding Hard

    Why can sinusoidal positional encodings support reasoning about relative offsets without learning a separate vector for every offset?

  45. Question 45 of 60 Transformer encoder and decoder blocks Hard

    During teacher-forced training of a standard encoder-decoder Transformer, which masking configuration is required?

  46. Question 46 of 60 Tokenization methods Hard

    A production NLP system must accept arbitrary Unicode input without emitting an unknown-token symbol. Which tokenizer design most directly guarantees this property, assuming valid byte input?

  47. Question 47 of 60 Byte-Pair Encoding Hard

    A BPE trainer starts with the segmented corpus low low lower represented as characters plus end-of-word markers. If (l,o) and (o,w) have equal maximum frequency, what is required for independently trained tokenizers to produce identical vocabularies?

  48. Question 48 of 60 WordPiece Hard

    Compared with frequency-only BPE merging, a WordPiece-style merge score favors a pair with high joint frequency relative to its component frequencies. Which pair is therefore most likely to be preferred?

  49. Question 49 of 60 Pretrained transformer models Hard

    A task requires assigning a label using both left and right context around every token, while inference is non-generative. Which pretrained architecture-objective pairing offers the closest inductive match?

  50. Question 50 of 60 BERT Hard

    In original BERT input construction for sentence-pair classification, what distinguishes tokens from sentence A and sentence B before the encoder layers?

  51. Question 51 of 60 GPT Hard

    A decoder-only GPT model is trained on packed documents. Which attention mask prevents both future-token leakage and information flow across document boundaries?

  52. Question 52 of 60 T5 Hard

    T5 pretraining replaces multiple contiguous spans with sentinel tokens. Which target format is consistent with its span-corruption objective?

  53. Question 53 of 60 Masked language modeling Hard

    In BERT-style masking, selected tokens are not always replaced by [MASK]; some remain unchanged or become random tokens. What mismatch is this strategy primarily intended to reduce?

  54. Question 54 of 60 Next sentence prediction Hard

    Why can randomly sampled negative pairs make next sentence prediction solvable through shortcuts rather than discourse understanding?

  55. Question 55 of 60 Causal language modeling Hard

    A causal language model assigns token probabilities , , and to the three observed next tokens. Using natural logarithms, what is the mean token negative log-likelihood?

  56. Question 56 of 60 Transfer learning for NLP tasks Hard

    A pretrained encoder performs well on general text but overfits a 500-example legal dataset during full fine-tuning. Which intervention most directly reduces trainable capacity while retaining task adaptation?

  57. Question 57 of 60 Fine-tuning for text classification Hard

    A classifier truncates every document to the first 512 tokens, but decisive evidence often appears near the end. Which change addresses the information-loss mechanism most directly?

  58. Question 58 of 60 Named entity recognition Hard

    The word Washington is split into Wash, ##ing, and ##ton. Under a first-subtoken labeling scheme, how should loss and prediction alignment usually be handled?

  59. Question 59 of 60 Question answering Hard

    In extractive QA, a model independently scores start and end positions. Which decoding rule avoids invalid spans while respecting a maximum answer length ?

  60. Question 60 of 60 HuggingFace Transformers Hard

    A HuggingFace token-classification pipeline pads batches to different lengths. Which setup ensures padded positions neither affect encoder attention nor contribute to cross-entropy loss?

That's unit 5

Answer a few questions and your score shows up here.