Identifying what an unseen network does, building a network that handles new inputs, and improving a model without losing required behavior are different claims. A useful evaluation makes the intended claim precise and measures the behavior that matters to its users.
Start with the prediction#
| Claim | Observable test | Information to record |
|---|---|---|
| Read a network | Predict its outputs, identify its task, or explain a specified intervention. | Weights, architecture, labels, tools, and execution access. |
| Construct a network | Run it on new inputs with independently determined answers. | Specification, examples, construction procedure, and candidate selection. |
| Edit a model | Measure the target change and behaviors that must remain intact. | Original checkpoint, edit, development feedback, and decoding settings. |
| Deploy a reusable function | Reload and call its saved program in the intended application. | Program files, interpreter, dependencies, and workload. |
A correct task name does not answer every question about a network. If the application needs to predict failures, test failure prediction. If it needs a sorted sequence, compare the complete output with an exact implementation. Set the target before choosing the final artifact.
Worked example: an email-urgency function#
Suppose a function labels an email urgent when the recipient must act within the next 24 hours. Its input includes the current time and the email text. Its output is one of two labels, urgent or not_urgent. The test is whether its labels implement this specification on new messages.
| Test case | Expected label | What it tests |
|---|---|---|
| “Please approve the order by 3 p.m. today.” Current time: 10 a.m. | urgent | A deadline requiring action within 24 hours. |
| “Your confirmation: the meeting starts in two hours. No action is required.” | not_urgent | A near-term event without required action. |
| “URGENT: please review the draft next week.” | not_urgent | A subject-line cue that conflicts with the actual deadline. |
| “Please approve by 9 a.m. tomorrow.” Current time: 10 a.m. today. | urgent | A deadline crossing a calendar boundary. |
These are expected labels derived from the example specification, not measured model outputs. Keep development messages separate from the evaluation set. Include paraphrases, timezone boundaries, long messages, quoted old requests, and missing deadlines. Define how missing information should be handled before scoring those cases.
Record false negatives and false positives separately. A missed approval deadline and an unnecessary notification have different consequences. If a candidate fails on quoted text, revise it using development examples and evaluate the revised candidate on fresh messages.
Count what went into the selected artifact#
Save the specification, prompts, model revisions, initial weights, examples, tool access, and construction settings. Record each candidate and why it was retained or rejected. Count target-model executions and optimization steps as well as model calls. An attempt that produces invalid weights still belongs in the attempt count.
Use development data to select candidates and untouched test data to estimate the selected candidate’s performance. Choosing the best test score turns that test set into selection data. After changing the specification in response to a test failure, evaluate the new specification on fresh cases.
Make the comparison answer the claim#
For the email function, compare direct prompting and compiled execution on identical inputs and labels. Include task-specific fitting when that is an available implementation choice. Use the same output validation and state the preparation each method receives. A comparison of deployment costs should account for the work already spent constructing the function.
For exact computations, Tracr’s formal compilation supplies a useful contrasting mechanism: a source program determines the transformer’s computation. For a model edit, compare the unchanged checkpoint and other interventions aimed at the same failure. For weight reading, compare against simple analyses of the same input information.
The controlled Sparks replication uses shuffled weights, new games, and code-policy comparisons to separate explanations. A shuffled-weight control asks whether the parameters carry the answer. A changed game tests transfer. A code-policy comparison asks what the neural representation adds to the chosen strategy.
Measure construction and repeated use#
Measure the complete path to a usable result: construction, saving, model loading, input preparation, inference, and output validation. Report cold-start and warm-call latency separately, together with memory and the hardware used. The time to generate an answer is useful when the answer also passes the required format and correctness checks.
Total cost for N calls
= construction and selection
+ loading and setup
+ N × average cost per usable callUse measured costs in the same units and state the workload. A high construction cost is amortized over repeated calls; it remains relevant for functions rebuilt frequently. Include failed candidates in construction cost and retries in execution cost. Report the quality of the outputs alongside the cost.
PAW’s limitations section identifies dependence on the interpreter, opaque continuous parameters, and errors associated with its generated training data. For a compiled function, test the actual interpreter revision, application inputs, and output requirements. A compact adapter does not specify its full execution environment.
Test the application that calls the functions#
An email assistant can first extract a deadline, then classify urgency, then decide whether to notify the user. Test each function and the final notification decision. A correct urgency classifier still produces a wrong notification if the deadline extractor supplies yesterday’s quoted deadline.
- Save intermediate outputs so each application failure can be traced to its source.
- Compare the final decision with the required decision, not merely the validity of each output.
- Test missing fields, malformed values, and conflicting evidence at function boundaries.
- Measure the complete application’s latency and cost, including repeated calls and validation.
The reusable-function walkthrough explains how a saved program is called from an application. Component scores and application scores answer different questions; report both when the application uses several functions.
Reload the result#
Start a clean process, load the saved artifact, and rerun the evaluation without access to the construction session. Record the program or checkpoint identifier, interpreter revision, inference settings, dependencies, inputs, and expected outputs. Test the input lengths and formats used in deployment.
For a model edit, preserve both the original and edited checkpoints. For generated weights, preserve the construction program as well as its output. A runnable artifact and a record of its measured behavior let another reader reproduce the result and investigate a disagreement.
A compact experiment worksheet#
| Field | Email-function example |
|---|---|
| Claim | Identify messages requiring action within 24 hours. |
| Available information | Current time, timezone, email text, and the function specification. |
| Tools and feedback | Record the compiler or editing procedure and the examples it receives. |
| Selection | Record candidates and a rule based on development-set errors. |
| Comparison | Direct prompting and compiled execution on the same inputs. |
| Held-out test | Fresh messages, paraphrases, date boundaries, and quoted requests. |
| Retained behavior | Correct non-urgent labels, output format, and deadline handling. |
| Cost | Construction, loading, usable-call latency, memory, and calls per workload. |
| Saved result | Program identifier, interpreter revision, environment, and evaluation outputs. |