POLARIS FIELD GUIDE / 3 MIN READ
Designing out-of-distribution tests for AI redaction
An out-of-distribution redaction test examines material that differs from the examples used to develop the detector. Useful shifts include unfamiliar document sources, broken OCR, new business terminology and mixed structured text. Keep the evaluation set separate from tuning, describe the shift and inspect errors by slice. Polaris-Mist achieves an F1 of 0.993 on its 64-document blind enterprise suite.
Name the shift you want to test
Out of distribution becomes meaningful when the difference is explicit. Examples include a new supplier invoice layout, confidential acquisition project names and identifiers newly embedded in nested log fields. These are different problems and deserve separate labels in the test inventory.
Write a shift statement for each slice: what the detector has previously seen, what is new, and which sensitive classes appear. This prevents a broad label from concealing a test made mostly of familiar examples.
Hold out whole sources
Keep documents from an unseen source together. Splitting pages from the same template between development and evaluation can make a new page look unfamiliar while retaining its underlying structure. Use source-level separation for suppliers, document templates or collections when those are the intended deployment shifts.
Maintain a manifest containing a document identifier, source category, collection date, language and annotation revision. The manifest is the practical artifact that lets another reviewer confirm how the test was assembled without receiving the sensitive text itself.
Distinguish authentic mess from constructed stress
Real extraction errors and constructed stress cases have complementary uses. Real examples show the failures that occur in the actual document path. Constructed variants let you isolate a cause, such as inserted whitespace, broken punctuation or field reordering. Label the origin of each case in the evaluation inventory.
When creating variants, preserve the underlying confidentiality policy. Changing a company name into a random token can alter the detection problem. Keep a linked original so an engineer can determine whether the transformation or the detector caused the failure.
Measure the difficult slices independently
Report results for OCR, structured exports, operational logs and domain terminology alongside the overall score. Review missed spans and unnecessary changes in each slice. An average tells the reader where to start; slice-level evidence identifies what needs to change.
The Polaris-Mist blind enterprise set includes broken OCR, CSV/JSON, DevOps logs and M&A terms. Its F1 is 0.993. Microsoft Presidio, Piiranha-v1 and GLiNER-multi-PII score 0.348, 0.410 and 0.716 respectively in that same suite.
Keep the next blind set genuinely new
Once engineers inspect errors and tune against them, those cases become development knowledge. Preserve them as regression tests and collect a fresh source holdout for the next independent check. Keep the two roles clear in the release report so an improvement on known failures and performance on unseen material can both be examined.
Assign each discovered error an owner, proposed correction and verification case. For a split identifier, inspect extraction context. For an ordinary project term wrongly removed, inspect the annotation policy. Use the diagnosis to choose the improvement and its verification case.
| Test artifact | Purpose |
|---|---|
| Shift statement | Explains what is unfamiliar |
| Source manifest | Shows how the holdout was separated |
| Slice error register | Locates concrete failures |
| Fresh holdout | Checks the next release on unseen material |
QUESTIONS & ANSWERS
Details that matter.
What makes a redaction test blind?
The evaluation documents and labels are withheld from the development decisions being assessed. Record when the team gains access so later use is categorized correctly.
How do real documents and constructed stress cases work together?
Use both with separate labels. Authentic documents represent the operating path; constructed variants isolate specific formatting or terminology problems.
Which blind-suite result does Mist publish?
Polaris-Mist achieves 0.993 F1 on 64 blind enterprise documents covering OCR, CSV/JSON, logs and M&A terminology.