# ForgeTrain: Forging Production-Grade Training Frameworks via Harness-Driven AI Development

arXiv: https://arxiv.org/abs/2609.13645 · HTML: https://mlsanity.com/paper/2609.13645/

## Key facts

- Cited by 2 papers in the map (data through 24 Nov 2026).
- Submitted 12 Sep 2026.

## Built on by (most cited first, 2 of 2)

- [TrainBridge: Agentic NPU Training Optimization Guided by GPU Compilation Evidence](https://mlsanity.com/paper/2610.29171/) (2026)
- [Plumbline: When the Loss Lies, Validating LLM Training Correctly](https://mlsanity.com/paper/2611.13393/) (2026)

## Abstract (arXiv)

Training large models still relies on general-purpose frameworks such as Megatron-LM, whose generality tax constrains scenario-specific optimization and adds runtime overhead through accumulated abstraction. AI code generation reduces the cost of building a framework, and makes it affordable to forge one per scenario. We propose Forge Engineering: building a dedicated implementation from scratch for each scenario and iteratively optimizing it toward peak performance under correctness and usability constraints. Dedicated implementations inherit no abstraction boundaries, so they can integrate optimizations across the stack and reach a higher performance ceiling. We instantiate this paradigm for training frameworks as ForgeTrain, which holds a trusted framework as a golden reference and relaxes equivalence monotonically from Bit-for-Bit to Surpass. Experiments across multiple model--hardware configurations show that ForgeTrain consistently produces correct training engines and improves MFU over established training frameworks by 4.7--33.2%. To our knowledge this is the first production-grade training framework forged end-to-end by AI to match or surpass its human reference.
