Polaris-Mist
Enterprise Semantic Redaction via Unmasked Bidirectional Contextualizers and Punctuation-Isolated CRFs
Polaris-Mist is a non-autoregressive, pure-model semantic redaction architecture developed by RightWay AI Research (arXiv:2612.00074). Unlike rule-hybrid pipelines or lightweight token taggers that miss context-dependent business secrets and over-trigger on benign technical hashes, Polaris-Mist detects 12 enterprise-critical sensitive categories (D12) in a single forward + Viterbi pass β with zero inference-time regexes, zero blacklists, and zero heuristic post-filters.
Highlights
- Semantic Coverage Beyond Standard PII: Extracts context-dependent
trade_secretclauses (pricing floors, M&A caps, proprietary formulas) andquasi_identifierre-identification spans alongsidename,phone,email,address,id,order,account,credential,organization, andcontract. - Zero False Alarms on Technical Identifiers (
0/29Negative FPR): Accurately separates real API keys/secrets from benigngit commitSHAs, Dockersha256:image digests, compiler hashes, SKUs, and prompt-injection payloads. - High-Speed Single-Pass Structured Prediction: Runs in 4.51 GiB BF16 VRAM at 9β15 ms per document (batch size 8), combining punctuation-isolated pre-tokenization ($\mathcal{R}_{\text{iso}}$), bidirectional contextualization, and an exact 49-tag BIOES linear-chain CRF.
Quickstart
1. Install SDK
pip install git+https://github.com/RightWayAI-Inc/Polaris-Mist.git
2. Run Detection & Reversible Redaction
from polaris_mist import PolarisMistPipeline
pipe = PolarisMistPipeline.from_pretrained("RightWayAI/Polaris-Mist")
doc = (
" Confidentiality Notice: Under MSA-2026-8841 with Northstar BioLabs Inc., "
"gross margin floor shall never drop below 42.5% for APAC Tier-1 distributors. "
"Contact Sarah Jenkins (s.jenkins@northstar.io). Release commit 8f4e2a91c0b3d7e6 passed CI."
)
result = pipe.redact(doc)
print(result["redacted_text"])
# -> Confidentiality Notice: Under [CONTRACT_e0] with [ORGANIZATION_e1], [TRADE_SECRET_e2].
# Contact [NAME_e3] ([EMAIL_e4]). Release commit 8f4e2a91c0b3d7e6 passed CI.
Evaluation Summary
| System / Model | BF16 VRAM | Nemotron-PII testSpan F1 / Lat |
Gretel EN testSpan F1 / Lat |
piimb Multilang testSpan F1 / Lat |
Suite D (Common) F1 / negFP |
Suite E OOD (Common) F1 / negFP |
|---|---|---|---|---|---|---|
| Microsoft Presidio | CPU | 0.6417 / 22.2ms | 0.4806 / 12.6ms | 0.4153 / 14.4ms | 0.5231 / 11/19 | 0.3475 / 8/9 |
| Piiranha-v1 (280M) | 1.1 GiB | 0.7073 / 21.3ms | 0.4880 / 17.4ms | 0.8151 / 18.7ms | 0.3961 / 10/19 | 0.4095 / 3/9 |
| GLiNER-multi-PII-v1 | 1.8 GiB | 0.7172 / 21.8ms | 0.6601 / 18.5ms | 0.7511 / 19.5ms | 0.7878 / 16/19 | 0.7157 / 5/9 |
| Polaris-Mist (This Repo) | 4.51 GiB | 0.9208 / 14.7ms | 0.8985 / 13.6ms | 0.8780 / 9.4ms | 1.0000 / 0/19 | 0.9942 / 0/9 |
| Polaris-Mist Pro (Enterprise) | 15.16 GiB | 0.9251 / 42.5ms | 0.9066 / 59.3ms | 0.8995 / 26.9ms | 0.9990 / 0/19 | 0.9934 / 0/9 |
Enterprise Edition (Polaris-Mist Pro & Rust Gateway)
For production gateway deployments requiring peak chaotic-OOD exact match (81.2% Strict EM / 99.56% Character Recall on Suite E), stateful reversible token vaults, and air-gapped on-premise Rust HTTP/gRPC gateways, contact RightWay AI at rightway.ai (evan@rightway.ai).
Citation
@article{liu2026polarismist,
title = {Polaris-Mist: Enterprise Semantic Redaction via Unmasked Bidirectional LLMs and Punctuation-Isolated CRFs},
author = {Liu, Jinyuan and Zhao, Zhicheng and Han, Xinyi and Ma, Ziwen},
journal = {arXiv preprint arXiv:2612.00074},
year = {2026},
url = {https://arxiv.org/abs/2612.00074}
}
Space using RightWayAI/Polaris-Mist 1
Paper for RightWayAI/Polaris-Mist
Evaluation results
- Common-PII Span F1 (IoU >= 0.50) on nvidia/Nemotron-PII (test)test set self-reported0.921
- Common-PII Span F1 (IoU >= 0.50) on gretelai/gretel-pii-masking-en-v1 (test)test set self-reported0.898
- Common-PII Span F1 (IoU >= 0.50) on piimb/pii-masking-benchmark (multilingual test)test set self-reported0.878

