PolarisGet Your Polaris
Menu

POLARIS FIELD GUIDE / 3 MIN READ

How to evaluate sensitive-span redaction

Evaluate sensitive-span redaction by comparing predicted spans with a reference set, then inspecting what those errors do to the finished task. Separate missed sensitive content, unnecessary masking, incorrect boundaries and restoration failures. A useful evaluation combines representative documents, clean controls and business-specific terminology. Publish the scoring rules alongside the results so the same test can be repeated after a model or policy change.

Write the annotation policy first

Define sensitive classes and exact span boundaries in the annotation policy. Decide whether a company suffix, punctuation or account prefix belongs inside the label. Give annotators examples of ambiguous terms and document the intended treatment. A stable policy prevents two teams from assigning different meanings to the same score.

Include commercially confidential values as well as personal identifiers when the workflow requires them. An unpublished price floor can matter more to the task owner than a publicly listed office telephone number.

Build a document set with useful slices

Group test documents by source and difficulty: clean prose, OCR text, structured exports, logs and domain-heavy agreements. Keep versions of the same original document in the same evaluation partition. This helps prevent a near-copy of a test case from appearing in development examples.

Record the document source category, language, length and sensitive-entity classes. These fields let an engineer trace a weak result to a concrete input pattern. They also help the business owner see whether the test represents the material their team processes.

Score detection and boundaries separately

Define exact-span matching before calculating a headline metric. Record partial account-number coverage as a boundary error. Use a separately labeled overlap measure to diagnose partial coverage.

Maintain counts for correctly detected spans, missed spans and incorrectly marked spans. Add an error register containing the source excerpt, reference label, predicted label and proposed cause. Keep sensitive excerpts in the evaluation workspace and publish aggregate results with safe examples.

Test clean context and the finished task

A clean control set reveals whether harmless content is changed. Include version numbers, product identifiers, public terminology and routine business phrases that resemble sensitive classes. The expected action is to preserve each clean item. Then run a downstream task using the transformed input and check whether the answer still relies on the right facts.

Polaris-Mist preserved all 29 clean samples in its clean-data test. Its benchmark table also exposes the comparison tools' counts, making the measurement unit visible.

Package a repeatable release report

Include the dataset revision, annotation policy, tool configuration, score calculation and error register in the release artifact. Add a small set of round-trip fixtures for authorized restoration. This gives an owner enough evidence to reproduce the result and enough detail to choose the next improvement.

For each failure, record the input category, observed behavior and verification step. Prioritize fixes by the business information exposed or the work disrupted. Re-run the unchanged reference set after each candidate change and compare the same slices to measure progress consistently.

EvidenceDecision it supports
Span-level error registerWhich detection patterns need work
Clean-control resultsWhether useful context survives
Round-trip fixturesWhether final references resolve correctly
Slice-level scoresWhich document types need attention

QUESTIONS & ANSWERS

Details that matter.

Which evidence supports a release decision?

Use the overall score with slice results and concrete errors. For an OCR invoice workflow, inspect the invoice slice alongside the combined result.

What is a boundary error?

A boundary error marks too little or too much of a sensitive value. It can expose part of the original or remove adjacent useful text.

Where can I inspect the Mist results?

The Polaris-Mist API page provides four benchmark suites, clean-data results and a downloadable CSV with the original numerical values.

Sources & further reading

Related Polaris work