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

  • 18Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Grokking and Emergence
  • spaceFlip card
  • KI knew it
  • DI didn't know it
  • ←Previous card
  • →Next card

What is grokking in neural network training?

Tap to flipClick to flipspace

A phenomenon where test accuracy (or another metric) suddenly improves long after training accuracy has plateaued, observed in specific tasks, models, and initializations.

Or swipe the card

18 cards

  1. What is grokking in neural network training?

    A phenomenon where test accuracy (or another metric) suddenly improves long after training accuracy has plateaued, observed in specific tasks, models, and initializations.

  2. How does adversarial grokking differ from standard grokking?

    Adversarial grokking refers to robustness to adversarial noise emerging much later than clean train/test accuracy plateau, even without adversarial training.

  3. What analogy exists between grokking and double descent?

    Both involve a first phase of memorization (regions near training points) and a later phase of simplification (regions near decision boundary), leading to improved generalization or robustness.

  4. What does the spline theory of neural networks state?

    Neural networks with piecewise linear activations (ReLU, Leaky ReLU, etc.) partition the input space into convex polytopal regions; within each region, the network is an affine function.

  5. How are the partition regions in a neural network determined?

    They are learned jointly with the affine mappings via gradient descent; the network adapts the partition to the data distribution.

  6. What happens to the partition geometry during very long training?

    Initially, many regions concentrate near training points (memorization). After very long training, regions migrate away from points and concentrate near the decision boundary, leading to larger regions around data points.

  7. What is the local complexity measure for a neural network?

    A proxy for the number of partition regions near a point, computed per layer by counting vertices in an epsilon ball; it is differentiable and sensitive to training dynamics.

  8. How does the local complexity measure behave during training?

    It peaks when train/test accuracy plateaus, then decreases well before adversarial grokking occurs, making it a more sensitive indicator of network state than accuracy.

  9. How does weight decay affect the emergence of adversarial grokking?

    Weight decay fights the sparse solution, delaying or preventing adversarial grokking; stronger regularization can hinder region migration to the decision boundary.

  10. How does batch normalization affect the partition geometry?

    Batch normalization actively concentrates regions near training points, fighting the sparse solution and opposing adversarial grokking.

  11. Why do reconstruction-based self-supervised methods (e.g., autoencoders) produce suboptimal features for perception tasks?

    Because MSE loss is dominated by low-frequency components of images (which have higher energy), and those features are often less informative for classification.

  12. How can denoising autoencoders like MAE help mitigate the bias from reconstruction loss?

    By masking large blocks of the image, they force the network to focus on high-frequency details, better aligning reconstruction with perception.

  13. Why are contrastive methods (e.g., SimCLR) often better for learning visual representations?

    They work in embedding space, comparing different views of the same image, which allows disregarding low-level details and focusing on semantically meaningful features.

  14. What geometric features can be extracted from an LLM's MLP blocks using spline theory?

    For each MLP block, seven features characterize the region in which a prompt falls (e.g., region size, shape). These features are few (e.g., ~500 for a 70B model) and can be used for downstream tasks like toxicity detection.

  15. How do these geometric features relate to prompt modality and toxicity?

    Unsupervised 2D visualization (t-SNE) shows clustering by dataset modality (math, law, medical) and by toxicity; a linear probe on these features achieves high accuracy in toxicity detection.

  16. What is the intrinsic dimension in the context of LLMs and attention?

    A scalar derived from the sparsity of attention; it measures the effective dimensionality of the space in which a prompt lives. It increases with context length and complexity.

  17. How can increasing intrinsic dimension lead to jailbreaking RLHF?

    By adding related context (not random tokens), the intrinsic dimension increases, moving the prompt to a high-dimensional region not covered by RLHF training, causing the model to generate toxic content despite RLHF.

  18. What limitation of RLHF does the intrinsic dimension jailbreak highlight?

    RLHF cannot guarantee safe behavior in all regions of high-dimensional space because it only trains on a limited set of prompts; extrapolation to unseen high-dimensional regions is unreliable.

Card 1 of 18
Card 1 of 18

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent