Conceptio › Archive › arXiv CS
arXiv CS open access

Compile by Training: Turning Natural-Language Specifications into Local Neural Functions

2026 · arxiv_cs
arXiv CS · Papers · 2026
Open Source ↗Direct PDF ↓
neural-networks
Conceptio Open Archive

Analyze & explore related research in Conceptio

Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.

Compile by Training: Turning Natural-Language Specifications into Local Neural Functions Yuntian Deng University of Waterloo yuntian@uwaterloo.ca

Pengyu Nie University of Waterloo pynie@uwaterloo.ca

arXiv:2609.04199v1 [cs.CL] 3 Sep 2026

Abstract 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 taskspecific 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.

1

Introduction

Consider an email-triage function that maps “Signature needed by EOD” to immediate, but maps a newsletter to wait. The intended behavior is easy to describe and useful across thousands of messages, yet tedious to encode as rules. A generalpurpose remote LLM can perform the task, but calling it for every message repeatedly incurs network latency, provider cost, and dependence on an external service. Many recurring text functions fall between these two options: they are too fuzzy for conventional code, but too narrow and frequent to justify a large-model call at every invocation. We propose compile by training: use large models once to build a smaller, reusable neural function. A developer writes a natural-language specification, teacher models generate examples of the desired behavior, and gradient descent uses those examples

Stuart Shieber Harvard University shieber@seas.harvard.edu

to specialize a compact interpreter. Compilation takes roughly a minute, but the resulting function can then process new inputs without calling the teachers. In this view, adaptation becomes a software build step, and large language models act as tool builders rather than run-time dependencies. Our system builds on Program-as-Weights (PAW) (Zhang et al., 2026), in which a neural program specializes a shared local interpreter. PAW introduced an amortized compiler that predicts such a program in a single forward pass. This makes compilation fast, but spends the same fixed amount of computation on every function. Compile by training retains the same program format and runtime interface, uses the amortized prediction as a starting point, and then invests additional computation in teacher synthesis and specification-specific optimization. The resulting programs can still be versioned, cached, and composed with ordinary software. This approach raises three practical questions. First, does the additional compile-time investment produce better functions than one-shot weight prediction? Second, can a minute-scale build remain usable in an interactive service? Third, can independently compiled neural functions serve as components in larger applications? We evaluate correctness on FuzzyBench-Hard, a subset of examples for which the PAW fast compiler produced no exact matches. We also measure latency and responsiveness in our deployed compiler and demonstrate composition in a multi-site website helper, a language-controlled 3D avatar, and a bidirectional English–Claudish translator. An online demo is available at https://programasweights.com/ playground?compiler=paw-ft-bs48.

2

System Overview

The system separates building a neural function from using it. A developer first describes the de-

(1) Specify and compile

(2) Continue working

Program Specification

(3) Run locally, repeatedly

Documentation

import programasweights as paw

Return IMMEDIATE for deadlines or action items. Return WAIT for newsletters and FYI messages.

fn = paw.function( "4ef336f9506380706185" ) fn("Signature needed by EOD") # -> immediate attention

Training

73%

Email Triage Compile · Finetuned Standard

compile time: hosted teachers + GPU

run time: local interpreter

Figure 1: One specification, one compile job, one local function. The running email-triage example is entered in the public playground, compiled asynchronously while the user continues browsing, and then invoked through the local SDK. The teacher and GPU are compile-time dependencies; repeated function calls use the packaged program.

sired behavior in natural language and compiles that specification into a reusable program. The completed program can then be invoked repeatedly on new inputs without calling the teacher models again. Formally, the system exposes the interface ps = Compile(s),

ŷ = Run(ps , x),

3

Compile by training turns a natural-language specification into a reusable neural program in two stages. First, teacher models synthesize examples of the desired function. Second, those examples specialize a lightweight adapter for a shared interpreter, which is then packaged for future execution. 3.1

where s is a natural-language function specification, ps is the compiled program, x is a new input, and ŷ is the program’s output. A shared frozen language model serves as the interpreter, while each compiled program supplies the adapter and prompt that specialize it for one function. Figure 1 shows the corresponding user workflow: 1. Specify. Describe a text-to-text function in natural language. 2. Compile. Submit a build job and monitor its queue and training progress. 3. Run. Open or download the completed program and invoke it on new inputs through the SDK. The downloaded .paw artifact packages the specification and the components needed to specialize the shared interpreter. It can be stored, versioned, cached, and reused like an ordinary software artifact. During execution, the SDK combines each new input with the program’s run-time prompt and adapter, then runs the shared interpreter. Compilation is a hosted process: the function specification is sent to the PAW service and teacher APIs to generate supervision and train the program. By contrast, local SDK execution does not send future inputs to PAW or the teachers.

Compile by Training

From Specification to Supervision

A specification describes the desired behavior but does not provide enough labeled examples to train it directly. We therefore use one or more teacher models to synthesize a task-specific dataset Ds = {(xi , yi )}ni=1 ∼ T (s), where s is the specification and each pair illustrates how the function should map an input xi to an output yi . Teacher requests use a structured JSON format so that generated examples can enter the training pipeline automatically. The compiler validates each response and rejects malformed or incomplete batches before making accepted examples available to the trainer. Our public service combines a lower-cost teacher, which supplies most of the examples, with a larger teacher that contributes complementary supervision. For example, for a specification that extracts arXiv identifiers from /pdf/ links while ignoring /abs/ links, a teacher-generated example is: Input: Check these papers: https://arxiv. org/pdf/2607.02512.pdf and https://arxiv. org/abs/2507.08800. Output: ["2607.02512"]

3.2

Specialization and Packaging

Training a separate full model for every specification would make compilation and storage prohibitively expensive. Instead, all programs share a frozen Qwen3-0.6B interpreter (Yang et al., 2025), and each function is represented by a lightweight LoRA adapter (Hu et al., 2022) and a run-time scaffold. Here, the scaffold is a compiler-generated prompt template that encodes the user’s free-form specification as structured task instructions and examples and leaves a placeholder for the run-time input. The amortized PAW compiler provides the ini(0) tial adapter parameters θs and scaffold rs . This prediction takes seconds and provides a functionspecific starting point, which is then refined using the synthesized dataset. Training minimizes X L(θs ) = − log pθs (y | rs (x)) . (x,y)∈Ds

After optimization, the compiler packages the adapter θs , scaffold rs , original specification, and interpreter metadata into the program ps . Figure 2 summarizes this path from a natural-language description to a reusable artifact. Public configuration. The public Finetuned Standard compiler uses a quantized Qwen3-0.6B interpreter, mixed teachers, a rank-64 LoRA adapter with alpha 16, an amortized-compiler warm start, and a 100-step cosine schedule. Appendix Table 2 gives the complete recipe.

4

Interactive Minute-Scale Compilation

Compile by training takes tens of seconds rather than a single model call. To make this build step usable interactively, the system must both shorten the critical path and let users continue working while compilation proceeds. We address these requirements at three levels: overlapping synthesis with training, coordinating work across shared workers, and presenting each compile as a persistent background job. 4.1

Overlapping Synthesis and Training

In a sequential pipeline, the compiler would wait for all teacher-generated examples before loading the interpreter and beginning optimization. This leaves the GPU idle while waiting for the slowest teacher responses. Our deployed streaming compile path instead starts teacher requests, model loading, and training concurrently.

Training begins as soon as the examples required for its first batch are available and blocks only if it catches up with synthesis. Because teacher responses may arrive at different times, the scheduler assigns incoming examples to open slots needed by earlier batches first, without changing the accepted examples or their prescribed training order. This overlap shortens the critical path because teacher synthesis is substantially slower and more variable than an individual training step. 4.2

Coordinating Jobs and Reusing Work

The service separates job coordination from the compilation workers that perform synthesis and training. The API maintains a persistent record of each submitted job, while a shared queue dispatches pending jobs to available GPU workers. Before requesting new examples, workers check the cache and reuse matching teacher outputs. Completed programs are written to a shared artifact store and linked back to the persistent job record. Figure 3 summarizes this service architecture. This separation allows the API to remain responsive while workers execute long-running builds, and it keeps available GPUs supplied with compilation jobs. 4.3

Interaction Design

The interface treats compilation as a background software build rather than a blocking form submission. After submitting a specification, users can continue browsing while the interface reports the job’s queue position and training progress. The job and its progress persist across page navigation and reloads, as illustrated in Figure 1(2). When compilation finishes, the same job record provides access to the completed program.

5

Evaluation and Validation

5.1

Metric and benchmark

For many tasks, multiple outputs can all be valid. For example, two JSON outputs may contain the same values while differing only in whitespace or key order, yet an exact-match metric would treat them as different. We therefore report LLM Exact Match (LEM): the fraction of predictions that an LLM judge considers semantically correct according to the specification. Each judgment is based on the specification, input, reference output, and model prediction. The selected GPT-5.5 judge reaches 0.977 accuracy and Cohen’s κ = 0.946

COMPILE TIME — hosted service Warm-start adapter + run-time scaffold

Function specification

Teacher APIs synthesize pairs

Validate examples

Train LoRA adapter

Package program adapter + scaffold + metadata

load once

RUN TIME — repeat locally without teacher calls Interpreter + adapter + run-time scaffold

New input

Output

Figure 2: Compile by training. At compile time, teacher models turn a specification into validated supervision, which specializes a LoRA adapter for a compact frozen interpreter. The compiler packages the adapter and run-time scaffold into a reusable program, which handles new inputs at run time without teacher calls.

against 128 author labels (Appendix Table 3). Appendix E gives the full grader prompt and user template. We evaluate on FuzzyBench-Hard, a subset of the FuzzyBench benchmark used to evaluate PAW (Zhang et al., 2026). The subset consists of specifications for which the PAW fast compiler produced no exact matches. As shown below, however, the fast compiler has a nonzero LEM score because some predictions are semantically correct even though they do not exactly match the reference outputs. 5.2

Does training improve correctness?

Figure 4 compares the two compilers on FuzzyBench-Hard. Compile by training improves mean LEM by 0.612 absolute, from 0.224 to 0.836. This improvement comes at the cost of longer compilation: 50.9 seconds, compared with 3.5 seconds for PAW’s fast amortized compiler. 5.3

How do supervision choices affect correctness?

Table 1 reports existing sweeps on the development specifications. With 3600 unique pairs repeated to form a 6400-example training set, a 2:1 mixture of GPT-5.4-mini and GPT-5.5 supervision raises mean LEM from 0.746 to 0.851 relative to GPT5.4-mini alone. In a separate data-scaling sweep, mean LEM rises from 0.821 with 1440 unique pairs to 0.836 with 2400, remains 0.836 with 3600, and reaches 0.866 with 7200. Appendix C provides details of the sweep.

sweep

setting

LEM

teacher mix teacher mix data scaling data scaling data scaling data scaling

mini only (3600/0) 2:1 mini/GPT-5.5 (2400/1200) 1440 unique pairs 2400 unique pairs 3600 unique pairs 7200 unique pairs

0.746 0.851 0.821 0.836 0.836 0.866

Table 1: Mean LEM across controlled teacher-mixture and data-scaling sweeps.

5.4 Is compilation fast enough for interaction? We measured compile latency at service launch in May 2026. A cold compile (with no cached teacher outputs) of the same representative specification took 50.9 s on a B300, 68.2 s on an H200, and 99.2 s on an RTX GPU. In a load test in which four compile jobs were submitted concurrently, all four completed with a mean queue wait of 1.01 s and even utilization across workers. Because teacher synthesis dominates end-to-end latency, overlapping synthesis with training directly shortens the critical path of our service.

6

Deployment and Applications

6.1

Composing many compiled functions

FuzzyBench-Hard evaluates compiled functions individually. Real applications may need several compiled functions to work together with ordinary code. Paw-helper demonstrates this setting in a deployed website assistant. Paw-helper1 separates a generic pipeline execuhttps://github.com/programasweights/ paw-helper 1

FINETUNE SERVICE assign submit

Web UI or SDK

enqueue

API + job store

store

GPU worker pool synthesize, train, package

Shared job queue

Program store .paw artifact

progress

Shared teacher-output cache

Teacher APIs missing examples

Solid: jobs and artifacts; dashed: progress and external/cache traffic

Figure 3: Deployed finetune service. The API submits a job to a shared queue, which assigns it to an available GPU. Workers reuse cached teacher outputs, call teachers for missing examples, execute the compiler in Figure 2, and report progress. Completed artifacts are stored centrally and returned through the same job record. Solid arrows are requests or artifacts; dashed arrows are status and cache traffic.

another compiled function answers using the most relevant post, and a final function decides whether to return the course answer, the Piazza answer, or both. Figure 5 shows this process and the resulting answer.

FuzzyBench-Hard

Compile by training 0.836

Amortized PAW 0.224

+0.612 LEM

0.0

0.2

0.4

0.6

0.8

1.0

Mean LLM Exact Match (LEM)

Figure 4: Compile-time optimization buys a large correctness gain. Mean LEM on FuzzyBench-Hard for PAW’s fast amortized compiler and our compile-bytraining compiler.

tor from a site-specific content pack. The deployed pack contains 30 compiled programs; 28 participate in live routing, while two support evaluation and backward compatibility. One backend serves four websites: the first author’s personal website, the site for his introductory AI course at the University of Waterloo (CS 486), NeuralOS (Rivard et al., 2026), and the PAW website. The router receives the current website and page as context and sends each question through only a small part of the tree. When a student asks, “What changed about Assignment 1?”, paw-helper first decides whether the question calls for a link or a written answer. Since this one calls for a written answer, one compiled function drafts a response using the course page. In parallel, ordinary BM25 retrieval searches Piazza,

This illustrates the general division of labor: compiled functions make fuzzy decisions, while ordinary code handles exact operations such as retrieval, caching, and branch control. 6.2

Generating executable behavior

To demonstrate an output richer than a label or free-form answer, Avatar Director2 lets a user control a 3D character with natural-language instructions. For example, a user can ask it to “jump twice, then dance,” and the avatar performs those actions in order. A finetuned PAW program translates the natural-language instruction into a small action DSL. The DSL supports sequences, durations, repetition, and compatible parallel motions, and the browser validates and executes it to animate the character. Users can therefore describe the motion in their own words rather than writing the action program themselves. On 44 hand-authored validation instructions, the program produced the expected action structure in 43 cases. Figure 6 shows the generated action program and the resulting browser animation. 2

https://programasweights.com/avatar

(a) One question through the program tree

(b) Live cited answer

30 pinned programs, 28 active neural nodes four page contexts; solid = this route; dashed = off-path

Page context + question

Route site / topic

Classify link / answer

parallel

link

Search Piazza (BM25)

Course answerer + validator

Open link

Selector + Piazza answerer

reject

“I don't know”

A live CS486 request returns a course answer and a clickable Piazza citation.

Choose main, combined, or Piazza

Cited course answer

Figure 5: A website helper as a program tree. (a) A page-aware question is routed through finetuned classifiers, answerers, selectors, and validators alongside deterministic links and retrieval. The highlighted CS486 path combines the course answer with a Piazza search and merge. (b) The live course helper returns the result. (a) Instruction

Natural-language request

Act excited, wave, dance, then sit proudly.

(b) Action DSL

(c) Browser runtime

ACTION PROGRAM

excited wave dance sit_proud

parser: allowed verbs + AST bounds

Figure 6: From language to executable behavior. A finetuned PAW program maps a natural-language command to an action program; deterministic browser code parses and validates the DSL before rendering the resulting motion. In the live web demo, DSL interpretation and 3D rendering run in the browser.

6.3

Translating between English and Claudish

Claudish has recently emerged as an informal name for the distinctive prose style associated with Claude Code.3 The style often uses explicit contrasts; metaphors of gates, boundaries, and loadbearing structure; and hyphenated constructions such as X-shaped and X-gated. We built a live bidirectional translation service between Claudish and plain English.4 To build the translator, we wrote one naturallanguage specification for each direction. The 3

Our demo was inspired by the earlier Claudish-to-English project; see also Lorenz (2026) for a broader discussion of the term. 4 https://programasweights.com/claudish

English-to-Claudish specification asks the program to preserve the input’s meaning while adopting the style’s characteristic vocabulary, compounds, rhetorical patterns, and sentence structures. For the reverse Claudish-to-English direction, the specification asks the program to rewrite the input in direct English, removing redundant contrasts and structural metaphors while preserving its meaning. Compile by training synthesized examples from these specifications and finetuned one adapter per direction for the shared 0.6B interpreter. The resulting two programs power the live service. Figure 7 shows one translation in the web interface. Both programs can also be downloaded and run locally; their specifications and supporting

Figure 7: English to Claudish. The live interface applies the English-to-Claudish PAW program to a plain-English sentence. Switching direction invokes the separately finetuned Claudish-to-English program.

code are available in a public repository.5 Between its public launch on August 22 and September 2, 2026, the web demo completed 100,747 successful translation requests.

7

Related Work

Synthetic supervision and parameter-efficient adaptation. Large models can generate instruction-following examples for training smaller models, while knowledge distillation trains a smaller model to imitate a larger teacher (Wang et al., 2023; Taori et al., 2023; Hinton et al., 2015; Hsieh et al., 2023). Compile by training applies both ideas to one user-defined function: teachers generate input-output pairs from its specification, and those pairs train a LoRA adapter for the compact interpreter. LoRA (Hu et al., 2022), adapters (Houlsby et al., 2019), prefix/prompt tuning (Li and Liang, 2021; Lester et al., 2021), QLoRA (Dettmers et al., 2023), and AdaLoRA (Zhang et al., 2023) reduce adaptation cost by updating only a small set of parameters. Prompt2Model (Viswanathan et al., 2023) turns a task description into a finetune pipeline, and LoRA Land (Zhao et al., 2024) serves many task-specific LoRA adapters on a shared base model. Our system produces a versioned program for a shared frozen interpreter and uses an amortized compiler to initialize specification-specific training.

8

Conclusion

We introduce compile by training, which compiles a neural program from a user-provided function 5

https://github.com/programasweights/claudish

description. It first uses large language models to synthesize examples from the description, then finetunes a LoRA adapter to specialize a smaller interpreter model. This adds another point to PAW’s speed–accuracy tradeoff: the fast compiler generates a LoRA adapter in a single forward pass and takes seconds, while compile by training spends roughly a minute to obtain higher accuracy. On FuzzyBench-Hard, a set of tasks for which the PAW fast compiler produced no exact matches, compile by training reaches 83.6% semantic accuracy. We added it to the public PAW demo as another option in the same compiler interface and used the resulting programs to build a multi-site website helper, a language-controlled 3D avatar, and a bidirectional English–Claudish translator.

9

Limitations

Synthetic supervision may inherit teacher errors. Applications that require guaranteed correctness should validate outputs or retain deterministic control paths. Our application evidence focuses on composition and structured execution; systematic user studies are future work.

Acknowledgments Yuntian Deng acknowledges support from NSERC under funding reference RGPIN-2024-05178 and from a Google Research Award for Machine Learning Research and Education with TPUs. Pengyu Nie acknowledges support from NSERC under funding reference RGPIN-2024-04909.

References Tim Dettmers, Artidoro Pagnoni, Ari Holtzman, and Luke Zettlemoyer. 2023. QLoRA: Efficient finetuning of quantized LLMs. In Advances in Neural Information Processing Systems, volume 36, pages 10088–10115. Curran Associates, Inc. Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. 2015. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531. Neil Houlsby, Andrei Giurgiu, Stanislaw Jastrzebski, Bruna Morrone, Quentin De Laroussilhe, Andrea Gesmundo, Mona Attariyan, and Sylvain Gelly. 2019. Parameter-efficient transfer learning for NLP. In Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pages 2790–2799. PMLR. Cheng-Yu Hsieh, Chun-Liang Li, Chih-kuan Yeh, Hootan Nakhost, Yasuhisa Fujii, Alex Ratner, Ranjay Krishna, Chen-Yu Lee, and Tomas Pfister. 2023. Distilling step-by-step! outperforming larger language models with less training data and smaller model sizes. In Findings of the Association for Computational Linguistics: ACL 2023, pages 8003–8017, Toronto, Canada. Association for Computational Linguistics. Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2022. LoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations. Brian Lester, Rami Al-Rfou, and Noah Constant. 2021. The power of scale for parameter-efficient prompt tuning. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 3045–3059, Online and Punta Cana, Dominican Republic. Association for Computational Linguistics. Xiang Lisa Li and Percy Liang. 2021. Prefix-tuning: Optimizing continuous prompts for generation. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 4582– 4597, Online. Association for Computational Linguistics. Luke Rivard, Sun Sun, Hongyu Guo, Wenhu Chen, and Yuntian Deng. 2026. NeuralOS: Towards simulating operating systems via neural generative models. In International Conference on Learning Representations. Rohan Taori, Ishaan Gulrajani, Tianyi Zhang, Yann Dubois, Xuechen Li, Carlos Guestrin, Percy Liang, and Tatsunori B. Hashimoto. 2023. Stanford alpaca: An instruction-following LLaMA model. https:// github.com/tatsu-lab/stanford_alpaca.

Vijay Viswanathan, Chenyang Zhao, Amanda Bertsch, Tongshuang Wu, and Graham Neubig. 2023. Prompt2Model: Generating deployable models from natural language instructions. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, pages 413–421, Singapore. Association for Computational Linguistics. Yizhong Wang, Yeganeh Kordi, Swaroop Mishra, Alisa Liu, Noah A. Smith, Daniel Khashabi, and Hannaneh Hajishirzi. 2023. Self-instruct: Aligning language models with self-generated instructions. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 13484–13508, Toronto, Canada. Association for Computational Linguistics. An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, Chujie Zheng, Dayiheng Liu, Fan Zhou, Fei Huang, Feng Hu, Hao Ge, Haoran Wei, Huan Lin, Jialong Tang, and 41 others. 2025. Qwen3 technical report. Preprint, arXiv:2505.09388. Qingru Zhang, Minshuo Chen, Alexander Bukharin, Pengcheng He, Yu Cheng, Weizhu Chen, and Tuo Zhao. 2023. Adaptive budget allocation for parameter-efficient fine-tuning. In The Eleventh International Conference on Learning Representations. Wentao Zhang, Liliana Hotsko, Woojeong Kim, Pengyu Nie, Stuart Shieber, and Yuntian Deng. 2026. Program-as-weights: A programming paradigm for fuzzy functions. Preprint, arXiv:2607.02512. Justin Zhao, Timothy Wang, Wael Abid, Geoffrey Angus, Arnav Garg, Jeffery Kinnison, Alex Sherstinsky, Piero Molino, Travis Addair, and Devvret Rishi. 2024. LoRA land: 310 fine-tuned LLMs that rival GPT-4, a technical report. Preprint, arXiv:2405.00732.

A

Additional Experimental Details

User template.

This appendix collects the details most useful for interpreting the main paper.

Generate {n} diverse (input, output) example ,→ pairs that follow this specification.

item

value

interpreter

Qwen3-0.6B with a quantized local runtime GPT-5.4-mini and GPT-5.5 in a 2:1 mixture 2400 unique pairs expanded to 6400 training examples batch 48; 100 steps; cosine learning-rate decay LoRA rank 64, alpha 16; hypernetwork initialization shuffled batches with synthesis and training overlapped

[SPEC] {spec} [END_SPEC]

teachers data optimization adapter execution

Table 2: Public Finetuned Standard configuration.

B

LEM Grader Summary

LLM Exact Match (LEM) is the mean of binary, specification-grounded semantic-correctness judgments over (specification, input, reference output, model output). The selected GPT-5.5 grader tolerates formatting differences but rejects errors in values, order, structure, or logic, as well as inappropriate refusals. grader

n

acc

FPR

FNR

kappa

GPT-5.5 GPT-5.4-mini

128 128

0.977 0.938

0.025 0.05

0.023 0.068

0.946 0.858

Table 3: Compact LEM grader validation.

C

Supervision Sweep Protocol

Main Table 1 reports existing sweeps on the development specifications. The teacher-mixture rows compare counts of GPT-5.4-mini and GPT5.5 examples while repeating 3600 unique pairs to form 6400-example training sets and holding batch 64, learning rate 2 × 10−4 , and 100 steps fixed. The data-scaling rows use batch 48, learning rate 2 × 10−4 , and 100 steps.

D

Teacher Synthesis Prompt

Both teachers use the following template, with n and the submitted specification filled in for each request. System prompt. You synthesize tiny supervised datasets for ,→ finetuning small language models from a ,→ natural-language task specification. ,→ Return strict JSON with a top-level key ,→ 'examples'. Each example must be an ,→ object with string keys 'input' and ,→ 'output'.

E

LEM Grader Prompt

System prompt. You are an evaluator for a 'fuzzy function' benchmark. Each item is a ,→ natural-language SPECIFICATION of a ,→ function, an INPUT, a REFERENCE OUTPUT ,→ ,→ (one valid answer for that input under ,→ the spec), and a MODEL OUTPUT (the ,→ candidate to be judged). Your job is a strict semantic-equivalence ,→ judgement: decide whether the MODEL ,→ OUTPUT is a CORRECT application of SPEC ,→ to INPUT. Use these rules: 1. Treat the SPEC as the source of truth. ,→ The REFERENCE OUTPUT is one valid answer; if the spec admits multiple ,→ equally-valid outputs (e.g. 'list of ,→ items' without pinning bullet style or ,→ ,→ JSON spacing), accept any output that is correct under the spec, even if it ,→ differs cosmetically from the reference. ,→ 2. IGNORE these cosmetic differences when ,→ they are not explicitly required by the ,→ spec: - whitespace (extra/missing spaces, ,→ newlines, tabs, trailing whitespace) - JSON-key/value spacing ({"a":1} vs {"a": ,→ 1}) and indentation, key order in ,→ objects when the spec doesn't pin it - bullet style ('- x' vs '* x' vs '1. x' ,→ vs 'x\n') - trailing punctuation that doesn't ,→ change meaning - whether a string is wrapped in quotes ,→ when the spec admits either form - case differences in tokens that are not ,→ case-sensitive per the spec 3. Do NOT ignore SUBSTANTIVE differences: - different values, missing items, extra ,→ items - wrong order when the spec requires a ,→ specific order - structurally different (list vs scalar, ,→ object vs array) - factual or logical errors - a model output that says 'I cannot' or ,→ refuses, while the reference produces ,→ a valid answer 4. If the spec EXPLICITLY pins a format ,→ (e.g. 'output must be a JSON array of ,→ strings'), enforce that format strictly.

5. OUTPUT CONTAINER FLEXIBILITY. If the spec ,→ specifies WHAT to output (e.g. "output ,→ normalized identifiers like '#123'") but ,→ does NOT specify HOW to PACKAGE multiple ,→ outputs (no explicit mention of 'JSON ,→ array', 'newline-separated list', ,→ 'comma-separated', etc.), accept any ,→ reasonable container that lists the same ,→ values in the same order -- e.g. ,→ gt='["#5", "#6", "#7"]' and ,→ pred='#5\n#6\n#7' are equally valid when ,→ the spec only asks for 'identifiers' ,→ without pinning the container. Container ,→ flexibility does NOT extend to changing ,→ values, item count, or order. 6. If the model output is empty or ,→ whitespace-only and the spec calls for a ,→ non-empty answer, mark INCORRECT. Output a single JSON object with two keys: reason -- 1-3 sentences explaining the ,→ judgement, citing the specific rule ,→ above when relevant. verdict -- exactly the string "CORRECT" ,→ or "INCORRECT". Reason FIRST, then verdict. Do not include ,→ any prose outside the JSON. If unsure, ,→ default to INCORRECT.

User template. [SPEC] {spec} [END_SPEC] [INPUT] {input} [END_INPUT] [REFERENCE_OUTPUT] {gt} [END_REFERENCE_OUTPUT] [MODEL_OUTPUT] {pred} [END_MODEL_OUTPUT] Return JSON: {{"reason": "...", "verdict": ,→ "CORRECT" | "INCORRECT"}}

Related documents

Record · ID 639651 · SHA-256 c4431a73e71432f3
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Bring this data into your agent: Connect via MCP or API · 20 free credits to start · no card required
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive