File size: 6,213 Bytes
515d798
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2e908f6
 
515d798
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
---
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.8780
            name: Common-PII Span F1 (IoU >= 0.50)
---

# Polaris-Mist

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

[![arXiv](https://img.shields.io/badge/arXiv-2612.00074-b31b1b.svg)](https://arxiv.org/abs/2612.00074)
[![Playground](https://img.shields.io/badge/%E2%9A%A1%20Polaris--Mist-Live%20API%20Playground-2563eb)](https://getpolaris.us/mist/api/)
[![HF Demo](https://img.shields.io/badge/%F0%9F%A4%97%20Space-Interactive%20Showcase-orange)](https://huggingface.co/spaces/RightWayAI/Polaris-Mist-Demo)
[![GitHub](https://img.shields.io/badge/GitHub-RightWayAI--Inc%2FPolaris--Mist-181717?logo=github)](https://github.com/RightWayAI-Inc/Polaris-Mist)
[![Website](https://img.shields.io/badge/RightWay%20AI-rightway.ai-0f172a)](https://rightway.ai)

**Polaris-Mist** is a non-autoregressive, pure-model semantic redaction architecture developed by **RightWay AI Research** ([arXiv:2612.00074](https://arxiv.org/abs/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](assets/fig1_arena_pareto.png)

## 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](assets/fig2_architecture_punct.png)

---

## Quickstart

### 1. Install SDK

```bash
pip install git+https://github.com/RightWayAI-Inc/Polaris-Mist.git
```

### 2. Run Detection & Reversible Redaction

```python
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`<br>Span F1 / Lat | Gretel EN `test`<br>Span F1 / Lat | piimb Multilang `test`<br>Span F1 / Lat | Suite D (Common)<br>F1 / negFP | Suite E OOD (Common)<br>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](https://rightway.ai)** (`evan@rightway.ai`).

---

## Citation

```bibtex
@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}
}
```