Unit 4: Sequence-to-Sequence Models and Attention Mechanisms - Subjective Questions

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

20 questions

1

Explain the encoder-decoder architecture used in natural language processing. Describe the function of the encoder, the decoder, and the context representation.

2

Describe how sequence-to-sequence models are applied to machine translation. Explain the training and inference processes.

3

Explain the use of sequence-to-sequence models for automatic text summarization. Discuss the difference between extractive and abstractive summarization.

4

Why are attention mechanisms important in deep natural language processing? Explain the limitations of using a single fixed-length context vector.

5

Define soft attention and derive the computation of a context vector using attention weights.

6

What is an alignment mechanism in neural sequence-to-sequence models? Explain its role in determining the relevance of input tokens.

7

Explain Bahdanau attention, including its scoring function and the way the context vector is incorporated into decoding.

8

Explain Luong attention and describe its major scoring functions.

9

Compare Bahdanau attention and Luong attention with respect to scoring functions, decoder states, computational cost, and applications.

10

Describe the complete process of integrating attention into an encoder-decoder network.

11

Derive the probability formulation and training objective of an attention-based sequence-to-sequence model.

12

Explain the difference between soft attention and hard attention. Discuss why soft attention is more commonly used in standard sequence-to-sequence training.

13

What is the BLEU score? Explain its calculation, interpretation, and limitations for evaluating machine translation.

14

What is the ROUGE score? Explain the main variants of ROUGE and their relevance to text summarization.

15

Compare BLEU and ROUGE as evaluation metrics for NLP generation tasks.

16

Discuss the limitations of classical sequence-to-sequence models without attention.

17

Explain how attention improves the handling of long sequences and long-distance dependencies in NLP.

18

Derive the softmax attention weights and prove that their sum is equal to one.

19

Describe teacher forcing and beam search in sequence-to-sequence models. Explain their advantages and limitations.

20

Explain the role of attention weights as an interpretability tool. Discuss why attention weights should not always be treated as complete explanations.