Wild Β· Adversarial Framing & Stress Lab Β· 95.9 MB WASM q8 Β· MIT

Adversarial Hypothesis Framing, Negation & Dilution Lab

Bag-of-words heuristics fail on double negation and "unless" clauses, leading hypothesis templates invert 2-class entailment margins, and single-label softmax dilutes as classes grow. Probe all three stress surfaces live on your device.

1. On-device model

Initialise DeBERTa-v3-XSmall Zero-Shot above to run the adversarial framing & stress labs.

2. Adversarial Logic, Negation & Conditional Probes

Four real NLI reasoning probes (double negation, conditional if/unless, hypothesis polarity flip, and quantitative SLA boundary) evaluated by MoritzLaurer/deberta-v3-xsmall-zeroshot-v1.1-all-33.

Probes passed–
Mean margin–
Total latency–
NaN count–
Adversarial NLI probe results showing expected label, predicted winner, score, and verdict
Probe Premise & note Expected Predicted winner Score Verdict
Run the 4 logic probes above.

3. Adversarial Hypothesis Framing Duel

Tests the exact same premise and labels under four adversarial hypothesis frames (Neutral, Negated NOT, Mandatory Obligation, and Marketing Claim) using independent 2-class P(entailment). Watch negated framing invert positive claims into not_entailment.

Adversarial hypothesis framing duel showing top-1 claim, P(entailment), and 2-class logit margin per frame
Frame Template Top-1 claim 2-class P(entail) Logit Ξ” 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 2-class P(entailment)). Single-label confidence dilutes while multi-label calibration remains invariant.

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

5. Inspect dynamic binary id2label & entropy helpers

Show the code Β· deberta-zs-core.mjs β€” resolveBinaryNliIndices()
Show the code Β· deberta-zs-core.mjs β€” shannonEntropy()