potentialpaper

Flash-SD-KDE: Accelerating SD-KDE with Tensor Cores

Update NeurIPS 2026 submission XKQaXj5Qol: 7 notes

@openreview[bot] · 2026-11-24 15:52 UTC · 00dd9dd2f8c2 ·

Evidence

reviews/openreview/xkqaxj5qol/notes/2ianwvkjer.json added

+++ b/reviews/openreview/xkqaxj5qol/notes/2ianwvkjer.json
@@ -0,0 +1,16 @@
+{
+ "schema": "review/1",
+ "id": "2IaNWvkjer",
+ "replyTo": "Ed8jemrhU2",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "title": "Rebuttal to Reviewer YaGf",
+ "comment": "Thank you for your insightful review.\n\n**W1 (novelty of the GPU techniques):** The individual techniques (tiling, streaming, mixed precision) are indeed known, as they were for FlashAttention, whose contribution was showing that reordering one specific primitive unlocks a new capability regime. Our contributions are estimator-specific and not obtainable from generic tooling: (i) the algebraic reordering $\\sum_j (x_i - x_j)\\varphi_{ij} = x_i \\sum_j \\varphi_{ij} - (\\Phi X)_i$, which turns the empirical-score numerator into two GEMMs; (ii) the streaming formulation that makes exact SD-KDE run at $n \\approx 10^6$ on one GPU for the first time; and (iii) Flash-Laplace-KDE, a new fused surrogate estimator with the same leading-order bias correction and no score pass. \n\n**W2 (whether `torch.compile`'s tiling could derive this kernel):** The reviewer is correct that `torch.compile` (TorchInductor) performs tiling, but only for the class of programs it can express: fusions of pointwise, reduction, and scatter ops, plus matmuls with limited prologue/epilogue fusion. Our kernel requires fusing through two matmuls: it computes the pairwise inner products $XX^\\top$, applies `exp` elementwise, and immediately consumes the result $\\Phi$ in both a row-reduction and a second matmul $\\Phi X$, keeping each tile of the $n \\times n$ matrix $\\Phi$ in registers. Inductor does not fuse the output of one matmul into the input of another; matmuls dispatch as separate kernels (cuBLAS or Triton templates), so $\\Phi$ must be materialized in HBM between them (see W3 for details). This is precisely the transformation that motivated FlashAttention (Dao et al., 2022), which shares the matmul $\\to$ elementwise $\\to$ matmul structure.\n\n**W3 (baseline Tensor-Core usage, compiled graph of `torch.compile`):** Yes, the baselines use Tensor Cores. However, Tensor Cores make little difference to the baseline because it is bandwidth bound, with only 11% of its runtime in GEMMs. The other 89% of the time is spent moving $n^2$ intermediates through global memory, which no kernel-by-kernel implementation can avoid because separate kernels communicate through it. Tensor Cores become useful once fusion removes the $n^2$ traffic, at which point the same hardware yields $4.94\\times$ inside our streamed kernel (Table 5). \n\nThe requested compiled graph, the complete Inductor execution plan for the compiled score pass is:\n\n```\nbuf0 = empty_strided_cuda((32768, 1)) # row norms\ntriton_per_fused_mul_sum_0(X -> buf0) # negligible\nbuf1 = empty_strided_cuda((32768, 32768)) # the single 4 GB n^2 buffer\nextern_kernels.mm(X, X^T, out=buf1) # cuBLAS -> cutlass_80_tensorop_s1688gemm\n # (TF32, Tensor Cores), ~25% of kernel time\nbuf2 = buf1 # reuse: Phi overwrites the Gram in place\ntriton_red_fused_add_clamp_exp_mul_permute_sub_sum_1 # dist + exp + row-sums fused;\n (buf2, buf0 -> buf2, buf4) # reads Gram, writes Phi, ~50%\nextern_kernels.mm(buf2, X, out=buf3) # cuBLAS -> ampere_sgemm (Phi @ X), ~25%\ntriton_poi_fused_add_div_mul_sub_2 # debias epilogue, negligible\n```\n\nEvery elementwise op is fused into two Triton kernels, and the memory planner reuses the single $n^2$ buffer by overwriting the Gram with $\\Phi$. So `torch.compile` can indeed tile, but only within each kernel it generates.\n\n**Q1 (latency breakdown):** We measured the score and KDE passes separately for each implementation at $d=16$, $n_{\\text{train}}=32{,}768$, $n_{\\text{test}}=4{,}096$ on the paper's workstation, reporting the minimum over repeated interleaved runs. The CPU row runs the same eager formulation on the host's dual EPYC 7763 with 128 threads, since the scikit-learn baseline of Table 1 has no score pass to break down:\n\n| Method | Score pass (ms) | KDE pass (ms) | Total (ms) | Score share |\n|---|---|---|---|---|\n| PyTorch on CPU (dual EPYC 7763) | 6,245 | 767 | 7,012 | 89% |\n| PyTorch (Table 1 baseline) | 100.8 | 12.1 | 112.8 | 89% |\n| Flash-SD-KDE | 2.07 | 0.27 | 2.34 | 88% |\n\n**Q2 (numerical impact of dtype casting):** Inputs are stored FP32, accumulation is FP32, and TF32 only rounds the `tl.dot` inputs' mantissas. New experiment ($n=32{,}768$): relative to the identical kernel run in full FP32 without Tensor Cores (`precision_mode=\"fp32_ieee\"`), TF32 perturbs each density estimate by 3.2% on average; re-drawing the full $n$-point training set perturbs the same estimates by 7.2% on average, so the hardware effect is within the estimator's sampling noise. \n\n**Q3 (fusing the score and KDE passes):** It is possible, but Amdahl's law caps the benefit: the score pass is around 90% of runtime (see Appendix A.6), so fusing the two passes saves at most 10% for nontrivial code complexity, which is why we kept the two-kernel structure."
+ },
+ "createdAt": "2026-07-29T15:16:35.096Z",
+ "modifiedAt": "2026-11-19T16:59:33.400Z",
+ "url": "https://openreview.net/forum?id=XKQaXj5Qol&noteId=2IaNWvkjer",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/xkqaxj5qol/notes/gaxincg4bf.json added

+++ b/reviews/openreview/xkqaxj5qol/notes/gaxincg4bf.json
@@ -0,0 +1,16 @@
+{
+ "schema": "review/1",
+ "id": "gaxiNCG4bf",
+ "replyTo": "qHUb9xm2Ez",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "title": "Author Reply to Rebuttal Comment",
+ "comment": "Thank you for the follow-up. The key distinction is indeed fusion, but we eliminate, rather than hide, the dominant inter-kernel communication.\n\nIn a conventional cuBLAS pipeline, $G = XX^\\top$ is written to HBM; a separate kernel reads $G$, computes and writes $\\Phi$; and the subsequent GEMM reads $\\Phi$ again. Our streamed kernel computes one $G$ tile using Tensor Cores, immediately applies the distance and exponential operations, consumes the resulting $\\Phi$ tile in both the row reduction and the $\\Phi X$ accumulation, and then discards it. Thus, the $n^2$ Gram and kernel intermediates are never materialized in global memory.\n\nBy ``remain in registers/shared memory,'' we mean the residency of the tile data, not the arithmetic unit performing the multiplication. The matrix multiplication executes on Tensor Cores using operands and accumulators held on-chip, while the norms, exponentials, and reductions execute on FP32 ALUs and SFUs.\n\nThe $47.2\\times$ end-to-end speedup decomposes as follows at $n = 32{,}768$. The eager PyTorch baseline, which already uses TF32 Tensor Cores, takes $113.3\\,\\mathrm{ms}$. Fusion and streaming alone, with Tensor Cores disabled, reduce this to $10.5\\,\\mathrm{ms}$, a $10.8\\times$ speedup. Enabling Tensor-Core tiles further reduces the runtime to $2.4\\,\\mathrm{ms}$, an additional $4.4\\times$ speedup. Thus, most of the gain comes from eliminating the $n^2$ HBM traffic, while Tensor Cores provide the remaining throughput improvement."
+ },
+ "createdAt": "2026-08-04T03:44:40.910Z",
+ "modifiedAt": "2026-11-19T16:59:33.314Z",
+ "url": "https://openreview.net/forum?id=XKQaXj5Qol&noteId=gaxiNCG4bf",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/xkqaxj5qol/notes/iehhak5sws.json modified

+++ b/reviews/openreview/xkqaxj5qol/notes/iehhak5sws.json
@@ -5,11 +5,12 @@
"kind": "meta_review",
"invitation": "Meta_Review",
"signature": "Area Chair LN3f",
"content": {
- "metareview": "The paper presents a systems-oriented acceleration of the existing SD-KDE estimator, whose empirical score computation introduces substantial quadratic computational and memory costs. It reorganizes the score-estimation and density-evaluation stages into Tensor-Core-friendly matrix operations and implements them using tiled, streaming Triton kernels that avoid materializing full pairwise interaction matrices. The reported results include speedups of up to 47× over an eager PyTorch SD-KDE implementation and over 3,300× over scikit-learn KDE. The paper also introduces Flash-Laplace-KDE, a fused surrogate to provide similar bias-reduction benefits without explicit score-estimation pass. \n\nThe principal strength is the magnitude of the reported performance gains and their potential to make SD-KDE practical at substantially larger scales. The GEMM reformulation and streaming accumulation are regarded as technically sound and well aligned with modern GPU architectures. The implementation coherently combines Tensor-Core execution, tiling, and memory-aware streaming to reduce both runtime and the storage required for pairwise interactions. The reviews also highlight the effective use of Triton for managing tiling and the memory hierarchy, as well as the ablation studies that help explain where the acceleration arises. \n\nA recurring concern is whether the reported gains reflect the implementation advances beyond a conventional GEMM-based PyTorch or cuBLAS formulation. In particular, current presentation does not clarify whether the PyTorch and torch.compile baselines already use Tensor Cores under comparable datatype and precision settings, or which aspects of the custom implementation account for the remaining performance difference. A second recurring concern is the numerical impact of TF32 or other reduced-precision execution. The evaluation does not directly establish whether datatype casting or Tensor-Core arithmetic materially affects the accuracy of the estimated scores or density values. The reviewers also have disagreements on the novelty, especially the limited novelty in methodology by primarily combining established GPU techniques. In addition, concerns are raised on the performance at dimensions above 32, particularly 64 and 128; possible negative density values and the behavior of Flash-Laplace-KDE on non-Gaussian or heavy-tailed distributions; roofline analysis and broader application evidence; and a more detailed latency breakdown together with clarification of whether the score-estimation and KDE stages could be fused.\n\nRegarding the rebuttal, the most consequential issues are baseline comparability, performance attribution, and numerical fidelity. The authors should clarify which implementation choices provide benefits beyond a standard GEMM formulation and whether the PyTorch and torch.compile baselines already use Tensor Cores. A detailed compiled graph for the torch.compile baseline would make this comparison more concrete. The response should also explain whether the datatype casting required for Tensor-Core execution, including the use of TF32 or other reduced-precision arithmetic, materially affects SD-KDE accuracy. A pass-level latency breakdown would help clarify where the reported speedups arise and strengthen the attribution of the performance gains. Results or analysis at dimensions such as 64 and 128 would also clarify whether the acceleration extends beyond the primarily evaluated low-dimensional regime. For Flash-Laplace-KDE, clarification of its behavior on non-Gaussian or heavy-tailed distributions and the practical implications of possible negative density values would address the remaining concern about this auxiliary contribution."
+ "metareview": "The paper presents a systems-oriented acceleration of the existing SD-KDE estimator, whose empirical score computation introduces substantial quadratic computational and memory costs. It reorganizes the score-estimation and density-evaluation stages into Tensor-Core-friendly matrix operations and implements them using tiled, streaming Triton kernels that avoid materializing full pairwise interaction matrices. The reported results include speedups of up to 47× over an eager PyTorch SD-KDE implementation and over 3,300× over scikit-learn KDE. The paper also introduces Flash-Laplace-KDE, a fused surrogate to provide similar bias-reduction benefits without explicit score-estimation pass. \n\nThe principal strength is the magnitude of the reported performance gains and their potential to make SD-KDE practical at substantially larger scales. The GEMM reformulation and streaming accumulation are regarded as technically sound and well aligned with modern GPU architectures. The implementation coherently combines Tensor-Core execution, tiling, and memory-aware streaming to reduce both runtime and the storage required for pairwise interactions. The reviews also highlight the effective use of Triton for managing tiling and the memory hierarchy, as well as the ablation studies that help explain where the acceleration arises. \n\nA recurring concern is whether the reported gains reflect the implementation advances beyond a conventional GEMM-based PyTorch or cuBLAS formulation. In particular, current presentation does not clarify whether the PyTorch and torch.compile baselines already use Tensor Cores under comparable datatype and precision settings, or which aspects of the custom implementation account for the remaining performance difference. A second recurring concern is the numerical impact of TF32 or other reduced-precision execution. The evaluation does not directly establish whether datatype casting or Tensor-Core arithmetic materially affects the accuracy of the estimated scores or density values. The reviewers also have disagreements on the novelty, especially the limited novelty in methodology by primarily combining established GPU techniques. In addition, concerns are raised on the performance at dimensions above 32, particularly 64 and 128; possible negative density values and the behavior of Flash-Laplace-KDE on non-Gaussian or heavy-tailed distributions; roofline analysis and broader application evidence; and a more detailed latency breakdown together with clarification of whether the score-estimation and KDE stages could be fused.\n\nRegarding the rebuttal, the most consequential issues are baseline comparability, performance attribution, and numerical fidelity. The authors should clarify which implementation choices provide benefits beyond a standard GEMM formulation and whether the PyTorch and torch.compile baselines already use Tensor Cores. A detailed compiled graph for the torch.compile baseline would make this comparison more concrete. The response should also explain whether the datatype casting required for Tensor-Core execution, including the use of TF32 or other reduced-precision arithmetic, materially affects SD-KDE accuracy. A pass-level latency breakdown would help clarify where the reported speedups arise and strengthen the attribution of the performance gains. Results or analysis at dimensions such as 64 and 128 would also clarify whether the acceleration extends beyond the primarily evaluated low-dimensional regime. For Flash-Laplace-KDE, clarification of its behavior on non-Gaussian or heavy-tailed distributions and the practical implications of possible negative density values would address the remaining concern about this auxiliary contribution.",
+ "final_justification": "The reviewers generally agree that this paper addresses an important practical problem in making score-debiased KDE scalable and reports substantial speedups through Tensor-Core-friendly GEMM reformulation and streaming Triton kernels. The main concerns in the initial reviews include limited systems novelty relative to standard GEMM/cuBLAS practice, unclear baseline Tensor-Core usage, the numerical impact of TF32, incomplete latency attribution, limited evaluation beyond low dimensions, and the behavior of Flash-Laplace-KDE on heavy-tailed data. During the rebuttal, the authors addressed most of these concerns with a performance-decomposition ladder, the torch.compile execution graph, TF32-versus-resampling numerical comparisons, higher-dimensional scaling results, pass-level latency breakdowns, roofline analysis, and heavy-tailed/negative-density studies. These additions substantially strengthen the experimental evidence, and the reviewers’ final assessments are overall positive. Some concerns remain regarding presentation clarity of the execution mechanism and the degree of methodological novelty, but these are not critical issues. Overall, the paper is technically sound, practically relevant, and sufficiently supported by the updated experiments.\n\nGiven the the final score profile (3/5/4) with only one borderline reject whose remaining concern is presentation clarity rather than technical correctness or significance of contributions, I recommend an acceptance."
},
"createdAt": "2026-07-23T10:39:37.045Z",
- "modifiedAt": "2026-11-18T15:25:41.263Z",
+ "modifiedAt": "2026-11-19T05:03:37.009Z",
"url": "https://openreview.net/forum?id=XKQaXj5Qol&noteId=IeHhaK5sws",
"license": "CC-BY-4.0"
}

reviews/openreview/xkqaxj5qol/notes/qhub9xm2ez.json added

+++ b/reviews/openreview/xkqaxj5qol/notes/qhub9xm2ez.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "qHUb9xm2Ez",
+ "replyTo": "y5801T7LLF",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Reviewer 39iH",
+ "content": {
+ "comment": "+ If using cuBLAS, global memory can also be used to exchange data between kernels, which is the same as your method. Do you mean your method can fuse the kernels while hiding the kernel communication latency?\n+ \"so these intermediates never leave registers\". Do you mean in-register computation? If using Tensor Cores, the computations are performed on the Tensor Core units without using CUDA cores with registers, in my view.\n+ It is unclear why your method performs better and where the outstanding speedup (e.g., 47×) comes from.\n+ Roofline results looks acceptable"
+ },
+ "createdAt": "2026-08-04T02:17:14.044Z",
+ "modifiedAt": "2026-11-19T16:59:33.340Z",
+ "url": "https://openreview.net/forum?id=XKQaXj5Qol&noteId=qHUb9xm2Ez",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/xkqaxj5qol/notes/s6gidd5eyv.json added

+++ b/reviews/openreview/xkqaxj5qol/notes/s6gidd5eyv.json
@@ -0,0 +1,16 @@
+{
+ "schema": "review/1",
+ "id": "S6giDD5Eyv",
+ "replyTo": "wJWxnz5eK1",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "title": "Rebuttal to Reviewer 3kmd",
+ "comment": "Thank you for your thorough and positive review. New experiment are all on the same RTX A6000 GPU used in the paper. \n\n**Q1 (performance as $d$ approaches 64 or 128, Tensor-Core utilization vs. $d$):** Flash-SD-KDE runtime grows linearly in $d$ as the compute-bound model predicts, and Tensor-Core utilization holds at 19 to 30% of peak across the sweep. The bandwidth $h$ enters only through the scalar $\\exp(-r^2/2h^2)$, so growing $h$ with $d$ does not affect the GEMM structure. We swept $d$ at $n_{\\text{train}}=32{,}768$, $n_{\\text{test}}=4{,}096$.\n\n| $d$ | Flash-SD-KDE (ms) | Fraction of TC peak | Tensor Cores off (ms) | TC speedup |\n|---|---|---|---|---|\n| 16 | 2.4 | 23% | 10.5 | $4.4\\times$ |\n| 32 | 3.5 | 30% | 18.3 | $5.3\\times$ |\n| 64 | 6.8 | 29% | 37.2 | $5.5\\times$ |\n| 128 | 19.8 | 19% | 73.2 | $3.7\\times$ |\n\n Sustaining 19 to 30% of the *absolute* Tensor-Core peak is the expected level for this estimator, because the kernel interleaves its GEMM tiles with the $O(n^2)$ non-Tensor-Core work (norms, exponentials, atomic accumulations) that runs on FP32 ALUs and SFUs, consistent with Figure 3.\n\n**Q2 (compute-bound with lower-precision types):** We do not cast to FP16/BF16: inputs and accumulation are FP32 and TF32 rounds only the `tl.dot` inputs. On numerical impact (new experiment, $n=32{,}768$): relative to the same kernel in exact FP32 arithmetic, TF32 perturbs each density estimate by $3.2\\%$ on average; re-drawing the full $n$-point training set perturbs the same estimates by $7.2\\%$ on average, so the hardware effect is within the estimator's sampling noise.\n\n**Q3 (Laplace surrogate vs. full SD-KDE on non-Gaussian, heavy-tailed distributions):** Full SD-KDE stays robust on heavy tails, while the Laplace surrogate is the most accurate at small $n$ but improves less at large $n$, so we recommend full SD-KDE when tails are unknown. We evaluated all three estimators on a 1-D two-component Student-$t_3$ mixture, which has infinite fourth moment, using the Silverman bandwidth and reporting integrated squared error against the true density over 5 seeds ($\\times 10^3$, mean $\\pm$ std):\n\n| $n$ | KDE | Flash-SD-KDE | Flash-Laplace-KDE |\n|---|---|---|---|\n| 1,024 | $10.02 \\pm 1.48$ | $5.35 \\pm 1.15$ | $\\mathbf{2.95 \\pm 0.84}$ |\n| 4,096 | $5.71 \\pm 0.24$ | $2.32 \\pm 0.16$ | $\\mathbf{1.38 \\pm 0.16}$ |\n| 16,384 | $2.88 \\pm 0.25$ | $\\mathbf{0.94 \\pm 0.13}$ | $1.23 \\pm 0.13$ |\n\n**W2 (negative density values):** On the heavy-tailed benchmark above, a worst case for the signed correction, the integrated negative mass of Flash-Laplace-KDE is at most $2.2\\times10^{-4}$ (at $n=1{,}024$) and decreases in $n$ over the first three sizes ($8.6\\times10^{-5}$ at $n=16{,}384$)."
+ },
+ "createdAt": "2026-07-29T15:16:27.718Z",
+ "modifiedAt": "2026-11-19T16:59:33.405Z",
+ "url": "https://openreview.net/forum?id=XKQaXj5Qol&noteId=S6giDD5Eyv",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/xkqaxj5qol/notes/sezbt1flqf.json added

+++ b/reviews/openreview/xkqaxj5qol/notes/sezbt1flqf.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "SezBT1FLqf",
+ "replyTo": "S6giDD5Eyv",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Reviewer 3kmd",
+ "content": {
+ "comment": "Thank you to the authors for your rebuttal. I’m already positive on the paper and hence I’ll keep my score."
+ },
+ "createdAt": "2026-08-04T02:10:15.577Z",
+ "modifiedAt": "2026-11-19T16:59:33.371Z",
+ "url": "https://openreview.net/forum?id=XKQaXj5Qol&noteId=SezBT1FLqf",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/xkqaxj5qol/notes/y5801t7llf.json added

+++ b/reviews/openreview/xkqaxj5qol/notes/y5801t7llf.json
@@ -0,0 +1,16 @@
+{
+ "schema": "review/1",
+ "id": "y5801T7LLF",
+ "replyTo": "qah6fbCmQr",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "title": "Rebuttal to Reviewer 39iH",
+ "comment": "Thank you for your detailed review. To address your questions we ran several new experiments on the same RTX A6000 GPU used in the paper.\n\n**Q1 (what is different from a standard cuBLAS GEMM implementation):** The difference is not the GEMM but the dataflow: separate GPU kernels communicate through global memory, so a cuBLAS-based implementation writes and reads the $n \\times n$ Gram and kernel matrices through it, $\\approx 16$ GB $\\approx 21$ ms at 770 GB/s for $n=32{,}768$, no matter how fast the GEMMs run. Our kernel fuses the norms, `exp`, and both accumulations into the GEMM tile loop, so these intermediates never leave registers. The ladder isolates what each idea contributes ($n_{\\text{train}}=32{,}768$, $n_{\\text{test}}=4{,}096$, $d=16$):\n\n| # | Implementation | Idea added | Total (ms) | Cumulative speedup |\n|---|---|---|---|---|\n| 1 | PyTorch eager with TF32 Tensor Cores | (baseline) | 113.3 | $1\\times$ |\n| 2 | Our GEMM formulation, un-tiled| Tensor-Core GEMM reformulation alone; $n^2$ intermediates still round-trip HBM | 100.4 | $1.1\\times$ |\n| 3 | `torch.compile` | fuses all elementwise chains; still materializes one $n^2$ buffer for cuBLAS | 34.3 | $3.3\\times$ |\n| 4 | Our streamed Triton kernel, Tensor Cores disabled (Table 5) | full fusion + streaming: $n^2$ tiles never leave registers/shared memory | 10.5 | $10.8\\times$ |\n| 5 | **Flash-SD-KDE** (Table 1; row 4 + Tensor-Core tiles) | GEMM tiles execute on Tensor Cores | **2.4** | $\\mathbf{47\\times}$ |\n\n**Q2 (CUDA cores are also applicable):** Agreed, and paper Table 5 measures precisely this ablation: the *identical* streamed kernel with Tensor-Core tiling disabled (FP32 CUDA-core `tl.dot`) is $4.94\\times$ slower at $n=32{,}768$ and $4.80\\times$ at $n=65{,}536$.\n\n**Q3/Limitation 1(impact of TF32 precision):** TF32 rounds only the `tl.dot` *inputs* to a 10-bit mantissa, storage and accumulation remain FP32, and no data is cast to FP16. We compared the TF32 against an FP32 reference of the full SD-KDE pipeline at $d=16$, $n_{\\text{train}}=32{,}768$, $n_{\\text{test}}=4{,}096$:\n\n| Variant | Max rel. err. vs FP32 | Mean rel. err. vs FP32 |\n|---|---|---|\n| Flash-SD-KDE, TF32 | $8.9\\times10^{-2}$ | $3.2\\times10^{-2}$ |\n\nTF32 perturbs each density estimate by $3.2$ percentage on average; re-drawing the full $n$-point training set perturbs the same estimates by $7.2$ percentage on average, so the hardware effect is within the estimator's sampling noise, and the debiased sample positions move by at most $1.1\\%$ of $h$. \n\n**Q4 (roofline analysis):** Section 4.1 contains the quantitative roofline analysis. Summary for the score kernel at $n=32{,}768$ on the A6000:\n\n| Quantity | Value |\n|---|---|\n| Arithmetic intensity, tile model | 72 FLOPs/byte |\n| Arithmetic intensity, Nsight-measured | $\\approx 95$ FLOPs/byte |\n| FP32 roofline knee | $\\approx 50$ FLOPs/byte |\n| TF32 Tensor-Core roofline knee | $\\approx 200$ FLOPs/byte |\n| Nsight \"Speed of Light\" SM / L1 throughput | $\\approx 68\\%$ / $\\approx 90\\%$ |\n| Sustained fraction of absolute TC peak (Fig. 3, $n \\geq 131$k) | 25 to 27% ($\\approx 40$ TFLOP/s) |\n\nThe kernel sits above the FP32 roof and below the pure-TC balance point, exactly as expected for a mixed GEMM + FP32-scalar workload; this is why we stopped low-level tuning at $\\approx 68\\%$ SM throughput.\n\n**Limitation (broader ML applications):** The paper evaluates Flash-SD-KDE on three real, non-synthetic workloads (Appendix A.7): Statlog Shuttle (recovers 807/879 true outliers vs. 610 for the best published baseline, in 0.60 s), ALOI (0.09 s), and KDD-Cup 99 HTTP with $n=620{,}098$ (ROC-AUC 0.92 in 7.27 s). We also note (Appendix C.4) that the same kernels are drop-in for KDE-primitive pipelines such as KDE-based attention approximations and embedding-space OOD scoring. Applications such as diffusion-model components were considered in the original SD-KDE paper, but given the small scale of those experiments, we don't think Flash-SD-KDE would unlock new capabilities at that scale. However, larger scale diffusion-model experiments is an interesting avenue for future work."
+ },
+ "createdAt": "2026-07-29T15:16:10.324Z",
+ "modifiedAt": "2026-11-19T16:59:33.408Z",
+ "url": "https://openreview.net/forum?id=XKQaXj5Qol&noteId=y5801T7LLF",
+ "license": "CC-BY-4.0"
+}