Explore the research collection
2 entries · Follow this search
- Thread
An LLM choosing the step sizes beats standard Adam on 3 of 4 tasks
Sauers (X post, Nov 14 2026) tests an LLM as the optimizer: Qwen3-0.6B reads every weight tensor's gradient statistics at every training step and sets that tensor's update on top of Adam; the network then trains with that update. Headline (GIF figure): the LLM-chosen step sizes beat standard Adam on 3 of 4 tasks - Fashion-MNIST small CNN (p < 0.001), Fashion-MNIST small network (p = 0.002), Python-code small transformer (p < 0.001) - but not the MNIST bigger network (p = 0.75, slightly worse). Qwen's first steps are ~9x bigger than Adam's. The author's own self-reply undercuts the headline: 'You shouldn't actually use this lol'. The follow-up figure shows nothing beats TUNED Adam + cosine: the rule learned while training each network, and the rule learned offline then frozen, both only match tuned Adam + cosine on three of four tasks; Adam and the LLM mostly choose the same step size (curves nearly overlap), and the LLM is far slower - one step of Qwen 0.09 s vs one step of Adam 0.0000003 s; a 1000-step run takes 53 s (learning while training) vs 4 s (frozen rule) on a 1k-weight CNN, and 872 s vs 104 s on a 121k-weight code transformer. Flags, as entered: X-post-only artifact, no paper or code linked; tiny tasks (Fashion-MNIST/MNIST, small CNN/transformer, <=121k weights); bar lengths read approximately from the GIF axis, p-values as printed; remaining replies behind the X login gate were not read. Cross-references: learned-optimizer / weight-space thread - the LLM-reading-weights cousin of IDs 1798-1799 (weight-space programming) and the staged doubleAI entry (code layers spliced into training); the 'Adam almost matches it' result is the optimizer-choice counterpart to IDs 1809-1810 (don't pick on pretraining loss alone). Same author as the catalog's 'Watching' probe-detection repo.
- Code
Watching: Can Language Models Detect Read-Only Probes? (SauersML)
Fine-tuning only the last two layers of Qwen3-8B teaches the model to detect when a read-only probe is capturing its activations — but only under torch.compile. The probe forces the compiler to split layer 14's kernel into two with BF16 rounding in between (~2.5% change in the user token's hidden state), and the model learns to recognize this: 128/128 correct on new prompts, separation ~27 nats. The key control shows it reads the compiler's change, not the observer — a two-kernel layer with no probe also gets "Yes", while a no-kernel-split copying probe is never learned. One attention head (layer 35 head 6) carries ~99% of the effect via a cancellation trick that subtracts away the normal component of the user-token key. The same recipe extends: detection of HF output_hidden_states reads (80% held-out), distinguishing HF Trainer training steps from vLLM/SGLang serving (66/68 prompts), and a logit-lens message ("I can see you watching me") that appears only when hidden states are read from the compiled model. Detection is GPU-specific: perfect on the training L40S, 52–77% on four other NVIDIA GPUs, backwards on H100/A100. Untrained models cannot detect the probe. Caveats: GPU-bound exactness; thread/README are AI-documented ("written by Opus 5.5 and GPT-6 Astra"); repo code license unstated.