PAT icon indicating copy to clipboard operation
PAT copied to clipboard

Reproducing results on an H100 SXM5

Open christindbose opened this issue 9 months ago • 2 comments

Thank you for releasing the easy to use artifact. I'm trying to reproduce the results from the paper on an H100 SXM5 machine. The following plot shows the normalized perf for KV_HEADS=Q_HEADS=32 (similar to Figure 10 top plot: https://arxiv.org/pdf/2511.22333). Some interesting observations:

  1. While PAT is the best performing, the next best is often FlashInfer (which is prefix unaware) and not FastTree (which is prefix aware) in many cases.
  2. Cascade attention (which is also prefix-aware) performs really bad compared to FlashInfer.

For 1, I wonder if there are any intuitive reasons for it. For 2, was this also visible on the A100 machine (which the paper uses for the experiments)? Any reason why cascade performs so bad?

Your thoughts would be very helpful! Thank you for your time!

Image

Attaching the kernel perf raw numbers as well.

kernel_perf.json

christindbose avatar Feb 18 '26 18:02 christindbose

Thank you for releasing the easy to use artifact. I'm trying to reproduce the results from the paper on an H100 SXM5 machine. The following plot shows the normalized perf for KV_HEADS=Q_HEADS=32 (similar to Figure 10 top plot: https://arxiv.org/pdf/2511.22333). Some interesting observations:

  1. While PAT is the best performing, the next best is often FlashInfer (which is prefix unaware) and not FastTree (which is prefix aware) in many cases.
  2. Cascade attention (which is also prefix-aware) performs really bad compared to FlashInfer.

For 1, I wonder if there are any intuitive reasons for it. For 2, was this also visible on the A100 machine (which the paper uses for the experiments)? Any reason why cascade performs so bad?

Your thoughts would be very helpful! Thank you for your time!

Image Attaching the kernel perf raw numbers as well.

kernel_perf.json

Thank you for your interest in our work.

Our tests were based on flashinfer's work in MLSys'25 (https://arxiv.org/abs/2501.01005). I haven't closely tracked FlashInfer's most recent updates, so if you used a newer version, its recent internal optimizations might explain the advantage. However, regarding their MLSys'25 work, under complex prefixes (which generally implies more available decision options), FastTree still outperforms FlashInfer, as your figure also demonstrates. In other cases, we speculate FlashInfer handles workload balance across SMs better (a key highlight of their paper). Since the H100 has more SMs than the A100, this workload balancing advantage becomes more obvious on the H100 compared to FastTree. Additionally, FastTree sometimes executes operators serially, causing extra launch overhead.

Regarding the second point, we have added a comparison with Cascade in our latest paper (already uploaded to arXiv). When workload balance significantly impacts performance, Cascade shares the same issue as FastTree; furthermore, it also fails to select a good decision when prefixes are complex.

March-H avatar Mar 17 '26 03:03 March-H

Thanks for the insights!

christindbose avatar Mar 20 '26 02:03 christindbose