96.38 Capability and 0.80% ECE on JevBench Public with Gemma 4 31B and Skyfall

JevBench[1] evaluates structured /v1/systemone decisions across boolean (noul), multi-option (choice), and ordinal (score) tasks, requiring a calibrated probability distribution over the exact label set within a hard 10-second per-request SLA. On the 231-item public split (48 Easy, 72 Original, 111 Hard), Capability is 0.5 × (Intelligence + Calibration), where Calibration = max(0, 100 - 2 × ECE-10%).

  • decision-1-hard-candy (Gemma-4-31B-IT 4-bit + wiseft_050 LoRA) on Skyfall 1.1.0 (Apple M5 Ultra 96 GB): 96.38 Capability · 95.24% micro / 96.36% macro accuracy (220 / 231) · 1.80% ECE-10 · 238 ms p50 / 8.00 s p95 (0 requests ≥ 10 s).
  • decision-1-hard-candy on Skyfall CUDA (1x NVIDIA RTX PRO 6000 Blackwell 96 GB, official JevBench harness): 96.22 Official Macro Capability · 95.67% micro / 96.57% macro accuracy (221 / 231: 48/48 Easy, 72/72 Original, 101/111 [90.99%] Hard) · 2.07% ECE-10 (0.0716 Brier, 100% strict schema validity and paraphrase agreement) · 172 ms p50 / 6.71 s p95 (0 requests ≥ 10 s) · $0.0634 / 1k decisions (within the $0.0646 / 1k Jev-Class cap).
  • decision-1-hard-candy Single-Pass CoT-Off (0 output tokens, 1x NVIDIA RTX PRO 6000 Blackwell 96 GB): 92.29 Capability · 91.34% micro / 92.56% macro accuracy (211 / 231, 100% Easy and Original) · 162 ms p50 / 874 ms p95 (73.8 s total wall clock for all 231 decisions, $0.0398 / 1k decisions).
  • Sub-1% Calibration Config (decision-1.0 / candy-cane): 0.80% ECE-10 (98.39 calibration score, 94.96 Capability, 93.51% accuracy, 315 ms p50 / 4.99 s p95 on Apple M5 Ultra 96 GB; 0.98% ECE-10, 94.50 Capability, 142 ms p50 / 1.21 s p95 on 1x NVIDIA RTX PRO 6000 Blackwell 96 GB).
  • Smaller and Faster Models on the Same 231 Items: Fine-tuned Inkling-2-Mini (3.4B unique active MoE + MTP K=8 speculative CoT) reaches 92.58 Official Macro Capability and 90.48% micro / 91.23% macro accuracy (209 / 231) with 3.04% ECE-10 at 236 ms p50 / 4.49 s p95 (89.47 Capability / 86.58% accuracy CoT-Off at 218 ms p50 / 853 ms p95). Untuned Qwen3.5-4B (4-bit, 2.95 GiB RAM, Skyfall 1.1.0 early-layer token pruning) hits 74.03% accuracy at 41 ms p50 / 234 ms p95 (19 s total for all 231 items).

JevBench Public Summary (n = 231, Under 10 s SLA)

Model & Configuration Hardware Mode Capability Accuracy (Micro / Macro) ECE-10 Latency (p50 / p95) Cost / Notes
decision-1-hard-candy (Gemma-4-31B-IT 4-bit + wiseft_050) Apple M5 Ultra (96 GB) Selective CoT + PLD + KV reuse 96.38 95.24% / 96.36% (220/231) 1.80% 238 ms / 8.00 s 0 items ≥ 10 s
decision-1-hard-candy (official JevBench harness) 1x RTX PRO 6000 Blackwell (96 GB) Selective CoT + PLD + KV reuse 96.22 95.67% / 96.57% (221/231) 2.07% 172 ms / 6.71 s $0.0634 / 1k (Brier 0.0716, 101/111 Hard)
decision-1.0 / candy-cane (sub-1% ECE config) Apple M5 Ultra (96 GB) Selective CoT 94.96 93.51% (216/231) 0.80% 315 ms / 4.99 s 98.39 Calibration score, 0 items ≥ 10 s
decision-1.0 / candy-cane (sub-1% ECE config) 1x RTX PRO 6000 Blackwell (96 GB) Selective CoT 94.50 93.07% (215/231) 0.98% 142 ms / 1.21 s 0 items ≥ 10 s
Inkling-2-Mini (3.4B active MoE, fine-tuned) Apple M5 Ultra (96 GB) Selective CoT (MTP K=8) 92.58 90.48% / 91.23% (209/231) 3.04% 236 ms / 4.49 s 0 items ≥ 10 s
decision-1-hard-candy (Single-Pass CoT-Off) 1x RTX PRO 6000 Blackwell (96 GB) 0 output tokens 92.29 91.34% / 92.56% (211/231) 3.13% 162 ms / 874 ms $0.0398 / 1k, 73.8 s total wall
Inkling-2-Mini (3.4B active MoE, fine-tuned) Apple M5 Ultra (96 GB) Single-Pass CoT-Off 89.47 86.58% / 87.65% (200/231) 4.36% 218 ms / 853 ms 0 output tokens
Qwen3.5-4B (4-bit untuned, 2.95 GiB RAM) Apple M5 Ultra (96 GB) Single-Pass + Layer-3 Pruning 79.96 74.03% / 73.74% (171/231) 6.91% 41 ms / 234 ms 19.0 s total wall (52,135 tok pruned)

What Actually Worked in Readout, Routing, and Calibration

Asking an instruction model to write JSON probabilities in text fails in two predictable ways: token rounding breaks exact-sum schema checks, and generating 100 to 400 tokens on every call pushes latency and per-decision cost past Jev-Class bounds.[1] Four design choices let a 4-bit 31B checkpoint stay fast on easy decisions, spend compute only where needed, and keep calibration error near 1% to 2%.

1. Bidirectional User-Turn Attention and Zero-Token Option Readout

Under standard causal attention, early context tokens cannot see the question or option rubric placed at the end of the prompt. Repeating the state after the rubric doubles prefill cost, while emitting reasoning tokens adds decode latency.

Instead, the noncausal LoRA adapter (wiseft_050) runs with a bos_sink mask: token 0 (<bos>) remains a causal attention sink to stabilize attention denominators, while every token inside the user turn attends bidirectionally across the state, question, and option definitions. At the final prompt position, Skyfall skips full-vocabulary projection and multiplies the hidden state against only the K option token rows. That single forward pass emits zero output tokens, finishes in 162 ms median on RTX PRO 6000 (238 ms on M5 Ultra), and solves 211 of 231 items (91.34%) on its own, including 48/48 Easy and 72/72 Original.

2. Selective System-1.5 Scratchpad Reasoning on ~13% of Items

Running chain-of-thought on all 231 items wastes budget on the 87% of cases the base pass already resolves cleanly. Every request computes the calibrated Pass-1 posterior first, then checks a per-question-type confidence gate (cot_pmax_max and top-2 margin tau_cot) alongside remaining request time.

# Per-request execution invariant in Skyfall (/v1/systemone)
logits_p1, kv_p1 = prefill_bos_sink(prompt, project_rows=option_token_ids)
p_base = softmax(logits_p1 / T_qtype[qtype])

if max(p_base) < cot_pmax_max[qtype] and margin(p_base) < tau_cot[qtype] and budget_allows_cot():
    kv_user = slice_cache(kv_p1, prefix_end=user_end + 1)
    trace, stop_reason = decode_pld_scratchpad(kv_user, max_tokens=160, deadline=cot_cutoff)
    logits_cot = readout_way_b(kv_user, trace, project_rows=option_token_ids)
    return pool_posteriors(p_base, logits_cot, qtype, complete=(stop_reason == "FINAL"))

return p_base

On JevBench Public, the gate triggers reasoning on 31 of 231 items (13.4%). During readout (way_b), Skyfall uses a bos_sink_causal_tail mask so the user turn retains bidirectional encoding while the generated scratchpad tail remains causal. If a long trace hits the reasoning cutoff before emitting FINAL, the runtime either falls back to the completed Pass-1 answer or pools with conservative incomplete-trace weights, guaranteeing 100% valid distributions. Selective reasoning rescues 9 to 10 multi-hop ledger and temporal-SLA items (lifting Hard tier accuracy from 81.98% CoT-Off to 90.99% [101 / 111] on CUDA) while median latency stays at Pass-1 speed.

3. Ordinal EMD + MSE Loss, WiSE-FT 0.50, and Out-of-Fold Temperature Scaling

Training a decision adapter purely with categorical cross-entropy treats predicting level 1 vs. level 3 on a 0-to-3 ordinal rubric as no worse than predicting level 2, and aggressive LoRA updates sharpen logits until calibration collapses. Evaluating an uncalibrated fine-tuned checkpoint under legacy temperatures pushed ECE-10 to 23.00% on JevBench-231 despite over 91% accuracy.

Three training and post-processing steps fixed that tradeoff:

  • Ordinal EMD + MSE objective: For score items, combining squared Earth Mover's Distance over cumulative label probabilities with expected-value MSE teaches smooth probability mass around adjacent levels rather than winner-take-all spikes.
  • Weight-space ensembling (wiseft_050): Blending the trained noncausal LoRA weights 50/50 with the base checkpoint preserved multi-hop accuracy gains while curbing overconfident tail errors.
  • 5-fold out-of-fold per-type calibration: Boolean (noul), multi-option (choice), and ordinal (score) heads have different logit scales and entropy profiles. Fitting separate post-hoc temperatures per question type on 1,800 disjoint out-of-fold validation items (zero JevBench-231 overlap) cut the OOF overconfidence gap to 0.05 percentage points and brought JevBench-231 ECE-10 down to 1.80% to 2.07% on decision-1-hard-candy (and 0.80% to 0.98% on decision-1.0).

Skyfall C++20 Runtime on Metal and CUDA

Our initial Python server hit 10.21 s tail latency under selective CoT due to host dispatch overhead and looser cutoff granularity. I replaced it with Skyfall, a zero-Python C++20 inference server spanning three runtime files (skyfall.cpp, metal.cpp, and cuda.cpp, originally ~1,400 lines in 1.0 and ~4,500 lines in 1.1.0) built directly on MLX C++, a Rust tokenizer, and a native HTTP worker pool.

skyfall --model gemma-4-31b-it-4bit --adapter-path decision-1-hard-candy/adapter \
  --calibration configs/hard_candy_oof.json --pld --kv-reuse \
  --attn-prune-keep 0.35 --attn-prune-min-tokens 4096

Three runtime optimizations kept every public and long-context request inside the 10-second wall:

  • Prompt-lookup speculative decoding (--pld): Scratchpads on policy and accounting tasks copy clause IDs, dates, and dollar figures verbatim from the prompt. Zero-weight n-gram lookup drafts 4-token spans directly from prompt token history with zero draft-model memory overhead.
  • Lossless intra-request KV prefix slicing (--kv-reuse): Model::slice_cache snapshots the pass1_kv state during the initial bos_sink pass and slices full-attention, sliding-window, and Qwen Gated-DeltaNet recurrent states back to user_end + 1 for way_b readout and option-order swap. Across JevBench-231, that reuses 37,775 prompt tokens, accelerates 4K-token way_b readout by 18.7x (3,768 ms to 201 ms), and trims M5 Ultra p95 latency from 8.88 s to 8.00 s.
  • Early-layer global-attention token pruning above 4K tokens: At layer 5 on Gemma 4 (layer 3 on Qwen 3.5), Skyfall 1.1.0 computes 2-hop question-to-context attention scores with <bos> kept in the softmax denominator (preventing sink heads from injecting noise) and retains sparse 1D pos_ids RoPE (under 1e-5 max error against contiguous mx::fast::rope). On 32K-token enterprise contract haystacks, adaptive 0.35 retention accelerates full multi-pass Gemma 4 31B execution by 7.61x (123.99 s to 16.30 s) and cuts peak Metal memory by 12.64 GiB (46.20 GiB to 33.56 GiB) with 100% answer parity across 56/56 test runs.

Where Early-Layer Pruning Backfires (Under 4K Adversarial Prompts)

Enabling 0.35 token pruning down to 512 tokens on decision-1-hard-candy dropped JevBench-231 Capability from 96.38 to 92.64 and slowed total wall time from 320.0 s to 359.6 s. Two mechanisms caused the regression: pruning short prompts softened Pass-1 probabilities below cot_pmax_max on 15 items (increasing triggered CoT runs from 31 to 44 and adding 77.3 s of decode), and dropping mid-document clauses broke 4-hop definition chains. Setting --attn-prune-min-tokens 4096 for CoT-gated 31B models keeps JevBench-231 (max 3,912 tokens) lossless while activating 2.3x to 7.6x speedups on 4K to 32K inputs. By contrast, single-pass Qwen3.5-4B has no CoT gate to perturb, so pruning from 512 tokens lifted JevBench-231 accuracy from 73.16% to 74.03% and cut wall clock from 24.75 s to 19.02 s.


Scope: Public Split vs. Hardened and Sealed Distributions

All headline numbers above are measured on the 231-item public JevBench split, where prompts are under 4K tokens and tuned 31B checkpoints saturate Easy (48/48) and Original (72/72) at 100%. Public-split scores verify protocol conformance, calibration math, and latency/cost parity against published fstandhartinger/jevbench baselines such as TypeSafe Jev 1.13.0 (96.3% v1 accuracy; 85.7 Intelligence and 82.7 Calibration at $0.0399/1k on v1.3) and GPT-5.6 Luna low (97.1% v1 accuracy; 95.3 Intelligence and 89.8 Calibration at $0.2419/1k on v1.3).[2]

Held-out and sealed distributions with longer, noisier documents are substantially harder, so public-split numbers should not be confused with private leaderboard scores.[3] On our disjoint 1,000-item hardened proxy (multi-thousand-token ledger reconciliations, counterfactual business-day SLA traps, and noisy routing logs with zero training or OOF overlap):

  • decision-1-hard-candy solo scores 83.50% accuracy (835 / 1,000), 1.14% ECE-10, and 90.61 Capability proxy at 301 ms p50 / 6.69 s p95 (0 requests ≥ 10 s).
  • Inkling-2-Mini (3.4B active MoE + MTP CoT) scores 75.40% accuracy and 82.63 Capability proxy at 472 ms p50 / 4.05 s p95 (up from 61.40% CoT-Off).
  • Cascading 31B + Inkling-2-Mini did not beat 31B solo: A 5-fold out-of-fold router invoking Inkling-2-Mini on uncertain primary items scored 83.30% accuracy (90.21 Capability proxy), 0.40 Capability points behind running decision-1-hard-candy alone, because secondary-model variance and shared 10-second deadline pressure outweighed disagreement rescues.

References

  1. Florian Standhartinger / Benchmark Heaven, JevBench: Typed Decision Model Benchmark (MIT License, 2026), https://github.com/fstandhartinger/jevbench and metric definitions in jevbench/metrics.py.
  2. Benchmark Heaven, JevBench v1 and v1.3.0 Published Results (September 2026), RESULTS.md and RESULTS-v1.2.md in https://github.com/fstandhartinger/jevbench.
  3. JevBench v1.4 composite scoring (jevbench/composite_v14.py), which combines public and chance-corrected sealed accuracy and applies a linear penalty when the public-to-sealed accuracy gap exceeds 25 percentage points.