Polaris-Mist Brings Low-Latency Semantic Redaction with Bidirectional LLMs and CRFs
Summary:Polaris-Mist converts causal or long-context LLMs into a non-autoregressive span tagger by removing the causal attention mask and vocabulary head, then pairing bidirectional representations with punctuation-isolated tokenization and a constrained 49-label BIOES linear-chain CRF. Version 7 reports 0.9066–0.9251 Common-PII Span F1 across three public sets and a 0.9987 untyped IoU≥0.50 F1 on a frozen enterprise suite. With 2.1B–9B backbones, BF16 memory use is reported at 4.51–17.58 GiB and amorti
Polaris-Mist converts a causal language model into a sequence tagger that identifies sensitive-entity boundaries in a single encoder pass. The central design is not an additional rule engine: it removes the future-token restriction from causal attention, discards the generation-only vocabulary head, and decodes a complete label sequence through punctuation-isolated tokenization and a constrained BIOES linear-chain CRF. Version 7 reports substantial quality and resource measurements, although the results remain those of a preprint.
Core Mechanism: From a Generative Model to a Bidirectional Tagger
1. Removing the causal mask
A causal Transformer applies an upper-triangular mask M so that position i can attend only to positions j≤i:
Attention(Q,K,V) = softmax(QKᵀ / √d + M)V
Polaris-Mist removes this one-way restriction, allowing every token to use both preceding and following context. That matters for redaction because entity type and boundaries often depend on later text: a party's full name may be defined in an attachment, a contract clause, or a later cross-reference, while short strings such as names, addresses, and keys are difficult to classify from local windows alone.
The model does not become a generative model again. Once the vocabulary head is pruned, it emits hidden states for each token instead of computing a full-vocabulary softmax. A CRF then determines the entity boundaries. This path has no token-by-token generation stage, allowing the document to be processed in parallel and avoiding the multi-second latency and schema instability associated with autoregressive answers.
Causal pretrained weights are not naturally optimized for bidirectional attention. Positional representations, attention distributions, and the broader representation space may all shift, making retraining or adaptation necessary. The abstract does not disclose the training-set size, optimization budget, accelerator consumption, or fine-tuning recipe, leaving those aspects difficult to reproduce.
2. Isolating punctuation to reduce subword straddling
Abbreviations, Chinese contract identifiers, email addresses, URLs, and punctuation-bearing entities are often split internally by BPE tokenizers. Polaris-Mist isolates punctuation as explicit boundaries so that a sensitive span does not straddle several subtokens, while preserving an offset map back to the original characters.
The paper reports that punctuation isolation raised exact-match accuracy from 80.0% to 95.0% in a v6 ablation on Suite D. This suggests that the component reduces both missed entities and boundary errors caused by tokenization, not merely formatting. However, the result comes from an earlier v6 ablation; the final v7 system needs to reproduce the same gain under a unified configuration.
3. A constrained 49-label BIOES CRF
The encoder produces a label-emission score for each token. A linear-chain CRF learns transition constraints between adjacent labels and uses Viterbi search to recover the highest-scoring valid sequence. The nominal label space contains 49 tags, and the legal BIOES transition set is much smaller than the unconstrained 49×49 space, preventing invalid structures such as an entity interior appearing outside an entity.
Training uses length-normalized negative log-likelihood, reducing the dominance of long documents in the token-level loss. For sequence length T and S labels, naive CRF decoding costs O(TS²). Legal-transition constraints reduce the constant factor, but decoding remains sequence-level rather than fully local token classification.
Evaluation: High F1 on Public and Enterprise Sets
The paper evaluates v7 on 150-document test subsets from three public PII datasets and 180 frozen enterprise documents spanning Suites A-E:
| Dataset | Metric | Reported result | |---|---:|---:| | Nemotron-PII | Common-PII Span F1 | 0.9251 | | Gretel PII | Common-PII Span F1 | 0.9066 | | piimb | Common-PII Span F1 | 0.9077 | | Suite E | Untyped IoU≥0.50 F1 | 0.9987 | | Suite E | Character recall | 99.56% | | Suite E | Strict typed F1 | 0.9771 |
Controlled experiments with Qwen3-8B, GLM-4-9B-0414, EuroBERT-2.1B, and Phi-4-14.7B also report zero false alarms across 29 negative examples. These negatives test whether benign technical identifiers, such as public Git commit SHAs and container digests, are incorrectly redacted.
Zero errors in 29 cases should not be interpreted as a zero production false-positive rate. If the 29 examples were independent and representative, the approximate 95% upper bound on the false-alarm probability would still be about 10.3%, and real enterprise negative distributions are likely more complicated. The abstract also omits variance across runs, confidence intervals, absolute baseline scores, and test-construction details, so the results do not establish overall superiority over Presidio, GLiNER, or autoregressive LLM pipelines.
The untyped IoU F1 also requires careful interpretation. It ignores entity-category errors and therefore measures character coverage rather than full production correctness. The strict typed F1 of 0.9771 on Suite E is closer to an operational metric, but false positives, misses, and boundary offsets still need to be reported separately for each PII category.
Engineering Trade-offs: Speed, Memory, and Long Documents
The paper reports that 2.1B–9B models require 4.51–17.58 GiB of BF16 memory and deliver 5–134 ms of amortized per-document GPU-forward-plus-Viterbi latency at batch size 8. The 14.7B model requires 27.61 GiB and reports 30–238 ms. This supports the practical value of replacing autoregressive generation with a parallel encoder, particularly for smaller backbones deployed on-premises or in isolated environments.
The measurements lack GPU model, sequence-length distribution, scheduling details, and an explicit statement of whether preprocessing is included, limiting direct comparisons across hardware. Dense full attention still costs O(n²d), and explicitly materializing the attention matrix requires O(n²) memory. Isolating punctuation can also increase token count. FlashAttention, linear attention, or chunked processing may reduce memory pressure, but they introduce boundary-splitting and cross-chunk-context challenges.
Compared with causal generation, unmasking does not change the asymptotic complexity of dense attention. The main gain comes from eliminating the iterative decoding loop. For long contracts, document chunking may become the bottleneck before model size does; production deployments should cap input length and define how entities crossing chunk boundaries are merged.
Deployment Recommendations
- Validate on business data first: Measure strict typed F1, character recall, and false alarms per category on internal contracts, tickets, repositories, and logs. Untyped IoU alone is insufficient.
- Preserve character offsets: Map CRF predictions back to the original text before any transformation, with explicit policies for overlapping spans, nested entities, and truncated boundaries.
- Route by risk: Send low-confidence cases, overlapping entities, and custom trade-secret categories to human review or a second verifier. The task-specific CRF does not guarantee coverage of every business definition.
- Measure actual service cost: Separate GPU forward time, Viterbi decoding, preprocessing, postprocessing, and queueing, then report P50, P95, and P99 latency rather than only amortized batch means.
- Limit data exposure: Although the output contains labels rather than generated text, the redaction model still reads sensitive source content. Self-hosting, memory isolation, access auditing, log redaction, and model-supply-chain checks remain necessary.
- Verify versions and reproducibility: The abstract does not specify code, weights, training recipes, or licensing. Before deployment, reproduce the full ablation and independently verify the punctuation-isolation gain in the final v7 release.
Polaris-Mist's engineering contribution is to show that an LLM does not need to generate verbose answers to identify sensitive information: one bidirectional encoder pass followed by one CRF decode can combine contextual judgment with low latency. Its public evaluation, enterprise-data protocol, and reproducibility package remain incomplete, making it a strong candidate encoder for enterprise redaction pipelines rather than a drop-in replacement for audited production systems.
— END —Source: ArXiv Machine Learning (cs.LG) (2026-12-02)
Tags: #Polaris-Mist #Semantic Redaction #Bidirectional Attention #BIOES-CRF #PII Detection
Editorial & Fact-Checking Note: This article is compiled from primary research, official release documentation, and source papers by the ZICQ Newsroom pipeline with automated entity verification and human editorial review. If you notice any technical inaccuracy, please submit a correction via our corrections policy or email our editorial desk directly.
Community Comments