potentialpaper

HyperHadamard: Layout-Aware Hadamard Transforms on Tensor Cores

Update ICLR 2027 submission W9gciOf15Z: 1 note

@openreview[bot] · 2026-11-24 15:42 UTC · c80da8fa14ec ·

Evidence

reviews/openreview/w9gciof15z/notes/ha3qpzrbp4.json modified

+++ b/reviews/openreview/w9gciof15z/notes/ha3qpzrbp4.json
@@ -14,12 +14,12 @@
"critical_weaknesses": "W1. The benefit is confined to a narrow regime, and one end-to-end result does not agree with the operator sweep.\n- Regime. FP16/BF16 gains require N ≥ 8192 and many rows. The kernel is at parity for N ≤ 4096. At N = 32768 it needs at least 2^23 elements to overtake HadaCore, and in batch-8 decode it reaches only 0.978× of HadaCore. The supported range starts at N = 256, which excludes the 16–128-element blocks used for head-dimension rotations and for group-aligned MXFP4/NVFP4 rotations, so many current deployments would see no benefit. The 14.70× headline mostly measures dense FP64 against any fast transform; the operation-matched comparison is 1.915×.\n- Inconsistency. For Llama-3.2-1B, transform time falls from 126.2 ms to 85.6 ms (1.47×), and H8192 accounts for 73.3% of the saving (Appendix F). The operator sweep, however, reports 1.05× at N = 8192 and parity at N ≤ 4096. Even if all transform time were spent at N = 8192, a 1.05× kernel speedup would save at most about 5%, not 32%. Possible causes are that vLLM's embedded HadaCore differs from the standalone version, or that the much smaller tensors (about 2^24 elements at a 2048-token budget, versus 2^30 in the sweep) behave differently. Either way the gap needs an explanation, because it determines how well the operator results predict deployment.\n\nW2. The application-level case for full-dimension rotations is thin and leaves out FP4 and adaptive transforms.\nSection 4.4 is the paper's argument that fast full-dimension rotations are worth having. It covers one model (Mistral-7B) and one recipe (GPTQ INT3/INT2 weights, dynamic per-token INT4 activations), with rotations run as FP64 hooks. The gain depends on activation precision rather than weight precision: with BF16 or INT8 activations, full-dimension rotations slightly hurt (+0.2% to +0.5%) for both INT3 and INT2 weights. Appendix H shows that H14336 alone hurts and helps only together with H4096, which is not explained. None of these quality-sensitive settings is run end to end with the kernel. The vLLM experiments use W4A16, where Table 4 suggests rotation size makes no difference.\n- No FP4 evaluation. MXFP4 and NVFP4 are arguably the main 4-bit activation targets on current hardware, and the paper itself notes (Sec. 2, L119–121) that for microscaling FP4 formats rotations are usually confined to blocks matching the scaling groups. Under per-16- or per-32-element scales, an outlier inflates only its own group's scale. Full-dimension rotation helps per-token INT4 by diluting an outlier that would otherwise set a single row-wide scale, and that mechanism is largely absent under microscaling. Whether full-dimension rotations help, are neutral or hurt there is untested.\n- No comparison with data-aware or learned transforms. WUSH (arXiv:2512.00956, ICML 2026) derives closed-form, data-aware blockwise transforms for joint weight–activation quantization. Each combines a Hadamard backbone with a second-moment-based component, is non-orthogonal, and uses a block size tied to the quantization group. WUSH reports W4A4 gains over the strongest Hadamard baselines in MXFP4, e.g., +2.8 average points with RTN and +0.7 with GPTQ on Llama-3.1-8B-Instruct. The submission does not cite WUSH, and it cites but does not compare against SpinQuant or ButterflyQuant. Section 4.4 compares only fixed H_k blocks with a full fixed Hadamard. It therefore cannot show that larger exact rotations beat better small-block transforms at equal cost, and such transforms (non-orthogonal, data-dependent, with blocks below N = 256) fall outside the kernel's supported structure and range.\n\nThis weakness concerns the significance of the application, not the correctness of the kernel. It matters because the paper presents full-dimension rotations as the main use case for its kernel (Sec. 1, 4.4, 5). If FP4 microscaling or adaptive block transforms are where practice is heading, the kernel's significance narrows to integer per-token schemes, QuIP-style catalog checkpoints and randomized sketching.",
"questions_for_authors": "1. Llama-3.2-1B (W1). Please reconcile the 1.47× reduction in transform time with the operator sweep's 1.0–1.05× at N ≤ 8192. Could you report a matched operator-level measurement at the shapes and dtype vLLM actually uses (e.g., 2048 × 8192, BF16) for HyperHadamard, standalone HadaCore and vLLM's embedded `C::hadacore_transform`?\n2. Small-batch regime. How does throughput compare with HadaCore below 2^23 elements at each N, and in decode at batch sizes 1–64? Would dispatching to HadaCore below a threshold remove the 0.978× decode regression?\n3. FP32 bit-exactness. Lemma 1 holds in exact arithmetic, but reordering floating-point butterflies changes rounding in general ((a+b)+(c+d) need not equal (a+c)+(b+d)). Is the FP32 kernel bit-exact with Dao-AILab by construction, i.e., with the same addition order and normalization point at every length, or only on the inputs tested? The byte-identical selection result in Sec. 4.3 depends on the answer.\n4. Large-N schedule and artifacts. For each N ≥ 4096, what are A1, A2 and the phase-2 fragment layout, and what register footprint, shared-memory footprint and occupancy result? Can the code be shared with reviewers anonymously during the discussion period?\n\nSuggestions:\n\n5. Evaluate MXFP4/NVFP4 activations (and weights), comparing group-aligned H16/H32 rotations, larger blocks and full-dimension rotations, to test whether the Section 4.4 trend carries over to microscaling formats.\n6. Discuss WUSH and, if feasible, compare a full-dimension Hadamard against WUSH-style data-aware block transforms and learned rotations (SpinQuant) at matched cost, ideally in an end-to-end W4A4 setting that uses the kernel.\n7. Explain why H14336 alone raises perplexity while H4096 alone lowers it (Appendix H), and add at least one more model family to Section 4.4.\n8. Position the work against classical FFT/WHT formulations that reorder or self-sort stages and against layout systems (CuTe, linear layouts), separating what is new (typed tracking of axis state through tensor-core layouts) from what is known (Kronecker factors commute).",
"flag_for_ethics_review": "No",
"details_of_ethics_concerns": "none",
- "rating": 2,
+ "rating": 3,
"confidence": 3
},
"createdAt": "2026-10-21T12:08:53.371Z",
- "modifiedAt": "2026-11-06T12:20:01.325Z",
+ "modifiedAt": "2026-11-23T11:15:30.535Z",
"url": "https://openreview.net/forum?id=W9gciOf15Z&noteId=ha3qPZRBp4",
"license": "CC-BY-4.0"
}