Fuzzy-function programming
Describe a function in English, compile it, and save the resulting neural program. Load it later and call it from ordinary code.
Program-as-Weights · Research
Describe a function. Compile it once.
Reuse a neural program locally.
Some useful functions are hard to express as exact rules: repairing malformed JSON, finding important log messages, or matching a query to its intent. Program-as-Weights (PAW) turns descriptions like these into small neural programs that run locally.
Original PAW paper ↗Compile by TrainingTry PAW ↗Cite this work
Long-term vision
Yuntian Deng · Essay on X
When a task repeats, we should be able to build a tool once and reuse it. Yuntian Deng’s essay proposes pretraining models to generate small neural programs for computers, phones, and robots. People could create and update these programs in natural language, then run them locally.
This is the long-term goal behind PAW.
The original PAW paper
First arXiv submission
Wentao Zhang, Liliana Hotsko, and Woojeong Kim contributed equally.
Describe a function in English, compile it, and save the resulting neural program. Load it later and call it from ordinary code.
A PAW program combines a text pseudo-program with a LoRA adapter or prefix vectors. PAW trains a compiler to generate the program from a function description.
FuzzyBench contains 10 million specification–input–output examples for training and evaluating neural compilers. Python and JavaScript runtimes execute compiled programs locally; a smaller GPT-2 interpreter runs in the browser.
Sources: programming abstraction (§2) · compiler and interpreter (§3) · FuzzyBench (§5) · local execution (§9) · browser execution (§1).
July 2026
On FuzzyBench, PAW with a Qwen3-0.6B interpreter achieves 73.78% exact match, compared with 68.70% for direct Qwen3-32B prompting.
The paper also tests noisy specifications, quantization, and execution on a MacBook M3. Read the results and limitations.
Compile by Training
First arXiv submission
EMNLP 2026 System Demonstrations
Compile by Training uses teacher models to generate examples from a function description. It initializes a program with the fast compiler, then trains it on those examples. The saved program uses the same PAW runtime and runs locally without further teacher calls.
On FuzzyBench-Hard, Compile by Training improves LLM-judged semantic accuracy (LEM) from 22.4% to 83.6%. FuzzyBench-Hard contains specifications where the fast compiler produced no exact matches; LEM also credits correct outputs whose wording differs from the reference. A cold compile of one specification takes 50.9 seconds on a B300, compared with 3.5 seconds for the fast compiler.
Compiled functions power a website helper, a 3D avatar controlled through language, and an English–Claudish translator.
Sources: compilation method (§3) · evaluation and hardware (§5) · applications (§6) · limitations (§9).
Hypernetworks, generated adapters, instruction compilation, and neural programs.
Compile a specification and load the resulting program as a local function. Read the documentation.
Write a function description and try the compiled program on your own inputs. Build local decision models for classification, routing, and triage.
Wentao Zhang, Liliana Hotsko, Woojeong Kim, Pengyu Nie, Stuart Shieber, Yuntian Deng. Program-as-Weights: A Programming Paradigm for Fuzzy Functions. arXiv:2607.02512, 2026.
Download BibTeXDownload CSL-JSONPaper summary as Markdown
@misc{paw_2607_02512,
title = { {Program-as-Weights: A Programming Paradigm for Fuzzy Functions} },
author = {Zhang, Wentao and Hotsko, Liliana and Kim, Woojeong and Nie, Pengyu and Shieber, Stuart and Deng, Yuntian},
year = {2026},
note = {arXiv preprint},
eprint = {2607.02512},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2607.02512}
}
Yuntian Deng, Pengyu Nie, Stuart Shieber. Compile by Training: Turning Natural-Language Specifications into Local Neural Functions. arXiv:2609.04199, 2026.
Download BibTeXDownload CSL-JSONPaper summary as Markdown
@misc{paw_2609_04199,
title = { {Compile by Training: Turning Natural-Language Specifications into Local Neural Functions} },
author = {Deng, Yuntian and Nie, Pengyu and Shieber, Stuart},
year = {2026},
note = {arXiv preprint},
eprint = {2609.04199},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2609.04199}
}