use case · multi-model · mDeBERTa-v3 PII (~143 MB) → DistilBERT SST-2 (~67 MB) · WASM · ~210 MB total

Privacy-Preserving Downstream AI Pipeline

If you strip emails, cards, SSNs, and names on-device before passing a support ticket to a downstream AI classifier, does scrubbing break sentiment routing? Here two isolated Web Workers test that question empirically: Stage 1 (mDeBERTa-v3 PII) scrubs the ticket locally, then Stage 2 (DistilBERT SST-2) — reusing models/sentiment-classifier/worker.js with zero weight duplication — scores both the raw text and the scrubbed text side-by-side to measure label preservation, confidence drift, and zero-leak verification.

1 · Two independent on-device models (isolated Web Workers)

Stage 1 · mDeBERTa-v3 PII (~143 MB)

60-class token-classification scrubber (phatvo/deberta_finetuned_pii-ONNX, WASM q8).

Waiting for Stage 1 initialisation.

Stage 2 · DistilBERT SST-2 (~67 MB)

Downstream sentiment classifier (Xenova/distilbert-base-uncased-finetuned-sst-2-english, WASM q8) reusing models/sentiment-classifier/worker.js.

Waiting for Stage 2 initialisation.

Prepare both models above (or load Stage 1 alone to inspect scrubbed text first).

2 · Support ticket / review input & pipeline controls

Stage 1 · PIIwaiting
Stage 2 · DistilBERTwaiting
PII Leakage–
Sentiment Verdict–
Confidence Δ (pos)–

3 · Side-by-side raw vs scrubbed sentiment proof

Run the 2-stage privacy audit above to compare DistilBERT SST-2 sentiment before and after PII redaction.

Raw input → Stage 2

Not scored
POS – NEG – PII –

Scrubbed input → Stage 2

Not scored
POS – NEG – Leaked –

4 · Multi-ticket empirical preservation benchmark & export

Ticket preset PII scrubbed Leaks after scrub Raw sentiment Scrubbed sentiment Δ POS (pp) Preserved?
Run the 2-stage audit (or click “Audit all 5 presets”) to build the empirical preservation table.