PolarisGet Your Polaris
Menu

POLARIS FIELD GUIDE / 3 MIN READ

Redaction vs. tokenization for private AI workflows

Redaction decides which sensitive content an external system can receive. Tokenization replaces selected values with references that an authorized service can resolve later. For AI workflows that must return exact names or account references, a redact-and-restore design preserves those relationships while separating the external model from the original values. The key decision is which information the task needs during reasoning and which details belong only in the finished output.

Start with the work the model must finish

A contract summary needs the relationships between parties, clauses and obligations. Distinct party references preserve those relationships during drafting. A financial reconciliation uses exact arithmetic while its narrative output carries substituted identifiers. List these requirements before choosing a replacement method. Preserve the relationships the model needs to explain the result.

Create an information contract for each field: required for reasoning, required only in the final document, or unnecessary throughout the workflow. This contract turns privacy handling into an explicit part of task design.

Choose the transformation deliberately

Deletion removes a value. A fixed mask shows that a value existed. A reversible reference preserves an association that can be restored within an authorized boundary. These choices have different effects on the output. Replacing every organization with the same word can merge two parties; distinct references keep their obligations separate.

Presidio supports multiple transformation operators, including replacement, masking and encryption. That operator choice is separate from detecting the sensitive span. Evaluate both decisions when comparing privacy tools.

Task requirementDesign choice
Value has no downstream purposeRemove the value
Only the presence of a field mattersUse a fixed mask
Exact value belongs in the final deliverableUse an authorized reversible reference

Keep identity separate from disclosure

Use a token that refers consistently to the same entity within the task and keeps the original value private. Design tests for repeated entities, two similar names, nested quotations and a name introduced after the first turn. Check that the output keeps the relationships intact.

Polaris-Mist exposes redaction and restoration as separate API calls. The redaction response includes redacted_text and a context_id; restoration uses the returned context to resolve authorized references.

Give credentials a different lifecycle

A reusable business name and a live access credential serve different purposes. Restore the business name for an authorized internal report. Keep credentials permanently masked in incident summaries. Define that handling rule explicitly and verify it in both the outbound prompt and final document.

The Mist playground identifies credentials with a permanent credential marker. Restore the references the authorized recipient needs, and keep permanently protected values masked.

Write a round-trip acceptance test

Use a small fixture containing two organizations, repeated references, a public version number and an intentionally fake secret. Save the intended outbound text and intended authorized final result. Run detection, model processing and restoration, then compare each stage to the fixture. A successful round trip retains the distinction between organizations and leaves the public version unchanged.

Record the unresolved-reference behavior too. If the output contains a token outside the task context, route that result for correction before delivery. The acceptance artifact is a three-column record of source, transformed input and restored output.

QUESTIONS & ANSWERS

Details that matter.

Is tokenization the same as language-model tokenization?

Privacy tokenization substitutes sensitive values with references. Language-model tokenization divides text into model input units. The two operations solve different problems.

When is simple masking enough?

Masking is useful when the task needs only the presence or type of a value. Use distinct references when the reasoning must distinguish people, accounts or organizations.

What does Polaris-Mist restore?

The restore endpoint resolves authorized placeholders using the context returned by redaction. Credentials receive separate permanent handling in the playground.

Sources & further reading

Related Polaris work