Program-as-Weights: A Programming Paradigm for Fuzzy Functions
Wentao Zhang, Liliana Hotsko, Woojeong Kim, Pengyu Nie, Stuart Shieber, Yuntian Deng
NeurIPS page · OpenReview · alphaXiv · Open on the map
Category: LLM Agents, Evals & Benchmarks › LLM-Driven Code Synthesis and Verification · Type: new method · Keywords: fuzzy-function programming, neural adapters, parameter-efficient compilation, offline function execution, lightweight interpreter
Areas: Code & Coding Agents › Code Verification › Code benchmarks
Summary
Program-as-Weights (PAW) compiles natural-language specifications into compact, locally-executable neural adapters that enable cheap, reusable function execution on a lightweight interpreter.
Explained to a 5-year-old
Some computer jobs are hard to do with simple rules, like fixing broken messages or finding important logs. Usually we ask a big AI to help, but that costs money and takes time. This paper teaches a big program to make a tiny helper that can do those jobs by itself. The helper is small, works fast, and can be used many times without asking the big AI again. This lets us have cheap, local tools that work even on a regular laptop.
Explained to a 5-year-old, longer
Many computer tasks are tricky, like spotting important messages in logs or fixing broken data. Doing these tasks with simple rules is hard, so people often ask a big AI for help. Asking the AI every time is slow, expensive, and not private. The paper comes up with a new idea: teach a big program to make a tiny helper that can do these tasks. This helper is like a small robot that knows how to fix messages or find logs. The helper is trained on a huge collection of examples called FuzzyBench. Once the helper is made, it can be used many times without needing the big AI again. It works quickly and uses very little memory, so it fits on a regular laptop. This means developers can keep their tools local, fast, and cheap. The helper can be reused for many different tasks, making it a useful building block. It also saves money because you don’t have to pay for AI calls each time. Overall, this makes it easier to build smart, local tools for everyday programming problems.
For a technical reader
The paper introduces a paradigm where natural-language specifications of fuzzy functions are compiled into compact neural adapters. A large “compiler” model is trained on a released dataset of 10 M examples to generate these adapters for a frozen lightweight interpreter. When the interpreter runs the adapter, it achieves comparable accuracy to prompting a much larger model (e.g., Qwen3-32B) while using only 1/50th of the memory. The resulting system runs at 30 tokens/s on modest hardware like a MacBook M3, enabling offline, reusable function execution. This shifts the foundation-model usage from per-input problem solving to a one-time tool-building step, reducing cost and latency for developers.
Problem
Many everyday programming tasks resist clean rule-based implementation and are often outsourced to large language model APIs, which suffer from lack of locality, reproducibility, and high cost.
Method
The approach trains a large compiler model on a large dataset of fuzzy functions to generate parameter-efficient adapters that can be executed by a frozen lightweight interpreter.
Results
The approach achieves performance comparable to prompting a much larger model (e.g., Qwen3-32B) while using roughly one-fiftieth of the inference memory and running at 30 tokens/s on a MacBook M3.
Contributions
It introduces fuzzy-function programming as a paradigm for compiling natural-language specifications into reusable neural artifacts and presents a compiler that produces parameter-efficient adapters for lightweight interpreters, along with the FuzzyBench dataset.
Practical relevance
It enables developers to deploy locally executable, low-cost fuzzy functions on modest hardware, reducing reliance on external LLM APIs.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction