{
  "id": 1371,
  "kind": "post",
  "title": "SGD, AdamW, and the mystery of α = 2",
  "summary": "Charles Martin (WeightWatcher author) offers an explanation for why WeightWatcher's spectral renormalization-group diagnostics behave differently under SGD and AdamW: layer spectral exponents α often approach the ≈2 marginal regime with SGD, but with AdamW many layers land at α < 2 — the regime he flags as possible overtraining. The paradox: in his LeNet-5-on-MNIST example, the AdamW run (α < 2) has better test accuracy than the SGD run (α ≈ 2). His answer: SGD is scale-invariant — for an idealized scale-invariant loss, rescaling weights W → bW, WᵀW → b²X and learning rate η → b²η yields a rescaled copy of the same trajectory, and this symmetry underlies the RG-flow emergence and Exact RG fixed-point conditions — whereas AdamW's adaptive normalization changes the scaling law (learning rate scales as b rather than b² in the idealized limit), breaking the SGD scaling symmetry and shifting the spectral trace-log drift. Working hypothesis: SGD scale-invariance is consistent with the RG flow, while AdamW's implicit bias moves learning away from the α ≈ 2 regime — which explains why WeightWatcher worked well in the pre-AdamW era and why modern-optimizer models are harder to analyze. A standing research question, not a publication; discussion invited on the WeightWatcher Discord.",
  "body": "",
  "notes": "Discovery: Hudson shared the bare X link directly, 2026-10-14. Main post plus two link-card continuation posts (weightwatcher.ai, WeightWatcher Discord with ~1,099 members) and an AI-generated image; no arXiv paper attached. Relevance: (1) Optimizer diagnostics for his own training — a spectral-dynamics account of why modern optimizers evade classic diagnostics, relevant to monitoring his pretraining runs (Launch Helm connection: this is the kind of per-layer optimizer-behavior signal a run-control plane could surface); (2) joins the WeightWatcher line already in the catalog (anti-grokking, α departing from ≈2 as overtraining signal); (3) pairs with queued #33 (Sewon Min repeated-data pretraining): recipe-level differences (optimizer, batch size) change the training dynamics that diagnostics like WeightWatcher read — both papers probe when standard recipes mislead. Caveat: working hypothesis from the author, explicitly not yet a characterized result; no new experiments beyond the MNIST illustration. Cluster: WeightWatcher/HTSR, optimizer implicit bias, spectral diagnostics, SGD vs AdamW. | License: not applicable — X post, links to weightwatcher.ai and the WeightWatcher Discord",
  "url": "https://x.com/CalcCon/status/2110380989478539351",
  "links": [],
  "authors": [
    "Charles H. Martin (Calc Consulting / Calculation Consulting)"
  ],
  "tags": [],
  "topics": "",
  "venue": "X essay thread (4 posts)",
  "publisher": "",
  "source": "x",
  "language": "en",
  "access": "free",
  "license": "",
  "published_year": 2026,
  "added_at": "2026-10-14T00:00:00.000Z",
  "verified_at": "2026-10-14T00:00:00.000Z",
  "attrs": {},
  "enrichment": {},
  "enriched_at": null,
  "license_class": "unknown",
  "langs": [
    "en"
  ],
  "modalities": [],
  "size_class": null,
  "provenance": {
    "channel": "CalcCon",
    "legacy_paper_id": "1678"
  },
  "visibility": "public",
  "status": "active",
  "duplicate_of": null,
  "origin": "legacy",
  "created_at": "2026-11-01T12:53:13.841Z",
  "updated_at": "2026-11-01T12:53:13.841Z",
  "page": "https://papers.projxon.ai/entries/1371",
  "markdown": "https://papers.projxon.ai/entries/1371.md",
  "api": "https://papers.projxon.ai/api/entries/1371",
  "relations": [],
  "duplicates": [],
  "similar": [
    {
      "id": 1426,
      "kind": "paper",
      "title": "Asymptotic Risk of Learning-Rate Schedules for Least-Squares Regression with Discretely Distributed Features",
      "summary": "Exact last-iterate theory for SGD on streaming least squares under Slock's model (Slock 1993): each sample activates a single eigendirection of the covariance H (drawn with probability ∝ its eigenvalue λ_i), which decouples the dynamics across eigendirections and makes the risk computable in closed form — one-hot features are a special case. Under power-law capacity and source conditions (Assumption 3.2: λ_i = L·i^(−α), α>1; squared initial error per eigendirection m_{0,i} = Δ·i^(−β); write ω = (α+β−1)/α), the authors derive the exact finite-time risk (Theorem 3.1, an explicit bias+variance decomposition) and asymptotic equivalents for the constant schedule and the WSD family η_j = min{1, (T−j)/(cT)} — stable phase then LINEAR decay over the last fraction c of the horizon; warmup is explicitly excluded from the analysis, and the strict constant schedule is the excluded limit c=0. Mechanism: at fixed base LR γ, the constant schedule's variance does not vanish (V_T → (ζ(α)/2)·σ²Lγ/(2−γ·Tr Λ)), while WSD's variance decays — as γ^(1/α)·T^(1/α−1) for 1<α<2 and γ^(1/2)·T^(−1/2) for α>2 (the critical case α=2, with log corrections, is omitted). With each schedule run at its own tuned base LR γ̃*_T (which vanishes as a power of T), the optimal risk is Θ(T^(−q)) with q = ω/(v+ω), where the schedules differ only through the variance's γ-exponent v: v=1 for constant → q = (α+β−1)/(2α+β−1); v=1/α for WSD with 1<α<2 → q = (α+β−1)/(α+β); v=1/2 for WSD with α>2 → q = ω/(ω+1/2). Since v_WSD < 1 always, ANY cooldown of fixed relative length c>0, however short, strictly improves the exponent over the constant schedule — a polynomial-factor gain in T (exponents agree with Li et al. 2025, derived there up to constants; this paper resolves the constants). The cooldown length c enters only the prefactor, and the prefactor is minimized at c* = 1 in both regimes (Corollary 5.2: for α>2 the c-dependent factor is (c(2−c))^(−1/2); for α<2 the objective W(α,c)/(2−c)^(1/α) is strictly decreasing in c) — pure linear decay is optimal within the WSD family when γ is tuned. Learning-rate transfer is explicit: log(γ̃*_T(1)/γ̃*_T(c)) has a closed form independent of T (Eq. 19), matching co-author Schaipp et al. (2025)'s convex-bound numerics and their Llama-style measurements (20% cooldown → γ*(1) ≈ e^0.7·γ*(0.2)). Averaging comparison: when α<2 and β<α+1, WSD's optimal last-iterate rate coincides with that of averaged constant-step SGD (up to a constant) — a cooldown recovers, for the last iterate, the (unimprovable) rate of averaging; averaging itself saturates at ω=2. Caveat within the theory: for α>2, polynomial cooldowns η=(1−t/T)^δ beat linear WSD across all schedules (Bordelon & Mori 2026; δ=2α−1 optimal per Li et al. 2026) — linear is optimal only inside the WSD family, and this family is not analyzed. Batch size (Section 6 / Appendix B): a minibatch b rescales the noise σ²→σ²/b and trace Tr(Λ)→Tr(Λ)/b; the optimal base LR rescales as γ̃*_{T,b} = b^p·γ̃*_T (p+ϑ=1), so at fixed sample budget N=bT the optimal risk depends on b and T only through bT — batching is statistically free — but only up to a critical batch size: the stability bound γ < 2b/(Tr(Λ)+L(b−1)) saturates at 2/L as b grows, forcing b ≤ b̃_max(T), and b̃_crit(N) is the maximal b with b ≤ b̃_max(N/b) (computed numerically, Table 4, for N=2×10^5). The authors flag b̃_crit as a heuristic extrapolation: the theorem is stated for fixed b, and near the threshold the optimal LR is no longer small, so the equivalents need not apply. Validation is entirely within-model numerics (no real-data experiments): Monte-Carlo SGD simulations match the exact risk formula (Fig. 1; 50 runs, d=100, γ=0.1, α=1.5, β=2, σ=0.1); risk-vs-γ curves at T=10^5 confirm γ̃*_T is near the exact finite-time minimizer (Fig. 2); equivalents-vs-exact ratio checks (Figs. 7–8); and Slock-vs-Gaussian bias/variance ratios → 1 along the optimal vanishing-LR sequence (Appendix D). Limitations (authors', §7): least squares is smooth and convex, deep-learning objectives are not; plain SGD, not the adaptive methods used in practice; Slock's model is chosen to decouple coordinates, not to describe real data; exact power laws are assumed; the asymptotics can require very large horizons (T > 10^5 steps, worse as α→1 or α→2); only linear cooldowns are studied; no warmup analysis.",
      "url": "https://arxiv.org/abs/2610.16518",
      "authors": [
        "Noé Colomban",
        "Francis Bach",
        "Fabian Schaipp — Inria – École Normale Supérieure",
        "PSL Research University",
        "Paris (Colomban: PhD student",
        "corresponding author",
        "Bach: INRIA/ENS",
        "Schaipp: Inria). Funded by France 2030 PR[AI]RIE-PSAI."
      ],
      "tags": [],
      "venue": "arXiv cs.LG, v1 submitted 12 Oct 2026",
      "source": "arxiv",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-21T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1426",
      "markdown": "https://papers.projxon.ai/entries/1426.md",
      "api": "https://papers.projxon.ai/api/entries/1426"
    },
    {
      "id": 276,
      "kind": "dataset",
      "title": "btc-reasoning-traces-gpt5.2",
      "summary": "A 2,020-row dataset of LLM reasoning traces for BTC/USD trading decisions on the 1-hour timeframe, where each row captures account state (exposure, position, PnL, leverage), 5-minute and 1-hour candle market data, a trading action (0=short, 1=flat, 2=long), and the model's chain-of-thought reasoning analyzing trends and price action. It is designed for reinforcement learning–based trading agents and is part of the TorchTrade project.",
      "url": "https://huggingface.co/datasets/Torch-Trade/btc-reasoning-traces-gpt5.2",
      "authors": [
        "TorchTrade"
      ],
      "tags": [],
      "venue": "Torch-Trade (HuggingFace)",
      "source": "huggingface",
      "license": "mit",
      "published_year": 2026,
      "added_at": "2026-07-17T20:18:03.763Z",
      "has_dataset_profile": true,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [
        "text",
        "timeseries"
      ],
      "size_class": "1K<n<10K",
      "citation_count": null,
      "downloads": 25,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/276",
      "markdown": "https://papers.projxon.ai/entries/276.md",
      "api": "https://papers.projxon.ai/api/entries/276"
    },
    {
      "id": 1439,
      "kind": "paper",
      "title": "Simulating Training Spikes of Deep Neural Networks by Layer-wise Random Feature Models",
      "summary": "A mechanism paper for training spikes — the sharp temporary train+validation loss surges in LLM pretraining. Diagnostic starting point: ordinary loss fluctuations are driven by data shuffling and reproduce identically across seeds, but spikes occur at DIFFERENT steps for runs differing only in initialization, so spikes are not caused by a single bad data point and outlier removal cannot fully fix them. TOY MODEL (PLRF): a Power-Law Random Feature model — fixed random Gaussian features feeding linear regression, inputs power-law scaled with exponent α. Two necessary conditions for spikes in PLRF: (1) heavy-tailed data (large α) and (2) learning rate near the divergence threshold. At α=0.3 raising the LR just diverges cleanly; at α=0.9 BOTH SGD and Adam produce genuine spikes before divergence (claimed as the first explicit link between training spikes and heavy-tailed data). MECHANISM: decompose the iterate into deterministic full-batch descent plus a random walk accumulating stochastic gradient noise. Concentration of measure makes the loss concentrate on its expectation IFF α ≤ 0.5 (equivalently Σλ_i diverges for eigenvalues λ_i ∝ i^(−2α)); for α > 0.5 a few very large eigenvalues dominate, and when the noise random-walks into alignment with a large-eigenvalue direction, the loss surges. The EXPECTED loss stays smooth — average-case scaling-law analyses remain valid but stop describing individual runs. Side result: spikes occur in convex quadratic models under stochastic optimization — the 3rd-order terms needed for Edge-of-Stability spikes under full-batch GD are NOT necessary once gradient noise exists; and the SGD divergence threshold is not 2/λ_max but solves (1/B)·Σ γλ_i/(2−γλ_i) = 1 — sharpness (λ_max) is only distantly relevant; the whole eigenvalue distribution is what matters. LAYER-WISE SIMULATOR (Algorithm 1): each layer gets a 2nd-order Taylor expansion of validation loss around a checkpoint (per-example gradient second moments factorize through the activation-correlation spectrum — Prediction 5, verified with relative error <0.1, mostly within 5%, across layer types and steps); from ONE checkpoint + one validation pass (activation-correlation eigendecomposition, mean gradient, mean squared per-batch gradient norm, Hessian trace via Hutchinson probing), synthesize Gaussian per-batch gradients and roll the real optimizer map forward — ~5 seconds on CPU for 1,500 steps for one layer, vs 8 min–1.7 hrs of measurement on TPUv4×32 and 40 hrs to train the case-study model. CASE STUDY: vanilla 1.3B decoder-only Transformer (24 blocks, d=2048, C4, ~25.5B tokens, AdamW β2=0.95, peak LR 8.2e-4, NO gradient clipping); changing only β2 0.95 → 0.999 induces spikes (two seeds). Simulating from the step-21k checkpoint, the normal configuration stays comparatively smooth while both spiky configurations show clear bumps — matching the qualitative fact of spikiness, NOT the step (spike timing is random by construction). Activation-correlation eigenvalues are power-law distributed and MORE heavy-tailed for the spiky configuration, especially in lower layers. EQUIVALENT BATCH FACTOR: despite ~524K tokens per batch, the measured equivalent batch factor 𝔅 ≈ 1 — for gradient-noise purposes Transformer LM training sits in the SMALL-BATCH stochastic regime, because per-token gradients vary wildly; token-count batch size does not buy the gradient-noise suppression sequence-count reasoning suggests. β2 RECIPE: make Adam's second-moment decorrelation time ~1/√(η_t·H) instead of ~1/(η_t·H), giving β2 ≈ 1 − √(η_t·𝔗/√𝔑) from measured Hessian trace 𝔗 and per-batch gradient norm 𝔑 — generically an INCREASING β2 schedule as LR decays; fitted schedule β2 0.982 → 0.992 gave final val loss 2.4404 vs 2.4421 for constant 0.95 and 2.4502 (visibly spiky) for constant 0.992 — real but TINY margins (0.0017 over the original; 0.0001 over the best constant), single runs, no seed variance; the sharper finding is the sensitivity — a 0.01 change in constant β2 flips training between smooth and spiky. Caveats (authors' own, unusually candid): the simulator explains spikes only PARTIALLY — measured 2nd-order terms show level \"jumps\" rather than spike-and-recovery, 1st-order terms are ~20× larger than the quadratic model predicts; cross-layer correlations and >2nd-order terms are needed and absent; the honest claim is \"quadratic models at least partially reveal the mechanism,\" weaker than the abstract's \"successfully predicts.\" \"Prediction\" is qualitative — a spike-RISK screen from a checkpoint, not a forecast of when. The layer framework rests on imposed assumptions (Gaussian latents with negligible drift; isotropic output-gradient covariance) and EXCLUDES tied embedding/LM-head weights entirely. The β2 mechanism is admittedly unexplained (\"a curious mystery\"); the recipe is offered as proof of concept. Simulator accuracy degrades badly with batch size in the PLRF check (severe overestimation at B=64) — the DNN case is argued safe only because 𝔅 happens to be ≈1 for this recipe. Single case study: one size (1.3B), one dataset, one recipe, spikiness constructed by pushing β2, no gradient clipping (atypical for production pretraining); Muon is mentioned only as neighboring spectrum work, NOT simulated. All results first-party, no independent replication, paper ~2 weeks old.",
      "url": "https://arxiv.org/abs/2610.13524",
      "authors": [
        "Ran Tian (Google DeepMind)",
        "Courtney Paquette (McGill University / Mila — Québec AI Institute",
        "CIFAR AI Chair",
        "also 20% part-time at Google DeepMind)"
      ],
      "tags": [],
      "venue": "arXiv cs.LG preprint v1, submitted 9 Oct 2026 (no venue stated, not peer-reviewed as far as the record shows)",
      "source": "arxiv",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-22T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1439",
      "markdown": "https://papers.projxon.ai/entries/1439.md",
      "api": "https://papers.projxon.ai/api/entries/1439"
    },
    {
      "id": 1108,
      "kind": "paper",
      "title": "Composer 2 Technical Report",
      "summary": "Cursor technical report PDF (pdfTeX creation 2026-03-24). Composer 2 is trained in two phases: continued pretraining for coding knowledge, then asynchronous RL for long-horizon multi-step coding in the real Cursor harness (read/edit/shell/grep/semantic search/web). Base selected as Kimi K2.5 (1.04T total / 32B active MoE) after FreshBench/state-tracking/perplexity comparisons vs GLM5 and DeepSeek V3.2. Introduces CursorBench from real engineering sessions. Reports CursorBench accuracy 61.3 (major gain vs prior Composer), Terminal-Bench 61.7, SWE-bench Multilingual 73.7 in their harness; closed weights via Cursor product.",
      "url": "https://cursor.com/resources/Composer2.pdf",
      "authors": [
        "Cursor Research Team (Aaron Chan",
        "Ahmed Shalaby",
        "Alexander Wettig",
        "Aman Sanger",
        "Andrew Zhai",
        "Anurag Ajay",
        "Ashvin Nair",
        "Charlie Snell",
        "Chen Lu",
        "Chen Shen",
        "Emily Jia",
        "Federico Cassano",
        "et al.)"
      ],
      "tags": [
        "composer-2",
        "cursor",
        "coding-agent",
        "swe-bench",
        "terminal-bench",
        "cursorbench",
        "kimi-k2.5",
        "rl-post-training",
        "closed-weights"
      ],
      "venue": "Cursor",
      "source": "pdf",
      "license": "",
      "published_year": null,
      "added_at": "2026-09-02T14:35:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1108",
      "markdown": "https://papers.projxon.ai/entries/1108.md",
      "api": "https://papers.projxon.ai/api/entries/1108"
    },
    {
      "id": 1510,
      "kind": "paper",
      "title": "Pretraining Data Scale Reverses the Muon-AdamW Fine-Tuning Gap",
      "summary": "Muon's pretraining-loss advantage over AdamW does not survive fine-tuning at scale - and the crossover is predictable. Empirically: at small pretraining data budgets, Muon-pretrained models also fine-tune better, but beyond a sufficiently large pretraining token budget the ranking flips and AdamW-pretrained models fine-tune to better downstream performance, despite Muon's better pretraining loss. The crossover point is not fixed: as model size increases, AdamW overtakes Muon at progressively SMALLER pretraining token-to-parameter ratios, so larger models cross over earlier in their training-token budget. To explain the reversal the authors model fine-tuning as a perturbation of the model's outputs and introduce the margin-to-spread ratio: how far the correct logit lies above the wrong logits, normalized by how widely the wrong logits are spread. A model with a high ratio has its predictions robustly separated relative to the noise floor of its incorrect alternatives, which is what a fine-tuning perturbation has to overcome or preserve. Measured in language models, the ratio tracks the empirical reversal exactly - Muon's margin-to-spread is larger at small data budgets and AdamW's is larger at large ones. Theory backing: in a linear associative memory model they prove that after a single update, gradient descent's margin-to-spread ratio gains on Muon's as the data budget grows, and simulations show the trend persists after extended training - i.e., the reversal is a structural property of the optimizers' update geometry interacting with data scale, not a tuning artifact. Caveats: abstract-level research - the specific model scales, token budgets, downstream tasks, and crossover magnitudes are in the full text, not the abstract; the proof is for a linear associative-memory surrogate after one update, with the LM claim resting on the empirical correlation between the ratio and fine-tuning outcomes; code was not linked from the arXiv page at catalog time. Practical read for anyone running a pretrain-then-finetune pipeline with Muon (the catalog's Muon thread already covers its weight growth, looped-model LR scaling, and orthogonalization cost): optimizer selection by pretraining loss alone can pick the wrong optimizer for the artifact you actually ship, and the risk grows with model size and token budget. The margin-to-spread ratio is also a candidate pretraining-time observable - a geometry statistic of the base model that predicts post-fine-tuning behavior, in the same family as the logit-margin signals tracked elsewhere in the catalog.",
      "url": "https://arxiv.org/abs/2611.03633",
      "authors": [
        "Catherine Li",
        "Jingchu Gai",
        "Andrej Risteski",
        "Jacob Mitchell Springer",
        "Aditi Raghunathan"
      ],
      "tags": [],
      "venue": "arXiv preprint",
      "source": "arxiv",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-11-03T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1510",
      "markdown": "https://papers.projxon.ai/entries/1510.md",
      "api": "https://papers.projxon.ai/api/entries/1510"
    },
    {
      "id": 261,
      "kind": "dataset",
      "title": "Nemotron-Cascade-2-SFT-Data",
      "summary": "We release the SFT data used for training [Nemotron-Cascade-2](https://huggingface.co/nvidia/Nemotron-Cascade-2-30B-A3B).",
      "url": "https://huggingface.co/datasets/nvidia/Nemotron-Cascade-2-SFT-Data",
      "authors": [
        "nvidia"
      ],
      "tags": [
        "hf-dataset-json-text-datasets-dask-polars-mlcroissant"
      ],
      "venue": "nvidia",
      "source": "huggingface",
      "license": "other",
      "published_year": 2026,
      "added_at": "2026-07-17T20:01:00.113Z",
      "has_dataset_profile": true,
      "license_class": "other",
      "langs": [],
      "modalities": [
        "code",
        "text"
      ],
      "size_class": "10M<n<100M",
      "citation_count": null,
      "downloads": 7610,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/261",
      "markdown": "https://papers.projxon.ai/entries/261.md",
      "api": "https://papers.projxon.ai/api/entries/261"
    }
  ]
}
