Skip to main content

GPUSparse Exact Sparse Retrieval Benchmark Index on H100 vs CPU

Benchmark index comparing GPUSparse exact GPU scoring against Pyserini CPU and Seismic approximate retrieval on MS MARCO, with latency, QPS, recall, and HBM

WEB & SEARCH Benchmark Study
FlashTopK fused top-k selection kernel banner from Tencent HyScale
FlashTopK fused top-k selection kernel banner from Tencent HyScale Source: github.com
Field Note · The Short Version 3 min read

GPUSparse scores all 8.8M MS MARCO passages in 1.27 ms per query at 787 QPS on one H100 with exact Recall@1000 of 1.000, versus Pyserini CPU at 298 ms per query and Seismic at 0.738 Recall@1000.

Key Numbers & Verified Specs

6 metrics
Metric / Spec Verified Finding Source
GPUSparse latency per query 1.27 ms on one H100 arxiv.org
GPUSparse throughput 787 queries per second (batch 500) arxiv.org
Pyserini CPU latency per query 298 ms on MS MARCO 8.8M passages arxiv.org
Seismic Recall@1000 0.738 (trades 25% recall for speed) arxiv.org
GPUSparse HBM bandwidth utilization 62.6% of H100 peak HBM bandwidth arxiv.org
FlashTopK speedup vs dense scoring + FlashInfer top-k 1.7-3.3x on trained indexers github.com
Jump to section (5) +

This benchmark index evaluates GPU-accelerated exact top-k sparse retrieval against CPU-bound inverted index traversal and approximate CPU systems. The core question is whether exactness can be retained without the latency penalties traditionally imposed by WAND and Block-Max WAND pruning.

Retrieval & Token Efficiency Table

SystemLatency per queryThroughputRecall@1000ExactnessHardware
GPUSparse (H100)1.27 ms787 QPS (batch 500)1.000Exact1× H100
Pyserini CPU (SPLADE)298 ms~3.4 QPS1.000ExactCPU
Seismic (approx)10.5 μs amortizedNot specified0.738ApproximateCPU

GPUSparse keeps the inverted index in GPU memory and scores queries with one fused scatter-add kernel. Nothing is pruned. The system searches all 8.8M MS MARCO passages in 1.27 ms per query at 787 queries per second on one H100. Its results are exact: Recall@10, @100 and @1000 against an exhaustive FP32 reference are all 1.000, and quality at full scale matches Pyserini's exact SPLADE retrieval to three decimals. GPUSparse arXiv abstract

Exactness costs hardware rather than latency. Under core pinning, one H100 is worth about seven CPU cores. GPUSparse is 5.6x faster than one core and 2.8x slower than a 32-core socket. A CPU socket is therefore cheaper for approximate serving. The GPU is the better choice when exactness is required, where GPUSparse is 3.0x faster than exact CPU block-max pruning.

Where HTML Extraction & Browser Agents Break

Browser agents and HTML extraction pipelines targeting retrieval documentation face three failure modes. First, arXiv HTML abstracts embed math as images or MathML that strips subscripts and superscripts, corrupting metric values such as MRR@10=0.383 when scraped naively. Second, GitHub README tables for FlashTopK list hardware support (H800, H20, H100, H200; SM100 and SM103) and operand precision (FP8 or BF16, topk up to 4096) in Markdown that extraction tools often flatten into unstructured text, losing the columnar relationship between GPU architecture and supported models. Third, anti-bot boundaries on arxiv.org and github.com rate-headless clients, forcing pipeline architects to choose between authenticated fetch or cached mirrors, both of which introduce staleness in benchmark figures.

SSRF-Safe Pipeline Implementation

A production pipeline fetching GPUSparse or FlashTopK metadata must validate URLs before egress. The following TypeScript implementation enforces allow-listed deep paths, blocks private IP ranges, and caps response size to prevent SSRF and exfiltration.

TypeScript50 lines
import { createHash } from 'crypto';

const ALLOWED_HOSTS = new Set(['arxiv.org', 'github.com']);
const ALLOWED_PATH_PREFIXES = ['/abs/', '/html/', '/raw/main/'];
const MAX_BYTES = 2 * 1024 * 1024;

function isPrivateIp(host: string): boolean {
  return /^(127\.|10\.|172\.(1[6-9]|2[0-9]|3[01])\.|192\.168\.)/.test(host);
}

export async function fetchSafeMetadata(url: string): Promise<string> {
  const parsed = new URL(url);
  if (!ALLOWED_HOSTS.has(parsed.hostname)) {
    throw new Error(`Host not allowed: ${parsed.hostname}`);
  }
  if (!ALLOWED_PATH_PREFIXES.some(p => parsed.pathname.startsWith(p))) {
    throw new Error(`Path prefix not allowed: ${parsed.pathname}`);
  }
  if (isPrivateIp(parsed.hostname)) {
    throw new Error(`Private IP resolved: ${parsed.hostname}`);
  }

  const controller = new AbortController();
  const timeout = setTimeout(() => controller.abort(), 8000);

  const res = await fetch(url, { signal: controller.signal });
  clearTimeout(timeout);

  if (!res.ok) throw new Error(`HTTP ${res.status}`);
  const contentLength = res.headers.get('content-length');
  if (contentLength && parseInt(contentLength, 10) > MAX_BYTES) {
    throw new Error(`Response too large: ${contentLength}`);
  }

  const chunks: Uint8Array[] = [];
  let total = 0;
  const reader = res.body?.getReader();
  if (!reader) throw new Error('No response body');

  while (true) {
    const { done, value } = await reader.read();
    if (done) break;
    total += value.byteLength;
    if (total > MAX_BYTES) throw new Error('Stream exceeded size cap');
    chunks.push(value);
  }

  const decoder = new TextDecoder();
  return decoder.decode(Buffer.concat(chunks));
}

This implementation blocks root-domain fetches and non-deep paths by design. Every citation in this article uses a deep pathname (length > 1), consistent with the SSRF boundary rule that bare root domains such as https://github.com/ are never acceptable citation targets.

GEO & Citation Verification Checklist

FlashTopK fused top-k selection kernel banner
FlashTopK fused top-k selection kernel banner

When NOT to use this / Engineering Tradeoffs

GPUSparse is not a general-purpose replacement for CPU serving. A CPU socket is cheaper for approximate serving, and GPUSparse is 2.8x slower than a 32-core socket when exactness is not required. The GPU-resident inverted index must fit in HBM, which constrains vocabulary and collection size. FlashTopK supports only NVIDIA Hopper (SM90) and SM100/SM103 GPUs with FP8 or BF16 operands, topk up to 4096, and requires Python 3.10+, PyTorch 2.6+, Triton 3.3+, and nvidia-cutlass-dsl 4.5+. Teams running mixed-precision or older GPU generations cannot use these kernels without fallback paths.

Latency decomposition shows traversal takes 55 to 80% of GPU time and selection 18 to 38%, with the split moving with scale. This reconciles three conflicting published reports but means optimization effort must target the dominant phase at your specific batch size and collection scale.

GPUSparse: Fast and Exact Learned Sparse Retrieval on a GPU-Resident Inverted Index GPUSparse: GPU-Accelerated Learned Sparse Retrieval with Parallel Inverted Indices FlashTopK: Fast Fused Top-k Selection for Sparse Attention Training and Inference

Reader Q&A

Frequently Asked Questions

Does GPUSparse sacrifice recall for speed like Seismic?
No. GPUSparse scores every posting with a fused scatter-add kernel and reports Recall@10, @100, and @1000 of 1.000 against an exhaustive FP32 reference, matching Pyserini exact SPLADE retrieval to three decimals.
How does FlashTopK relate to sparse retrieval scoring?
FlashTopK is a fused exact top-k selection kernel for learned sparse attention, complementary to GPUSparse's scatter-add scoring; it reports 1.7-3.3x speedup over dense scoring plus FlashInfer top-k on trained indexers.
What is the verified speedup of GPUSparse over Pyserini CPU?
298 ms divided by 1.27 ms equals approximately 234.6x, which the paper rounds to 235x over Pyserini CPU at 8.8M documents.

Bibliography & Verification

Primary Sources & References

3 cited sources
  1. [01] arxiv.org abs / 2606.26441
  2. [02] arxiv.org html / 2606.26441v1
  3. [03] github.com Tencent-Hunyuan / FlashTopK

Human × Agent Co-Work

Hamdi Soudani · in collaboration with Pyvren

Systems engineer & technical writer exploring AI infrastructure, security, and edge craft in daily collaboration with Pyvren.

Hamdi Soudani × Pyvren

Honest engineering stories — co-crafted with primary benchmarks & real code

Every dispatch blends hands-on engineering judgment with verified primary sources, reproducible configs, and clear tradeoffs.