1. Home
  2. Explore
  3. Linguistics
  4. Language Trees via Compression

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Language Trees via Compression

  • 62Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Compression Applications
The 2002 approach that used general-purpose file compression to cluster languages and recover their shared lineage was called
.

62 questions

  1. 1
    The 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

  2. 2
    To 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

  3. 3
    A 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

  4. 4
    The 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

  5. 5
    The same compression comparison can also help identify the
    _____
    of a document.
    Hint

    This task asks who produced the writing.

    Answer

    author

  6. 6
    The compression algorithm used in the language-tree example was essentially
    _____
    .
    Hint

    It is a common file-compression utility available on computers.

    Answer

    gzip

  7. 7
    The 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

  8. 8
    The 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

  9. 9
    In the robot example, the instruction with probability 1/21/21/2 is assigned an optimal code length of
    _____
    bit.
    Hint

    Optimal code length is the negative base-2 logarithm of probability.

    Answer

    1

  10. 10
    In the original robot distribution, the instruction down has probability 1/41/41/4 and receives an optimal code length of
    _____
    bits.
    Hint

    Use the negative base-2 logarithm of 1/41/41/4.

    Answer

    2

  11. 11
    In 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/81/81/8

  12. 12
    The optimal code length for a symbol with probability qqq is given by the
    _____
    of qqq.
    Hint

    This expression measures the information content of an event.

    Answer

    negative log base 2

  13. 13
    Claude 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

  14. 14
    The 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

  15. 15
    The 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

  16. 16
    Fractional 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

  17. 17
    When 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/81/81/8.

    Answer

    3

  18. 18
    Under the new robot distribution, the average cost of using the old code is
    _____
    bits per message.
    Hint

    Compute the weighted average using costs 111, 222, 333, and 333.

    Answer

    2.625

  19. 19
    The 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

  20. 20
    The 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

  21. 21
    In 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

  22. 22
    If 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

  23. 23
    When 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

  24. 24
    When 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

  25. 25
    Cross-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

  26. 26
    For 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

  27. 27
    The minimum possible cross-entropy for a fixed P is the
    _____
    of P.
    Hint

    This is the optimal average coding cost for P.

    Answer

    entropy

  28. 28
    Cross-entropy measures how well a code optimized for Q performs when the actual data follows
    _____
    .
    Hint

    This distribution supplies the observed frequencies.

    Answer

    P

  29. 29
    Modern language models typically divide text into words or pieces of words called
    _____
    .
    Hint

    These are the basic units processed by the model.

    Answer

    tokens

  30. 30
    A 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

  31. 31
    A training loss function measures whether a model's predictions are generally good or
    _____
    .
    Hint

    It provides a numerical assessment of prediction quality.

    Answer

    bad

  32. 32
    The 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

  33. 33
    The process that computes how changes in parameters affect the loss is called
    _____
    .
    Hint

    It propagates error information backward through the network.

    Answer

    backpropagation

  34. 34
    For 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

  35. 35
    A 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

  36. 36
    A 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

  37. 37
    In 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

  38. 38
    The 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

  39. 39
    Pre-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

  40. 40
    The 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

  41. 41
    In 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

  42. 42
    The 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

  43. 43
    The 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

  44. 44
    Under 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

  45. 45
    The function whose derivative has the required constant-over-q form is the
    _____
    function.
    Hint

    Its derivative is proportional to 1/q1/q1/q.

    Answer

    logarithm

  46. 46
    Distillation 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

  47. 47
    In distillation, the smaller model is often called the
    _____
    model.
    Hint

    It learns from the larger model's behavior.

    Answer

    student

  48. 48
    Unlike 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

  49. 49
    The 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

  50. 50
    Distillation 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

  51. 51
    The 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

  52. 52
    Distillation 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

  53. 53
    A 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

  54. 54
    Training 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

  55. 55
    The 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

  56. 56
    KL divergence is the difference between cross-entropy and
    _____
    .
    Hint

    It measures the extra coding cost beyond the optimal cost for P.

    Answer

    entropy

  57. 57
    KL divergence is also called the
    _____
    divergence.
    Hint

    The name honors two mathematicians and is often abbreviated KL.

    Answer

    Kullback-Leibler

  58. 58
    In 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

  59. 59
    KL divergence is zero when the two probability distributions are
    _____
    .
    Hint

    There is no mismatch and therefore no wasted coding cost.

    Answer

    the same

  60. 60
    KL divergence increases as the two probability distributions become more
    _____
    .
    Hint

    Greater mismatch causes greater excess coding cost.

    Answer

    different

  61. 61
    Unlike 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

  62. 62
    In 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

1 of 62
Question 1 of 62

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent