REVIEW 4 major objections 5 minor 37 references
Triton kernels match expert-tuned C++ on a custom AI accelerator.
Reviewed by Pith at T0; open to challenge. T0 means a machine referee read the full paper against a public rubric. the ladder, T0–T4 →
T0 review · deepseek-v4-flash
2026-08-04 00:42 UTC pith:4KZQ25LB
load-bearing objection A credible, substantial engineering report on bringing Triton to a non-GPU accelerator; the performance parity claim rests on internal, normalized evidence, so treat the headline numbers as plausible but not proven. the 4 major comments →
Triton for MTIA: Bridging the Programming Model Gaps for Custom AI Accelerators
The pith
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
On the paper's own terms, the central discovery is that Triton—a block-level language in which operations act on statically shaped tensors with explicit loads and stores—is expressive enough to cover the programming model of a custom accelerator like MTIA-2i, provided the compiler fills the architectural gaps. A new backend lowers Triton IR through a middle end that maps operations to the chip's fixed-function units (dot-product, SIMD, reduction, and memory-layout engines) and to DMA transfers wherever memory access is structured, then applies backend passes for tensor bufferization onto circular buffers, software pipelining with greedy buffer sizing and pointer management, instruction distr
What carries the argument
The circular buffer (CB) is the central mechanism: a FIFO-like on-chip memory region with read and write pointers that hardware uses to enforce data dependencies. Combined with the compiler's static analysis of Triton's statically shaped tensors, the CB enables asynchronous issue of commands to fixed-function units, pointer adjustment at loop boundaries, and greedy buffer sizing for software pipelining. A second load-bearing mechanism is the structured-memory-access analysis that rewrites tensor-of-pointers into DMA-able descriptors, determining which operations run on fixed-function units versus the RISC-V vector core.
Load-bearing premise
The parity claim depends on the expert-tuned C++ kernels being genuinely strong baselines—measured, tuned, and selected by the same team that built the compiler, with no external benchmark or raw numbers supplied—so if those baselines are not the best achievable, the 'competitive' conclusion may not survive independent comparison.
What would settle it
Run an independent, blind comparison on MTIA-2i silicon: have a separate team hand-tune C++ kernels and the same team (or independent users) write Triton kernels for the same production operator set, then publish per-operator speedups. If the average Triton kernel falls materially below the independent C++ baseline (e.g., more than a few percent on the long-tail suite), the parity claim is falsified.
If this is right
- If the parity claim holds, a custom accelerator does not need a GPU-style SIMT execution model to benefit from Triton; the block-level abstraction absorbs the difference.
- Operators written once in Triton can be ported between GPUs and the accelerator with minor changes—11 of 16 kernels ported directly, with fixes for undefined masked-load behavior.
- Automatic kernel fusion via the graph compiler reaches competitive performance with handwritten kernels, with an average fusion depth of 3.9 operators and a 31% improvement over the handwritten kernels it replaced in one training model.
- Production coverage can ramp quickly: the number of model types using Triton tripled and the runtime share doubled within a quarter, so high-level DSLs shorten the path from kernel authoring to deployment.
- The language-extension strategy offers a composable path: baseline Triton remains portable, while MTIA-specific primitives can be used selectively in performance-critical code.
Where Pith is reading between the lines
- An implication the paper leaves implicit is that the same compiler-layering approach—shared IR dialects and passes across abstraction levels—could make future accelerator DSLs cheaper to build, since much of the backend work is reusable.
- The observation that masked loads with unspecified 'other' values behaved differently on GPU and MTIA suggests that Triton's language semantics need to pin down undefined behavior if portability is a core promise; standardizing masked-out element initialization would remove a whole class of porting bugs.
- If the reported 47% non-GEMM runtime share continues its trajectory, the remaining gap to full coverage is likely to concentrate in kernels with irregular control flow or communication patterns, where compiler inference fails and explicit extensions are needed—so the practical ceiling of DSL coverage may be set by how many such extensions the language absorbs.
- A testable extension of the approach: apply the same backend strategy to a different custom accelerator with a scratchpad-plus-explicit-DMA model; if a comparable portion of production layers reaches parity with hand-written kernels, the result generalizes beyond this one chip.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper reports on building a Triton compiler backend for Meta's MTIA-2i custom AI accelerator, whose programming model differs from GPUs in execution model, on-chip memory management, and instruction scheduling. The authors describe a four-stage compiler pipeline, optimization passes (software pipelining, RISC-V vectorization, PID-to-PE load balancing), minimal Triton language extensions, and Inductor integration. They evaluate GEMM, FlashAttention, long-tail kernels, and Inductor-generated kernels on MTIA-2i silicon, and report production deployment across roughly 60 model types, covering 50% of layers and 47% of non-GEMM execution time. The central claim is that Triton-MTIA kernels achieve performance competitive with expert-tuned C++ implementations, making Triton a viable high-level interface for custom accelerators.
Significance. If substantiated, this result would be a significant existence proof: a block-based DSL originally designed for GPUs can be retargeted to a custom accelerator with async command issue, FIFO-like circular buffers, and software-managed scheduling, and can reach performance parity with handwritten C++ for a production workload. The paper has several strengths: it gives a concrete account of the compiler architecture and optimization space; it reports silicon measurements rather than simulation or emulation; and Section 8.1 candidly discusses portability failures, including 5 of 16 ported kernels that required rewriting, which adds credibility. The production deployment statistics and Inductor coverage numbers in Table 1 are also useful evidence of engineering impact. However, the manuscript does not include raw performance data, confidence intervals, baseline source/version details, or any independent benchmark, so the main performance-parity claim is currently underdetermined as presented.
major comments (4)
- [§7.1, Figs. 6–9; Abstract] The paper's load-bearing claim—that Triton kernels are 'competitive with expert-tuned C++ implementations'—is not supported by the evidence as presented. Fig. 6 shows only percentage-of-roofline with no absolute throughputs, no roofline definition or methodology, and no concrete C++ comparison values. Figs. 7–9 report normalized speedups without raw runtimes, error bars, confidence intervals, or per-configuration distributions, and several bars in Fig. 7 appear below 1.0. Since the compiler, the Triton kernels, the C++ baselines, and the configuration selection were all produced by the same team, the claim is currently unfalsifiable to an external reader. Please provide a table of raw runtimes/throughputs for every configuration, report the exact baseline kernel versions and source code, describe the tuning effort, and include per-configuration distributions (e.g., min/median/max over re
- [§7.1.2, Fig. 7] The FlashAttention evaluation normalizes performance to a 'decomposed baseline' lowered to an optimized kernel library, not to an expert-tuned fused C++ attention kernel. The abstract's claim is parity with expert-tuned C++ implementations; speedups over a decomposed implementation may reflect fusion benefits rather than Triton's competitiveness against a strong handwritten fused kernel. Please add a direct comparison against a fused, handwritten C++ attention kernel, with source/version details and a description of how it was tuned.
- [§7.1.3, Fig. 8] Aggregating the 17 long-tail kernels by geomean per operator can conceal large individual regressions. The text mentions 'outliers' but neither identifies them nor quantifies how many kernels are slower than the C++ baseline. Provide per-kernel data (e.g., a scatter plot or table), report the range and the count of kernels outside a bounded margin (say ±10% or ±20%), and define 'on par' operationally. Additionally, the claim that Triton accelerates 'kernel development velocity' is asserted but not measured; if the claim is retained, include development-time data or a clearly scoped qualitative justification.
- [§7.2.1, Fig. 9] The Inductor-Triton performance evaluation relies on a single layernorm-sigmoid fusion example compared against a single handwritten baseline. There is no confidence interval, no description of how the handwritten baseline was produced or tuned, and no list of the tensor shapes tested. This is too narrow to support the general statement that 'automatic fusion is competitive with handwritten kernels.' Please report multiple operators, raw numbers, and baseline provenance, or else weaken the claim to the specific example shown.
minor comments (5)
- [§2.3] Typo: 'Fixed-F unction Units' should be 'Fixed-Function Units'.
- [§5.1] The indexing function f(x) uses symbols d and s without defining their types or ranges; please clarify the notation.
- [§7.1.1] The caption for Fig. 6 should define what 'roofline' means (e.g., peak DPE throughput, peak memory bandwidth, or a piecewise bound) and state whether the percentages are computed per configuration or averaged.
- [§7.3, Figs. 11–12] The production footprint numbers are interesting, but the methodology for counting 'model types', 'layers', and 'non-GEMM execution time' is not fully specified. Please state the counting rules and, if possible, report variance across models or product groups.
- [§8.1] The portability discussion would benefit from naming the 16 kernels and, for the 11 directly portable kernels, saying what 'good enough performance' means quantitatively; as written it is qualitative.
Circularity Check
No significant circularity: the paper is an empirical engineering report; no derivation step reduces to its own inputs.
full rationale
The paper does not present a mathematical derivation chain whose conclusions are equivalent to assumed inputs. Its load-bearing claims—that a Triton backend for MTIA-2i was built, that generated kernels are competitive with expert-tuned C++, and that Triton reached a production footprint—are supported by measurements and deployment statistics, not by equations fit to the same quantities. The only self-citations are to prior Meta hardware papers ([13], [15]) used to describe the MTIA-2i architecture and an earlier internal DSL (KNYFE); these are architectural inputs and experience context, not load-bearing uniqueness claims or imported ansatze, and Section 2.3 independently restates the relevant architecture. There is no fitted-parameter-called-prediction pattern, no renaming of a known result, and no result forced by self-citation. The evaluation is internal and normalized, so an external reviewer may question whether the C++ baselines are the strongest achievable or whether aggregate figures mask slowdowns; that is an evidence-quality and generalizability concern, not circularity. Accordingly, the score is 0.
Axiom & Free-Parameter Ledger
axioms (4)
- domain assumption MTIA-2i exposes the described architecture: 8x8 PE array, FFUs (DPE, SE, RE, MLU, FI), RISC-V cores, circular-buffer local memory, 15 CBs and 384 KB LS.
- domain assumption The performance figures in Section 7 are accurate measurements on MTIA-2i silicon using representative production configurations.
- domain assumption The C++ kernels used as baselines are genuinely expert-tuned and representative of the best achievable low-level implementations.
- domain assumption Upstream Triton parser and MLIR infrastructure provide correct semantics for the transformations described.
read the original abstract
The rapid growth in machine learning workloads has fueled the proliferation of custom accelerator architectures. Designed from the ground up, these accelerators often expose programming models that are distinct from GPUs. While hyperscalers and AI chip startups continue to innovate in this space, achieving broad operator coverage to support diverse models remains a major challenge. Additionally, an easy-to-use, high-level kernel programming language is important for rapid iteration of models and kernels. Triton, together with TorchInductor, addresses these issues on GPUs, but its viability on accelerators with different programming models has yet to be established. In this work, we present the first production-scale application of Triton on a custom ML accelerator, MTIA-2i, developed by Meta. To support MTIA-2i, we develop a new compiler backend that targets it, introduce enhancements to TorchInductor code generation, and propose minimal language extensions that expose MTIA-specific architectural features. We demonstrate that Triton-MTIA kernels achieve performance competitive with expert-tuned C++ implementations. Leveraging these development efficiency gains, we successfully deployed manually written and Inductor-generated Triton kernels in production across approximately 60 different model types, accounting for 50% of layers and 47% of non-GEMM execution time for these models. Our results provide compelling evidence that DSLs like Triton can bridge the programming model gaps between ML frameworks, kernels, and custom accelerators, enabling rapid innovation and efficient deployment at scale.
Figures
Reference graph
Works this paper leans on
-
[1]
The llama 3 herd of models,
A. Dubey, A. Jauhri, A. Pandey, A. Kadian, A. Al- Dahle, A. Letman, A. Mathur, A. Schelten, A. Yang, A. Fanet al., “The llama 3 herd of models,”arXiv e-prints, pp. arXiv–2407, 2024
2024
-
[2]
Deep learning recommen- dation model for personalization and recommendation systems,
M. Naumov, D. Mudigere, H.-J. M. Shi, J. Huang, N. Sundaraman, J. Park, X. Wang, U. Gupta, C.-J. Wu, A. G. Azzoliniet al., “Deep learning recommen- dation model for personalization and recommendation systems,”arXiv preprint arXiv:1906.00091, 2019
Pith/arXiv arXiv 1906
-
[3]
DHEN: A Deep and Hierarchical Ensemble Network for Large- Scale Click-Through Rate Prediction,
B. Zhang, L. Luo, X. Liu, J. Li, Z. Chen, W. Zhang, X. Wei, Y. Hao, M. Tsang, W. Wanget al., “DHEN: A Deep and Hierarchical Ensemble Network for Large- Scale Click-Through Rate Prediction,”arXiv preprint arXiv:2203.11014, 2022
Pith/arXiv arXiv 2022
-
[4]
J. Zhai, L. Liao, X. Liu, Y. Wang, R. Li, X. Cao, L. Gao, Z. Gong, F. Gu, M. Heet al., “Actions speak louder than words: Trillion-parameter sequential transducers for generative recommendations,”arXiv preprint arXiv:2402.17152, 2024
Pith/arXiv arXiv 2024
-
[5]
[Online]
PyTorchTeam,PyTorch Documentation: Core ATen IR, 2024. [Online]. Available: https://docs.pytorch. org/docs/main/torch.compiler ir.html
2024
-
[6]
The Design Process for Google’s Training Chips: TPUv2 and TPUv3,
T. Norrie, N. Patil, D. H. Yoon, G. Kurian, S. Li, J. Laudon, C. Young, N. Jouppi, and D. Patterson, “The Design Process for Google’s Training Chips: TPUv2 and TPUv3,”IEEE Micro, vol. 41, no. 2, pp. 56–63, 2021. [Online]. Available: https://doi.org/10.1109/MM.2021.3058217
arXiv 2021
-
[7]
Think Fast: A Tensor Streaming Processor (TSP) for Accelerating Deep Learning Workloads,
D. Abts, J. Ross, J. Sparling, M. Wong- VanHaren, M. Baker, T. Hawkins, A. Bell, J. Thompson, T. Kahsai, G. Kimmell, J. Hwang, R. Leslie-Hurd, M. Bye, E. Creswick, M. Boyd, M. Venigalla, E. Laforge, J. Purdy, P. Kamath, D. Maheshwari, M. Beidler, G. Rosseel, O. Ahmad, G. Gagarin, R. Czekalski, A. Rane, S. Parmar, J. Werner, J. Sproch, A. Macias, and B. Ku...
arXiv 2020
-
[8]
Accelerating Scientific Applica- tions With SambaNova Reconfigurable Dataflow Architecture,
M. Emani, V. Vishwanath, C. Adams, M. E. Papka, R. Stevens, L. Florescu, S. Jairath, W. Liu, T. Nama, and A. Sujeeth, “Accelerating Scientific Applica- tions With SambaNova Reconfigurable Dataflow Architecture,”Computing in Science & Engineering, vol. 23, no. 2, pp. 114–119, 2021. [Online]. Available: https://doi.org/10.1109/MCSE.2021.3057203
arXiv 2021
-
[9]
Distributed Training of Large Language Models on A WS Trainium,
X. Fu, Z. Zhang, H. Fan, G. Huang, M. El-Shabani, R. Huang, R. Solanki, F. Wu, R. Diamant, and Y. Wang, “Distributed Training of Large Language Models on A WS Trainium,” inProceedings of the 2024 ACM Symposium on Cloud Computing. Association for Computing Machinery, 2024, pp. 961–976. [Online]. Available: https://doi.org/10. 1145/3698038.3698535
arXiv 2024
-
[11]
Blackhole & TT-Metalium: The Standalone AI Computer and its Programming Model ,
J. Vasiljevic and D. Capalija, “ Blackhole & TT-Metalium: The Standalone AI Computer and its Programming Model ,” in2024 IEEE Hot Chips 36 Symposium (HCS). IEEE Computer Society, August 2024, pp. 1–30. [Online]. Available: https://doi.org/10.1109/HCS61935.2024.10664810
arXiv 2024
-
[12]
S. Lie, “ Cerebras Architecture Deep Dive: First Look Inside the HW/SW Co-Design for Deep Learning : Cerebras Systems ,” in2022 IEEE Hot Chips 34 Symposium (HCS). IEEE Computer Society, August 2022, pp. 1–34. [Online]. Available: https://doi.org/10.1109/HCS55958.2022.9895479
arXiv 2022
-
[13]
Meta’s Second Generation AI Chip: Model-Chip Co-Design and Productionization Experiences,
J. Coburn, C. Tang, S. A. Asal, N. Agrawal, R. Chinta, H. Dixit, B. Dodds, S. Dwarakapuram, A. Firoozshahian, C. Gao, K. Gondkar, T. Graf, J. Hu, J. Huang, S. Hughes, A. Hutchin, B. Jakka, G. J. Chen, I. Kalyanaraman, A. Kamath, P. Kansal, E. Kazi, R. Levenstein, M. Maddury, A. Mastro, S. Medaiyese, P. Modi, J. Montgomery, S. Nadathur, A. Nagpal, A. Naras...
arXiv 2025
-
[14]
Development repository for the triton language and compiler,
OpenAI, “Development repository for the triton language and compiler,” 2025. [Online]. Available: https://github.com/triton-lang/triton
2025
-
[15]
MTIA: First Generation Silicon Targeting Meta’s Recommendation Systems,
A. Firoozshahian, J. Coburn, R. Levenstein, R. Nattoji, A. Kamath, O. Wu, G. Grewal, H. Aepala, B. Jakka, B. Dreyer, A. Hutchin, U. Diril, K. Nair, E. K. Aredestani, M. Schatz, Y. Hao, R. Komuravelli, K. Ho, S. Abu Asal, J. Shajrawi, K. Quinn, N. Sreedhara, P. Kansal, W. Wei, D. Jayaraman, L. Cheng, P. Chopda, E. Wang, A. Bikumandla, A. Karthik Sengottuve...
arXiv 2023
-
[16]
FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning,
T. Dao, “FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning,” 2023. [Online]. Available: https://arxiv.org/abs/2307. 08691
2023
-
[17]
FlagOpen/FlagGems: An operator library for large language models implemented in the Triton language,
BAAI FlagOpen Team, “FlagOpen/FlagGems: An operator library for large language models implemented in the Triton language,” 2024. [Online]. Available: https://github.com/FlagOpen/FlagGems
2024
-
[18]
FlexAt- tention: The Flexibility of PyTorch with the Per- formance of FlashAttention,
D. Guessous, Y. Liang, J. Dong, and H. He, “FlexAt- tention: The Flexibility of PyTorch with the Per- formance of FlashAttention,” August 2024. [Online]. Available: https://pytorch.org/blog/flexattention/
2024
-
[19]
gpt-oss-120b & gpt-oss-20b Model Card,
OpenAI, “gpt-oss-120b & gpt-oss-20b Model Card,”
-
[20]
Helion: A High-Level DSL for Performant and Portable ML Kernels,
PyTorchTeam, “Helion: A High-Level DSL for Performant and Portable ML Kernels,” 2025. [Online]. Available: https://pytorch.org/blog/helion/
2025
-
[21]
[Online]
JAX Developers,JAX Pallas Documentation, 2024. [Online]. Available: https://docs.jax.dev/en/latest/ pallas/index.html
2024
-
[22]
Tlx - triton low-level language extensions,
Meta, “Tlx - triton low-level language extensions,”
-
[23]
Introduction to Gluon,
OpenAI, “Introduction to Gluon,” 2025. [Online]. Available: https://github.com/triton-lang/triton/ blob/main/python/tutorials/gluon/01-intro.py
2025
-
[24]
Available: https://github.com/ facebookexperimental/triton/tree/tlx
[Online]. Available: https://github.com/ facebookexperimental/triton/tree/tlx
-
[26]
CuTe DSL,
Nvidia, “CuTe DSL,” 2025. [Online]. Avail- able: https://docs.nvidia.com/cutlass/media/docs/ pythonDSL/cute dsl.html
2025
-
[27]
A WS Neuron adds support for NKI and NXD for training with JAX,
A WS, “A WS Neuron adds support for NKI and NXD for training with JAX,” 2024. [Online]. Available: https://aws.amazon.com/about-aws/whats-new/ 2024/09/aws-neuron-nki-nxd-training-jax/
2024
-
[28]
Available: https://arxiv.org/abs/ 2504.17577
[Online]. Available: https://arxiv.org/abs/ 2504.17577
-
[29]
cutile, the new/old kid on the block: Python programming models for gpus,
B. A. Lelbach, “cutile, the new/old kid on the block: Python programming models for gpus,” Talk at SciPy 2025, July 2025. [Online]. Available: https://cfp.scipy.org/scipy2025/talk/PBLESZ/
2025
-
[30]
MLIR: A compiler infrastructure for the end of Moore’s law,
C. Lattner, M. Amini, U. Bondhugula, A. Cohen, A. Davis, J. Pienaar, R. Riddle, T. Shpeisman, N. Vasilache, and O. Zinenko, “MLIR: A compiler infrastructure for the end of Moore’s law,”arXiv preprint arXiv:2002.11054, 2020. [Online]. Available: https://doi.org/10.48550/arXiv.2002.11054
-
[31]
J. Ansel, E. Yang, H. He, N. Gimelshein, A. Jain, M. Voznesensky, B. Bao, P. Bell, D. Berard, E. Burovski, G. Chauhan, A. Chourdia, W. Constable, A. Desmaison, Z. DeVito, E. Ellison, W. Feng, J. Gong, M. Gschwind, B. Hirsh, S. Huang, 14 K. Kalambarkar, L. Kirsch, M. Lazos, M. Lezcano, Y. Liang, J. Liang, Y. Lu, C. K. Luk, B. Maher, Y. Pan, C. Puhrsch, M. ...
arXiv 2024
-
[32]
Halide: a language and compiler for optimizing parallelism, locality, and recomputation in image processing pipelines,
J. Ragan-Kelley, C. Barnes, A. Adams, S. Paris, F. Durand, and S. Amarasinghe, “Halide: a language and compiler for optimizing parallelism, locality, and recomputation in image processing pipelines,”Acm Sigplan Notices, vol. 48, no. 6, pp. 519–530, 2013
2013
-
[33]
risc-v-spec,
riscvarchive, “risc-v-spec,” 2025. [Online]. Available: https://github.com/riscvarchive/riscv-v-spec
2025
-
[34]
triton-shared: A shared middle-layer for the Triton Compiler,
Microsoft, “triton-shared: A shared middle-layer for the Triton Compiler,” 2024. [Online]. Available: https://github.com/microsoft/triton-shared
2024
-
[35]
V. H. Allan, R. B. Jones, R. M. Lee, and S. J. Allan, “Software pipelining,”ACM Comput. Surv., vol. 27, no. 3, pp. 367—-432, Sep. 1995. [Online]. Available: https://doi.org/10.1145/212094.212131
arXiv 1995
-
[36]
Triton: Extern Func- tions Tutorial,
Triton Developers, “Triton: Extern Func- tions Tutorial,” 2024. [Online]. Avail- able: https://triton-lang.org/main/getting-started/ tutorials/07-extern-functions.html 15
2024
-
[37]
MLIR: Scal- ing Compiler Infrastructure for Domain Specific Computation,
C. Lattner, M. Amini, U. Bondhugula, A. Cohen, A. Davis, J. Pienaar, R. Riddle, T. Shpeisman, N. Vasilache, and O. Zinenko, “MLIR: Scal- ing Compiler Infrastructure for Domain Specific Computation,” in2021 IEEE/ACM International Symposium on Code Generation and Optimiza- tion (CGO), 2021, pp. 2–14. [Online]. Available: https://doi.org/10.1109/CGO51591.202...
arXiv 2021
-
[38]
Attention is All you Need,
A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, L. u. Kaiser, and I. Polo- sukhin, “Attention is All you Need,” inAdvances in Neural Information Processing Systems, vol. 30. Curran Associates, Inc., 2017
2017
-
[2025]
Available: https://arxiv.org/abs/ 2508.10925
[Online]. Available: https://arxiv.org/abs/ 2508.10925
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.