Five-Exit Same-Semantics Scoreboard¶
Across RTX 5090 D, Xeon 8470Q, and MLU370, this same-semantics scoreboard (per-row CSV · unpaired audit CSV) evaluates 367 complete calls, of which 348 have a same-device reference under matching numerical semantics: 200 faster, 126 tied, and 22 slower (classified from the interquartile spread across three interleaved rounds; the remaining 19 rows on MLU370 have no same-semantics device reference because CNNL/torch_mlu lacks BF16, FP8, INT32-output, or device linear-algebra primitives). Each row's primary baseline is the fastest mature implementation available on the same device—including Inductor (torch.compile), library kernels, and eager execution—with every candidate required to pass the numerical criteria.
| Exit | Device | Faster | Tied | Slower | Unpaired |
|---|---|---|---|---|---|
| Triton | RTX 5090 D | 26 | 39 | 7 | 0 |
| cuTile | RTX 5090 D | 29 | 37 | 6 | 0 |
| BANG C | MLU370 | 39 | 15 | 6 | 19 |
| Mojo | Xeon 8470Q | 55 | 16 | 1 | 0 |
| Weft | Xeon 8470Q | 51 | 19 | 2 | 0 |
Methodology and Verdict Rules¶
- Strongest mature same-device baseline: For every row,
select_strongest_referenceautomatically picks the fastest mature implementation on the same device that passes the numerical contract—evaluatingInductor(torch.compile), vendor/community library kernels, andeagerexecution.eagerremains recorded in the auxiliaryeager_reference/eager_usCSV columns, while Inductor compilation or numerical failures are logged verbatim ininductor_status/inductor_notebefore falling back to the next-fastest candidate. - Numerical contract first: Floating-point outputs are checked against a same-input FP64 oracle using dtype tolerances and PyTorch Dynamo's
same()error-amplification bound; integer, boolean, index, NaN/Inf positions, and unwritten output sentinels are verified exactly. Full rules live in the Intent-Bench numerical criteria. - Interleaved interquartile classification: Timed windows run under exclusive device locks and contention checks. Faster / tied / slower verdicts use the interquartile ratio bounds (
ratio_low/ratio_high) across three interleaved rounds.
Explicit Dual-Tier Semantic Comparisons¶
When a mature library uses an approximation outside the author's default IEEE/SLEEF contract, the scoreboard records both the strict default tier and an explicitly licensed same-semantics tier rather than silently relaxing defaults:
Xeon 8470Q · CPU Attention (ms, cores 0–7)¶
| Workload | Numerical Contract & Baseline | Mojo / Baseline | Weft / Baseline |
|---|---|---|---|
attention_unscaled_max |
Author default (SLEEF u10 exp), ATen step-by-step |
32.94 / 519.16 | 35.76 / 579.83 |
attention_unscaled_max |
SDPA tier (weight exp explicitly grants afn) |
23.87 / 31.65 | 28.94 / 32.36 |
alibi_attention |
Author default, ATen step-by-step | 36.24 / 713.70 | 33.14 / 681.28 |
alibi_attention |
SDPA tier, full fused SDPA call | 31.88 / 60.21 | 32.70 / 60.58 |
flash_attention_backward |
Author default, ATen with source rounding points | 172.99 / 444.57 | 274.73 / 328.20 |
flash_attention_backward |
Weight exp2 grants afn, fused SDPA primary row |
111.14 / 134.00 | 107.70 / 133.73 |
Ordinary FP32 I.exp(x) matches Inductor's CppVecOverrides.exp (SLEEF u10). CPU exits only lower attention weights to ATen SDPA's fexp_u20 when the author explicitly grants afn. See CPU attention design and measurements and the two-tier round quartiles CSV.
MLU370 · BANG C Softmax (µs)¶
- Author default tier (strict IEEE RN normalization division + u10
exp): paired against matchingaten:source(cnnlSoftmaxForward_v2uses approximate reciprocal multiplication and does not satisfy strict RN division). approximate_divlicensed tier (normalization quotient grantsfastmath<arcp,afn>): paired directly against nativecnnlacross all 7 shape/dtype cases in the primary CSV.
Unpaired MLU370 Rows (19 Calls)¶
All 19 unpaired rows on MLU370 were verified against SDK headers and runtime probes; FP32 promotions that alter operand or output precision are never substituted as same-semantics baselines (per-row audit in v0.6-unpaired.csv):
- 15 BF16 calls: CNNL on MLU370 (
mtp_372) restricts BF16 elementwise, normalization, and attention primitives to MLU500-series targets; program/fp8_gemm(1 call): MLU370 ISA,cnnlDataType_t, andtorch_mludo not supportfloat8_e4m3fn;program/int8_gemm(1 call):torch._int_mmfalls back to CPU andcnnlMatMul_v2/cnnlQuantizeMatMuldo not support off-chipINT32outputs;group7/triangular_solve&program/cholesky(2 calls):torch_mlufalls back to CPU andlibcnnl/libcnnl_extra/libmluopsprovide no devicetrsmorpotrf.
Raw Measurement Archive¶
All scoreboard CSVs and round quartiles live in the independent Intent-Bench results/v0.6/ directory:
v0.6-semantics.csv: authoritative 367-row five-exit same-semantics scoreboard;v0.6-unpaired.csv: per-row hardware and library audit for the 19 unpaired MLU370 calls;cpu-attention-exp-modes.csv: Xeon CPU attention default vs SDPA round quartiles;v0.6-milestone.csv: initial five-exit milestone archive.