Reckoner LabIndependent AI research
An engineering note on the cost of waiting

Less memory traffic. A slower kernel.

First the GPU scores the tokens it has seen. It writes those scores to memory, then reads them back to decide which tokens to keep.

Junxian Ma put both jobs in a single kernel. The scores no longer had to make the round trip. Somehow, the work took longer.

Figure 1

Where the time went

Try the three versions in order. Each blue dot counts one unit of throughput. The line marks the original kernel pair.

Operator throughputTFLOP/s
Operator throughput on an NVIDIA H20176 · unfused050100150200250
Compare implementations
147TFLOP/s

Scoring stops while selection runs. The memory traffic is gone, but the wait remains.

Fig. 1 Single H20 · 4,096 queries · 16K history. One input. Each dot is 1 TFLOP/s. Measurements ↗

In the first fused kernel, scoring had to stop while the best tokens were being picked. A second buffer let the GPU start scoring the next query while it was still picking tokens for the last. The same work now took less time.

Read Junxian Ma’s engineering note

Selected research

03 works
01SystemsLess memory traffic. A slower kernel.Junxian Ma · FusedIndexTopK 02ArchitectureHow much should one token change a memory?Jiaxuan Zou, Ruifeng Ren & Yong Liu · Kaczmarz Linear Attention 03World modelsA proof for the wrong gameGuancheng Pan, Qixin Tan, Yang Yuan & Andrew C. Yao · Algebraic World Model

About the lab

Reckoner Lab is a collective of young AI researchers working across model architecture, inference systems and reasoning. We choose our own questions and share tools, compute opportunities and early results.

Each work links back to its original authors. Invited members can add a profile or research link ↗.