mlsanityData to 14 Oct 2026

TTrace: Lightweight Error Checking and Diagnosis for Distributed Training

arXiv 2506.09280 ↗First posted 10 Jun 2025cs.DC cs.LG cs.NAcited by 1

Not on the map. Why?

Abstract (arXiv)

Distributed training is essential for scaling the training of large neural network models, such as large language models (LLMs), across thousands of GPUs. However, the complexity of distributed training programs makes them particularly prone to silent bugs, which do not produce explicit error signals but lead to incorrect training outcomes. Effectively detecting and localizing such silent bugs in distributed training is challenging. Common debugging practices based on monitoring training loss or gradient norm curves are indirect, inefficient, and provide no way to localize bugs. To address those challenges, we design and implement TTrace, the first systematic differential testing system for detecting and localizing silent bugs in distributed training. TTrace aligns intermediate tensors from distributed training with those from a trusted reference implementation. To properly compare the floating-point values in the corresponding tensors, we propose a novel mathematical analysis that provides a guideline for setting tolerances, enabling TTrace to distinguish bug-induced errors from numerical errors. Experimental results demonstrate that TTrace effectively detects 11 existing bugs and 3 new bugs in the widely used Megatron-LM framework, while requiring fewer than 10 lines of code changes. TTrace is effective in various training recipes, including low-precision recipes involving BF16 and FP8. Notably, a popular open-source training framework has already adopted the method proposed by TTrace in its development workflow.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 32 of its 74 references that are in the map. First posted on arXiv 10 Jun 2025.

Builds on

32 of 74 references.

References · 32

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2020Scaling Laws for Neural Language Modelscited by 6,586
  3. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  4. 2023A Survey of Large Language Modelscited by 2,576
  5. 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,868
  6. 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,336
  7. 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,301
  8. 2017Mixed Precision Trainingcited by 1,156
  9. 2022Diffusion Models: A Comprehensive Survey of Methods and Applicationscited by 1,114
  10. 2021Efficient Large-Scale Language Model Training on GPU Clusters Using Megatron-LMcited by 632
  11. 2023Ring Attention with Blockwise Transformers for Near-Infinite Contextcited by 457
  12. 2018Lipschitz regularity of deep neural networks: analysis and efficient estimationcited by 415
20 more
  1. 2022Reducing Activation Recomputation in Large Transformer Modelscited by 302
  2. 2019A Study of BFLOAT16 for Deep Learning Trainingcited by 232
  3. 2022FP8 Formats for Deep Learningcited by 196
  4. 2018Lipschitz-Margin Training: Scalable Certification of Perturbation Invariance for Deep Neural Networkscited by 195
  5. 2020The Lipschitz Constant of Self-Attentioncited by 174
  6. 2024MegaScale: Scaling Large Language Model Training to More Than 10,000 GPUscited by 112
  7. 2024On the Role of Attention Masks and LayerNorm in Transformerscited by 48
  8. 2024Mirage: A Multi-Level Superoptimizer for Tensor Programscited by 41
  9. 2023LipsFormer: Introducing Lipschitz Continuity to Vision Transformerscited by 34
  10. 2022NNSmith: Generating Diverse and Valid Test Cases for Deep Learning Compilerscited by 30
  11. 2022Free Lunch for Testing: Fuzzing Deep-Learning Libraries from Open Sourcecited by 28
  12. 2021Silent Bugs in Deep Learning Frameworks: An Empirical Study of Keras and TensorFlowcited by 25
  13. 2023Fuzzing Automatic Differentiation in Deep-Learning Librariescited by 17
  14. 2022Coverage-Guided Tensor Compiler Fuzzing with Joint IR-Pass Mutationcited by 10
  15. 2025Training with Confidence: Catching Silent Errors in Deep Learning Training with Automated Proactive Checkscited by 10
  16. 2024Universal Checkpointing: A Flexible and Efficient Distributed Checkpointing System for Large-Scale DNN Training with Reconfigurable Paralleliscited by 9
  17. 2022Fuzzing Deep Learning Compilers with HirGencited by 7
  18. 2024Deep Learning Library Testing: Definition, Methods and Challengescited by 5
  19. 2023A Survey of Modern Compiler Fuzzingcited by 3
  20. 2019A Probabilistic Approach to Floating-Point Arithmeticcited by 1

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.