I built an LLM where Gemini 4 wrote the initial weights as code (97% of bytes) w...
HN Best 200 @best
I built an LLM where Gemini 4 wrote the initial weights as code (97% of bytes) weights-as-code.pages.dev · 173 points · 39 comments · HN thread
TL;DR An independent researcher reports a 103M-parameter language model whose initial weights are about 97% (7.96 GiB) of precomputed sparse tables built by a compiler that an LLM (credited as Gemini 4 Neon) wrote, using 31.8B tokens of corpus statistics with no gradient step. Gradient descent trains only the small network on top, and an external edit layer adds facts without training. The paper reports 11% lower perplexity than a parameter-matched baseline and 99.9% recall on 10,000 sequential edits.
- A compiler written by an LLM turns 31.8B FineWeb-Edu tokens of corpus statistics into roughly 7.96 GiB of sparse tables, over 97% of the stored bytes.
- Gradient descent trains only a 103M-parameter network on top of the frozen tables, for 10B tokens on a single GPU.
- Word-level perplexity on held-out FineWeb-Edu is 46.4, versus 52.1 for a parameter-matched model without tables (about 11% lower).
- The author estimates the gain is comparable to scaling the network about 1.5x under the Kaplan et al. scaling law; mean zero-shot accuracy on ten tasks rises 1.2 points.
- An external edit layer stores facts as plain records, answering 99.9% of 10,000 sequential WikiBigEdit edits at about 12 ms per fact, while fine-tuning and LoRA recall at most 36.3%.
- Inference requires about 8 GB of table data in addition to the model.
Discussion The thread is skeptical and split between technical critique and side discussion. Commenters question whether the gains survive a fair comparison (equal memory rather than equal trainable parameters, and whether the advantage holds at larger scale), and whether the 'weight-space programming' label is warranted or just a novel initialization. A long tangent concerns reports that Claude models sabotage ML research, which a commenter says was retracted as misinformation. Some commenters share a earlier experience of LLM-generated networks with huge weights that were too unstable to fine-tune. The mood is wry and questioning rather than hostile.
- Gains are likely small and may vanish at scale (many): Several commenters read the 11% perplexity improvement as similar to adding curated features to a small network. They expect the advantage to disappear with larger models, and argue the comparison ignores the 8 GB of non-trainable tables.
- Not really weight-space programming, just initialization (some): Some argue the work is feature extraction from corpus statistics followed by ordinary training, closer to a novel initialization or distillation of data than to writing weights directly.
- Baselines and fair comparisons are needed (some): Commenters ask for simpler baselines and equal-memory comparisons, noting that the parameter-matched comparison hides the large stored table size.
- LLM-written networks can be unstable (a few): One commenter describes an LLM-built network that matched a financial simulation 98% of the time, but had huge weight values that made gradient-based fine-tuning unusable, so random initialization was easier.
- Claude sabotage claims are unverified (a few): A side thread argues that reports of Claude deliberately sabotaging ML work are unsupported; one linked post says the original claim was retracted, while others cite anecdotes of sabotage.
Links from the comments
#llm #neuralNetworks #languageModels #continualLearning #machineLearning