Wild Β· Adversarial Fact-Checking & Stress Lab Β· 252.95 MB WASM q8 Β· MIT

Adversarial Fact-Checking, Double Negation & Distractor Trap Lab

Shallow bag-of-words heuristics fail on double negation, concessive distractor clauses, and subject-object swaps, while single-label softmax dilutes as classes grow. Probe all three stress surfaces live on your device.

1. On-device model

Initialise DeBERTa-v3-Base MNLI/FEVER/ANLI above to run the adversarial fact-checking & stress labs.

2. Adversarial 3-Class Trap Probes (Double Negation, Distractor Clause & Role Swap)

Four real 3-class NLI probes (double negation, concessive distractor clause trap, subject-object role swap, and unstated causal leap expecting neutral) evaluated by Xenova/DeBERTa-v3-base-mnli-fever-anli.

Probes passed–
Mean |E βˆ’ C| Δ–
Total latency–
NaN count–
Adversarial 3-class NLI trap results showing expected class, predicted verdict, 3-class probabilities, and pass/fail badge
Trap Premise, hypothesis & note Expected Predicted E / N / C Verdict
Run the 4 adversarial trap probes above.

3. Adversarial Hypothesis Framing Duel

Tests the exact same premise and claims under four adversarial hypothesis templates (Neutral, Negated NOT, Mandatory Obligation, and Marketing Claim) using independent [contradiction, entailment] scoring. Watch negated framing flip positive claims.

Adversarial hypothesis framing duel showing top-1 claim, P(E vs C), and E βˆ’ C logit margin per frame
Frame Template Top-1 claim P(E vs C) E βˆ’ C Ξ” Latency
Run the 4-frame adversarial duel above.

4. Distractor Label Dilution (3 β†’ 8 β†’ 12 classes)

Scores the same premise across 3, 8, and 12 candidate labels in both single-label (softmax competition) and multi-label (independent softmax([contradiction, entailment])[1]). Single-label confidence dilutes while multi-label calibration remains invariant.

Label dilution sweep comparing single-label softmax vs multi-label scoring at 3, 8, and 12 labels
Label count Single-label winner & score Single entropy Multi-label target P(E vs C) Multi rank Latency
Run the dilution sweep above.

5. Inspect dynamic 3-class id2label & entropy helpers

Show the code Β· deberta-base-nli-core.mjs β€” resolveNliClassIndices()
Show the code Β· deberta-base-nli-core.mjs β€” shannonEntropy()