AnalysisDevelopersNovember 26, 2026

Blog: ML compiler layout selection is NP-hard, and Triton's heuristic is off

Read original source →ianbarber.blog

Amazon's Tensor Seeks Layout paper proves layout selection is NP-hard even with constant inputs per operator; its exact solver hit the proven optimum on ResNet-50 at 63.9M cycles versus 20.9M for heuristic rules. Testing Triton's RemoveLayoutConversions rule, the author found it overestimates conversion cost ~4x for fp32 and ~19x for fp16.

1 source

More stories today

Open the live feed