Transformers and Large Language Models
- 86Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
86 questions
- 1Natural Language Processing is the field concerned with computationally manipulating and working with_____.
Hint
Think of the kind of information NLP systems process.
Answer
text
- 2In an NLP classification task, a model uses an input text to predict_____.
Hint
A sentiment classifier, for example, assigns a category to a review.
Answer
a label
- 3Predicting whether a movie review expresses positive, negative, or neutral sentiment is an example of_____.
Hint
The model assigns a category to the entire review.
Answer
classification
- 4Identifying that a request such as “I want to create an alarm for tomorrow” expresses the goal of creating an alarm is called_____.
Hint
The task identifies what the person wants to do.
Answer
intent detection
- 5Determining whether a text is written in French or another language is a_____task.
Hint
The model identifies which language the input uses.
Answer
language detection
- 6A task that assigns labels to multiple specific words in a sentence, such as identifying locations and times, is_____.
Hint
The task identifies and categorizes named items in text.
Answer
Named Entity Recognition
- 7Identifying whether each word is a noun, verb, or another grammatical category is called_____.
Hint
The task assigns grammatical categories to individual words.
Answer
part of speech tagging
- 8Dependency parsing and constituency parsing are examples of_____tasks.
Hint
These tasks analyze the grammatical structure of sentences.
Answer
parsing-related
- 9A task that takes text as input and produces text of potentially unknown length as output belongs to the_____category.
Hint
Translation and summarization are examples.
Answer
generation
- 10Translating a text from a source language into a target language is called_____.
Hint
The task converts text between languages.
Answer
machine translation
- 11Producing an answer in response to a user's question is an example of_____.
Hint
Conversational assistants commonly perform this task.
Answer
question answering
- 12Reducing an article to a shorter version that preserves its main ideas is the task of_____.
Hint
The output is a condensed version of the input.
Answer
summarization
- 13The percentage of observations that a classifier predicts correctly is its_____.
Hint
This metric counts correct predictions across all observations.
Answer
accuracy
- 14Among all positive predictions made by a model, the fraction that are correct is its_____.
Hint
This metric focuses on the reliability of positive predictions.
Answer
precision
- 15Among all examples that truly have a positive label, the fraction correctly identified is the model's_____.
Hint
This metric measures how many true positive cases the model finds.
Answer
recall
- 16The metric that combines precision and recall using their harmonic mean is the_____.
Hint
It summarizes the balance between precision and recall in one value.
Answer
F1 score
- 17When one class dominates a dataset, a classifier that always predicts that majority class can make_____appear misleadingly high.
Hint
The model can get many examples right while failing on the minority class.
Answer
accuracy
- 18For Named Entity Recognition, classification metrics can be computed at the token level or at the_____level.
Hint
The second approach aggregates performance for categories such as location.
Answer
entity-type
- 19Machine translation evaluation often uses paired source and target sequences from datasets such as_____.
Hint
Its name stands for Workshop on Machine Translation.
Answer
WMT
- 20A translation metric that compares a model's output with a reference text and is commonly used for machine translation is_____.
Hint
It is one of the reference-based metrics discussed alongside ROUGE.
Answer
BLEU
- 21The suite of reference-based metrics used to evaluate generated text in a different way from BLEU is_____.
Hint
It is another metric family that compares output with reference text.
Answer
ROUGE
- 22Unlike reference-based metrics,_____evaluates a language model using the probabilities it assigns and reflects how surprised it is by text.
Hint
A lower value is considered better for this metric.
Answer
perplexity
- 23BLEU and ROUGE generally improve as their scores get higher, whereas perplexity generally improves as its score gets_____.
Hint
Perplexity measures how surprised the model is by the text.
Answer
lower
- 24Dividing text into units that a model processes is called_____, and each resulting unit is a token.
Hint
The name of the process comes from the name of the resulting text units.
Answer
tokenization
- 25A tokenizer that treats each complete word as a separate unit uses_____tokenization.
Hint
Each word, such as “bear” or “bears,” is treated as its own token.
Answer
word-level
- 26A limitation of word-level tokenization is that related forms such as “bear” and “bears” are treated as_____tokens.
Hint
The tokenizer does not automatically share a representation between the singular and plural forms.
Answer
different
- 27A word that appears at inference time but was not present in the training vocabulary is an_____word.
Hint
The abbreviation for this term is OOV.
Answer
out-of-vocabulary
- 28A tokenizer that breaks words into reusable word parts and can represent shared roots is a_____tokenizer.
Hint
It offers a compromise between whole-word and character-level tokenization.
Answer
subword
- 29Compared with word-level tokenization, subword tokenization lowers the risk of_____because it can compose familiar word parts.
Hint
This is the problem that occurs when a token was not encountered during training.
Answer
out-of-vocabulary tokens
- 30A trade-off of subword tokenization is that breaking words into parts can make the token_____longer.
Hint
More units must be processed when a word is divided into several pieces.
Answer
sequence
- 31A tokenizer that represents text one character at a time uses_____-level tokenization.
Hint
Its units are individual letters or other characters.
Answer
character
- 32Because it processes individual characters, character-level tokenization can be robust to misspellings and_____errors.
Hint
These errors involve uppercase and lowercase forms.
Answer
casing
- 33The main computational disadvantage of character-level tokenization is that it creates very long sequences, making processing_____.
Hint
The model has more individual units to process.
Answer
slower
- 34A multilingual tokenizer may use a vocabulary on the order of hundreds of thousands, while an English-focused vocabulary is often on the order of_____.
Hint
The English-focused scale is one order of magnitude smaller in the example described.
Answer
tens of thousands
- 35Assigning each vocabulary token a vector with one position set to one and all others set to zero is called_____.
Hint
The representation is abbreviated OHE.
Answer
One-Hot Encoding
- 36Because distinct one-hot vectors have no shared active positions, they are_____to one another.
Hint
Their directions form right angles in the vector space.
Answer
orthogonal
- 37A common measure of similarity that compares the angle between two vectors is_____.
Hint
It focuses on whether vectors point in similar directions.
Answer
cosine similarity
- 38A useful token representation should give semantically similar tokens a high similarity while leaving unrelated tokens more nearly_____.
Hint
This describes vectors pointing in substantially different directions.
Answer
orthogonal
- 39The model family introduced in 2013 that popularized interpretable word embeddings through relationships such as “Paris is to France as Berlin is to Germany” is_____.
Hint
It learns word representations from text using proxy prediction tasks.
Answer
Word2vec
- 40In Word2vec, the training objective used to learn useful word representations is a_____task because it supports the goal rather than being the final goal itself.
Hint
The model predicts something in the text as a means to learn representations.
Answer
proxy
- 41In continuous bag of words, the model uses surrounding words to predict the_____word.
Hint
This method uses context as input and predicts the word at its center.
Answer
target
- 42In skip gram, the model uses a target word to predict the words in its_____.
Hint
This reverses the prediction direction used by continuous bag of words.
Answer
context
- 43In a simple neural network for learning embeddings, the one-hot input has vocabulary size, while the hidden representation typically has a much smaller_____.
Hint
The hidden vector can have a size such as 768, compared with a much larger vocabulary.
Answer
dimension
- 44When a next-word prediction model compares its predicted distribution with the true next token, a commonly used loss is_____.
Hint
This loss measures the discrepancy between predicted probabilities and the target distribution.
Answer
cross-entropy
- 45After a prediction loss is computed,_____updates the model weights so future predictions can better match the target.
Hint
The method sends information about prediction error through the network.
Answer
backpropagation
- 46After training a neural network for a proxy task, the learned token embedding can be obtained by applying the input token's one-hot vector to the learned_____.
Hint
The hidden representation results from the input being multiplied by learned parameters.
Answer
weights
- 47The best embedding dimension depends partly on downstream task complexity and partly on the trade-off between representation capacity and_____.
Hint
Larger vectors can increase inference expense and latency.
Answer
computation
- 48The neural network model family introduced in the 1980s that processes a sequence one token at a time while carrying forward a hidden representation is an_____.
Hint
Its name describes a neural network that repeats a computation across sequence steps.
Answer
RNN
- 49In an RNN, the hidden state represents the_____processed so far.
Hint
It summarizes the input history available at the current step.
Answer
sequence
- 50Unlike a representation that simply averages token embeddings, an RNN uses sequential processing so that_____matters.
Hint
The order in which tokens appear affects the hidden state.
Answer
word order
- 51For sentence-level classification with an RNN, the hidden state of the_____token can be used as the sentence representation.
Hint
This state summarizes the sequence after all tokens have been processed.
Answer
last
- 52For token-level tasks such as Named Entity Recognition, an RNN can use the representation of the_____of interest.
Hint
The model makes a prediction for each relevant word or unit.
Answer
token
- 53An RNN used for generation can process the source text and use its final hidden state as a_____for decoding.
Hint
This is another name for the final representation of the processed input.
Answer
context vector
- 54The RNN extension that adds a cell state to help keep track of important information is the_____.
Hint
Its name expands to Long Short-Term Memory.
Answer
LSTM
- 55The difficulty RNN-based models have with retaining information across long sequences is known as the problem of_____.
Hint
The challenge concerns remembering information from far earlier in the sequence.
Answer
long-range dependencies
- 56When repeated gradient factors smaller than one shrink toward zero during backpropagation through time, the problem is called the_____.
Hint
The gradient becomes too small for effective weight updates.
Answer
vanishing gradient
- 57A further drawback of RNNs is that processing a long sequence is slow because each step depends on hidden states computed at earlier_____.
Hint
The computations cannot all be performed independently at once.
Answer
steps
- 58The mechanism introduced in 2014 to create more direct links between a prediction and relevant earlier parts of an input is_____.
Hint
It was designed to help address long-range dependency problems.
Answer
attention
- 59In self-attention, a token's representation is computed using information from_____in the sequence.
Hint
The representation becomes dependent on the token's context.
Answer
other tokens
- 60Self-attention can give the same word different representations in different sentences because its representation depends on_____.
Hint
For example, the word “bank” can have different meanings in different sentences.
Answer
context
- 61In attention, the_____is the representation used to compare against keys to determine which elements are relevant.
Hint
It represents what the model is currently looking for.
Answer
query
- 62In attention, a_____is compared with a query to measure how relevant its associated element is.
Hint
It helps the model determine whether an element matches what the query seeks.
Answer
key
- 63In attention, the information combined using relevance weights is carried by the_____.
Hint
It is the content retrieved after comparing queries with keys.
Answer
value
- 64The query, key, and value representations are produced using learned_____rather than being fixed in advance.
Hint
They map token embeddings into the spaces used by attention.
Answer
projections
- 65Attention weights are commonly obtained by applying_____to query-key compatibility scores.
Hint
This operation turns scores into normalized weights.
Answer
softmax
- 66Computing attention for many tokens together using matrix operations is efficient in part because_____are well suited to matrix computations.
Hint
These processors are commonly used for neural network computation.
Answer
GPUs
- 67The 2017 paper that introduced the Transformer architecture was titled “_____.”
Hint
The title emphasizes the mechanism at the center of the architecture.
Answer
Attention Is All You Need
- 68The original Transformer for translation is organized into an_____that processes the source text and a decoder that generates the target text.
Hint
It creates representations of the input sequence.
Answer
encoder
- 69The Transformer encoder's self-attention layer lets each input token attend to_____in the input sequence.
Hint
Unlike an RNN, the model can form direct connections across the sequence.
Answer
all tokens
- 70The position of a token is added to its token embedding using_____so the Transformer can represent sequence order.
Hint
Self-attention alone does not inherently specify token order.
Answer
position encoding
- 71In the original Transformer, sinusoidal position information is combined with token embeddings by_____addition.
Hint
Corresponding vector components are added to one another.
Answer
element-wise
- 72The encoder's feedforward neural network provides an additional learned_____of the token representations.
Hint
It gives the model another way to transform features after attention.
Answer
projection
- 73In decoder cross-attention, the decoder supplies the query, while the encoder representations supply the_____and values.
Hint
These come from the input sequence and are compared with the decoder's query.
Answer
keys
- 74Decoder masked self-attention can use the current output token and tokens generated_____it.
Hint
The model must not use future tokens that have not yet been generated.
Answer
before
- 75In Transformer translation, the decoder begins generating the target sequence with a_____token.
Hint
Its name means beginning of sequence.
Answer
BOS
- 76The final Transformer decoder representation is passed through a linear projection and_____to produce probabilities over the vocabulary.
Hint
This operation converts output scores into a probability distribution.
Answer
softmax
- 77In a multi-head attention layer, each head uses its own learned projections so the model can capture different_____between tokens.
Hint
Different heads can learn different ways for tokens to relate.
Answer
associations
- 78After the outputs of multiple attention heads are concatenated, a learned output projection maps them back to the original embedding_____.
Hint
The projection makes the combined output compatible with the model's representation size.
Answer
dimension
- 79In the Transformer attention formula, query-key scores are divided by the square root of the key dimension to prevent their magnitudes from growing too_____.
Hint
The dot product tends to grow as the vector dimension increases.
Answer
large
- 80The original Transformer uses a stack of multiple encoder modules and multiple_____modules.
Hint
These modules generate the output sequence.
Answer
decoder
- 81The encoder's final representations are passed to each decoder layer as input to its_____attention.
Hint
This attention connects the generated sequence to the source sequence.
Answer
cross
- 82Label smoothing replaces a perfectly certain one-hot target with a distribution that assigns a small amount of probability to_____tokens.
Hint
The target no longer assigns all probability to a single correct token.
Answer
other
- 83The purpose of label smoothing is to make the model's target distribution less_____about the designated next token.
Hint
The smoothed target allows for the possibility of alternative valid continuations.
Answer
certain
- 84In the described Transformer translation experiments, label smoothing was reported to improve a metric such as_____.
Hint
This reference-based metric is used to evaluate machine translation.
Answer
BLEU
- 85During autoregressive decoding, the model feeds a generated token back into the decoder to predict the_____token.
Hint
Generation proceeds one output unit at a time.
Answer
next
- 86A generated sequence typically stops when the model emits the_____token.
Hint
Its name means end of sequence.
Answer
EOS

Ask anything
We've read this whole study set, so questions about it get the best answers.