Groking in Neural Networks
- 24Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is the fundamental insight of the spline theory of neural networks?
What is the fundamental insight of the spline theory of neural networks?
24 questions
- 1
What is the fundamental insight of the spline theory of neural networks?
- A
Neural networks are equivalent to a single global linear transformation across the entire input space.
- B
Neural networks learn a set of basis functions that are combined linearly to represent the output.
- C
Neural networks with piecewise linear activations partition the input space into polyhedral regions and apply an affine mapping within each region.
- D
Neural networks approximate functions using smooth, infinitely differentiable activations.
Correct answer
CNeural networks with piecewise linear activations partition the input space into polyhedral regions and apply an affine mapping within each region.
Explanation
The spline theory states that deep networks with piecewise linear activations (e.g., ReLU) cut the input space into convex regions, with an affine mapping per region, making the overall mapping a continuous piecewise affine spline.
- A
- 2
How do deep networks with ReLU activations and max pooling behave according to the spline theory?
- A
They generate a piecewise constant mapping within each region.
- B
They learn a single linear hyperplane decision boundary across the entire space.
- C
They create a continuous piecewise affine spline: the input space is partitioned into convex regions and the mapping is affine within each region.
- D
They produce a globally smooth, differentiable mapping.
Correct answer
CThey create a continuous piecewise affine spline: the input space is partitioned into convex regions and the mapping is affine within each region.
Explanation
Interleaving linear operations (dense/convolution) with ReLU and max pooling yields a continuous piecewise affine spline, partitioning the input space into polyhedral convex regions with an affine mapping per region.
- A
- 3
In the spline interpretation, what is the role of the network weights?
- A
They are used solely to determine the output dimension, with no effect on the partition.
- B
They define only the affine mappings within each region.
- C
They define both the spline boundaries (partition) and the affine mappings per region.
- D
They define only the partition boundaries, while the activations determine the mappings.
Correct answer
CThey define both the spline boundaries (partition) and the affine mappings per region.
Explanation
The network weights simultaneously determine where the regions are (spline boundaries) and the affine mapping within each region; learning one implicitly learns the other.
- A
- 4
How does the spline partition of a deep network compare to that of K-means clustering?
- A
K-means also produces affine mappings within each cluster.
- B
Both produce a partition where each region is assigned a constant output.
- C
Both methods learn partitions that are equally effective for extrapolation in high dimensions.
- D
Deep networks have regions where the mapping is affine, not constant, and regions are not independent; K-means regions are independent and constant.
Correct answer
DDeep networks have regions where the mapping is affine, not constant, and regions are not independent; K-means regions are independent and constant.
Explanation
K-means yields a piecewise constant mapping with independent regions, whereas deep nets provide an affine mapping per region with non-independent regions that allow better extrapolation.
- A
- 5
What advantage do deep networks have over K-nearest neighbors (KNN) and K-means in terms of extrapolation, according to the spline theory?
- A
Deep networks use the same fixed partition as KNN and K-means.
- B
Deep networks rely on a predefined partition that does not change during training.
- C
Deep networks learn the partition only near the training data, like KNN.
- D
Deep networks learn the partition everywhere in the space, including extrapolative regions, due to the adaptation of regions through gradient descent.
Correct answer
DDeep networks learn the partition everywhere in the space, including extrapolative regions, due to the adaptation of regions through gradient descent.
Explanation
Unlike KNN/K-means, deep networks learn the partition over the entire input space, not just where data exists, enabling better extrapolation even far from training points.
- A
- 6
What is 'grokking' in the context of neural network training?
- A
A phenomenon where training accuracy suddenly drops after prolonged training.
- B
Delayed generalization: test accuracy starts increasing much after training accuracy has plateaued, even without any change in training regime.
- C
A regularization technique that forces the network to memorize training examples.
- D
The network's ability to overfit to noise after long training.
Correct answer
BDelayed generalization: test accuracy starts increasing much after training accuracy has plateaued, even without any change in training regime.
Explanation
Grokking refers to the sudden emergence of generalization (e.g., test accuracy) long after training accuracy has saturated, observed in specific settings with extended training.
- A
- 7
What is 'adversarial grokking' as discovered in the paper?
- A
Adversarial vulnerability increases after prolonged training.
- B
The network's clean accuracy suddenly improves after adversarial training.
- C
The network becomes robust to adversarial attacks only after adversarial training is applied.
- D
Robustness to adversarial noise on test images emerges much after clean train and test accuracy have plateaued, without any adversarial training.
Correct answer
DRobustness to adversarial noise on test images emerges much after clean train and test accuracy have plateaued, without any adversarial training.
Explanation
Adversarial grokking is the delayed emergence of robustness to adversarial perturbations (without adversarial training) after clean accuracy has already plateaued.
- A
- 8
Why does the spline theory explain the brittleness of neural networks to adversarial examples?
- A
Because the network is designed to be robust to adversarial examples by default.
- B
Because the partition has many small regions; a small input shift can cross many region boundaries, causing large changes in the output.
- C
Because the decision boundary is a single straight line, making it easy to fool.
- D
Because the network uses smooth activations that are insensitive to small perturbations.
Correct answer
BBecause the partition has many small regions; a small input shift can cross many region boundaries, causing large changes in the output.
Explanation
The many small regions (nonlinear changes) mean that a small perturbation can move the input across several region boundaries, each causing a nonlinear change in the mapping, making the network sensitive to adversarial perturbations.
- A
- 9
What geometric change occurs in the spline partition during adversarial grokking?
- A
Regions disappear, and the network becomes a single affine function.
- B
Regions migrate away from training and test points and concentrate near the decision boundary.
- C
Regions become smaller and more numerous near training points.
- D
Regions become randomly scattered across the input space.
Correct answer
BRegions migrate away from training and test points and concentrate near the decision boundary.
Explanation
During adversarial grokking, the partition's regions move from being dense near data points to concentrating along the decision boundary, creating wider regions near points and thus reducing sensitivity to noise.
- A
- 10
How does the local complexity measure (number of nearby regions) behave during training leading to adversarial grokking?
- A
It stays constant after the initial training phase.
- B
It continuously increases throughout training.
- C
It plateaus when clean accuracy plateaus, then increases again before adversarial grokking.
- D
It plateaus with clean accuracy, then starts decreasing well before adversarial grokking emerges.
Correct answer
DIt plateaus with clean accuracy, then starts decreasing well before adversarial grokking emerges.
Explanation
The local complexity metric decreases before adversarial grokking occurs, serving as an earlier indicator of upcoming robustness emergence than test accuracy.
- A
- 11
How does weight decay regularization affect the emergence of adversarial grokking?
- A
Weight decay accelerates the emergence of adversarial grokking.
- B
Weight decay guarantees adversarial robustness immediately.
- C
Weight decay fights the sparse solution and delays or even prevents adversarial grokking.
- D
Weight decay has no effect on adversarial grokking.
Correct answer
CWeight decay fights the sparse solution and delays or even prevents adversarial grokking.
Explanation
Implicit bias from weight decay enforces smoothness, opposing the piecewise constant solution needed for robustness, thus delaying or preventing adversarial grokking.
- A
- 12
What effect does batch normalization have on the spline partition?
- A
It accelerates the concentration of regions along the decision boundary.
- B
It has no effect on the geometry of the partition.
- C
It forces regions to migrate away from training points.
- D
It actively concentrates regions near training points, making it harder to reach the sparse (robust) solution.
Correct answer
DIt actively concentrates regions near training points, making it harder to reach the sparse (robust) solution.
Explanation
Batch normalization acts as an implicit regularizer that pushes regions to be near training points, hindering the emergence of the sparse, robust partition.
- A
- 13
What is the relationship between iterative magnitude pruning and the emergence of adversarial robustness via grokking?
- A
Pruning removes regions near decision boundaries, reducing robustness.
- B
Pruning has no effect on the partition geometry.
- C
Pruning tends to remove regions near training points, bringing the network closer to the sparse, robust stage earlier.
- D
Iterative pruning directly causes adversarial grokking.
Correct answer
CPruning tends to remove regions near training points, bringing the network closer to the sparse, robust stage earlier.
Explanation
Iterative magnitude pruning eliminates parameters that contribute to regions near training points, effectively simplifying the partition and mimicking the effect of long training to achieve robustness.
- A
- 14
In the double descent phenomenon observed with the partition geometry, what causes the first 'ascent' in local complexity?
- A
Decrease in the number of regions overall.
- B
Regions migrating to the decision boundary.
- C
Initial memorization phase where many regions concentrate near training points.
- D
Regularization pushing regions away from training points.
Correct answer
CInitial memorization phase where many regions concentrate near training points.
Explanation
During the first descent, the network focuses on memorizing training points, leading to many small regions around them, which corresponds to a high local complexity (ascent).
- A
- 15
What is a key finding about adversarial robustness from the paper on spline-grokking?
- A
Robustness only appears if weight decay is used.
- B
Robustness can emerge naturally without adversarial training, just by training for very long episodes.
- C
Adversarial training is the only way to achieve robustness.
- D
Robustness is independent of the partition geometry.
Correct answer
BRobustness can emerge naturally without adversarial training, just by training for very long episodes.
Explanation
The paper shows that adversarial robustness can emerge implicitly after very long training, without any adversarial examples, due to geometric changes in the spline partition.
- A
- 16
According to the spline theory, why do neural networks trained with mean squared error (MSE) for reconstruction produce suboptimal features for perception tasks?
- A
MSE forces the network to ignore all frequency information.
- B
MSE encourages learning high-frequency features that are not useful for perception.
- C
MSE leads to overfitting to the training set.
- D
MSE gradient is dominated by low-frequency components of images, which are less informative for perception.
Correct answer
DMSE gradient is dominated by low-frequency components of images, which are less informative for perception.
Explanation
The gradient of MSE loss is largest for low-frequency components (which have higher energy), so the network learns these first; however, high-frequency features are more discriminative for perception tasks.
- A
- 17
How can denoising autoencoders (e.g., MAE) help align reconstruction features with perception?
- A
By adding isotropic Gaussian noise, which enhances low-frequency learning.
- B
By reconstructing the image in pixel space without any noise.
- C
By masking large blocks of the image (MAE), which forces the network to rely on high-frequency details for reconstruction, counteracting the low-frequency bias.
- D
By using a different loss function, such as cross-entropy.
Correct answer
CBy masking large blocks of the image (MAE), which forces the network to rely on high-frequency details for reconstruction, counteracting the low-frequency bias.
Explanation
Masking large blocks (MAE) makes it harder for the network to use low-frequency information for reconstruction, thereby pushing it to learn high-frequency, perception-relevant features.
- A
- 18
What advantage do contrastive self-supervised methods have over reconstruction-based methods for learning useful representations?
- A
They require less data than reconstruction methods.
- B
They compare representations in an embedding space, allowing the model to discard irrelevant details (e.g., background) more easily than pixel-space reconstruction.
- C
They are always faster to train than reconstruction methods.
- D
They inherently learn low-frequency features, which are more robust.
Correct answer
BThey compare representations in an embedding space, allowing the model to discard irrelevant details (e.g., background) more easily than pixel-space reconstruction.
Explanation
Contrastive methods match different views in embedding space, which naturally encourages invariance to irrelevant variations, whereas reconstruction requires explicitly modeling all pixel details.
- A
- 19
What is the intrinsic dimension of a prompt in the context of LLM geometry as described in the paper?
- A
The number of tokens in the prompt.
- B
The dimension of the hidden states in the transformer.
- C
The rank of the weight matrices in the MLP blocks.
- D
A scalar derived from the sparsity of the attention matrix, representing the effective dimensionality of the space the prompt occupies.
Correct answer
DA scalar derived from the sparsity of the attention matrix, representing the effective dimensionality of the space the prompt occupies.
Explanation
The intrinsic dimension is a proxy scalar based on attention sparsity, indicating how many independent directions the prompt's representation spans.
- A
- 20
How can one jailbreak an RLHF-tuned LLM by manipulating the context?
- A
By increasing the context length with tokens that are related to the toxic prompt, which increases the intrinsic dimension and pushes the prompt into unseen, uncontrolled regions of the space.
- B
By reducing the context length to force the model to be uncertain.
- C
By adding random noise to the embeddings.
- D
By using only safe prompts during training.
Correct answer
ABy increasing the context length with tokens that are related to the toxic prompt, which increases the intrinsic dimension and pushes the prompt into unseen, uncontrolled regions of the space.
Explanation
Increasing context length with related concepts raises the intrinsic dimension, moving the prompt into parts of the space not covered by RLHF training, allowing the model to generate toxic responses.
- A
- 21
What geometric features are extracted from the MLP blocks of an LLM in the paper on toxicity detection?
- A
The attention weights averaged across all heads.
- B
Seven features per MLP block that characterize the spline region in which the prompt falls (e.g., region size, distance to boundaries).
- C
The gradient of the loss with respect to the input.
- D
The hidden states of each token.
Correct answer
BSeven features per MLP block that characterize the spline region in which the prompt falls (e.g., region size, distance to boundaries).
Explanation
Using the spline interpretation, seven simple geometric features are derived per MLP block that summarize the local region (e.g., its size, shape) and are informative for tasks like toxicity detection.
- A
- 22
How does the spline-based feature extraction for LLMs compare to standard hidden state features for downstream tasks?
- A
Spline features are not differentiable and cannot be used for training.
- B
Spline features are low-dimensional (few hundred) and more informative, allowing simple linear probes to outperform larger classifiers on hidden states.
- C
Spline features are more numerous and harder to compute.
- D
Hidden state features always perform better because they retain all information.
Correct answer
BSpline features are low-dimensional (few hundred) and more informative, allowing simple linear probes to outperform larger classifiers on hidden states.
Explanation
The spline features condense geometric information into a few hundred numbers, enabling efficient and accurate linear classifiers, often exceeding the performance of standard methods.
- A
- 23
What does the spline theory imply about the cross-modal transferability of geometric insights?
- A
Because splines are modality-independent, geometric insights (e.g., about region concentration) apply equally to images and text.
- B
The spline theory only works for small networks.
- C
Only models with ReLU activations exhibit spline behavior.
- D
Insights from vision models do not transfer to language models.
Correct answer
ABecause splines are modality-independent, geometric insights (e.g., about region concentration) apply equally to images and text.
Explanation
The spline interpretation is based on the architecture (linear + piecewise linear activations), not the data type, so insights transfer across modalities like vision and text.
- A
- 24
What is a key direction for future research mentioned in the discussion to improve practical control of deep networks?
- A
Collecting more data for training.
- B
Developing provable guarantees and tractable theoretical tools that are accessible to practitioners, e.g., based on spline geometry.
- C
Focusing only on empirical hyperparameter tuning.
- D
Avoiding mathematical theory altogether.
Correct answer
BDeveloping provable guarantees and tractable theoretical tools that are accessible to practitioners, e.g., based on spline geometry.
Explanation
The researcher emphasizes the need for provable guarantees and accessible theory (like splines) that can guide practitioners without requiring deep mathematical expertise.
- A

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