Compile by Training: Turning Natural-Language Specifications into Local Neural Functions
Abstract
Domain fit: AI-adjacent · Paper appears method- or tooling-adjacent to AI workflows with partial ecosystem coverage.
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.
Results and benchmarks
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.
Benchmark evidence is limited
Evidence graph: 3 refs, 3 links.
Utility signals: depth 55/100, grounding 75/100, status medium.
Implementation
Best maintained implementation now
Python SDK for ProgramAsWeights — compile natural language specs into neural programs that run locally
369 stars · 35 forks · Last push Oct 20, 2026 · MIT license
- License
- CI
- Dependencies
- Docker
Matched via arXiv identifier search · Strong overlap with paper title keywords · Community adoption signal (369 stars)
programasweights/programasweights-python is the best available implementation candidate based on ranking signals, but recommendation confidence is not yet high. CI workflows are present. License is declared (MIT).
Open programasweights/programasweights-python- No repository-level red flags were detected, but paper-specific preprocessing and hyperparameter details may still be under-specified.
- Selected programasweights/programasweights-python as the strongest maintained implementation for new work.
- Includes CI workflow signals.
- Includes dependency/environment manifest signals.
- Repository activity is within the last 24 months.
Compare implementation paths
Compare maintenance quality, reproducibility coverage, and evidence confidence before choosing a reproduction baseline.
- Maintenance
- Active
- Confidence
- Medium
- Reproducibility
- Strong
- Stars
- 369
- Last push
- Oct 20, 2026 (6d)
Matched via arXiv identifier search · Strong overlap with paper title keywords
- No Docker setup
- Maintenance
- Active
- Confidence
- Low
- Reproducibility
- Strong
- Stars
- 274
- Last push
- Oct 20, 2026 (6d)
Matched via arXiv identifier search · Community adoption signal (274 stars)
- No tagged releases
- No Docker setup
- Low confidence match
- Maintenance
- Active
- Confidence
- Low
- Reproducibility
- Moderate
- Stars
- 34
- Last push
- Oct 20, 2026 (6d)
Matched via arXiv identifier search · Community adoption signal (34 stars)
- No CI pipeline detected
- No tagged releases
- No Docker setup
Reproduction readiness
Ready to run
Ready to reproduce
- Clone programasweights/programasweights-python and install dependencies from pyproject.toml.
- CI pipeline detected, so automated tests are in place.
- Last updated 6 days ago.
Quick start
git clone https://github.com/programasweights/programasweights-python.git
pip install -e . Validation caveat
Repositories and ecosystem
Official
No additional official repositories detected.
Community
- programasweights/compile-by-trainingConfidence: Medium
Compile natural-language function descriptions into reusable local PAW programs.
18 stars · 3 forks · Last push Oct 20, 2026 · MIT license
- programasweights/skillsConfidence: Medium
ProgramAsWeights agent skill - compile natural-language specs into tiny, locally-running neural functions for fuzzy text tasks (classify, extract, repair, fuzzy-match, triage, route). npx skills add programasweights/skills
9 stars · 2 forks · Last push Oct 20, 2026 · MIT license
These repositories had low-confidence matching signals and are hidden by default.
- programasweights/claudish
Confidence: Low · 274 stars
- programasweights/pii
Confidence: Low · 34 stars
- programasweights/paw-helper
Confidence: Low · 6 stars
- programasweights/rules-as-programs
Confidence: Low · 9 stars
- programasweights/programasweights-js
Confidence: Low · 22 stars
Hugging Face artifacts
No direct paper-linked artifacts were found. Showing strongest curated related artifacts for faster exploration.
Models
No trustworthy models matches right now.
Search models on Hugging FaceDatasets
- bitext/Bitext-customer-support-llm-chatbot-training-dataset
8,986 downloads · 204 likes · Updated Jul 18, 2024
- bitext/Bitext-retail-ecommerce-llm-chatbot-training-dataset
1,769 downloads · 21 likes · Updated Aug 5, 2024
Broaden dataset search
Spaces
No trustworthy spaces matches right now.
Search spaces on Hugging FaceResearch context
Tasks
None detected
Methods
LoRA / Parameter-efficient tuning
Domains
None detected
Open this paper in HFEPX to review benchmark signals, evaluation modes, and human-feedback protocol context.
Open in HFEPXJump to Paper2Code search queries derived from this paper's research context.