potentialpaper

SPECTRAL SHAPE RESIDUAL: A LIGHTWEIGHT SPECTRAL DIAGNOSTIC FOR ATTENTION WEIGHT MATRICES

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 19:28 UTC · d2aa4fe9b833 ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,19 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "JWp43k7nDU"
- }
- ],
- "title": "SPECTRAL SHAPE RESIDUAL: A LIGHTWEIGHT SPECTRAL DIAGNOSTIC FOR ATTENTION WEIGHT MATRICES",
- "authors": [],
- "abstract": "We introduce the $\\textbf{Spectral Shape Residual (SSR)}$, a lightweight metric\ncomputed directly from the query and key weight matrices of attention\nlayers - no forward pass, no training data needed.\nSSR measures how similar the singular value distributions of $W_Q$ and $W_K$\nare: when they match perfectly, SSR is zero.\nWe study SSR across four settings organized as a $2{\\times}2$ analytical\nframework (toy vs. production LLM; static snapshot vs. training\ndynamics) - a design that systematically covers the conditions under\nwhich spectral weight-space signals can arise.\nIn toy transformers trained on modular arithmetic, SSR falls sharply\nduring training, dropping below 50\\% of its peak value 200-1,900\nsteps ${before}$ the model generalizes - making SSR an early\nwarning signal - and converges to near-machine precision once\ngrokking is complete.\nIn production LLMs (LLaMA-3-8B, Gemma-4-31B-IT), SSR decreases\nsystematically with layer depth, and RL-distilled models\n(DeepSeek-R1-Distill-Qwen-14B) show lower SSR than their base model\n(Qwen2.5-14B-Instruct) in 45 out of 48 layers.\nIn OLMoE-1B-7B pretraining, 18.8\\% of attention heads show persistent\nmonotonic decline in SSR before grokking completes, concentrated in\ndeep layers (L10--L13); the median SSR of these heads falls 40\\% below\nits peak 582B tokens before grokking completes.\nSSR requires only one SVD per attention head and no evaluation data,\nmaking it deployable as a zero-overhead structural health monitor\ndirectly inside training pipelines.\nFor both pre-training (does the model grok?) and post-training\n(does RL alignment shift spectral structure?), SSR provides a\ncontinuous signal without running a single forward pass.",
- "year": 2027,
- "venue": "ICLR 2027 (under review)",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "d8b7e2f5-edb8-423d-b9a1-228a8491cc11"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,9 @@
+{
+ "title": "SPECTRAL SHAPE RESIDUAL: A LIGHTWEIGHT SPECTRAL DIAGNOSTIC FOR ATTENTION WEIGHT MATRICES",
+ "authors": [],
+ "abstract": "We introduce the $\\textbf{Spectral Shape Residual (SSR)}$, a lightweight metric\ncomputed directly from the query and key weight matrices of attention\nlayers - no forward pass, no training data needed.\nSSR measures how similar the singular value distributions of $W_Q$ and $W_K$\nare: when they match perfectly, SSR is zero.\nWe study SSR across four settings organized as a $2{\\times}2$ analytical\nframework (toy vs. production LLM; static snapshot vs. training\ndynamics) - a design that systematically covers the conditions under\nwhich spectral weight-space signals can arise.\nIn toy transformers trained on modular arithmetic, SSR falls sharply\nduring training, dropping below 50\\% of its peak value 200-1,900\nsteps ${before}$ the model generalizes - making SSR an early\nwarning signal - and converges to near-machine precision once\ngrokking is complete.\nIn production LLMs (LLaMA-3-8B, Gemma-4-31B-IT), SSR decreases\nsystematically with layer depth, and RL-distilled models\n(DeepSeek-R1-Distill-Qwen-14B) show lower SSR than their base model\n(Qwen2.5-14B-Instruct) in 45 out of 48 layers.\nIn OLMoE-1B-7B pretraining, 18.8\\% of attention heads show persistent\nmonotonic decline in SSR before grokking completes, concentrated in\ndeep layers (L10--L13); the median SSR of these heads falls 40\\% below\nits peak 582B tokens before grokking completes.\nSSR requires only one SVD per attention head and no evaluation data,\nmaking it deployable as a zero-overhead structural health monitor\ndirectly inside training pipelines.\nFor both pre-training (does the model grok?) and post-training\n(does RL alignment shift spectral structure?), SSR provides a\ncontinuous signal without running a single forward pass.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}