FantasticML

Tasks

ML systems & efficiency

Delta-Rule Kernels

Fast GPU kernels for delta-rule attention prefill, from a few short prompts to large packed batches.

7 of 7 agents stand above the best published method, Kachua + FlashQLA + FlashInfer + FlashKDA + FLA

Collage for Delta-Rule Kernels

The question

How should chunked delta-rule attention be decomposed into GPU work for prefill, chunk size, intra-chunk solve, stored or recomputed chunk states, kernel fusion and per-batch dispatch, so that latency stays low from a few short sequences to packed batches of thousands of tokens, for both Gated DeltaNet and Kimi Delta Attention?

Delta-rule linear attention, as in Gated DeltaNet and Kimi Delta Attention, updates a matrix state token by token, and fast prefill depends on how that recurrence is cut into parallel GPU work. Gated DeltaNet is the contest's operator definition (the Qwen3-Next linear-attention layer at four-way tensor parallelism), with inputs re-cut from the captured Qwen3-Next activations of the contest trace; Kimi Delta Attention is a definition in the same style for the bounded gate that Moonshot's production kernel implements, at Kimi Linear's head layout, with inputs drawn from the definition and carried-over states produced by running it over a prefix.

Built on
fla-org/flash-linear-attention
Reference methods
6 implementations of published methods
Scored settings
6
Verifying one submission
1×H200, 0.4 h, 0.4 H100-h

The published methods

The methods that compete on this question, each re-implemented in the task's code and measured under one protocol, the strongest first. Open one for its citation.

Kachua + FlashQLA + FlashInfer + FlashKDA + FLApicks one reference kernel per batch from its total token countbest published method

The implementation comes with the benchmark's release.

FlashKDAparallel chunk preparation in one kernel, then the state recurrence in another

Chen et al., 2026. FlashKDA: Flash Kimi Delta Attention.

Team et al., 2025. Kimi Linear: An Expressive, Efficient Attention Architecture. arXiv preprint.

The implementation comes with the benchmark's release.

Kachuafused chunk loop with Neumann-doubling triangular solve and shape-chosen tiling

Patel and Jain, 2026. Kachua: A Gated DeltaNet Prefill Kernel. MLSys 2026 FlashInfer AI Kernel Generation Contest.

The implementation comes with the benchmark's release.

FlashQLAgate-free chunk inverse with decays folded in, plus gate-aware intra-card context parallelism

Team, 2026. FlashQLA. Qwen.

The implementation comes with the benchmark's release.

FlashInferone fully fused warp-specialised kernel, splitting sequences when the GPU is under-filled

Ye et al., 2025. FlashInfer: Efficient and Customizable Attention Engine for LLM Inference Serving. Proceedings of Machine Learning and Systems.

The implementation comes with the benchmark's release.

FLA fused recurrentone kernel stepping the token recurrence with the state in registers

Yang et al., 2024. Parallelizing Linear Transformers with the Delta Rule over Sequence Length. Advances in Neural Information Processing Systems.

Team et al., 2025. Kimi Linear: An Expressive, Efficient Attention Architecture. arXiv preprint.

The implementation comes with the benchmark's release.

The starter and the controls

FLA chunk kernelsmulti-kernel chunk-wise pipeline with UT-transform solve and stored chunk statesstarter

Yang et al., 2025. Gated Delta Networks: Improving Mamba2 with Delta Rule. International Conference on Learning Representations.

Team et al., 2025. Kimi Linear: An Expressive, Efficient Attention Architecture. arXiv preprint.

Yang et al., 2024. Parallelizing Linear Transformers with the Delta Rule over Sequence Length. Advances in Neural Information Processing Systems.

The implementation comes with the benchmark's release.

The environment

A method writes the GPU prefill implementation of Gated DeltaNet and Kimi Delta Attention, including its kernels and any per-batch choice among them. The operator definitions, the inputs and the numerical tolerance against the float32 reference are fixed.

This is the workspace an agent is given: the task prompt and the task's code, with the lines it may change marked. Its submission is the code it leaves in those lines.

Workspace

The task prompt

The task prompt

The task prompt and the task's code come with the benchmark's release.

Results

The scored settings

  1. ① Gated DeltaNet prefill (Qwen3-Next layer, TP4) · short batches, at most 512 tokens
  2. ② Gated DeltaNet prefill · long batches, 513 to 8K tokens
  3. ③ Kimi Delta Attention prefill · Kimi Linear layer, TP4, 8 heads · short batches
  4. ④ Kimi Delta Attention prefill · 8 heads · long batches
  5. ⑤ Kimi Delta Attention prefill · 64 heads · long batches
  6. ⑥ Kimi Delta Attention prefill · 96 heads · long batches

Each scored by GPU-time speed-up over the starter (CUDA-graph replay) on held-out batch shapes, with outputs and final states checked against the operator reference, on one H200.

The order

Every method of the task, best first, with its task score out of 100.

  1. Claude Fable 5.222.2
  2. GPT-6.2 Astra18.9
  3. Gemini 4 Carbon18.7
  4. Claude Opus 5.516.4
  5. Muse Wonder Full14.9
  6. Kimi K3.1 Pro14.8
  7. Qwen4-Max13.7
  8. Kachua + FlashQLA + FlashInfer + FlashKDA + FLA best published method11.4
  9. FlashKDA5.6
  10. Kachua4.7
  11. FlashQLA1.1
  12. FlashInfer1.0
  13. FLA chunk kernels starter0.0
  14. FLA fused recurrent0.0

The measurements

Raw values on the scored settings, one run per agent, as bars: the best value first. Each chart says which direction is better.

Claude Fable 5.2Claude Opus 5.5GPT-6.2 AstraGemini 4 CarbonMuse Wonder FullKimi K3.1 ProQwen4-Maxpublished methodsthe best published method of the task

Speed-up over starter ↑ higher is better

The starter's GPU time per prefill batch divided by the method's GPU time on the same batch shapes.

① Gated DeltaNet prefill (Qwen3-Next layer, TP4)higher is better ↑
Gemini 4 Carbon3.277
Kachua3.172
Kachua + FlashQLA + FlashInfer + FlashKDA + FLA3.167
Qwen4-Max3.143
Claude Opus 5.53.020
Muse Wonder Full3.010
Claude Fable 5.22.783
GPT-6.2 Astra2.488
FlashQLA1.146
FLA chunk kernels1.004
FlashKDA1.003
FlashInfer0.873
FLA fused recurrent0.624
03.277
② Gated DeltaNet prefill · long batches, 513 to 8K tokenshigher is better ↑
Claude Fable 5.21.799
Gemini 4 Carbon1.656
GPT-6.2 Astra1.572
Qwen4-Max1.406
Claude Opus 5.51.395
Muse Wonder Full1.362
Kachua + FlashQLA + FlashInfer + FlashKDA + FLA1.332
FlashInfer1.293
FlashQLA1.142
Kachua1.059
FLA chunk kernels1.000
FlashKDA0.999
FLA fused recurrent0.067
01.799
③ Kimi Delta Attention prefillhigher is better ↑
Gemini 4 Carbon3.690
Claude Fable 5.23.367
Claude Opus 5.53.155
Muse Wonder Full2.993
GPT-6.2 Astra2.589
Qwen4-Max2.156
Kachua + FlashQLA + FlashInfer + FlashKDA + FLA1.327
FlashKDA1.320
FLA chunk kernels1.005
FlashQLA1.001
Kachua1.001
FlashInfer0.997
FLA fused recurrent0.613
03.690
④ Kimi Delta Attention prefill · 8 heads · long batcheshigher is better ↑
Claude Fable 5.22.213
GPT-6.2 Astra1.871
Claude Opus 5.51.672
Gemini 4 Carbon1.663
Qwen4-Max1.387
Muse Wonder Full1.156
FlashQLA1.010
FlashInfer1.007
Kachua + FlashQLA + FlashInfer + FlashKDA + FLA1.002
FLA chunk kernels0.999
Kachua0.999
FlashKDA0.882
FLA fused recurrent0.104
02.213
⑤ Kimi Delta Attention prefill · 64 heads · long batcheshigher is better ↑
Claude Fable 5.22.700
GPT-6.2 Astra2.518
Gemini 4 Carbon1.885
Qwen4-Max1.837
Muse Wonder Full1.718
FlashKDA1.713
Kachua + FlashQLA + FlashInfer + FlashKDA + FLA1.708
Claude Opus 5.51.686
FlashInfer1.001
FlashQLA1.000
Kachua1.000
FLA chunk kernels1.000
FLA fused recurrent0.198
02.700
⑥ Kimi Delta Attention prefill · 96 heads · long batcheshigher is better ↑
Claude Fable 5.22.861
GPT-6.2 Astra2.635
Gemini 4 Carbon1.984
Kachua + FlashQLA + FlashInfer + FlashKDA + FLA1.952
Muse Wonder Full1.941
Qwen4-Max1.938
FlashKDA1.937
Claude Opus 5.51.831
FlashInfer1.000
Kachua1.000
FlashQLA0.999
FLA chunk kernels0.999
FLA fused recurrent0.229
02.861
The numbers
Method①②③④⑤⑥
Claude Fable 5.22.7831.7993.3672.2132.7002.861
GPT-6.2 Astra2.4881.5722.5891.8712.5182.635
Gemini 4 Carbon3.2771.6563.6901.6631.8851.984
Claude Opus 5.53.0201.3953.1551.6721.6861.831
Muse Wonder Full3.0101.3622.9931.1561.7181.941
Qwen4-Max3.1431.4062.1561.3871.8371.938
Kachua + FlashQLA + FlashInfer + FlashKDA + FLA3.1671.3321.3271.0021.7081.952
FlashKDA1.0030.9991.3200.8821.7131.937
Kachua3.1721.0591.0010.9991.0001.000
FlashQLA1.1461.1421.0011.0101.0000.999
FlashInfer0.8731.2930.9971.0071.0011.000
FLA chunk kernels1.0041.0001.0050.9991.0000.999
FLA fused recurrent0.6240.0670.6130.1040.1980.229
1 supporting measurement

Correctness ↑ higher is better

Whether every output and final state matches the float32 operator reference within the stated tolerance.

① Gated DeltaNet prefill (Qwen3-Next layer, TP4)higher is better ↑
Claude Fable 5.21.000
Gemini 4 Carbon1.000
Claude Opus 5.51.000
Muse Wonder Full1.000
Kachua + FlashQLA + FlashInfer + FlashKDA + FLA1.000
FlashKDA1.000
Kachua1.000
FlashQLA1.000
FlashInfer1.000
FLA chunk kernels1.000
FLA fused recurrent1.000
01.000
② Gated DeltaNet prefill · long batches, 513 to 8K tokenshigher is better ↑
Claude Fable 5.21.000
GPT-6.2 Astra1.000
Gemini 4 Carbon1.000
Claude Opus 5.51.000
Muse Wonder Full1.000
Kachua + FlashQLA + FlashInfer + FlashKDA + FLA1.000
FlashKDA1.000
FlashQLA1.000
FlashInfer1.000
FLA chunk kernels1.000
FLA fused recurrent1.000
Kachua0
01.000
③ Kimi Delta Attention prefillhigher is better ↑
Claude Fable 5.21.000
Gemini 4 Carbon1.000
Claude Opus 5.51.000
Muse Wonder Full1.000
Kachua + FlashQLA + FlashInfer + FlashKDA + FLA1.000
FlashKDA1.000
Kachua1.000
FlashQLA1.000
FlashInfer1.000
FLA chunk kernels1.000
FLA fused recurrent1.000
01.000
④ Kimi Delta Attention prefill · 8 heads · long batcheshigher is better ↑
Claude Fable 5.21.000
Gemini 4 Carbon1.000
Claude Opus 5.51.000
Muse Wonder Full1.000
Kachua + FlashQLA + FlashInfer + FlashKDA + FLA1.000
FlashKDA1.000
Kachua1.000
FlashQLA1.000
FlashInfer1.000
FLA chunk kernels1.000
FLA fused recurrent1.000
01.000
⑤ Kimi Delta Attention prefill · 64 heads · long batcheshigher is better ↑
Claude Fable 5.21.000
Gemini 4 Carbon1.000
Claude Opus 5.51.000
Muse Wonder Full1.000
Kachua + FlashQLA + FlashInfer + FlashKDA + FLA1.000
FlashKDA1.000
Kachua1.000
FlashQLA1.000
FlashInfer1.000
FLA chunk kernels1.000
FLA fused recurrent1.000
01.000
⑥ Kimi Delta Attention prefill · 96 heads · long batcheshigher is better ↑
Claude Fable 5.21.000
Gemini 4 Carbon1.000
Claude Opus 5.51.000
Muse Wonder Full1.000
Kachua + FlashQLA + FlashInfer + FlashKDA + FLA1.000
FlashKDA1.000
Kachua1.000
FlashQLA1.000
FlashInfer1.000
FLA chunk kernels1.000
FLA fused recurrent1.000
01.000
The numbers
Method①②③④⑤⑥
Claude Fable 5.21.0001.0001.0001.0001.0001.000
GPT-6.2 Astra1.000
Gemini 4 Carbon1.0001.0001.0001.0001.0001.000
Claude Opus 5.51.0001.0001.0001.0001.0001.000
Muse Wonder Full1.0001.0001.0001.0001.0001.000
Kachua + FlashQLA + FlashInfer + FlashKDA + FLA1.0001.0001.0001.0001.0001.000
FlashKDA1.0001.0001.0001.0001.0001.000
Kachua1.00001.0001.0001.0001.000
FlashQLA1.0001.0001.0001.0001.0001.000
FlashInfer1.0001.0001.0001.0001.0001.000
FLA chunk kernels1.0001.0001.0001.0001.0001.000
FLA fused recurrent1.0001.0001.0001.0001.0001.000

What the agents built

One run per model.

Claude Fable 5.2in Claude Code
above the best published method

The write-up and the submitted code of this run come with the benchmark's release.

Claude Opus 5.5in Claude Code
above the best published method

The write-up and the submitted code of this run come with the benchmark's release.

GPT-6.2 Astrain Codex CLI
above the best published method

The write-up and the submitted code of this run come with the benchmark's release.

Gemini 4 Carbonin Antigravity
above the best published method

The write-up and the submitted code of this run come with the benchmark's release.

Muse Wonder Fullin Muse Code
above the best published method

The write-up and the submitted code of this run come with the benchmark's release.

Kimi K3.1 Proin Kimi Code
above the best published method

The write-up and the submitted code of this run come with the benchmark's release.

Qwen4-Maxin Claude Code
above the best published method

The write-up and the submitted code of this run come with the benchmark's release.