Wild Β· 6 Empirical Stress Probes & Bias Lab Β· 154.68 MB WASM q8

Empirical Stress Lab: Needle Depth, Negation, Code & Bias Log-Odds

Run six contrasting masked-LM stress tests locally on onnx-community/ModernBERT-base-ONNX: >700-token needle retrieval vs 512-tok truncation, TypeScript syntax, negation polarity shifts, coupled double masks, ML jargon, and counterfactual candidate log-odds ratios.

1. On-device model

Initialise ModernBERT-Base above to run all six empirical stress probes.

2. Six-probe empirical stress sweep

Probes completed–
Long-needle (>512t)–
Total latency–
NaN count–
Six empirical ModernBERT-Base stress probes showing category, top prediction, confidence, tokens, and diagnostic note
Category Probe Top fill(s) Confidence / delta Tokens Latency
Run the 6-probe stress sweep above.

3. Interactive counterfactual minimal-pair & log-odds sandbox

Compare the exact vocabulary probability and log-odds ratio of candidate words across two minimal-pair templates sharing one [MASK].

Counterfactual candidate probability and log-odds comparison between Context A and Context B
Candidate Context A prob (logit) Context B prob (logit) Log2-odds ratio (A vs B) Favors
Score a counterfactual minimal pair above.

Inspect counterfactual log-odds & candidate scoring

Show the code Β· modernbert-core.mjs β€” computeLogOddsRatio()
Show the code Β· worker.js β€” handleScoreCandidates()