Unit 5: Transformers and Pretrained Language Models - Subjective Questions

CSE472 — Deep Learning For Natural Language Processing • Practice Questions with Detailed Answers

20 questions

1

Describe the overall architecture of a Transformer and explain why it is effective for natural language processing.

2

Define self-attention and derive the scaled dot-product attention equation.

3

Explain multi-head attention and distinguish it from single-head attention.

4

Why is positional encoding required in a Transformer? Describe sinusoidal positional encoding.

5

Describe the structure and operation of a Transformer encoder block.

6

Describe a Transformer decoder block and explain the roles of masked self-attention and encoder-decoder attention.

7

Explain the purpose of tokenization in pretrained language models and compare word-level, character-level, and subword tokenization.

8

Describe the Byte-Pair Encoding algorithm and illustrate how it constructs a subword vocabulary.

9

Compare Byte-Pair Encoding and WordPiece tokenization.

10

What is a pretrained transformer model? Explain the two major stages of pretraining and downstream adaptation.

11

Explain BERT's architecture, input representation, and pretraining objectives.

12

Describe GPT and explain how causal language modeling supports autoregressive text generation.

13

Explain the text-to-text approach of T5 and compare its architecture with BERT and GPT.

14

Explain masked language modeling and discuss its advantages and limitations.

15

What is next sentence prediction? Explain its construction, purpose, and limitations in BERT.

16

Distinguish masked language modeling from causal language modeling.

17

Explain transfer learning in NLP and discuss different strategies for adapting pretrained Transformers.

18

Describe how a pretrained Transformer can be fine-tuned for text classification.

19

Explain how pretrained Transformers are fine-tuned for named entity recognition, including the subword-label alignment problem.

20

Describe extractive question answering with pretrained Transformers and outline its implementation using Hugging Face Transformers.