Multi-model · 2-Stage Paraphrase Recall → NLI Contradiction Verification

paraphrase-MiniLM-L6-v2 → DeBERTa-v3 NLI Verifier

As shown in Wild Probe 2, bi-encoders give high cosine similarity to negated lookalikes. Chain Stage 1 Xenova/paraphrase-MiniLM-L6-v2 (23.68 MB q8 WASM) for fast candidate recall with Stage 2 Xenova/nli-deberta-v3-xsmall (87.25 MB ONNX / 98.37 MB total q8 WASM, reusing ../../zero-shot-text/worker.js) to separate true paraphrases from contradictions.

1. Load Both Stages (~110.9 MB weights · 122.05 MB first visit)

Stage 1 · paraphrase-MiniLM-L6-v2 (23.68 MB · Apache-2.0)

Stage 2 · DeBERTa-v3 NLI Verifier (87.25 MB ONNX · MIT)

Initialise Stage 1 (paraphrase-MiniLM-L6-v2) and Stage 2 (DeBERTa-v3 NLI) above to run live paraphrase vs contradiction verification.

2. Recall Candidates (Stage 1) → Catch Negation Traps (Stage 2)

Drop, paste, or upload a .txt / .md / .csv / .json list of candidate statements.

Stage 1 · Bi-Encoder Cosine Recall

Load Stage 1 to embed and rank all candidates by cosine similarity.

    Stage 2 · DeBERTa-v3 NLI Verification

    Load Stage 2 to separate true paraphrases from negated lookalikes.

      Stage 1 Cosine vs Stage 2 NLI Paraphrase & Contradiction

      Verified Paraphrase Audit Table

      Two-stage paraphrase recall and NLI contradiction audit
      ID Cosine NLI Paraphrase NLI Contradict Verdict Candidate
      Run both stages above to populate live paraphrase verification.

      Show the Code

      Show the code: Reused Stage 2 DeBERTa-v3 NLI worker (zero-shot-text/worker.js)
      Show the code: Paraphrase vs contradiction trap verdict evaluator (paraphrase-core.mjs)