Measuring it
How to score a system that watches a private life without using that life as test data, why a rule scored on the cases it was tuned on flatters itself, and how cost decides between two options that score alike.
- Build a test set for a system that watches a private life without using that life as data.
- Explain why a rule's score on the cases it was tuned on is not its score.
- Report cost beside quality, and let cost decide between options that score alike.
- State plainly what a set of measurements does not show.
9.1The problem: "it seems to work" about a system nobody can inspect
A recorder runs in the background and an agent reads from it now and then. If its search misses, or it attributes someone else's sentence to its owner, nobody is watching. The only way to know is to ask it questions whose answers are known.
The natural test data is the owner's real days, and that is the one thing that must not be copied into a test file or shown to whoever is building the system. So the data is made up.
9.2A made-up fortnight
The evaluation writes fourteen days of records into a temporary folder: 24 topics, each one thing a person did on one day. A topic has a window, a few lines that were on its screen, sometimes a passage the person typed, sometimes a file. Around them are sixty filler windows that match nothing.
Each topic has three questions: one in its own words ("Kestrel Robotics deck") and two in other words ("the startup making machines that pick items in storage buildings"). A search is right for a question if any of its first five results is a record of that topic.
One topic: a spreadsheet titled "Q3 burn model.xlsx", with lines on screen such as "Runway 14 months at current hiring plan". Its keyword question is "Q3 burn model runway". Its other-words questions are "how many months of cash are left" and "the spreadsheet about spending and hiring freeze". Every company, name and number is invented.
9.3What was measured
| What | Result | Sample |
|---|---|---|
| Search, question uses the record's words | 100% in the first five (42% as first built) | 24 questions |
| Search, asked in other words | 71% in the first five (0% as first built) | 48 questions |
| Where the time went, top item | 24 of 24 | one hour per topic |
| Whose words: typed, pasted, already there | 12 of 12 | scripted sequences of field readings |
| Secrets removed | 26 of 26; 0 of 20 ordinary lines changed | made-up secrets and look-alikes |
| Injections withheld, patterns, first set | 30 of 30; 0 of 40 false alarms | the set the patterns were tuned on |
| Injections withheld, patterns, later set | 4 of 10; 0 of 12 false alarms | written afterwards, never tuned on |
| Injections withheld, with the classifier | 9 of 10; 2 of 12 false alarms | the later set |
9.4A rule scored on its own homework
The two rows for the pattern list are the most useful thing in the table. The list was changed until it caught all 30 injections in the first set with no false alarm. Anyone can do that with enough patterns. The score that says something is the one on cases the rule has never seen: 4 of 10.
- Held-out set
- Test cases that are written, put aside, and never used to change the thing being tested. Once a case has been used to fix a rule, it is no longer held out.
The same caution applies to the search figures, less sharply: the questions "in other words" were written by the same person who chose the model, though the model was not changed in response to them.
9.5Cost beside quality
| Cost | Measured | Note |
|---|---|---|
| Processor | 0.7% of one core over 85 minutes | before search indexing was added; not re-measured over as long since |
| Memory | 180 MB with search; 61 MB before it | about 1 GB with the classifier loaded |
| Disk | about 250 KB per hour of use | over 50 minutes; the index was 2 MB after two hours |
| A search | about 90 ms through the protocol | about 1 s with the classifier on |
| Money | none | the model pass is estimated, not measured |
Three decisions were made by cost, where quality was close or unclear. The 30 MB embedding model over the 67 MB one: two points of recall for five times the time. No reranker: worse and slower. The classifier off by default: it more than doubles what a filter catches, but the filter is the fourth lock and the price is a gigabyte.
9.6What these numbers do not show
- Anything about real days. The sets are made up, small and in English. No question has been scored against a week of actual use. Not tested
- Anything about the model pass. Its rules are tested with a pretend model. Whether a real model's statements about a person are right has not been looked at. Not tested
- A rate. "9 of 10" on ten cases written by the builder shows which way to lean. It does not say how often an injection gets through.
- A full day's cost. The longest run was an hour and a half, partly idle.
- Test a system that watches a private life on a made-up life with known answers.
- Report the score on cases written after the last change, beside the flattering one.
- Measure cost with quality, and let cost decide when quality is close.
- Say what was not measured as plainly as what was.
- The later set of injections has now been published in this chapter's table. Is it still held out? What would you do before changing the patterns again?
- Design the first evaluation on real days that keeps the days private from whoever builds the system. Who writes the questions, and who sees the answers?
- "Recall in the first five" treats the first and fifth result alike. Name a measure that does not, and say when the difference matters to an agent.
- Hard, open: propose a way to measure whether an inferred statement such as "prefers short written updates" is true.