Towards Data Science By Anubhab Banerjee

GPU-Resident Top-K for Agentic RAG: I Built a CUDA Kernel So My Retrieval Step Would Stop Bouncing Off the GPU

Read the original on Towards Data Science →

The PCIe transfer latency is silently bottlenecking your agentic inference. Here is how building a custom device-resident vector search kernel bypasses the CPU to unlock deterministic microsecond tail latencies.

Machine-generated by The Flow from the publisher's headline and feed description — not written or checked by a human. The full article lives at Towards Data Science.

arXiv Machine Learning
Aug 27

DataKernelBench: Can LLMs Optimize Database Queries on GPUs?

DataKernelBench evaluates whether large language models (LLMs) can optimize database queries for GPU execution. The benchmark translates SQL into PyTorch TorchPlan programs and tests LLMs on optimizing core tensor snippets or full queries in CUDA or Triton, using execution-guided repair. On TPC‑H SF10 with an H100 GPU, the best full‑query CUDA configuration outperforms torch.compile by 2.11×, and extending TorchPlan with Dask‑cuDF enables a 2.54× speedup on TPC‑H SF100 across four H100 GPUs.

By Gokul Karthik Kumar, Yotam Perlitz, Corey Lammie, Andrea Giovannini, Katja Hose
arXiv Machine Learning
Nov 16

Performance-Portable Exact Gaussian Process Regression in Python via SYCL and oneMath

The paper introduces GPRat, an open‑source Python library for exact Gaussian process regression that uses the HPX runtime and tiled algorithms with CPU/CUDA BLAS backends. By adding a UXL Foundation oneMath backend built on a hybrid HPX/SYCL design, GPRat now supports AMD and Intel GPUs, achieving performance within 3% of native CUDA on an NVIDIA A30 and outperforming GPflow and GPyTorch on both NVIDIA and AMD hardware. The SYCL backend allows a single codebase to match CUDA performance on NVIDIA and exceed existing Python GP frameworks on AMD, while remaining portable across vendors.

By Alexander Strack, Marcel Graf, Alexander Van Craen, Dirk Pfl\"uger
arXiv AI
Oct 31

A Case Study of a Multi-Agent Kernel-Optimization Loop That Learns a New AI Accelerator

The article describes a case study where a large language model (LLM) agent loop was used to optimize three Gemma‑4‑12B decode kernels for the FuriosaAI RNGD NPU, a sparsely documented Rust DSL accelerator. Over 12 days on a shared device, the loop built its own target knowledge, performed microbenchmarks, recorded compiler legality rules, and iteratively refined kernel designs through role‑based search and acceptance tests. The resulting kernels achieved a 9.293× geometric mean speedup over the official baseline, each within 1.25× of the theoretical cycle minimum for weight movement.

By Byonggon Chun