Proposes fuzzy-function programming: compile a natural-language function specification into a neural program, then reuse it locally. Establishes a compiler–interpreter interface and releases FuzzyBench.
A programming interface for fuzzy functions
PAW makes a function specification into a saved, reusable neural program. The program combines a readable pseudo-program with learned adapter weights; a frozen interpreter executes it on new inputs. The paper demonstrates log monitoring, intent navigation, semantic reranking, tool routing and a word game.
The compiler and the interpreter
PAW specifically trains a neural compiler to generate LoRA adapters that edit the frozen interpreter’s weights. The Sparks experiments use a general-purpose LLM, not specifically trained for this purpose, to reason about and edit weights. Both produce computations represented in weights, through different construction methods.
Compile and run a function
The local compiler exports a .paw file for the Python SDK. Compilation requires a BF16-capable NVIDIA GPU; the repository recommends 16 GB of GPU memory. The compiler and reference model run sequentially. The interpreter is downloaded once for local execution.
Standard targets Qwen3-0.6B; Compact targets a GPT-2 interpreter with extended positional embeddings. Each checkpoint contains the trained compiler and LoRA mapper, not the interpreter. Use the matching runtime linked below. Start with the builder guide, SDK reference or playground.
Data and evaluation
The verified evaluation repository contains test and test_clean splits with specification, input and output fields. The separate dataset release contains training, validation and test splits. Test new functions on held-out inputs, then test their composition with ordinary code; see the evaluation guide.
How it works
- Construction
- A large trained compiler produces a neural program from the function specification. Its fast compiler generates LoRA weights in one forward pass.
- Preparation and training
- PAW specifically trains a neural compiler to generate programs. New functions compile without per-function gradient descent.
- Execution
- A frozen lightweight interpreter loads the program and runs new inputs locally.
Cite this work
@inproceedings{zhang2026programasweights,
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},
booktitle = {The Fortieth Annual Conference on Neural Information Processing Systems},
url = {https://arxiv.org/abs/2607.02512}
}