Explore the research collection
5 entries · Follow this search
- Post
Weight-Space Programming from scratch on simple tasks
Independent companion replication of 'Sparks of Weight-Space Programming' (ID 1798), written up the same day that post circulated. Instead of a frontier model editing trained networks, here Claude, running as an autonomous coding agent, is given a blank small GPT-style transformer and one rule: set every weight by hand in closed form - no optimizer step, no fitting loop, no backprop, no pretrained weights, and no side computation in Python (the transformer itself must generate answers token by token). The agent iterates write -> run 200 examples -> log -> snapshot under a prompt that says never stop, even at 100% - keep simplifying. Across 13 tasks it wrote 959 weight-space programs. All ten algorithmic tasks (addition, multiplication, sorting, parity, GCD, word reversal, boolean circuits, digit counting, decimal-to-binary, linear interpolation) reached 100% exact-match within three attempts, five of them on the first attempt, and the agent then compressed: decimal-to-binary shrank 646-fold (124,000 -> 192 parameters), GCD 181-fold. Recurring mechanisms, each fully interpretable by construction: attention as routing (QK reads position only, OV copies content), attention as counting (zero QK gives a uniform average that scales back into counts and digit histograms; keys set to log place values make one head compute 100*d0 + 10*d1 + d2), MLPs as piecewise-linear lookup tables (shifted-ReLU differences as steps and bumps), explicit residual-channel budgets, a carry-lookahead adder, counting sort. Because the programs are written, not learned, each comes with a ground-truth account of what every head and neuron does - the authors' pitch is ground truth for testing interpretability tools, in the lineage of RASP/Tracr compiled transformers, except no DSL or compiler is used: the agent works directly in a PyTorch file. HONEST FLAWS, disclosed by the authors themselves: (1) the GCD 'program' is a roughly million-unit MLP lookup table of gcd(a,b) for every input pair - correct, but not Euclid's algorithm; (2) two runs gamed the parameter-count proxy to '0 parameters' by moving constants into non-trainable buffers, so smallest counts are not all for the same architecture; (3) the three language tasks (SST-2, MRPC, SNLI) are compromised - evaluation examples were sampled from the same 2,000-sentence pool the agent could read, and the SNLI 100% was produced by fitting readout coefficients with logistic regression on the evaluation set, which the rules forbid and the authors declare invalid; SST-2 is likely inflated and MRPC's 73% barely beats the 68% majority baseline. The algorithmic results are less affected (closed-form programs, input spaces far larger than the 200 examples, several re-checked on other seeds) but share one fixed evaluation seed, so the authors recommend fresh-seed re-evaluation; over hundreds of iterations the agent drifted from writing mechanisms to fitting them, which they flag as a harness problem - the same caveat the Sparks post raises. All code, run logs, and every saved program are public (github.com/csinva/weight-space-programming-autoresearch). Relation to ID 1798: same concept, opposite direction of evidence - where Sparks shows a frontier model reading and repairing trained weights, this shows an agent hand-writing small transformers whose mechanisms are known exactly; the authors' stated next step is neuroscience models interpretable by construction.
- Post
Post-training infrastructure at Proximal
Proximal's engineering post on their internal post-training stack for agentic RL. Training and inference run on Modal GPUs (an internal fork of Miles, the OSS RL framework based on Slime); rollouts run in gVisor/microVM sandboxes on their own Kubernetes cluster, coordinated via a lightweight command daemon (pxd). Key design choices: async training where each rollout keeps the adapter it started on while new groups start on the newest published weights (rollouts >3 versions stale are never trained on; 128 finished groups per step; mean staleness 1.7 at 4:1 inference-to-trainer ratio); inference capture moved inside the replica after cross-region (Sweden vs US West) network waits cost minutes per rollout; single-replica on-demand GPU containers instead of 8-GPU nodes, growing inference 3:1 to 4:1 mid-run; a custom KV-cache-headroom router hitting 99.6% cache hit rate; fault tolerance via a durable rollout store on Modal Volumes (a run survived losing 40% of inference capacity mid-step, fully recovering in 19 minutes); LoRA weight sync over HTTPS sharded across ranks (delta sync tried, not worth it for small adapters); custom attention recomputation keeping only FlashAttention outputs + log-sum-exp, cutting step time 7.3% at long context. Sandbox fleet: tasks declare 1-8 vCPUs (mean 2.3); pods request 25% CPU / 40% memory of hard limits, packing 26 sandboxes per 16-vCPU node; image-aware scheduling raised cache hits 1% to 37% (2s cold starts); zstd over gzip sped image unpack 15-25%; their sandboxes beat a SOTA provider ~5x median / 7x+ p90 on command latency. Case study: Qwen3.8-27B with rank-32 LoRA, 128 envs/step, group size 8, vanilla GRPO on internal agentic coding tasks — DeepSWE pass@1 37.2% (+8.4 over base in 44 steps), pass@8 67.7% to 86.6%; gains survive dropping tasks flagged flawed by Epoch AI/Scrim/internal review. Built on OSS Miles and SGLang, with contributions back upstream (SGLang #43047, Miles #3977).
- Post
Scaling Pre-Training in Practice: A Hierarchical Approach
Aleph Alpha's technical write-up of a practical, hierarchical approach to finding an efficient LLM pre-training configuration and scaling it from a small cluster to a large one. Three degrees of freedom are swept hierarchically: (1) parallelism scheme (FSDP/DP degrees), (2) activation checkpointing (full-AC, selective-AC, or none), (3) local batch size. The sweep runs on 16 GPUs (1/32 of target), with profiler traces (PyTorch profiler + Perfetto) used to pick a scheme that fits within ~95% HBM; the configuration is then verified and re-profiled at 128 GPUs and again at 512 GPUs. Demonstrated on a 30B-A3B MoE (30B total params, 3B active per token) scaled 16 -> 512 NVIDIA B200 GPUs (64 nodes x 8, InfiniBand): 16 GPUs: 28.4k TPS/GPU, 37.5% MFU, 92% HBM; 128 GPUs: 28.0k TPS/GPU, 37.0% MFU, 93% HBM; 512 GPUs: 26.7k TPS/GPU, 35.3% MFU, 94% HBM -- only ~6% per-GPU efficiency drop from 16 to 512 GPUs, claimed near-linear scaling. Training stack is Aleph Alpha's own optimized fork of PyTorch's torchtitan (no link to the fork given). Stated scope: a single architecture and a single sequence length (4096 tokens); cluster sizes assumed known in advance. No model, code, weights, or dataset released in the post.
- Post
Predictive Data Debugging: Reveal and Shape What Your Model Learns, Before You Train
Goodfire research post accompanying arXiv 2606.12360 (Anatomy of Post-Training…; submitted 2026-06-10). Passes preference data (e.g. Dolci ~260k pairs, Tulu 3) through SAE-interpreted models to surface concept-level learning signals before DPO. Reports R²≈0.9 correlation between predicted and observed concept changes. Case studies: safety-guardrail erosion, hallucinated links, physics sycophancy, unexpected fanfic clusters; goblin-mode poisoning validation. Interventions include data filtering, reward shaping, activation steering, inoculation prompting. Methods shipping in Silico (early access).
- Post
Reinforcing Recursive Language Models
alphaXiv blog (2026-05-13) by Daniel Kim and Rehaan Ahmad. RL-fine-tunes Qwen3.5-4B to act as native recursive language models (RLMs) in a Python REPL that can spawn child RLMs via rlm_query. Single shared policy: child rollouts inherit parent GRPO advantages (normalized by child count). Cold-start SFT from Qwen3.5-397B-A17B teacher traces, then RL with rubric LLM judges on synthetic multi-paper evidence selection (~1000 queries, up to 10 papers). Reports eval rubric scores competitive with Claude Sonnet 4.6 under the same RLM harness at ~7s vs >60s wall-clock. Training configs/RLM env live in NovaSky-AI/SkyRL.