Program-as-Weights: A Programming Paradigm for Fuzzy Functions
🤗 Upvotes: 58 | cs.LG, cs.AI, cs.CL
Authors:
Wentao Zhang, Liliana Hotsko, Woojeong Kim, Pengyu Nie, Stuart Shieber, Yuntian Deng
Title:
Program-as-Weights: A Programming Paradigm for Fuzzy Functions
Arxiv:
http://arxiv.org/abs/2607.02512v1
Abstract:
Many everyday programming tasks resist clean rule-based implementation, such as alerting on important log lines, repairing malformed JSON, or ranking search results by intent, and are increasingly outsourced to large language model APIs at the cost of locality, reproducibility, and price. We propose fuzzy-function programming: compiling such a function from a natural-language specification into a compact, locally-executable neural artifact. We instantiate this paradigm with Program-as-Weights (PAW), in which a 4B compiler trained on FuzzyBench, a 10M-example dataset we release, emits parameter-efficient adapters for a frozen, lightweight interpreter. A 0.6B Qwen3 interpreter executing PAW programs matches the performance of direct prompting of Qwen3-32B, while using roughly one fiftieth of the inference memory and running at 30 tokens/s on a MacBook M3. PAW reframes the foundation model from a per-input problem solver into a tool builder: invoked once per function definition, it produces a small reusable artifact whose subsequent calls per function application are cheap and offline.
You May Also Like

The Feldman Protocol
Dave Feldman

Vida Eterna. Respuestas desde la Ciencia | Dr. Manuel Sans Segarra
Dr. Manuel Sans Segarra

Trent Loos Podcast
Trent Loos

The 365 Days of Astronomy
365DaysOfAstronomy.org

Real Ghost Stories Online
Real Ghost Stories Online | Paranormal, Supernatural & Horror Radio

Breaking Down: Collapse
Kory & Kellan

The Grave Talks | Haunted, Paranormal & Supernatural
Ghost Stores, Haunted, Paranormal & Supernatural Stories

The Biotech Startups Podcast
Excedr

The Best of Coast to Coast AM
iHeartPodcasts and Coast to Coast AM

Eye On The Sky
Vermont Public
Community discussion