Language Trees via Compression
- 62Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
62 questions
- 1The 2002 approach that used general-purpose file compression to cluster languages and recover their shared lineage was called_____.
Hint
Think of the paper's title combining linguistic relationships with compression.
Answer
Language Trees and Zipping
- 2To compare documents A and B, the compression-based method appends a snippet of B to A and compares the resulting compressed size with the compressed size of_____alone.
Hint
The first document provides the context used to optimize compression.
Answer
A
- 3A snippet from B is expected to compress efficiently when the linguistic patterns of B are_____to those in A.
Hint
Shared patterns allow the compressor to reuse information effectively.
Answer
similar
- 4The compression-based distance between two documents can be used to cluster documents by_____.
Hint
The documents may be written in many different tongues.
Answer
language
- 5The same compression comparison can also help identify the_____of a document.
Hint
This task asks who produced the writing.
Answer
author
- 6The compression algorithm used in the language-tree example was essentially_____.
Hint
It is a common file-compression utility available on computers.
Answer
gzip
- 7The language-tree method is only an approximation to cross-entropy because gzip does not achieve the_____limit.
Hint
This limit describes the theoretically optimal compression rate.
Answer
Shannon
- 8The central concept connecting compression-based comparison with language-model training is_____.
Hint
It measures how well one probabilistic or coding context performs in another.
Answer
cross-entropy
- 9In the robot example, the instruction with probability 1/2 is assigned an optimal code length of_____bit.
Hint
Optimal code length is the negative base-2 logarithm of probability.
Answer
1
- 10In the original robot distribution, the instruction down has probability 1/4 and receives an optimal code length of_____bits.
Hint
Use the negative base-2 logarithm of 1/4.
Answer
2
- 11In the original robot distribution, each of the instructions left and right has probability_____.
Hint
The remaining probability is divided equally between two instructions.
Answer
1/8
- 12The optimal code length for a symbol with probability q is given by the_____of q.
Hint
This expression measures the information content of an event.
Answer
negative log base 2
- 13Claude Shannon defined the negative logarithm of an event's probability as its_____.
Hint
It measures how surprising or informative the event is.
Answer
information content
- 14The information content of a complete message is approximately the_____of the information contents of its individual symbols.
Hint
Combine the contribution from every symbol in the sequence.
Answer
sum
- 15The entropy of a distribution is the expected information content, or the probability-weighted average of the symbols'_____.
Hint
Each symbol's information is weighted by how often it occurs.
Answer
information contents
- 16Fractional information values are meaningful because optimal compression can have an average number of bits per symbol that is not a whole_____.
Hint
Individual bit strings have integer lengths, but averages need not.
Answer
number
- 17When the robot's distribution changes, the original code assigns 1 bit to up, 2 bits to down, and_____bits to each of left and right.
Hint
The original probabilities of left and right were 1/8.
Answer
3
- 18Under the new robot distribution, the average cost of using the old code is_____bits per message.
Hint
Compute the weighted average using costs 1, 2, 3, and 3.
Answer
2.625
- 19The average coding cost when a code optimized for one distribution is used on another distribution is called_____.
Hint
It compares coding performance across two contexts.
Answer
cross entropy
- 20The cross-entropy of P relative to Q is represented by the weighted sum of P multiplied by the negative base-2 logarithm of_____.
Hint
The code was optimized for this distribution.
Answer
Q
- 21In the bar visualization of cross-entropy, each bar's width is determined by P, while its height is determined by the negative log of_____.
Hint
The bar height represents the code length assigned by the code.
Answer
Q
- 22If P is a 50-50 distribution and Q is also 50-50, the entropy and cross-entropy are both_____bit.
Hint
Each of the two equally likely events has one bit of information.
Answer
1
- 23When Q is 50-50 but P is a 90-10 distribution, the cross-entropy remains_____bit.
Hint
Q assigns the same information value to both events.
Answer
1
- 24When Q is the 90-10 distribution and P is 50-50, the cross-entropy is approximately_____bits.
Hint
The code optimized for the skewed distribution performs poorly on the even distribution.
Answer
1.74
- 25Cross-entropy is not generally symmetric because swapping P and Q can change its_____.
Hint
The two distributions play different roles in the formula.
Answer
value
- 26For fixed P, cross-entropy as a function of Q reaches its minimum when_____.
Hint
The best code is optimized for the distribution that actually generates the data.
Answer
Q equals P
- 27The minimum possible cross-entropy for a fixed P is the_____of P.
Hint
This is the optimal average coding cost for P.
Answer
entropy
- 28Cross-entropy measures how well a code optimized for Q performs when the actual data follows_____.
Hint
This distribution supplies the observed frequencies.
Answer
P
- 29Modern language models typically divide text into words or pieces of words called_____.
Hint
These are the basic units processed by the model.
Answer
tokens
- 30A language model takes a sequence of tokens as input and outputs a probability distribution over possible_____tokens.
Hint
The model predicts what comes after the input sequence.
Answer
next
- 31A training loss function measures whether a model's predictions are generally good or_____.
Hint
It provides a numerical assessment of prediction quality.
Answer
bad
- 32The standard procedure used to reduce a neural network's loss by following gradients is called_____.
Hint
It moves the parameters downhill on the loss landscape.
Answer
gradient descent
- 33The process that computes how changes in parameters affect the loss is called_____.
Hint
It propagates error information backward through the network.
Answer
backpropagation
- 34For each true next token, the model's information value is the negative logarithm of the probability assigned to that_____.
Hint
It is the token that actually appears in the training text.
Answer
token
- 35A model that assigns a very low probability to the true next token receives a_____loss under the negative-log loss.
Hint
The negative logarithm grows as probability approaches zero.
Answer
large
- 36A model that assigns a high probability to the true next token receives a relatively_____loss.
Hint
The negative logarithm of a probability near one is near zero.
Answer
small
- 37In machine learning, the natural logarithm is usually used instead of log base 2 because its derivatives are_____.
Hint
Derivative calculations are central to gradient-based training.
Answer
cleaner
- 38The constant factor between natural-log loss and base-2-log loss is absorbed into the_____rate.
Hint
This rate controls the size of parameter updates.
Answer
learning
- 39Pre-training a language model involves averaging the negative log probability of the true token over the entire_____set.
Hint
This is the large collection of text used to fit the model.
Answer
training
- 40The standard language-model training loss is commonly called_____loss.
Hint
It is based on the negative log probability of the observed token.
Answer
cross-entropy
- 41In the one-hot interpretation of language-model loss, the target distribution places all probability mass on the_____next token.
Hint
The training text specifies one token that actually occurred.
Answer
true
- 42The model's average negative-log loss is minimized when its output distribution matches the statistical distribution represented in the_____.
Hint
The data determines the observed frequencies of possible continuations.
Answer
data
- 43The mathematical argument showing that the loss must use a logarithm involves constrained optimization with a_____multiplier.
Hint
This technique handles the requirement that probabilities sum to one.
Answer
Lagrange
- 44Under the constrained optimization argument, the derivative of the per-example loss function must be proportional to_____over q.
Hint
The required form is described as some constant divided by q.
Answer
a constant
- 45The function whose derivative has the required constant-over-q form is the_____function.
Hint
Its derivative is proportional to 1/q.
Answer
logarithm
- 46Distillation trains a relatively small model to approximate the predictions of a larger, presumably more capable_____model.
Hint
The larger model provides guidance to the smaller one.
Answer
teacher
- 47In distillation, the smaller model is often called the_____model.
Hint
It learns from the larger model's behavior.
Answer
student
- 48Unlike ordinary pre-training, distillation compares the small model's full output distribution with the_____model's full output distribution.
Hint
The larger model supplies probabilities for all possible next tokens.
Answer
large
- 49The distillation loss is the cross-entropy of the small model's distribution relative to the_____model's distribution.
Hint
This model is the source of the richer target probabilities.
Answer
large
- 50Distillation provides richer information than ordinary pre-training because it gives nonzero attention to multiple possible_____tokens.
Hint
The teacher indicates how plausible different continuations are.
Answer
next
- 51The analogy comparing distillation with learning chess from a stronger player emphasizes that the teacher explains the relative quality of possible_____.
Hint
These are the actions available at each turn in chess.
Answer
moves
- 52Distillation can approximate the effect of seeing many examples of possible names by using the larger model's prediction on even a_____example.
Hint
The contrast is with many thousands or millions of examples.
Answer
single
- 53A language model can be reframed as a compressor because its average information per token approximates the number of_____needed to represent text.
Hint
Compression measures information using binary units.
Answer
bits
- 54Training with cross-entropy can be interpreted as training a language model to become an increasingly effective text_____.
Hint
The model assigns short descriptions to likely tokens.
Answer
compressor
- 55The phrase suggested by the compression perspective is that compression may be a form of_____.
Hint
It proposes a connection between efficient representation and intelligent behavior.
Answer
intelligence
- 56KL divergence is the difference between cross-entropy and_____.
Hint
It measures the extra coding cost beyond the optimal cost for P.
Answer
entropy
- 57KL divergence is also called the_____divergence.
Hint
The name honors two mathematicians and is often abbreviated KL.
Answer
Kullback-Leibler
- 58In compression, KL divergence measures the number of extra bits per symbol wasted by using a poorly_____code.
Hint
The code is designed for the wrong distribution.
Answer
optimized
- 59KL divergence is zero when the two probability distributions are_____.
Hint
There is no mismatch and therefore no wasted coding cost.
Answer
the same
- 60KL divergence increases as the two probability distributions become more_____.
Hint
Greater mismatch causes greater excess coding cost.
Answer
different
- 61Unlike a true symmetric distance, KL divergence is_____because reversing the distributions generally changes its value.
Hint
The divergence of Q relative to P need not equal that of P relative to Q.
Answer
asymmetric
- 62In the robot example, the difference between the bits per symbol for an unoptimized code and an optimized code gives the_____divergence.
Hint
This is the abbreviated name for the excess coding cost.
Answer
KL

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