openai/gpt-oss-20b (frontier-panel, BOUNDARY regime)Lightweight epistemic-uncertainty detector: K=4 prediction heads sharing the frozen openai/gpt-oss-20b trunk. Configuration: mid_dim=128, K=4 (frontier-panel, BOUNDARY regime).
Calibrate the sign before deploying. The direction of the disagreement signal is trunk-family-specific: on some families it rises on out-of-distribution input, on others (Llama-70B-class, gpt-oss-120B) it falls. Score ~50 known-ID and ~50 known-OOD prompts once and check which direction separates. Details: the paper and repo below.
Paper: When Uncertainty Lies (CAISc 2026, oral) · Code: github.com/debajyotidasgupta/eu-halt
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from eu_halt import attach
model = AutoModelForCausalLM.from_pretrained(
"openai/gpt-oss-20b", torch_dtype=torch.bfloat16,
).to("cuda").eval()
tokenizer = AutoTokenizer.from_pretrained("openai/gpt-oss-20b")
uncertainty = attach(
model,
heads_repo="debajyotidasgupta/eu-halt-gpt-oss-20b",
mid_dim=128,
)
print(uncertainty("Who founded Quora in 2008?", tokenizer))
# Higher = more uncertain.
model.safetensors — the K=4 head weights (preferred format; config embedded as metadata).config.json — head geometry: num_heads, mid_dim, source_layers, base_model, dims.heads_final.pt — the original torch checkpoint (kept for backward compatibility).heads_step{500,1000,1500,2000,2500}.pt — intermediate checkpoints (where uploaded).source_layers.json — the K=4 trunk-layer indices the heads read from.history.json — per-step loss + disagreement + GPU stats.HuggingFaceFW/fineweb-edu (streaming).quiet variants).OOD AUROC (id vs ood), 420 samples total:
| Signal | AUROC | 95% CI |
|---|---|---|
| disagreement | 0.4934 | [0.4231, 0.5612] |
| entropy | 0.4868 | [0.4168, 0.5522] |
| last_token_unc | 0.3987 | [0.3223, 0.4805] |
| mahalanobis | 0.7704 | [0.6498, 0.8725] |
| targ_margin | 0.3920 | [0.3175, 0.4725] |
| etc_trend | 0.2394 | [0.1915, 0.2944] |
| llm_check | 0.4005 | [0.3367, 0.4615] |
| mc_dropout | 0.4020 | [0.3316, 0.4747] |
| rauq | nan | [nan, nan] |
| p_true | nan | [nan, nan] |
| semantic_entropy | nan | [nan, nan] |
| semantic_entropy_nli | nan | [nan, nan] |
| eigenscore | nan | [nan, nan] |
Best signal: mahalanobis
uncertainty.per_token(text, tokenizer).Apache-2.0 for the heads.
The trunk model openai/gpt-oss-20b retains its own license (Qwen3 / Llama-3 / Phi / Gemma).
@inproceedings{dasgupta2026euhalt,
author = {Dasgupta, Debajyoti and Mondal, Arijit and Chakrabarti, Partha P.},
title = {When Uncertainty Lies: How Model Scale and Layer Geometry Quietly
Invert the Meaning of Internal Disagreement in Large Language Models},
booktitle = {1st Conference For AI Scientists (CAISc)},
year = {2026},
url = {https://huggingface.co/debajyotidasgupta/eu-halt-gpt-oss-20b},
}
heads_final.pt 401 MiBmodel.safetensors 401 MiBopenai/gpt-oss-20b