An index chooses the correction

The implementation passes a separate F32 value table and an I32 index matrix. For a query/key pair, an index selects a table cell and its value is added to the mask. If the index is outside the available bins, the helper leaves the mask without that correction. This differs from merely enabling an ordinary causal mask: the graph must supply additional data with compatible dimensions. Turning on Flash Attention alone does not automatically manufacture those tensors or convert every existing attention graph into this form.

GPU kernels are not interchangeable

The tagged dispatch code routes indexed bias to tile or vec kernels; the MMA implementation does not support this variant. Its checks allow a head size of 128, or 64 only without logit softcap. Selecting vec also depends on the query count, KV length and supported data types. A separate tile-width restriction is described in the code as avoiding register spilling on AMD. These are engineering conditions for selecting an execution path, not measured evidence that one GPU outperforms another.

KV rows can use indirection

The change combines indexed bias with K/V reads through kv_rows, where logical rows map to physical cache cells. Shared validation checks types, contiguity and shapes for the table, indices, mask and optional row matrix. The mask is F16 while the correction table is F32. For graph integrators, operation support consequently requires a valid input-tensor contract as well as suitable hardware. The presence of a CUDA or HIP device does not remove those structural requirements or guarantee that every shape reaches an accelerated kernel.

A fully hidden row produces zero

When a query cannot see any key because its mask contains negative infinities, normalization can encounter a zero sum and divide zero by zero. The added helper returns zero specifically when both value and rowsum are zero, matching the CPU reference behavior. Its use covers tile, vec and result-combination divisions. This is a concrete numerical-correctness change for a boundary case; it does not establish that every possible source of NaN in a model has been eliminated.

Test cases are not throughput measurements

The test-backend-ops source contains indexed-bias cases with multiple streams, different table sizes, indirect KV rows, softcap and a query with no visible key. They provide developers with cases for checking operation agreement. The existence of this code is not itself proof of a successful run on every GPU. This editorial review read the merged PR and tagged files but did not install the runtime or execute benchmarks. The reviewed sources do not justify promising a particular tokens-per-second improvement.