# Weights as code — Gemini 4 Neon wrote the compiler for an LLM's initial weights

> An LLM writes the program that builds a model's starting weights, and the small network trained on top gets better perplexity.

- Org: Youngseong Kim
- Date: 2026-11-27
- Category: showcase, paper, repo
- Source: https://weights-as-code.pages.dev/
- Canonical page: https://ai-tldr.dev/releases/wtable-lm-weights-as-code/

## In short

An independent researcher's 103M-parameter language model reads frozen tables compiled from 31.8B tokens of text by a program Gemini 4 Neon designed. It beats a matched baseline by 11% on perplexity.

## What it is

wtable-lm is a research language model whose initial weights come from a compiler that Gemini 4 Neon designed. The compiler turns corpus statistics into a 7.96 GiB bank of frozen sparse tables, which hold over 97% of the model's stored bytes, and a 103M-parameter network is then trained on top for 10B tokens on a single GPU.

## How it works

The tables are built with no gradient steps from 31.8B tokens, across 18 channels in five groups: n-gram, skip-gram, synonym, concept and rule. Each channel offers next-token candidates with scores, and the network reads them through an Engram block after its fourth layer plus gated fusion with its output logits.

## Why it matters

The paper reports word-level perplexity of 46.4 on held-out FineWeb-Edu versus 52.1 for a parameter-matched baseline, and estimates this is like making the network about 1.5 times larger. A training-free edit layer kept 99.9% of 10,000 sequential WikiBigEdit edits, where fine-tuning and LoRA recalled at most 36.3%. Checkpoints and the table bank are not released yet.

## Who it's for

ML researchers working on pretraining and model editing

## Try it

python wtable/test_local_smoke.py

## Links

- [Project Page](https://weights-as-code.pages.dev/)
- [GitHub Repo](https://github.com/Kim-Ai-gpu/wtable-lm)
- [HN Discussion](https://news.ycombinator.com/item?id=50699217)
