Wild · Adversarial Multilingual NLI Stress Lab · 355.0 MB WASM q8 · MIT

6-Probe Cross-Lingual NLI & Code-Switch Stress Lab

Measure where Xenova/mDeBERTa-v3-base-xnli-multilingual-nli-2mil7 succeeds or bends under real adversarial shifts: cross-lingual premise-hypothesis script swaps, negation reversal, numeric contradiction, mixed-script code-switching, ambiguous short labels, and hypothesis template sensitivity.

1. On-device model

Initialise mDeBERTa-v3 Multilingual NLI above to run the 6-probe stress suite.

2. 6 Empirical Cross-Lingual NLI Stress Probes

Each probe runs off the main thread on the real model and records expected vs predicted winner, top-1 vs top-2 margin, calibration band, latency, and NaN count.

Probes completed–
Expected matched–
Mean top-2 margin–
Total latency–
NaN count–
Six multilingual NLI stress probes with expected vs predicted label, margin, and calibration band
Probe category Premise & stress note Expected Predicted winner Score / margin Verdict
Run the 6 stress probes above.

3. Interactive Adversarial Probe Sandbox

Load any of the 6 stress probes below, perturb a negation word, numeric bound, or template, and re-run to observe live entailment vs contradiction shifts.

Sandbox 3-way NLI logits per candidate label
Candidate label Entailment (prob / logit) Neutral (prob / logit) Contradiction (prob / logit) 3-way split Pair tokens
Run the sandbox probe above to inspect raw 3-way NLI logits.

4. Inspect dynamic NLI resolution & calibration math

Show the code · mdeberta-core.mjs — resolveNliClassIndices()
Show the code · mdeberta-core.mjs — calibrationConfidenceMetrics()