1. Home
  2. Explore
  3. Computer Science
  4. Groking in Neural Networks

Study methods

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

Groking in Neural Networks

  • 30Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Grokking and Adversarial Grokking
Grokking is the phenomenon where
emerges much after the training accuracy has plateaued.

30 questions

  1. 1
    Grokking is the phenomenon where
    _____
    emerges much after the training accuracy has plateaued.
    Hint

    This term refers to the model's ability to perform well on unseen data.

    Answer

    generalization

  2. 2
    In adversarial grokking, the test accuracy under
    _____
    noise improves after prolonged training, even without adversarial training.
    Hint

    Think about the type of noise specifically designed to fool a neural network.

    Answer

    adversarial

  3. 3
    The spline theory states that a neural network with piecewise linear nonlinearities partitions the input space into convex
    _____
    regions.
    Hint

    These regions are high-dimensional convex shapes defined by the network's activation patterns.

    Answer

    polytopal

  4. 4
    Each region defined by a spline neural network corresponds to a unique set of
    _____
    patterns of the hidden units.
    Hint

    These patterns determine which piecewise linear region a point falls into.

    Answer

    activation

  5. 5
    A neural network with ReLU activations is a continuous
    _____
    spline.
    Hint

    It consists of linear segments joined continuously.

    Answer

    piecewise affine

  6. 6
    The local complexity measure estimates the
    _____
    of regions near a given input point.
    Hint

    Think about how many pieces of the spline are close to the point.

    Answer

    number

  7. 7
    During training, the local complexity measure
    _____
    before adversarial grokking occurs, indicating region migration.
    Hint

    This change happens around the time when train accuracy plateaus.

    Answer

    decreases

  8. 8
    Weight decay regularization
    _____
    the emergence of adversarial grokking because it biases toward smooth solutions.
    Hint

    This regularizer encourages small weights and smooth functions.

    Answer

    delays

  9. 9
    Batch normalization tends to
    _____
    regions near training points, making it harder to reach the grokking phase.
    Hint

    This technique normalizes activations, which affects the geometry of the partition.

    Answer

    concentrate

  10. 10
    An adversarial attack uses
    _____
    information to find a small perturbation that changes the network's prediction.
    Hint

    This is the direction in which the output changes most rapidly.

    Answer

    gradient

  11. 11
    After long training, partition regions
    _____
    from around data points to concentrate near decision boundaries.
    Hint

    They move away from training samples.

    Answer

    migrate

  12. 12
    In the absence of adversarial training, adversarial robustness emerges naturally due to the implicit bias of
    _____
    training.
    Hint

    The optimization procedure itself drives this behavior.

    Answer

    gradient descent

  13. 13
    When learning by reconstruction using mean squared error, the gradient is dominated by
    _____
    frequency components of the image.
    Hint

    These components have the largest amplitude in natural images.

    Answer

    low

  14. 14
    Reconstruction methods produce features that are
    _____
    for perception tasks compared to contrastive learning.
    Hint

    They do not align well with the information needed for classification.

    Answer

    less informative

  15. 15
    In denoising autoencoders, careful choice of
    _____
    can help rebalance learning towards high-frequency features.
    Hint

    The type and amount of noise added to the input.

    Answer

    noise distribution

  16. 16
    Contrastive self-supervised learning compares representations of
    _____
    of the same image in embedding space.
    Hint

    These are created through data augmentation.

    Answer

    different views

  17. 17
    The spline features for LLMs are extracted from each
    _____
    block within a transformer layer.
    Hint

    This is the feed-forward part of the transformer.

    Answer

    MLP

  18. 18
    The seven spline features per MLP block can be used to train a
    _____
    classifier for toxicity detection.
    Hint

    This simple classifier works well on these low-dimensional features.

    Answer

    linear

  19. 19
    The intrinsic dimension of a prompt in the attention space is related to the
    _____
    of the attention matrix.
    Hint

    This measures how many tokens attend to each other.

    Answer

    sparsity

  20. 20
    RLHF jailbreaking can be achieved by increasing the
    _____
    of the prompt, which moves it into a high-dimensional region not controlled during training.
    Hint

    Adding extra tokens, especially with related concepts, expands the input space.

    Answer

    context length

  21. 21
    To jailbreak RLHF, adding
    _____
    tokens with related concepts is more effective than random tokens.
    Hint

    These are coherent sentences related to the toxic prompt.

    Answer

    natural language

  22. 22
    The spline theory applies to any architecture that interleaves
    _____
    and nonlinearities.
    Hint

    These are linear operations like dense layers or convolutions.

    Answer

    affine mappings

  23. 23
    During the first stage of training, the network allocates many regions
    _____
    training points, corresponding to memorization.
    Hint

    The regions are concentrated around the data samples.

    Answer

    near

  24. 24
    Double descent in the context of grokking refers to the test accuracy first decreasing, then increasing again as
    _____
    increases.
    Hint

    This is not about model size but about duration of training.

    Answer

    training time

  25. 25
    The partition regions of a neural network trained with zero biases are constrained to be
    _____
    .
    Hint

    They emanate from the origin.

    Answer

    cones

  26. 26
    The spline view allows one to derive differentiable regularizers based on the
    _____
    from a point to the nearest region boundary.
    Hint

    This quantity can be computed efficiently for large networks.

    Answer

    distance

  27. 27
    For toxicity detection, spline features achieve
    _____
    AUC scores compared to existing specialized models.
    Hint

    They outperform the most downloaded Hugging Face model.

    Answer

    higher

  28. 28
    The intrinsic dimension of a prompt can be manipulated to create prompts that are
    _____
    to RLHF generalization.
    Hint

    They fall in regions not covered by training.

    Answer

    out-of-distribution

  29. 29
    Kolmogorov-Arnold Networks (KANs) are an example of an architecture that hard-codes
    _____
    activation functions.
    Hint

    These are piecewise polynomial functions.

    Answer

    spline

  30. 30
    The local complexity measure can serve as a proxy for early stopping, even without computing
    _____
    .
    Hint

    This metric reflects the network's geometric stage.

    Answer

    test accuracy

1 of 30
Question 1 of 30

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent