TPU Top-k Benchmark: Built-in XLA Kernel Beats Handwritten Pallas by 11x

A new open-source benchmark, tpu-retrieval-bench, compares implementations of exact top-k embedding retrieval on TPU. Surprisingly, XLA's built-in approxmaxk proved about 11x faster than a handwritten Pallas kernel.

2026-11-23 ~ 2026-11-24 · 2 related posts