Search the guide

Start with a guide

Research article

Weight-Space Programming from scratch on simple tasks

Chandan Singh

An LLM coding agent writes transformer weights for tasks such as addition, sorting, and parity, then revises the programs using evaluation feedback.

How it works

Construction
The agent edits the architecture and parameter-setting code, runs the resulting model, and simplifies successful programs.
Preparation and training
The algorithmic-task procedure uses closed-form parameter assignment. The report identifies fitting and evaluation leakage in its language-task runs.
Execution
The written transformer generates its answer token by token.

Cite this work

BibTeX
@misc{weight-space-programming-simple-tasks,
  title = {{Weight-Space Programming from scratch on simple tasks}},
  author = {Singh, Chandan},
  year = {2026},
  date = {2026-11-02},
  howpublished = {Research article},
  url = {https://csinva.io/weight-space-programming-autoresearch/analyze/toy_examples/report.html}
}

Related reading