Unit 6: Generative NLP and LLMs - Practice Quiz

CSE472 — Deep Learning For Natural Language Processing 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 What is the main purpose of a generative NLP model?

Generative NLP models Easy
A. To compress image files
B. To sort database rows
C. To produce new text
D. To detect network errors

2 During text generation, what does an autoregressive language model usually predict?

Generative NLP models Easy
A. The image resolution
B. The network address
C. The document owner
D. The next token

3 Why are text generation strategies used with language models?

Text generation strategies Easy
A. To choose output tokens
B. To label training images
C. To resize input files
D. To encrypt model weights

4 How does greedy search select the next token?

Greedy search Easy
A. It selects from the previous sentence only
B. It selects the least probable token
C. It selects the most probable token
D. It selects from a fixed vocabulary order

5 What does beam search keep during text generation?

Beam search Easy
A. Only rejected sequences
B. One random character
C. Several likely sequences
D. Every training document

6 What does the beam width control in beam search?

Beam search Easy
A. The length of the input prompt
B. The number of candidate sequences
C. The size of each model layer
D. The number of vocabulary symbols

7 In top-k sampling, which tokens can be sampled at each step?

Top-k sampling Easy
A. The first vocabulary tokens
B. The last generated tokens
C. The most probable tokens
D. The least probable tokens

8 How does nucleus sampling choose its candidate token set?

Nucleus sampling Easy
A. By reaching a cumulative probability threshold
B. By selecting tokens alphabetically
C. By using a fixed number of tokens
D. By keeping tokens from one sentence

9 What are instruction-tuned large language models trained to do?

Instruction-tuned large language models Easy
A. Translate images into pixels
B. Follow natural-language instructions
C. Store files without compression
D. Repair physical computer hardware

10 Which prompt is most directly suited to an instruction-tuned model?

Instruction-tuned large language models Easy
A. Summarize this paragraph in one sentence.
B. Seven commas and three brackets.
C. Random tokens without a stated task.
D. Blue clouds across silent windows.

11 What should a good text summary mainly preserve?

Model behaviors in summarization Easy
A. The central ideas
B. Only uncommon words
C. The document formatting
D. Every original sentence

12 Which summarization behavior is undesirable?

Model behaviors in summarization Easy
A. Preserving the main message
B. Shortening lengthy passages
C. Removing repeated details
D. Adding unsupported facts

13 What is an important quality of a dialogue generation system?

Dialogue generation Easy
A. Repeating the same response
B. Ignoring earlier user messages
C. Maintaining conversational context
D. Changing topics after each turn

14 Which activity is an example of a reasoning task for a language model?

Reasoning tasks Easy
A. Changing the screen brightness
B. Counting the model's parameters
C. Renaming a stored file
D. Drawing a conclusion from facts

15 What is the purpose of an evaluation metric in NLP?

Evaluation metrics Easy
A. To create training examples
B. To increase processor speed
C. To measure model performance
D. To expand the vocabulary

16 What does lower perplexity generally indicate for a language model on a test set?

Perplexity Easy
A. Longer generated responses
B. Greater memory consumption
C. More layers in the model
D. Better prediction of the text

17 Perplexity is most directly based on which model output?

Perplexity Easy
A. Training-file sizes
B. Hidden-layer counts
C. Token probabilities
D. Response font styles

18 Which quality can human evaluators directly rate in generated text?

Human judgment measures Easy
A. Training batch speed
B. Parameter storage size
C. Response coherence
D. Processor temperature

19 What is the main goal of explainability in large language models?

Explainability in LLMs Easy
A. To enlarge the input text
B. To replace all evaluation
C. To clarify model behavior
D. To reduce screen resolution

20 What is a hallucination in the output of a large language model?

Hallucination in LLMs Easy
A. A plausible but unsupported claim
B. A correct answer with a citation
C. A prompt written by a user
D. A verified quotation from a source

21 A sequence-to-sequence model performs well during training with teacher forcing but produces increasingly poor text at inference time after making one early mistake. Which issue best explains this behavior?

Generative NLP models Medium
A. Gradient clipping from limiting the size of parameter updates
B. Weight tying from sharing input and output embedding parameters
C. Exposure bias from relying on correct previous tokens during training
D. Label smoothing from distributing probability across vocabulary tokens

22 A developer wants a language model to produce several varied story ideas from the same prompt while avoiding extremely unlikely tokens. Which decoding setup is most appropriate?

Text generation strategies Medium
A. Argmax decoding at every generation position
B. Greedy decoding with temperature fixed at zero
C. Beam search with one beam and no sampling
D. Sampling with moderate temperature and probability truncation

23 At the first decoding step, token A has probability and token B has probability . Their best possible next-token probabilities are and , respectively. Which sequence does greedy search select based on these values?

Greedy search Medium
A. Neither sequence, because greedy search requires multiple active beams
B. The sequence beginning with B, because B has the best continuation
C. Both sequences, because their total probabilities are considered equal
D. The sequence beginning with A, because A is locally most probable

24 A beam-search system consistently favors very short translations because sequence probabilities shrink as more token probabilities are multiplied. Which modification most directly addresses this problem?

Beam search Medium
A. Increase the softmax temperature during training
B. Remove the end-of-sequence token from decoding
C. Reduce the beam width to one candidate
D. Apply a length-normalized sequence score

25 A model uses top-k sampling with . At a particular decoding step, the five retained tokens together contain only of the original probability mass. What happens before sampling?

Top-k sampling Medium
A. The five retained probabilities are renormalized to sum to one
B. The original distribution is sampled until a retained token appears
C. The remaining probability mass is assigned to the highest-ranked token
D. The value of is increased until the mass reaches one

26 A model uses nucleus sampling with threshold . Why can the number of candidate tokens change from one decoding step to another?

Nucleus sampling Medium
A. It changes the threshold according to the generated sequence length
B. It randomly chooses a new vocabulary size at every decoding step
C. It keeps the smallest token set whose cumulative probability reaches
D. It keeps all tokens whose individual probabilities exceed

27 A pretrained language model often continues a user's prompt instead of carrying out the requested task. Why can instruction tuning improve this behavior?

Instruction-tuned large language models Medium
A. It trains the model on examples that map instructions to desired responses
B. It replaces next-token prediction with deterministic database retrieval
C. It guarantees that every generated claim is verified against external sources
D. It removes contextual information that is unrelated to vocabulary learning

28 An instruction-tuned model answers common tasks well but performs poorly when a request uses an unfamiliar format. Which intervention is most likely to improve its performance on that format?

Instruction-tuned large language models Medium
A. Shorten every request to a single token before model inference
B. Provide a few demonstrations using the requested input-output format
C. Use greedy decoding and remove all examples from the prompt
D. Increase the model's vocabulary without changing its training data

29 An abstractive summarizer produces fluent summaries but occasionally changes dates and names from the source document. Which evaluation should be prioritized?

Model behaviors in summarization Medium
A. Counting how many sentences were copied from the source
B. Calculating the average character length of generated sentences
C. Measuring only vocabulary diversity within the generated summary
D. Checking factual consistency between the summary and source

30 A dialogue model gives a restaurant recommendation and later denies making that recommendation. Which capability most directly needs improvement?

Dialogue generation Medium
A. Increasing lexical diversity within each individual response
B. Tracking conversational context across dialogue turns
C. Applying stronger length penalties to every generated response
D. Reducing the number of subword tokens in the vocabulary

31 A model solves single-operation arithmetic problems but often fails on problems requiring several dependent operations. Which prompting method is most likely to improve accuracy?

Reasoning tasks Medium
A. Prompt the model to produce intermediate reasoning steps
B. Remove numerical details from the problem description
C. Require the model to output only its first predicted token
D. Increase sampling temperature to maximize answer diversity

32 Two machine-generated summaries express the same meaning as a reference summary but use different wording. Their ROUGE scores are unexpectedly low. What is the most likely reason?

Evaluation metrics Medium
A. ROUGE evaluates only whether the summary is factually correct
B. ROUGE measures the model's training loss instead of generated text
C. ROUGE depends heavily on lexical overlap with reference text
D. ROUGE assigns lower scores whenever a model uses paraphrases

33 A language model assigns probabilities and to the two correct tokens in a sequence. Using , what is the sequence perplexity?

Perplexity Medium
A.
B.
C.
D.

34 Model X reports lower perplexity than Model Y, but the models use different tokenizers. Why should the comparison be treated cautiously?

Perplexity Medium
A. Per-token probabilities depend on how each tokenizer segments text
B. Perplexity ignores probabilities assigned to the observed test sequence
C. Different tokenizers force both models to have identical vocabularies
D. Perplexity can be calculated only for character-level language models

35 Three annotators rate dialogue responses for relevance on a five-point scale, but their scores differ substantially. Which measure would best assess rating consistency?

Human judgment measures Medium
A. The responses' average token count
B. An inter-rater agreement coefficient
C. The vocabulary's type-token ratio
D. The model's validation perplexity

36 A team compares two dialogue models through human evaluation. Which design best reduces bias caused by model identity and response order?

Human judgment measures Medium
A. Let each model's developers rate only their own outputs
B. Blind the model labels and randomize response order
C. Show automatic metric scores before collecting human ratings
D. Display model names and keep response order fixed

37 An analyst claims that the token receiving the highest attention weight is always the sole cause of a model's prediction. What is the main problem with this claim?

Explainability in LLMs Medium
A. Attention weights are available only in recurrent neural language models
B. Attention weights do not necessarily provide a complete causal explanation
C. Attention weights are calculated only after generation has fully completed
D. Attention weights always assign equal importance to every input token

38 To test whether a phrase truly influences a classifier's output, an analyst removes the phrase and observes the change in prediction. What explainability approach is being used?

Explainability in LLMs Medium
A. Counterfactual or perturbation-based analysis
B. Reference-based n-gram overlap analysis
C. Perplexity-based language model evaluation
D. Beam-width optimization during decoding

39 A question-answering model invents recent company statistics that were not present in its training data. Which system change most directly reduces this type of hallucination?

Hallucination in LLMs Medium
A. Apply a larger repetition penalty to previously generated tokens
B. Retrieve current documents and condition answers on their contents
C. Expand the beam width to preserve more candidate sequences
D. Increase sampling temperature to explore more possible responses

40 A medical summarization system generates a statement that is plausible but absent from the patient's record. How should this output be classified?

Hallucination in LLMs Medium
A. A decoding error only if the summary has low lexical diversity
B. A faithful inference because the generated sentence is grammatically correct
C. An unsupported hallucination requiring factual review
D. A valid abstraction because the statement sounds medically plausible

41 An autoregressive language model factorizes a sequence probability as . During training, all target positions can still be processed in parallel using teacher forcing. Why does this not permit fully parallel generation?

Generative NLP models Hard
A. The training objective estimates only token marginals rather than conditionals
B. Parallel generation would require the vocabulary probabilities to be uniform
C. Each generated token changes the conditioning context required for the next token
D. Teacher forcing removes positional information from the model during inference

42 At the first decoding step, a model assigns and . At the next step, and , with all other continuations having lower complete-sequence probability. Which sequence does greedy decoding return, and which has the greatest joint probability?

Greedy search Hard
A. Greedy returns , but has greater probability
B. Greedy returns , but has greater probability
C. Greedy returns , which also has the greatest probability
D. Greedy returns , which also has the greatest probability

43 A decoder ranks completed hypotheses by the unnormalized score . Assuming token probabilities are strictly below , what systematic preference can this introduce, and what modification most directly addresses it?

Beam search Hard
A. A preference for repeated tokens; apply temperature scaling after decoding
B. A preference for short sequences; apply a length-normalized sequence score
C. A preference for long sequences; apply a larger beam at every step
D. A preference for rare tokens; apply top-k filtering before expansion

44 A width- beam discards a prefix at step because its current cumulative log probability ranks third. Later, that prefix would have led to the globally highest-scoring completed sequence. Which statement best characterizes this outcome?

Beam search Hard
A. It is possible because beam search cannot recover a prefix once it is pruned
B. It is possible only when the model assigns a token probability above
C. It is impossible unless length normalization is applied during final ranking
D. It is impossible because cumulative log probability is an admissible heuristic

45 Let contain the tokens with highest model probabilities. Which distribution is sampled by standard top-k decoding before any temperature adjustment?

Top-k sampling Hard
A. for , and otherwise
B. for , with the removed mass assigned to EOS
C. for every token in the vocabulary
D. for , and otherwise

46 A model's sorted next-token probabilities are . Under nucleus sampling with threshold , what is the sampling probability of the third token after truncation and renormalization?

Nucleus sampling Hard
A.
B.
C.
D.

47 Two candidate tokens have original probability ratio . Temperature scaling uses . What is the new ratio when ?

Text generation strategies Hard
A.
B.
C.
D.

48 A developer wants generated answers to be reproducible while retaining more global sequence optimization than greedy decoding. Which configuration best satisfies both goals?

Text generation strategies Hard
A. Greedy decoding with high temperature applied to the output logits
B. Top-k sampling with a fixed and an unspecified random seed
C. Nucleus sampling with low temperature and randomized tie-breaking
D. Deterministic beam search with fixed tie-breaking and no sampling

49 An instruction-tuned model follows requested output formats much better than its base model but confidently repeats the same false historical claim. Which explanation is most accurate?

Instruction-tuned large language models Hard
A. Instruction tuning converted the model into a retrieval system with stale documents
B. Instruction tuning removed next-token prediction from the model's inference process
C. Instruction tuning optimized factual recall but disabled uncertainty estimation
D. Instruction tuning changed response behavior without guaranteeing corrected factual knowledge

50 A supervised instruction-tuning dataset contains many prompts where uncertain questions are answered with polished guesses rather than abstentions. What behavior is most likely after fine-tuning?

Instruction-tuned large language models Hard
A. The model will abstain whenever its pretraining probability distribution is diffuse
B. The model may learn that confident completion is preferred even under uncertainty
C. The model will separate factuality from style without explicit training signals
D. The model must become calibrated because answers use fluent natural language

51 A system summary states, "The treatment reduced mortality," while the source says, "The treatment did not reduce mortality." The summary contains no outside information. What is the most precise diagnosis?

Model behaviors in summarization Hard
A. An intrinsic factual inconsistency caused by contradicting the source
B. A lexical diversity error caused by copying source terminology
C. An extrinsic factual inconsistency caused by adding unsupported knowledge
D. A coverage error caused only by omitting a secondary source detail

52 A dialogue model is coherent for the first few turns but gradually repeats itself and responds to claims that no participant made. Which training-inference mismatch most directly contributes to this pattern?

Dialogue generation Hard
A. Training uses positional embeddings, while inference omits all position information
B. Training uses subword tokens, while inference must operate on complete words
C. Training minimizes cross-entropy, while inference computes only cosine similarity
D. Training conditions on gold histories, while inference conditions on model-generated histories

53 For a reasoning benchmark, a model samples 25 diverse reasoning paths and returns the answer occurring most often. Under what condition can this self-consistency strategy still reliably select a wrong answer?

Reasoning tasks Hard
A. The final answers are normalized before their frequencies are counted
B. The decoding temperature is greater than zero for every sampled path
C. The sampled paths use different wording for the same correct conclusion
D. The sampled paths share a systematic bias toward the same incorrect conclusion

54 A semantically correct generated answer uses different wording from a single reference and receives a low BLEU score. Which property of BLEU best explains this result?

Evaluation metrics Hard
A. Its brevity penalty always assigns zero to outputs shorter than the reference
B. Its n-gram overlap can penalize valid paraphrases absent from the reference
C. Its embedding similarity systematically rewards contradictions with shared topics
D. Its language-model component penalizes answers with low token perplexity

55 A three-token sequence has token negative log-likelihoods , , and . Using natural logarithms, what is its token-level perplexity?

Perplexity Hard
A.
B.
C.
D.

56 Model X reports lower token-level perplexity than Model Y on the same raw documents, but the models use different tokenizers. Why is the direct comparison potentially invalid?

Perplexity Hard
A. Per-token normalization depends on how each tokenizer segments the documents
B. Perplexity becomes undefined whenever vocabularies have different cardinalities
C. Perplexity is comparable only when both models have identical parameter counts
D. Different tokenizers force both models to assign identical sequence probabilities

57 Two summarization systems are compared by asking each annotator to choose the better output for the same document. Which design most directly controls for annotator severity and document difficulty?

Human judgment measures Hard
A. Use paired judgments with randomized system order on each document
B. Show only one system output and average uncalibrated rating scores
C. Assign each system to separate annotators using unrelated documents
D. Discard all ties and retain only documents with unanimous preferences

58 A researcher presents one attention head's weights as proof that specific input tokens caused an LLM's answer. What is the strongest methodological objection?

Explainability in LLMs Hard
A. Attention weights are always uniform after the softmax normalization operation
B. Attention weights need not be faithful measures of causal influence on the output
C. Attention weights cannot be computed for autoregressive transformer architectures
D. Attention weights describe only training loss and are unavailable during inference

59 An explanation method identifies a hidden unit as representing negation. Which experiment provides the strongest evidence that the unit causally affects negation-sensitive predictions?

Explainability in LLMs Hard
A. Ask the model to describe the likely semantic role of the hidden unit
B. Intervene on the unit and measure targeted changes in negation-sensitive outputs
C. Visualize the unit's largest activations across a selected prompt collection
D. Find examples where the unit activation correlates with the word "not"

60 A retrieval-augmented LLM receives a passage containing the correct answer but generates a conflicting claim. Which conclusion is best supported?

Hallucination in LLMs Hard
A. The correct passage guarantees factual output whenever it appears in the context
B. The retriever necessarily failed because the generated answer was factually incorrect
C. The language model cannot attend to retrieved text during autoregressive decoding
D. Retrieval availability alone does not ensure that generation is grounded in the evidence