Multi-model · DistilBERT SST-2 (67.58 MB q8 · Apache-2.0) → DeBERTa-v3 Zero-Shot NLI Verifier (87.25 MB q8 · MIT)

Binary SST-2 Polarity × NLI Neutrality & Entailment Verification

Chain two independent WASM models totaling 154.83 MB offline: Stage 1 (Xenova/distilbert-base-uncased-finetuned-sst-2-english, 67.58 MB q8, Apache-2.0) assigns forced binary SST-2 polarity, then Stage 2 (Xenova/nli-deberta-v3-xsmall, 87.25 MB q8, MIT, reusing ../../zero-shot-text/worker.js with dynamic res.classNames mapping) verifies whether the sentence is genuinely sentiment-bearing or a neutral factual statement.

1. Two Independent On-Device Models (154.83 MB Total)

Stage 1 · DistilBERT SST-2 Binary Sentiment (67.58 MB WASM q8 · Apache-2.0)

Stage 2 · DeBERTa-v3 Zero-Shot NLI Verifier (87.25 MB WASM q8 · MIT)

2. Binary Polarity → NLI Neutrality & Entailment Pipeline

Initialize both stages above to run the 154.83 MB SST-2 → DeBERTa-v3 NLI Neutrality Verification workflow.

Neutrality & Entailment Verdict: Run both stages above to verify whether Stage 1 forced a neutral statement.
Stage 1 Forced Call–
Stage 1 Margin–
Stage 2 Top NLI–
Reconciled Verdict–
Stage 1 / Stage 2 ms–
Stage 2 id2label order–

Stage 1 · Binary SST-2 Probabilities

Run Stage 1 to inspect POSITIVE / NEGATIVE forced probabilities.

Stage 2 · Dynamic 3-Way NLI Verification (res.classNames)

Zero-shot NLI hypothesis scores mapped dynamically from res.classNames
Hypothesis Score Entailment Neutral Contradiction
Run Stage 2 to verify neutrality & entailment.

3. Neutrality & Entailment Verification Matrix

Every completed 2-stage verification run logs here, surfacing Neutral Overrides when Stage 2 NLI catches factual statements that Stage 1 SST-2 forced into POSITIVE or NEGATIVE.

SST-2 forced polarity versus Stage 2 DeBERTa-v3 NLI verification matrix
Preset / Item Stage 1 SST-2 Margin Stage 2 NLI Reconciled Outcome Latency Text
Run the chained pipeline above to populate the verification matrix.

4. Inspect Reused Zero-Shot Client & Neutrality Reconciliation

Show the code · sst2-client.js — ZeroShotNliClient (reusing ../zero-shot-text/worker.js)
Show the code · sst2-core.mjs — reconcileBinaryWithNli()