wild Β· SQuAD v1.1 forced-span hallucination Β· do_lower_case Β· doc_stride Β· Apache-2.0

SQuAD v1.1 Forced-Span, Case-Invariance & doc_stride Stress Lab

Run 6 live probes proving why SQuAD v1.1 cannot refuse unanswerable questions (always forcing a positive probability span unlike SQuAD v2's [CLS] gate), verify exact do_lower_case: true invariance across lowercase and ALL-CAPS inputs, and watch doc_stride sliding windows rescue answers buried past 512 tokens.

1 Β· Initialise DistilBERT Uncased SQuAD

2 Β· 6-Probe SQuAD v1.1 Stress Matrix

Every probe runs live through Xenova/distilbert-base-uncased-distilled-squad on CPU WASM β€” including unanswerable and negation traps where SQuAD v1.1 forces a span.

Initialise DistilBERT Uncased SQuAD above to run all 6 stress probes.

6-probe SQuAD v1.1 forced-span hallucination, distractor, case-invariance, and truncation stress results
Probe Question Extracted Span Score / Margin Honest Behaviour Inspect
Run the 6 live probes above to populate forced-span and distractor measurements.

3 Β· Live Case-Invariance & >512-Token doc_stride Sandbox

Pick a probe or edit the passage above to test case-invariance or sliding-window recovery.

Case-Invariance (do_lower_case: true)

Original Caseβ€”
all lowercaseβ€”
ALL CAPSβ€”
Max Logit Driftβ€”

Single-Pass 512-Tok vs doc_stride

Single-Pass (≀512 tok)β€”
Sliding Window Bestβ€”
Windows / Raw Tokensβ€”
Finite Checkβ€”

Highlighted Sandbox Passage

4 Β· Show the code

Show the code β€” worker.js 512-token single-pass vs sliding-window doc_stride pass
Show the code β€” distil-core.mjs overlapping doc_stride window chunker & merger