Citrine: Catching Million-Dollar ML Anti-Patterns Before They Ship#
@Scale: AI & Data 2026 digest Program Core pick 17 June 2026
Prakash KL, Chenguang Zhu, Shyam Sundar Chandrasekaran, Jon Dyer (Meta)
- Why: GPU/accelerator efficiency is now measured in fleet-wide megawatts and billions of dollars, and AI coding agents are reproducing inefficiencies at machine speed. This is one of the few systems that attacks waste at code-authoring time with measured fleet-scale results, and it has a real open-source footprint.
- What: An always-on, zero-overhead lint-layer system detecting 45+ PyTorch and Triton anti-patterns, with 4,700+ accepted fixes in 90 days across 10+ product groups, up to 43% improvement on affected Triton kernels, and claimed millions of dollars in annual GPU savings (from abstract only; numbers are the authors' own).
- How: Static analysis and AST transformation via LibCST integrated into Meta's arc lint pipeline; every detector ships a deterministic AST rewriter giving one-click suggested edits. It also shifts left by injecting the same rules into LLM code-authoring agents at generation time, plus an attribution methodology tying individual fixes to fleet-scale efficiency wins.
- Where applicable: Broadly applicable well beyond Meta — 13 TorchFix rules and 12+ Triton-lint rules are upstreamed into open-source projects, so the pattern (and much of the rule set) is directly consumable. The Meta-specific parts are the arc lint integration and the internal attribution pipeline.