1What is the main role of the encoder in an encoder-decoder architecture?
Encoder-decoder architectures for NLP
Easy
A.Calculate the evaluation score
B.Generate the final output sequence
C.Represent the input sequence
D.Remove words from the output
Correct Answer: Represent the input sequence
Explanation:
The encoder processes the input sequence and converts it into a representation that the decoder can use.
Incorrect! Try again.
2What does the decoder typically produce at each time step?
Encoder-decoder architectures for NLP
Easy
A.An output token
B.An input embedding
C.A training epoch
D.An evaluation dataset
Correct Answer: An output token
Explanation:
The decoder generates the output sequence one token at a time.
Incorrect! Try again.
3In machine translation, what does a sequence-to-sequence model map?
Sequence-to-sequence models for machine translation and summarization
Easy
A.A sentence to another sentence
B.A label to a feature vector
C.An image to another image
D.A number to a category
Correct Answer: A sentence to another sentence
Explanation:
A machine translation model maps a sentence in a source language to a sentence in a target language.
Incorrect! Try again.
4What is the expected output of a sequence-to-sequence text summarization model?
Sequence-to-sequence models for machine translation and summarization
Easy
A.A list of input embeddings
B.A translation of the input
C.A shorter version of the input
D.A category for each word
Correct Answer: A shorter version of the input
Explanation:
Text summarization produces a shorter sequence that preserves the main information from the original text.
Incorrect! Try again.
5What does an attention mechanism allow a decoder to do?
Attention in deep NLP
Easy
A.Ignore all encoder representations
B.Use only the first input token
C.Focus on relevant input positions
D.Replace every output with a label
Correct Answer: Focus on relevant input positions
Explanation:
Attention lets the decoder emphasize the encoder states that are most relevant to the current output step.
Incorrect! Try again.
6Why is attention useful for processing long input sequences?
Attention in deep NLP
Easy
A.It removes the decoder entirely
B.It sorts input tokens alphabetically
C.It accesses multiple encoder states
D.It fixes the output sequence length
Correct Answer: It accesses multiple encoder states
Explanation:
Attention gives the decoder direct access to different encoder states instead of relying only on one fixed representation.
Incorrect! Try again.
7How does soft attention usually combine encoder hidden states?
Soft attention
Easy
A.As a random sample
B.As a weighted sum
C.As a binary label
D.As an unweighted maximum
Correct Answer: As a weighted sum
Explanation:
Soft attention creates a context vector by taking a weighted sum of the encoder hidden states.
Incorrect! Try again.
8Which function is commonly used to normalize soft attention scores into weights?
Soft attention
Easy
A.Softmax
B.Pooling
C.Dropout
D.ReLU
Correct Answer: Softmax
Explanation:
Softmax converts attention scores into nonnegative weights that sum to .
Incorrect! Try again.
9What does an alignment score measure in an attention-based model?
Alignment mechanisms
Easy
A.The size of the vocabulary
B.The number of decoder layers
C.The relevance of an input state
D.The length of the training dataset
Correct Answer: The relevance of an input state
Explanation:
An alignment score indicates how relevant an encoder state is to the decoder's current state.
Incorrect! Try again.
10In machine translation, alignment often connects which two elements?
Alignment mechanisms
Easy
A.Training and test losses
B.Source and target tokens
C.Epochs and batch sizes
D.Input and output datasets
Correct Answer: Source and target tokens
Explanation:
Alignment describes which source-language tokens are most related to particular target-language tokens.
Incorrect! Try again.
11Bahdanau attention is also commonly known as which type of attention?
Bahdanau attention
Easy
A.Multiplicative attention
B.Masked self-attention
C.Additive attention
D.Sparse attention
Correct Answer: Additive attention
Explanation:
Bahdanau attention uses a small neural network to compute additive alignment scores.
Incorrect! Try again.
12Which information does Bahdanau attention use to compute an alignment score?
Bahdanau attention
Easy
A.A batch size and a learning rate
B.A decoder state and an encoder state
C.A BLEU score and a ROUGE score
D.A source length and a target length
Correct Answer: A decoder state and an encoder state
Explanation:
Bahdanau attention compares the decoder state with each encoder state to calculate alignment scores.
Incorrect! Try again.
13Luong attention is commonly associated with which scoring approach?
Luong attention
Easy
A.Binary scoring
B.Multiplicative scoring
C.Random scoring
D.Additive scoring
Correct Answer: Multiplicative scoring
Explanation:
Luong attention commonly uses multiplicative functions, such as a dot product, to score alignments.
Incorrect! Try again.
14In global Luong attention, which encoder hidden states may be considered?
Luong attention
Easy
A.Only the first hidden state
B.No encoder hidden states
C.All encoder hidden states
D.Only the final hidden state
Correct Answer: All encoder hidden states
Explanation:
Global Luong attention computes alignment scores over all encoder hidden states.
Incorrect! Try again.
15What is the context vector in an attention-based encoder-decoder model?
Integrating attention into encoder-decoder networks
Easy
A.A score for the full dataset
B.A count of decoder parameters
C.A weighted combination of encoder states
D.A fixed list of target words
Correct Answer: A weighted combination of encoder states
Explanation:
The context vector summarizes the encoder states using the attention weights for the current decoding step.
Incorrect! Try again.
16How does the attention context vector usually change during decoding?
Integrating attention into encoder-decoder networks
Easy
A.It is recomputed at each output step
B.It is removed after the first input
C.It is shared only across training epochs
D.It remains random for every output
Correct Answer: It is recomputed at each output step
Explanation:
A new context vector is normally calculated for each decoder step so the model can focus on different input positions.
Incorrect! Try again.
17What is a reference text in sequence generation evaluation?
Evaluation techniques
Easy
A.A human-provided expected output
B.A record of training batches
C.A randomly initialized hidden state
D.A list of model parameters
Correct Answer: A human-provided expected output
Explanation:
A reference text is an expected output, usually written or verified by a human, against which a generated text is compared.
Incorrect! Try again.
18BLEU primarily evaluates generated text using which type of comparison?
BLEU scores
Easy
A.Vocabulary size
B.N-gram precision
C.Sentence sentiment
D.Character edit distance
Correct Answer: N-gram precision
Explanation:
BLEU measures how many generated -grams match those in one or more reference texts.
Incorrect! Try again.
19ROUGE is most commonly used to evaluate which NLP task?
ROUGE scores
Easy
A.Text summarization
B.Part-of-speech tagging
C.Word embedding training
D.Speech recognition
Correct Answer: Text summarization
Explanation:
ROUGE is widely used for summarization because it measures overlap between generated and reference summaries.
Incorrect! Try again.
20What is a major limitation of a classical sequence-to-sequence model without attention?
Limitations of classical sequence-to-sequence models
Easy
A.It compresses the input into one fixed vector
B.It cannot generate variable-length outputs
C.It always copies the input unchanged
D.It requires every input to have one token
Correct Answer: It compresses the input into one fixed vector
Explanation:
Without attention, the encoder must compress the entire input into a single fixed-size representation, which can lose information in long sequences.
Incorrect! Try again.
21In an encoder-decoder architecture for machine translation, what is the primary role of the encoder?
Encoder-decoder architectures for NLP
Medium
A.Generate the target-language sentence directly
B.Calculate the BLEU score for the translation
C.Convert the source sequence into a useful representation
D.Select the vocabulary used by the decoder
Correct Answer: Convert the source sequence into a useful representation
Explanation:
The encoder processes the input sequence and produces representations that the decoder uses to generate the target sequence.
Incorrect! Try again.
22Why is teacher forcing commonly used when training an encoder-decoder model?
Encoder-decoder architectures for NLP
Medium
A.It forces every attention weight to have the same value
B.It supplies the correct previous target token during training
C.It replaces the encoder with a feed-forward network
D.It removes the need for target-side vocabulary embeddings
Correct Answer: It supplies the correct previous target token during training
Explanation:
Teacher forcing feeds the ground-truth previous token to the decoder, helping it learn the next-token prediction more efficiently.
Incorrect! Try again.
23A sequence-to-sequence model is used for abstractive summarization. Which behavior best distinguishes abstractive summarization from extractive summarization?
Sequence-to-sequence models for machine translation and summarization
Medium
A.It selects only the longest sentences in the document
B.It generates new wording that expresses the source meaning
C.It removes punctuation before producing the summary
D.It copies complete sentences without modification
Correct Answer: It generates new wording that expresses the source meaning
Explanation:
Abstractive models can paraphrase and generate novel target sequences, whereas extractive methods select text spans from the source.
Incorrect! Try again.
24During inference, why is beam search often preferred over greedy decoding in a translation model?
Sequence-to-sequence models for machine translation and summarization
Medium
A.It guarantees the grammatically perfect translation
B.It selects tokens without using probability estimates
C.It evaluates several promising partial sequences
D.It eliminates the need for a trained decoder
Correct Answer: It evaluates several promising partial sequences
Explanation:
Beam search keeps multiple high-probability partial hypotheses, which can produce a better overall sequence than choosing the best token at each step.
Incorrect! Try again.
25What problem does attention primarily address in a basic encoder-decoder model?
Attention in deep NLP
Medium
A.The dependence on a single fixed-length source vector
B.The absence of a loss function during optimization
C.The inability to represent any target vocabulary
D.The requirement that source and target lengths match
Correct Answer: The dependence on a single fixed-length source vector
Explanation:
Attention allows the decoder to access multiple encoder states instead of relying only on one fixed-size representation of the entire input.
Incorrect! Try again.
26In soft attention, the context vector is typically computed as:
Soft attention
Medium
A.The final decoder state copied to every position
B.A random source representation selected at each step
C.A weighted sum of encoder states
D.The maximum encoder state over all source positions
Correct Answer: A weighted sum of encoder states
Explanation:
Soft attention uses normalized attention weights to combine encoder hidden states into a differentiable context vector.
Incorrect! Try again.
27Why can soft attention be trained using standard backpropagation?
Soft attention
Medium
A.It avoids computing decoder hidden states entirely
B.It makes a hard, non-differentiable selection
C.It assigns one fixed weight to every input token
D.It uses continuous attention weights over source states
Correct Answer: It uses continuous attention weights over source states
Explanation:
Soft attention computes a differentiable weighted combination, allowing gradients to flow through the attention calculation.
Incorrect! Try again.
28In an attention-based translation model, alignment scores are used to estimate:
Alignment mechanisms
Medium
A.The similarity between a decoder state and source states
B.The number of layers required by the encoder
C.The frequency of punctuation in the target sentence
D.The total memory consumed during model training
Correct Answer: The similarity between a decoder state and source states
Explanation:
Alignment scores measure how relevant each source encoder state is to the decoder's current generation step.
Incorrect! Try again.
29After applying softmax to alignment scores for one decoding step, what does a larger attention weight indicate?
Alignment mechanisms
Medium
A.The target sequence has reached its final token
B.The encoder state has a smaller numerical magnitude
C.The corresponding source position is more relevant
D.The corresponding source token must be copied exactly
Correct Answer: The corresponding source position is more relevant
Explanation:
Softmax converts alignment scores into a distribution, so a larger weight indicates greater relevance to the current decoder state.
Incorrect! Try again.
30Which description best matches Bahdanau attention?
Bahdanau attention
Medium
A.Dot-product scoring without any trainable parameters
B.Uniform averaging of all encoder hidden states
C.Additive scoring using a learned feed-forward network
D.Selecting the source state with the largest token frequency
Correct Answer: Additive scoring using a learned feed-forward network
Explanation:
Bahdanau attention uses an additive alignment function, commonly represented as .
Incorrect! Try again.
31In the original Bahdanau formulation, which decoder state is commonly used to calculate attention scores for target step ?
Bahdanau attention
Medium
A.The previous decoder state
B.The final encoder state only
C.The next decoder state
D.The average target embedding for the sentence
Correct Answer: The previous decoder state
Explanation:
Bahdanau attention uses the previous decoder state to determine which encoder states are relevant before producing the next decoder state.
Incorrect! Try again.
32Which scoring function is most directly associated with Luong dot-product attention?
Luong attention
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Luong dot attention computes the compatibility between encoder state and decoder state using their dot product.
Incorrect! Try again.
33What is a key distinction between general Luong attention and dot-product Luong attention?
Luong attention
Medium
A.General attention calculates scores only from token counts
B.General attention removes all encoder representations
C.General attention inserts a learned transformation matrix
D.General attention uses hard sampling instead of softmax
Correct Answer: General attention inserts a learned transformation matrix
Explanation:
General Luong attention uses , adding a trainable matrix before computing the compatibility score.
Incorrect! Try again.
34How is the context vector commonly used by an attention-based decoder?
Integrating attention into encoder-decoder networks
Medium
A.It prevents the decoder from updating its hidden state
B.It replaces the target vocabulary with source tokens
C.It is used only after the complete sequence is generated
D.It is combined with the decoder state to predict the next token
Correct Answer: It is combined with the decoder state to predict the next token
Explanation:
The context vector supplies source information relevant to the current step and is combined with decoder information for token prediction.
Incorrect! Try again.
35Suppose an input has 12 source tokens and the decoder generates 8 target tokens. What is the typical size of the attention matrix for one example?
Integrating attention into encoder-decoder networks
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Each of the 8 target steps produces attention weights over 12 source positions, resulting in an matrix, equivalent in dimensions to depending on orientation.
Incorrect! Try again.
36Why should automatic metrics for generated summaries or translations be interpreted alongside human evaluation?
Evaluation techniques
Medium
A.Human evaluation is required to calculate every token probability
B.Human evaluation eliminates the need for a test dataset
C.Automatic metrics always produce identical scores for all systems
D.Automatic metrics may miss fluency, factuality, or semantic adequacy
Correct Answer: Automatic metrics may miss fluency, factuality, or semantic adequacy
Explanation:
A metric can correlate imperfectly with human judgments, especially when outputs use valid paraphrases or contain subtle factual errors.
Incorrect! Try again.
37A translation receives a high modified n-gram precision but is much shorter than the reference. Which BLEU component helps penalize this output?
BLEU scores
Medium
A.The encoder dropout rate
B.The brevity penalty
C.The vocabulary coverage ratio
D.The attention entropy
Correct Answer: The brevity penalty
Explanation:
BLEU applies a brevity penalty when the candidate translation is shorter than the reference, reducing the score despite strong n-gram precision.
Incorrect! Try again.
38Why does BLEU use clipped n-gram counts instead of unrestricted candidate n-gram counts?
BLEU scores
Medium
A.To ensure that all candidate words appear in the same order
B.To measure source-sentence length without using references
C.To reward every repeated phrase regardless of the reference
D.To prevent repeated candidate phrases from inflating precision
Correct Answer: To prevent repeated candidate phrases from inflating precision
Explanation:
Clipping limits each candidate n-gram count to its maximum reference count, reducing the benefit of excessive repetition.
Incorrect! Try again.
39Which ROUGE variant primarily measures recall of overlapping unigrams between a generated summary and a reference summary?
ROUGE scores
Medium
A.ROUGE-SU
B.ROUGE-2
C.ROUGE-1
D.ROUGE-L
Correct Answer: ROUGE-1
Explanation:
ROUGE-1 evaluates unigram overlap and is commonly reported as recall, precision, or F-measure.
Incorrect! Try again.
40ROUGE-L is based primarily on which type of overlap?
ROUGE scores
Medium
A.Longest common subsequence
B.The number of unique words in the source
C.Exact sentence-length equality
D.Character-level edit distance only
Correct Answer: Longest common subsequence
Explanation:
ROUGE-L uses the longest common subsequence to capture content overlap while preserving the order of matched tokens.
Incorrect! Try again.
41A bidirectional encoder produces states , while a decoder GRU expects an initial state in . Which initialization preserves information from both encoder directions while satisfying the decoder's dimensional constraint?
Encoder-decoder architectures for NLP
Hard
A.Set and truncate during decoding
B.Set without learned parameters
C.Set with
D.Set with
Correct Answer: Set with
Explanation:
Concatenation retains both terminal directions, and the learned projection maps the resulting -dimensional vector into the decoder's -dimensional state space.
Incorrect! Try again.
42A summarization decoder is trained with teacher forcing and achieves low token-level cross-entropy, but at inference time an early incorrect token causes increasingly incoherent output. Which train-test discrepancy most directly explains this behavior?
Sequence-to-sequence models for machine translation and summarization
Hard
A.Training uses padded batches, whereas inference processes one sequence at a time
B.Training conditions on gold prefixes, whereas inference conditions on model-generated prefixes
D.Training uses a bidirectional encoder, whereas inference uses a unidirectional decoder
Correct Answer: Training conditions on gold prefixes, whereas inference conditions on model-generated prefixes
Explanation:
This is exposure bias. The decoder is optimized on correct histories but must recover from its own mistakes at inference, where errors can compound.
Incorrect! Try again.
43Beam search compares hypothesis of length with log-probability and hypothesis of length with log-probability . If the score is average log-probability , which hypothesis is selected?
Sequence-to-sequence models for machine translation and summarization
Hard
A.Hypothesis , because longer sequences always receive larger scores
B.Hypothesis , because its normalized score is
C.Hypothesis , because its normalized score is
D.Hypothesis , because before normalization
Correct Answer: Hypothesis , because its normalized score is
Explanation:
The normalized scores are and . Since is greater, the normalized criterion selects .
Incorrect! Try again.
44For cross-attention with target length , source length , and hidden dimension , all projected query-key dot products are computed explicitly. Ignoring projection costs, what are the time and attention-matrix space complexities?
Attention in deep NLP
Hard
A.Time and space
B.Time and space
C.Time and space
D.Time and space
Correct Answer: Time and space
Explanation:
Each of the query-key pairs requires a -dimensional dot product, and storing one weight per pair requires an matrix.
Incorrect! Try again.
45Let attention weights be and scalar encoder states be . What context value is supplied to a standard soft-attention decoder?
Soft attention
Hard
A., obtained from the weighted state sum
B., obtained from the weighted source positions
C., obtained by selecting the expected source index
D., obtained by selecting the modal encoder state
Correct Answer: , obtained from the weighted state sum
Explanation:
Soft attention uses . It averages states, not source indices.
Incorrect! Try again.
46A batch contains padded source sequences. Before the alignment softmax, the scores for one example are , where the last two positions are padding. Which operation gives a valid alignment over only real tokens?
Alignment mechanisms
Hard
A.Multiply padded scores by after applying the softmax
B.Replace padded scores by and then apply softmax
C.Apply softmax first and then delete the padded probabilities
D.Replace padded scores by and apply softmax over all positions
Correct Answer: Replace padded scores by and then apply softmax
Explanation:
Setting padded logits to makes their exponentials zero, so valid-token probabilities are normalized to sum to one without padding leakage.
Incorrect! Try again.
47Which expression correctly represents the additive alignment score used by Bahdanau attention for decoder state and encoder state ?
Bahdanau attention
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
Bahdanau attention jointly projects the decoder and encoder states, combines them additively, applies a nonlinearity, and projects the result to a scalar score.
Incorrect! Try again.
48In Luong's multiplicative attention, which scoring function can compare encoder and decoder states of different original dimensions without requiring them to be equal?
Luong attention
Hard
A.The general score with a learned matrix
B.The dot score with no projections
C.The cosine score with no projections
D.The identity score with no projections
Correct Answer: The general score with a learned matrix
Explanation:
The learned matrix maps between the encoder and decoder dimensions. Plain dot product, cosine similarity, and direct subtraction require matching dimensions.
Incorrect! Try again.
49Consider the common recurrent formulations of Bahdanau and Luong attention. Which timing distinction is accurate?
Bahdanau attention
Hard
A.Bahdanau commonly computes context from after output projection; Luong commonly attends using before recurrence
B.Bahdanau commonly computes context from before updating ; Luong commonly attends using after updating it
C.Both mechanisms must compute context from after emitting the output token
D.Both mechanisms must compute context from before the recurrent update
Correct Answer: Bahdanau commonly computes context from before updating ; Luong commonly attends using after updating it
Explanation:
The original formulations differ in timing: Bahdanau attention helps form the current decoder state, while Luong attention is typically computed from the current state.
Incorrect! Try again.
50What is the primary modeling effect of input feeding in Luong attention, where the previous attentional vector is concatenated with the next decoder input?
Luong attention
Hard
A.It forces every source position to receive equal total attention mass
B.It removes the need to normalize alignment scores with softmax
C.It guarantees monotonic source-to-target alignments during decoding
D.It makes the next recurrent state depend on the previous attention-informed prediction state
Correct Answer: It makes the next recurrent state depend on the previous attention-informed prediction state
Explanation:
Input feeding carries prior attentional information into the next recurrent update, giving the decoder an implicit record of earlier alignment and context decisions.
Incorrect! Try again.
51An encoder output matrix is , attention weights at step are , and the decoder state is . If and the output layer consumes , what must be the input width of that output layer?
Integrating attention into encoder-decoder networks
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
The weighted sum has dimension . Concatenating it with the -dimensional decoder state produces width .
Incorrect! Try again.
52A decoder applies soft attention, but the context vector is accidentally detached from the computation graph before the token loss is computed. Assuming no other loss uses attention, which parameters lose the token-loss gradient path?
Integrating attention into encoder-decoder networks
Hard
A.The target embedding matrix and output projection
B.Only the decoder's recurrent transition parameters
C.Only the output vocabulary bias parameters
D.The alignment network and encoder through the context path
Correct Answer: The alignment network and encoder through the context path
Explanation:
Detaching the context blocks gradients through both the weighted encoder states and their attention weights. Decoder and output parameters may still receive gradients through other paths.
Incorrect! Try again.
53A candidate is the cat the cat and the single reference is the cat is here. Using clipped unigram precision, how many candidate unigram matches are counted and what is the resulting precision?
BLEU scores
Hard
A. match and precision
B. matches and precision
C. matches and precision
D. matches and precision
Correct Answer: matches and precision
Explanation:
The reference contains the once and cat once, so repeated candidate occurrences are clipped. Two of four candidate unigrams are counted.
Incorrect! Try again.
54A corpus-level BLEU calculation has candidate length , effective reference length , and geometric mean modified precision . Using when , what is BLEU?
BLEU scores
Hard
A.Approximately
B.Approximately
C.Approximately
D.Approximately
Correct Answer: Approximately
Explanation:
. Therefore, .
Incorrect! Try again.
55A candidate sentence has positive modified unigram, bigram, and trigram precisions but no matching 4-grams. Under unsmoothed BLEU-4 with uniform weights, what score does the sentence receive?
BLEU scores
Hard
A.A positive score because lower-order matches override the missing 4-grams
B.The arithmetic mean of the three positive modified precisions
C.Zero, because one precision contributes to the geometric mean
D.The trigram BLEU score multiplied only by the brevity penalty
Correct Answer: Zero, because one precision contributes to the geometric mean
Explanation:
Unsmoothed BLEU uses a geometric mean across all selected orders. A zero modified 4-gram precision collapses the complete BLEU-4 score to zero.
Incorrect! Try again.
56A generated summary contains occurrences of a bigram, while the reference contains occurrences of that bigram. All other bigrams have zero overlap, and the reference has bigram tokens in total. What is the clipped ROUGE-2 recall?
ROUGE scores
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
The overlap count is clipped to . ROUGE-2 recall divides this by the reference bigrams, giving .
Incorrect! Try again.
57For candidate tokens A B C D and reference tokens B A C D, the longest common subsequence has length . What are ROUGE-L precision, recall, and for this pair?
ROUGE scores
Hard
A., ,
B., ,
C., ,
D., ,
Correct Answer: , ,
Explanation:
Both sequences have length , so precision and recall are . Their harmonic mean is also .
Incorrect! Try again.
58Two summarization systems obtain nearly identical ROUGE scores, but one frequently introduces unsupported names and dates. Which evaluation addition most directly distinguishes the systems on this failure mode?
Evaluation techniques
Hard
A.Report token-level cross-entropy on the training summaries
B.Compute corpus BLEU with a larger maximum n-gram order
C.Measure source-grounded factual consistency with human or entailment-based evaluation
D.Increase the maximum generated length before recomputing ROUGE-L
Correct Answer: Measure source-grounded factual consistency with human or entailment-based evaluation
Explanation:
Lexical-overlap metrics may miss whether claims are supported by the source. Factuality evaluation directly tests the observed hallucination behavior.
Incorrect! Try again.
59Why does adding attention usually improve a recurrent encoder-decoder on long inputs without completely eliminating its long-sequence limitations?
Limitations of classical sequence-to-sequence models
Hard
A.Attention provides direct access to encoder states, but recurrent state updates remain sequential
B.Attention guarantees perfect alignment, but increases the target vocabulary size
C.Attention compresses all encoder states into one vector, but removes recurrent computation
D.Attention parallelizes every decoder step, but prevents access to distant source states
Correct Answer: Attention provides direct access to encoder states, but recurrent state updates remain sequential
Explanation:
Attention reduces the fixed-vector bottleneck by exposing all encoder states. Classical recurrent encoders and decoders still have sequential dependencies and limited parallelism.
Incorrect! Try again.
60In a translation model, repeated target phrases arise because the decoder repeatedly attends to the same source positions. Which modification most directly addresses this alignment pathology?
Alignment mechanisms
Hard
A.Remove attention normalization from the alignment scores
B.Apply a stronger brevity penalty during beam search
C.Replace the source embeddings with larger target embeddings
D.Add a coverage signal derived from cumulative past attention
Correct Answer: Add a coverage signal derived from cumulative past attention
Explanation:
Coverage tracks how much attention each source position has already received, allowing the model or decoding objective to penalize repeatedly attending to covered content.
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 →