File size: 2,342 Bytes
7f2e6e6
 
 
 
 
 
 
 
 
 
7774431
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7f2e6e6
 
7774431
 
 
 
7f2e6e6
 
7774431
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
from dataclasses import dataclass
from enum import Enum

@dataclass
class Task:
    benchmark: str
    metric: str
    col_name: str

class Tasks(Enum):
    # Core HSO & Hallucination Potential Metrics
    xray_score = Task("xray_score", "score", "X-Ray Risk ⬇️")
    struct_risk = Task("structural_risk", "score", "Structural Risk ⬇️")
    behav_risk = Task("behavioral_risk", "score", "Behavioral Risk ⬇️")
    stable_rank = Task("stable_rank", "score", "Stable Rank (r_s) ⬆️")
    effective_rank = Task("effective_rank", "score", "Effective Rank (r_eff) ⬆️")
    cond_num = Task("condition_number", "score", "Condition (κ) ⬇️")
    blind_fraction = Task("blind_fraction", "score", "Blind Manifold (ker %) ⬇️")
    factuality = Task("factuality", "score", "Factuality (%) ⬆️")
    paraphrase_stab = Task("paraphrase_stability", "score", "Paraphrase Stability (%) ⬆️")
    
    # Standard Benchmark Overlays
    overall_mixeval = Task("MixEvalScorer.overall", "score", "MixEval Overall ⬆️")
    gsm8k = Task("MixEvalScorer.GSM8k", "score", "GSM8k ⬆️")
    math = Task("MixEvalScorer.MATH", "score", "MATH ⬆️")
    mmlu = Task("MixEvalScorer.MMLU", "score", "MMLU ⬆️")
    gpqa = Task("MixEvalScorer.GPQA", "score", "GPQA ⬆️")
    arc = Task("MixEvalScorer.ARC", "score", "ARC ⬆️")

NUM_FEWSHOT = 0

TITLE = """<h1 align="center" id="space-title">🔬 LLM-X-RAY Model Auditing & Hallucination Registry</h1>"""

INTRODUCTION_TEXT = """
Welcome to the **LLM-X-RAY Observatory**. This benchmark evaluates models across three uncoupled diagnostic layers:
1. **Layer A — Weight Tomography:** Exact SVD spectrum of model parameter tensors (Stable & Effective Rank).
2. **Layer B — HSO Observer Geometry:** Covariance shrinkage projection onto a bounded Hilbert Space manifold ($\\\\tau = 0.95$).
3. **Layer C — Empirical Probes:** Adversarial hallucination traps, factual accuracy, and semantic paraphrase stability.
"""

CITATION_BUTTON_LABEL = "Copy BibTeX Citation"
CITATION_BUTTON_TEXT = r"""@article{mullings2026koopman,
  title   = {The Hilbert–Schmidt Koopman Operator: At the Heart of Spectral LLMs},
  author  = {Mullings, Jason},
  journal = {Zenodo},
  year    = {2026},
  doi     = {10.5281/zenodo.21410792},
  url     = {https://doi.org/10.5281/zenodo.21410792}
}"""