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.
What is the primary goal of a generative NLP model?
Not quite. Try another option.
Answer: To generate new, coherent text sequences
Generative NLP models are designed to produce new text, such as sentences or paragraphs, rather than just analyzing or classifying existing text.
Question 2 of 60 · text generation strategies · Easy
In autoregressive text generation, how is a sequence typically generated?
Not quite. Try another option.
Answer: Tokens are generated one by one, conditioned on previously generated tokens
Autoregressive generation means the model predicts the next word in a sequence based on all the words it has generated so far.
Question 3 of 60 · greedy search · Easy
How does the greedy search decoding strategy choose the next token?
Not quite. Try another option.
Answer: It selects the token with the highest probability at each step
Greedy search always picks the single most likely next word at every step, without considering future token probabilities.
Question 4 of 60 · greedy search · Easy
What is a common drawback of using greedy search for text generation?
Not quite. Try another option.
Answer: It often leads to repetitive and highly predictable text
Because greedy search always picks the highest probability word, it can easily get stuck in repetitive loops and lacks the creativity of sampling methods.
Question 5 of 60 · beam search · Easy
Which of the following best describes beam search?
Not quite. Try another option.
Answer: It keeps track of the top most probable sequences at each step
Beam search maintains a 'beam' of the top most likely partial sequences (hypotheses), expanding them at each step to find a better overall sequence than greedy search.
Question 6 of 60 · top-k · Easy
What happens during top-k sampling in text generation?
Not quite. Try another option.
Answer: The model samples the next token only from the most likely tokens
Top-k sampling restricts the vocabulary to the words with the highest probabilities, redistributing the probability mass among them before sampling.
Question 7 of 60 · top-k · Easy
If in top-k sampling, the strategy becomes exactly equivalent to which other decoding method?
Not quite. Try another option.
Answer: Greedy search
If , the model restricts its choice to only the single most likely token, which is the exact definition of greedy search.
Question 8 of 60 · nucleus sampling · Easy
What is another common name for nucleus sampling?
Not quite. Try another option.
Answer: Top-p sampling
Nucleus sampling is widely known as top-p sampling because it selects from the smallest set of tokens whose cumulative probability exceeds a threshold .
Question 9 of 60 · nucleus sampling · Easy
Unlike top-k sampling which uses a fixed number of tokens, how does nucleus (top-p) sampling determine the pool of candidate tokens?
Not quite. Try another option.
Answer: By selecting tokens based on a fixed cumulative probability mass
Nucleus sampling includes the most probable tokens such that the sum of their probabilities reaches the chosen value . The number of tokens in this pool varies at each step.
Question 10 of 60 · instruction-tuned · Easy
What does it mean for a large language model to be 'instruction-tuned'?
Not quite. Try another option.
Answer: It has been fine-tuned on a dataset of tasks described via natural language instructions
Instruction tuning is a fine-tuning process where models learn to understand and follow explicit user commands or prompts.
Question 11 of 60 · large language models · Easy
Which of the following is a primary characteristic of Large Language Models (LLMs)?
Not quite. Try another option.
Answer: They are trained on massive amounts of textual data using self-supervised learning
LLMs like GPT-3 or LLaMA are characterized by their massive scale in parameters (often billions) and training datasets, utilizing self-supervised learning objectives like next-word prediction.
Question 12 of 60 · model behaviors in summarization · Easy
When an LLM performs abstractive summarization, what is it primarily doing?
Not quite. Try another option.
Answer: Generating new sentences that convey the core meaning of the source text
Abstractive summarization involves the model writing a new, concise summary in its own words, rather than simply extracting existing sentences (extractive summarization).
Question 13 of 60 · dialogue generation · Easy
What is a critical requirement for a model to perform well in multi-turn dialogue generation?
Not quite. Try another option.
Answer: It must maintain conversational context and memory across multiple interactions
In multi-turn dialogue, the model must track what was said previously to provide relevant and coherent responses.
Question 14 of 60 · reasoning tasks · Easy
Which prompting technique explicitly encourages an LLM to generate intermediate logical steps to solve complex reasoning tasks?
Not quite. Try another option.
Answer: Chain-of-Thought (CoT) prompting
The correct option follows directly from the given concept and definitions.
Question 15 of 60 · evaluation metrics · Easy
Which automated metric is widely used in NLP for evaluating the n-gram overlap between generated text and reference text?
Not quite. Try another option.
Answer: BLEU score
BLEU (Bilingual Evaluation Understudy) is a classic automated metric used to evaluate generated text by measuring n-gram overlap with human reference texts.
Question 16 of 60 · perplexity and human judgment measures · Easy
In the context of evaluating a language model, what does a lower perplexity score indicate?
Not quite. Try another option.
Answer: The model assigns higher probability to the test data, indicating better performance
Perplexity measures how 'surprised' a model is by real text. A lower perplexity means the model is better at predicting the sequence, indicating higher quality.
Question 17 of 60 · perplexity and human judgment measures · Easy
Why are human judgment measures often considered essential for evaluating generative LLMs?
Not quite. Try another option.
Answer: Automated metrics like BLEU or perplexity do not fully capture text fluency, coherence, and safety
Generative tasks are highly subjective. Automated metrics often miss nuances like tone, factual accuracy, coherence, and helpfulness, making human evaluation the gold standard.
Question 18 of 60 · explainability and hallucination in LLMs · Easy
What does the term 'hallucination' refer to in the context of Large Language Models?
Not quite. Try another option.
Answer: The model generating factually incorrect, nonsensical, or fabricated information as if it were true
In LLMs, a hallucination occurs when the model confidently generates false or unverified information that is not grounded in reality or the provided context.
Question 19 of 60 · explainability and hallucination in LLMs · Easy
Why is 'explainability' a major challenge in modern Large Language Models?
Not quite. Try another option.
Answer: Because they act as 'black boxes' with billions of parameters, making it hard to trace how a specific output was derived
LLMs use deep neural networks with billions of weights. The complex, non-linear interactions make it extremely difficult for humans to understand exactly why a model made a specific prediction.
Question 20 of 60 · generative NLP models · Easy
Which neural network architecture serves as the foundation for modern generative LLMs like GPT?
Not quite. Try another option.
Answer: Transformer Decoder
Modern generative models like the GPT (Generative Pre-trained Transformer) family are primarily based on the Transformer architecture, specifically using decoder-only setups for autoregressive text generation.
Question 21 of 60 · generative NLP models · Medium
Which of the following best describes the core mathematical objective of standard autoregressive generative NLP models during generation?
Not quite. Try another option.
Answer: Predicting the next token by maximizing the conditional probability .
Autoregressive generative models generate text one token at a time, calculating the probability of the next token based strictly on the preceding context tokens.
Question 22 of 60 · text generation strategies · Medium
When generating text, modifying the 'temperature' parameter alters the probability distribution of the next token. If a temperature is applied, how does it affect the softmax output?
Not quite. Try another option.
Answer: It sharpens the distribution, making the model more confident and likely to select the highest-probability tokens.
Applying a temperature divides the logits by a small number before the softmax, which exaggerates the differences between the logits, thereby sharpening the probability distribution.
Question 23 of 60 · greedy search · Medium
A generative model is using greedy search to translate a sentence. Why might this strategy fail to find the sequence with the highest overall probability?
Not quite. Try another option.
Answer: Greedy search makes locally optimal choices at each time step without considering future token probabilities.
Greedy search selects the single most probable token at each step. This local optimization can lead to dead ends where future tokens have very low probabilities, missing a globally optimal sequence.
Question 24 of 60 · beam search · Medium
In beam search text generation with a beam width of , what exactly does the algorithm track at time step ?
Not quite. Try another option.
Answer: The 3 most probable sequences of length , along with their cumulative log-probabilities.
Beam search maintains a 'beam' of the top most probable partial sequences (hypotheses) at every time step, expanding them and then pruning back down to .
Question 25 of 60 · beam search · Medium
Why is a length penalty often applied to the scores of candidate sequences during beam search?
Not quite. Try another option.
Answer: Because cumulative log-probabilities are negative, making longer sequences naturally score lower.
Since probabilities are , their log values are negative. Summing more negative numbers (for longer sequences) results in a lower total score, so a length penalty normalizes the score to prevent bias against longer outputs.
Question 26 of 60 · top-k · Medium
A text generation model applies Top-K sampling with . If the model predicts a very confident distribution where the top 3 tokens contain of the probability mass, what is a potential drawback of this Top-K approach?
Not quite. Try another option.
Answer: It still allows a small probability of selecting from the remaining 47 tokens, which might be irrelevant.
Top-K always keeps exactly tokens regardless of the distribution's shape. Even if the top 3 tokens are highly confident, the remaining 47 tokens are kept in the sampling pool, risking the selection of inappropriate words.
Question 27 of 60 · nucleus sampling · Medium
In nucleus (Top-p) sampling with , how does the algorithm determine which tokens to keep in the sampling pool?
Not quite. Try another option.
Answer: It sorts tokens by probability and selects the smallest set whose cumulative probability exceeds .
Nucleus sampling dynamically adjusts the number of candidate tokens by computing the cumulative distribution of sorted probabilities and cutting off as soon as the sum reaches the threshold .
Question 28 of 60 · nucleus sampling · Medium
Which of the following describes a scenario where nucleus sampling (Top-p) behaves significantly differently than Top-K sampling?
Not quite. Try another option.
Answer: When the distribution shifts from highly peaked (confident) to very flat (uncertain) across different generation steps.
Nucleus sampling dynamically adjusts the pool size based on the distribution shape (fewer tokens when confident, more when uncertain), whereas Top-K uses a rigid cutoff regardless of uncertainty.
Question 29 of 60 · instruction-tuned · Medium
What is the primary objective of instruction tuning a Large Language Model compared to standard pre-training?
Not quite. Try another option.
Answer: To align the model's outputs with human intent by training on (instruction, response) pairs.
While pre-training teaches the model to predict the next word on raw text, instruction tuning uses supervised learning on task-specific prompts and expected responses to make the model follow human commands.
Question 30 of 60 · large language models · Medium
When performing few-shot prompting with an LLM, the model successfully adapts to a new task. What mechanism allows this adaptation without updating the model's parameters?
Not quite. Try another option.
Answer: In-context learning
In-context learning allows large language models to recognize patterns and perform new tasks simply by observing examples provided in the prompt, without any parameter updates.
Question 31 of 60 · model behaviors in summarization · Medium
When utilizing a generative LLM for abstractive summarization, which of the following is the most significant risk compared to extractive summarization?
Not quite. Try another option.
Answer: The model might generate fluent but factually incorrect statements not present in the source.
Abstractive summarization generates new text, making it highly susceptible to hallucination (creating false facts), whereas extractive summarization only selects existing sentences from the source.
Question 32 of 60 · dialogue generation · Medium
In a multi-turn dialogue generation system, how does an autoregressive LLM typically 'remember' previous conversational turns?
Not quite. Try another option.
Answer: By concatenating previous turns with the current input into a single prompt, up to the context window limit.
LLMs are stateless. To maintain context in a dialogue, previous user and assistant turns are concatenated into the prompt provided to the model for the next generation step.
Question 33 of 60 · reasoning tasks · Medium
How does 'Chain-of-Thought' (CoT) prompting improve an LLM's performance on complex mathematical reasoning tasks?
Not quite. Try another option.
Answer: It encourages the model to generate intermediate reasoning steps, allocating more computational steps before the final answer.
Chain-of-Thought prompting elicits step-by-step reasoning from the model. Because the model is autoregressive, generating intermediate tokens effectively gives it more 'computational time' to arrive at the correct final answer.
Question 34 of 60 · evaluation metrics · Medium
Which of the following best describes the primary difference between how BLEU and ROUGE evaluate generated text?
Not quite. Try another option.
Answer: BLEU is based on precision of n-grams, while ROUGE is traditionally based on recall of n-grams.
BLEU focuses on precision (how much of the generated text appears in the reference), making it suited for translation. ROUGE focuses on recall (how much of the reference is captured in the generation), making it suited for summarization.
Question 35 of 60 · evaluation metrics · Medium
A student evaluates an LLM's response using BLEU and gets a very low score, yet human evaluators rate the response as excellent. What is the most likely reason for this discrepancy?
Not quite. Try another option.
Answer: BLEU penalizes text that uses synonyms and paraphrasing instead of exact n-gram matches from the reference.
N-gram based metrics like BLEU rely on exact string matching. A perfectly valid and fluent paraphrase will receive a low BLEU score because it doesn't share the exact vocabulary with the reference.
Question 36 of 60 · perplexity and human judgment measures · Medium
Given a sequence of words , perplexity (PP) is defined as . What does a lower perplexity score on a test set indicate about a language model?
Not quite. Try another option.
Answer: The model assigns a higher probability to the test data, indicating it predicts the sequence well.
Perplexity is the inverse probability of the test set, normalized by the number of words. A lower perplexity means the model assigned a higher probability to the actual data, indicating better predictive performance.
Question 37 of 60 · perplexity and human judgment measures · Medium
Why is perplexity generally considered insufficient on its own for evaluating modern instruction-tuned LLMs?
Not quite. Try another option.
Answer: Perplexity measures how well the model predicts the next token in a static corpus, but not how helpful, safe, or factually accurate the generated responses are.
While perplexity measures the statistical likelihood of text, it does not assess alignment with human intent, factuality, coherence of long outputs, or adherence to safety guardrails.
Question 38 of 60 · explainability and hallucination in LLMs · Medium
In the context of evaluating LLM hallucination in abstractive summarization, what distinguishes an 'intrinsic hallucination' from an 'extrinsic hallucination'?
Not quite. Try another option.
Answer: Intrinsic hallucination directly contradicts information in the source text, while extrinsic hallucination introduces external information that cannot be verified from the source.
Intrinsic hallucinations contradict the provided source material. Extrinsic hallucinations add details not found in the source text (which might be true or false, but are unverified by the source).
Question 39 of 60 · explainability and hallucination in LLMs · Medium
Which of the following techniques is most commonly used to mitigate factual hallucination in LLMs by grounding the model's responses?
Not quite. Try another option.
Answer: Retrieval-Augmented Generation (RAG).
RAG retrieves relevant, factual documents from an external knowledge base and includes them in the model's prompt, grounding the generation in verified facts and reducing hallucination.
Question 40 of 60 · explainability and hallucination in LLMs · Medium
When attempting to explain the predictions of a Transformer-based LLM, researchers often look at attention weights. What is a widely recognized limitation of using attention weights as an explainability tool?
Not quite. Try another option.
Answer: Attention weights do not always correlate with feature importance or the actual causal impact on the model's output.
Research has shown that high attention weights do not strictly imply that a token was the causal reason for a specific prediction, as information is mixed across many layers and heads (a debate known as 'Attention is not Explanation').
Question 41 of 60 · nucleus sampling · Hard
In nucleus sampling (Top-), the model samples from the smallest set of tokens such that the sum of their probabilities is greater than or equal to . If , and the probability distribution over the vocabulary for the next token is , , , and , what will be the effective size of the sampling vocabulary ?
Not quite. Try another option.
Answer:
In nucleus sampling, we sort the tokens by probability in descending order and iteratively add them to until the cumulative probability meets or exceeds . Since the first token alone has a probability of , which is already , the sampling pool will consist of only .
Question 42 of 60 · beam search · Hard
Autoregressive models decoded using standard beam search often exhibit a strong bias towards shorter sequences. To mitigate this, a length penalty is introduced to the objective function: . If , how does this objective theoretically alter the sequence scoring compared to standard beam search?
Not quite. Try another option.
Answer: It normalizes the cumulative log-probability by the sequence length, converting the score to the geometric mean of the token probabilities.
When , dividing the sum of the log-probabilities by computes the arithmetic mean of the log-probabilities. Because , this is mathematically equivalent to optimizing the geometric mean of the token probabilities, removing the inherent additive bias against longer sequences.
Question 43 of 60 · top-k · Hard
During text generation, consider a scenario where the vocabulary distribution is completely uniform across a large vocabulary . If we transition from Top- sampling with to nucleus sampling with , what happens to the size of the restricted vocabulary from which we sample?
Not quite. Try another option.
Answer: will increase if , because nucleus sampling dynamically adjusts to the entropy of the uniform distribution.
For a uniform distribution, each token has probability . To reach a cumulative probability of , nucleus sampling must select tokens. If is large (e.g., 10,000), , which is much greater than . Top- is advantageous precisely because it expands for high-entropy distributions.
Question 44 of 60 · instruction-tuned · Hard
Instruction-tuned Large Language Models are often refined using Reinforcement Learning from Human Feedback (RLHF). During the PPO (Proximal Policy Optimization) phase, a Kullback-Leibler (KL) divergence penalty is typically added to the reward. What is the primary analytical purpose of this KL penalty?
Not quite. Try another option.
Answer: To prevent the policy model from moving too far from the original Supervised Fine-Tuned (SFT) model, mitigating 'reward hacking' and catastrophic forgetting.
In RLHF, optimizing purely on the reward model often leads to 'reward hacking', where the model exploits flaws in the reward function to get high scores while generating nonsensical or degraded text. The KL divergence penalty ensures the updated policy stays close to the SFT model's distribution, preserving language fluency and stability.
Question 45 of 60 · evaluation metrics · Hard
When evaluating an LLM on a reasoning task using the BLEU score, the resulting score is extremely low, yet human evaluation shows the model's reasoning is perfectly accurate. Which of the following best explains this divergence?
Not quite. Try another option.
Answer: BLEU measures exact n-gram overlap; logical reasoning tasks can have multiple valid structural phrasing paths that share no n-grams with the reference.
BLEU is an n-gram precision-based metric. It relies on exact lexical overlap between the generated text and the reference. In reasoning, a model can arrive at the correct logic using entirely different synonyms or sentence structures, resulting in a low BLEU score despite high functional correctness.
Question 46 of 60 · perplexity and human judgment measures · Hard
Perplexity (PPL) is a standard evaluation metric for language models, defined as . However, models with lower perplexity on a validation set do not always generate text that humans judge as higher quality. Which phenomenon best explains this paradox?
Not quite. Try another option.
Answer: Perplexity is evaluated using teacher forcing on human-written text, which does not penalize the model for entering repetitive loops during free-form autoregressive generation.
Perplexity is calculated over fixed, ground-truth human text (teacher forcing). A model can assign high probabilities to the next correct token given perfect context (low PPL), but during actual generation (where it consumes its own predictions), it may fall into degenerative, repetitive loops that human evaluators rate poorly.
Question 47 of 60 · reasoning tasks · Hard
Chain-of-Thought (CoT) prompting significantly improves performance on reasoning tasks compared to standard prompting. From a computational complexity perspective of standard Transformer-based LLMs, why does generating intermediate reasoning steps increase the model's problem-solving capability?
Not quite. Try another option.
Answer: It effectively increases the computational depth allocated to a problem, as each generated token provides another complete forward pass through the model's layers.
Transformers have a fixed computational budget per generated token (determined by the number of layers and hidden size). By generating intermediate reasoning steps (tokens), the model performs multiple forward passes before outputting the final answer, effectively expanding the total computation applied to solve the specific query.
Question 48 of 60 · greedy search · Hard
Consider an autoregressive language model generating a sequence using greedy search. The generated text gets stuck in an infinite loop (e.g., 'I went to the store to the store to the store...'). Which mathematical characteristic of the model's learned distribution most directly contributes to this greedy decoding failure?
Not quite. Try another option.
Answer: The model forms an absorbing Markov chain state where creates a deterministic local optimum that outscores escaping it.
In greedy search, the model strictly chooses the token at each step. If a generated phrase strongly conditions the model to predict the same phrase again, it creates a high-probability 'sink' or local optimum. Because greedy search does not explore less probable tokens that might break the cycle, it becomes trapped in an infinite loop.
Question 49 of 60 · explainability and hallucination in LLMs · Hard
In the context of LLM hallucination, researchers distinguish between 'intrinsic' and 'extrinsic' hallucinations. An LLM generated a summary stating: 'The CEO of OpenAI, Sam Altman, announced a new model in Paris.' If the source text mentioned the announcement but did not state the location, how is this hallucination classified and why is it notoriously difficult to penalize using standard cross-entropy training?
Not quite. Try another option.
Answer: Extrinsic hallucination; cross-entropy maximizes likelihood based on training priors (where announcements often happen in major cities), penalizing the model for factual abstention.
Extrinsic hallucination occurs when the model introduces details not present in (but not strictly contradicting) the source. Standard cross-entropy objective trains the model to replicate the target distribution, which often involves the model relying on its parametric memory (priors) to 'fill in' plausible details, making it hard to train the model to output 'I don't know' or remain strictly faithful to the source.
Question 50 of 60 · dialogue generation · Hard
A persistent issue in dialogue generation is 'exposure bias'. Which of the following training paradigms is specifically designed to mitigate exposure bias by bridging the gap between training and inference distributions?
Not quite. Try another option.
Answer: Scheduled Sampling, where the model is increasingly fed its own predictions instead of the ground-truth tokens during training.
Exposure bias arises because models are trained with teacher forcing (seeing perfect ground-truth context) but must generate autoregressively using their own potentially flawed predictions at inference. Scheduled sampling slowly replaces ground-truth tokens with the model's own predicted tokens during training, simulating the inference environment.
Question 51 of 60 · large language models · Hard
In the context of Large Language Models, 'emergent abilities' are capabilities that are not present in smaller models but suddenly appear when the model scale reaches a certain threshold. Which of the following provides the most statistically rigorous critique of emergent abilities as proposed by some recent NLP literature?
Not quite. Try another option.
Answer: The 'emergence' is often an artifact of using non-linear, discontinuous evaluation metrics (like exact match) rather than smooth, continuous metrics (like Brier score or cross-entropy).
Recent research suggests that apparent 'sharp' emergent abilities are often mirages created by the choice of metric. If a task is measured by a strict threshold (e.g., exact match), performance appears to jump suddenly. When measured by continuous metrics (like token log-probabilities), the improvement is shown to be smooth and predictable across scales.
Question 52 of 60 · text generation strategies · Hard
Contrastive Search is a text generation strategy introduced to prevent degeneration in LLMs. Its objective function at step is formulated to select a token that maximizes model confidence while minimizing what specific component?
Not quite. Try another option.
Answer: The cosine similarity between the representation of and the representations of all previously generated tokens.
Contrastive search evaluates candidate tokens by balancing the model's predicted probability (confidence) against a degeneration penalty. This penalty is calculated as the maximum cosine similarity between the hidden representation of the candidate token and the hidden representations of the preceding tokens, actively discouraging repetition.
Question 53 of 60 · model behaviors in summarization · Hard
When leveraging LLMs for abstractive summarization, a phenomenon known as 'lead bias' is frequently observed. If an LLM is heavily exhibiting lead bias, how will this manifest in its outputs, and how does the self-attention mechanism theoretically contribute to it in long documents?
Not quite. Try another option.
Answer: The model focuses disproportionately on the beginning of the source text; early tokens act as 'attention sinks' and are heavily attended to across all layers.
Lead bias refers to the tendency to extract or summarize information predominantly from the beginning of a document. In Transformers, initial tokens (often including the prompt or first sentence) act as 'attention sinks'—they accumulate massive attention scores across layers because the softmax needs a place to dump probability mass when subsequent tokens aren't highly relevant, cementing the model's focus on the start of the text.
Question 54 of 60 · beam search · Hard
A known empirical issue with beam search in neural machine translation and other generative tasks is the 'beam search curse', where increasing the beam size beyond a certain point (e.g., ) degrades the BLEU score. What is the primary cause of this degradation?
Not quite. Try another option.
Answer: Larger beams find sequences with higher global log-probability, but the model's probability distribution is poorly calibrated and actually assigns the highest probabilities to overly short, inadequate sequences.
Beam search is an approximate search for the maximum likelihood sequence. A wider beam does a better job of finding the true maximum likelihood sequence. However, neural sequence models are often poorly calibrated and assign the highest overall probability to short, generic, or truncated sequences. A smaller beam size inadvertently acts as a regularizer against this flaw.
Question 55 of 60 · generative NLP models · Hard
Which of the following describes a key architectural difference between Causal Language Models (like GPT-3) and Masked Language Models (like BERT) that fundamentally makes Causal LMs better suited for zero-shot generative prompting?
Not quite. Try another option.
Answer: Causal LMs use a strictly lower-triangular causal mask in self-attention, naturally aligning their pre-training objective with left-to-right autoregressive text generation.
Causal LMs use a masked self-attention mechanism where tokens can only attend to previous tokens (lower-triangular mask). This left-to-right autoregressive pre-training exactly matches the inference mechanism of reading a prompt and predicting the next word, enabling powerful zero-shot generation. Masked LMs rely on bidirectional context and are trained to fill in blanks, making standard left-to-right generation unnatural for them.
Question 56 of 60 · explainability and hallucination in LLMs · Hard
To explain the output of a generative LLM, researchers often use Integrated Gradients. For a specific generated token , Integrated Gradients computes the path integral of gradients from a baseline input to the actual input . Why is computing Integrated Gradients for generative LLMs significantly more complex than for standard classification models?
Not quite. Try another option.
Answer: Generative LLMs use discrete token inputs; constructing a continuous interpolation path from a baseline token embedding to the input token embedding may pass through regions of the embedding space that correspond to no valid token.
Integrated Gradients requires interpolating inputs along a straight line from a baseline to the actual input and accumulating the gradients. Because language relies on discrete tokens, interpolating in the continuous embedding space traverses meaningless latent areas that the model never saw during training, complicating interpretation.
Question 57 of 60 · reasoning tasks · Hard
In 'Self-Consistency' decoding for LLM reasoning tasks, multiple distinct reasoning paths are sampled, and the final answer is selected via majority vote. For self-consistency to be effective, which decoding strategy MUST be utilized during the generation of the paths?
Not quite. Try another option.
Answer: A non-deterministic sampling strategy (like temperature sampling with ) to ensure diverse reasoning paths are generated.
Self-consistency relies on generating multiple different reasoning paths to see if they converge on the same answer. If a deterministic strategy like greedy decoding or beam search of size 1 is used, the model will output the exact same sequence every time, rendering majority voting useless. Temperature sampling injects the necessary diversity.
Question 58 of 60 · instruction-tuned · Hard
During the creation of an instruction-tuned model, Supervised Fine-Tuning (SFT) is typically performed before RLHF. If the SFT phase trains the model exclusively on examples formatted as User: [Query] Assistant: [Response], and a user at inference prompts the model with System: [Directive], what failure mode is most likely to occur and why?
Not quite. Try another option.
Answer: Out-of-distribution formatting failure; the model has learned strict structural priors during SFT and may hallucinate a User: tag or generate degraded text when the prompt does not match the exact SFT template.
Instruction tuning aggressively shifts the model's distribution to expect highly specific prompt templates. If inference prompts do not match the SFT template (e.g., introducing a System: tag when only User: and Assistant: were trained), the input becomes out-of-distribution, often leading the model to hallucinate the expected formatting tags or fail to understand the instruction boundary.
Question 59 of 60 · evaluation metrics · Hard
ROUGE-L uses the Longest Common Subsequence (LCS) to evaluate summarization. Let the reference be and the generation be . The length of LCS is 3 (). What is a key mathematical advantage of LCS in ROUGE-L over using purely contiguous n-gram overlaps (like ROUGE-2)?
Not quite. Try another option.
Answer: LCS naturally captures sentence-level structure by identifying in-sequence matches without requiring consecutive n-gram matches, allowing flexibility for insertion of novel words.
The Longest Common Subsequence does not require the matching words to be strictly contiguous, only that they appear in the same relative order. This gives ROUGE-L an advantage over n-gram metrics (which require strict adjacency), as it credits the model for maintaining the correct overall flow and structure of the sentence, even if new words are inserted.
Question 60 of 60 · large language models · Hard
A massive LLM is deployed using pipeline parallelism across multiple GPUs. If the model exhibits high latency during autoregressive token generation (decoding phase) compared to the prefill phase (processing the prompt), what is the primary architectural bottleneck causing this difference?
Not quite. Try another option.
Answer: The decoding phase requires loading the full Key-Value (KV) cache into memory from VRAM for every single generated token, severely bottlenecking memory bandwidth compared to the highly parallel matrix multiplications in the prefill phase.
During the prefill phase, the entire prompt is processed simultaneously, allowing highly efficient, compute-bound dense matrix multiplications. During autoregressive decoding, tokens are generated one by one. Generating each token requires fetching the model weights and the entire historical KV cache for the sequence from memory, making the generation phase highly memory-bandwidth bound rather than compute-bound.
That's unit 6
Answer a few questions and your score shows up here.
Nearly through. Did unit 6 of CSE472 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 6 of CSE472 save you a night before the exam?
Then you can help keep it free for the next batch. 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.