Compile by Training Neural Functions
Compile by Training: Turning Natural-Language Specifications into Local Neural Functions
The method creates efficient, local neural functions that reduce latency and dependency on remote models, useful for developers in resource-constrained environments.
The paper introduces compile by training, which converts natural-language specifications into reusable neural functions.
Teacher models generate task-specific examples to train a small adapter for a compact interpreter.On FuzzyBench-Hard, where Program-as-Weights achieved no exact matches, compile by training reached 83.
6% semantic accuracy with a compile time of roughly one minute.
Compile by Training: Turning Natural-Language Specifications into Local Neural Functions
Many recurring text functions are easy to describe but difficult to implement with rules, while calling a large remote model for every input introduces repeated cost, latency, and dependency on a provider. We present compile by training, which turns a natural-language specification into a reusable neural function. At compile time, teacher models generate task-specific examples that are used to train a small adapter for a compact interpreter. The resulting function runs without the teachers and can be stored, versioned, and composed like ordinary software. On FuzzyBench-Hard, a subset on which the Program-as-Weights fast compiler produced no exact matches, compile by training reaches 83.6% semantic accuracy. This higher accuracy comes with a higher compile-time cost: roughly a minute rather than seconds for the fast compiler. We deploy the compiler in a public interactive service and demonstrate compiled functions in a multi-site website helper, a language-controlled 3D avatar, and a bidirectional English-Claudish translator.
This report is categorized under AITOP's "Papers" desk. Key entities and technical topics under continuous tracking include compile by training, FuzzyBench-Hard.
Source attribution: curated from arXiv cs.LG (@Yuntian Deng, Pengyu Nie, Stuart Shieber).