Polaris-Mist / README.md
Liu
Add Live API Playground badge to README
2e908f6 verified
|
Raw History Blame Contribute Delete
6.21 kB
metadata
license: apache-2.0
library_name: pytorch
pipeline_tag: token-classification
language:
  - en
  - zh
  - de
  - fr
  - es
  - ja
  - multilingual
tags:
  - polaris-mist
  - pii
  - redaction
  - de-identification
  - anonymization
  - privacy
  - trade-secret
  - crf
  - enterprise-security
  - arxiv:2612.00074
model-index:
  - name: Polaris-Mist
    results:
      - task:
          type: token-classification
          name: Sensitive Span Redaction
        dataset:
          name: nvidia/Nemotron-PII (test)
          type: nvidia/Nemotron-PII
          split: test
        metrics:
          - type: f1
            value: 0.9208
            name: Common-PII Span F1 (IoU >= 0.50)
      - task:
          type: token-classification
          name: Sensitive Span Redaction
        dataset:
          name: gretelai/gretel-pii-masking-en-v1 (test)
          type: gretelai/gretel-pii-masking-en-v1
          split: test
        metrics:
          - type: f1
            value: 0.8985
            name: Common-PII Span F1 (IoU >= 0.50)
      - task:
          type: token-classification
          name: Sensitive Span Redaction
        dataset:
          name: piimb/pii-masking-benchmark (multilingual test)
          type: piimb/pii-masking-benchmark
          split: test
        metrics:
          - type: f1
            value: 0.878
            name: Common-PII Span F1 (IoU >= 0.50)

Polaris-Mist

Enterprise Semantic Redaction via Unmasked Bidirectional Contextualizers and Punctuation-Isolated CRFs

arXiv Playground HF Demo GitHub Website

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.

Polaris-Mist Overview

Highlights

  • Semantic Coverage Beyond Standard PII: Extracts context-dependent trade_secret clauses (pricing floors, M&A caps, proprietary formulas) and quasi_identifier re-identification spans alongside name, phone, email, address, id, order, account, credential, organization, and contract.
  • Zero False Alarms on Technical Identifiers (0/29 Negative FPR): Accurately separates real API keys/secrets from benign git commit SHAs, Docker sha256: 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.

Polaris-Mist Architecture


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 test
Span F1 / Lat
Gretel EN test
Span F1 / Lat
piimb Multilang test
Span 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}
}