A language model writes the weights of a small network from a specification. A certificate proves which inputs it handles exactly in float32.
How it works
- Construction
- PAW compiles natural-language descriptions of fuzzy functions. In Spec2Weights, the language model writes Python that sets a network’s weights from an exact specification.
- Preparation and training
- The writer uses no training examples or gradient updates. The authors also train the same architectures by gradient descent.
- Execution
- On 30 new specifications, 25 first submissions were certified exact for every allowed summation order.
Cite this work
@misc{spec2weights,
title = {{Spec2Weights: Certifying Networks that a Language Model Writes from a Specification}},
author = {Bhattacharjee, Soumik and Farazi, Musa Tur and Uddin, Md Nasir and Sabrina, Tishna and Haider, Chowdhury Mohammad Rakin},
year = {2026},
date = {2026-11-25},
eprint = {2611.34711},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2611.34711}
}