Lune

NeurIPS2021Top-tier venue

Cockpit: A Practical Debugging Tool for the Training of Deep Neural Networks

Frank Schneider, Felix Dangel, Philipp Hennig

Abstract

When engineers train deep learning models, they are very much 'flying blind'. Commonly used methods for real-time training diagnostics, such as monitoring the train/test loss, are limited. Assessing a network's training process solely through these performance indicators is akin to debugging software without access to internal states through a debugger. To address this, we present Cockpit, a collection of instruments that enable a closer look into the inner workings of a learning machine, and a more informative and meaningful status report for practitioners. It facilitates the identification of learning phases and failure modes, like ill-chosen hyperparameters. These instruments leverage novel higher-order information about the gradient distribution and curvature, which has only recently become efficiently accessible. We believe that such a debugging tool, which we open-source for PyTorch, is a valuable help in troubleshooting the training process. By revealing new insights, it also more generally contributes to explainability and interpretability of deep nets.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

4 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Coherent Gradients: An Approach to Understanding Generalization in Gradient Descent-based Optimization cites The Impact of Neural Network Overparameterization on Gradient Confusion and Stochastic Gradient Descent
  • Catastrophic Fisher Explosion: Early Phase Fisher Matrix Impacts Generalization cites The Early Phase of Neural Network Training
  • Catastrophic Fisher Explosion: Early Phase Fisher Matrix Impacts Generalization cites Coherent Gradients: An Approach to Understanding Generalization in Gradient Descent-based Optimization
  • Catastrophic Fisher Explosion: Early Phase Fisher Matrix Impacts Generalization cites The Break-Even Point on Optimization Trajectories of Deep Neural Networks
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. PCcheck: Persistent Concurrent Checkpointing for MLFoteini Strati, Michal Friedman, Ana KlimovicASPLOS 2025 · 11 citations
  2. Per-example Gradients: a New Frontier for Understanding and Improving OptimizersVincent Roulet, Atish AgarwalaICML 2026 · 2 citations
  3. BTTackler: A Diagnosis-based Framework for Efficient Deep Learning Hyperparameter OptimizationZhongyi Pei, Zhiyao Cen, Yipeng Huang, Chen Wang et al.KDD 2024 · 1 citation
  4. DeepDebugger: An Interactive Time-Travelling Debugging Approach for Deep ClassifiersXianglin Yang, Yun Lin, Yifan Zhang, Linpeng Huang et al.FSE 2023 · 1 citation

Builds on7

  1. The Early Phase of Neural Network TrainingJonathan Frankle, David J. Schwab, Ari S. MorcosICLR 2020 · 199 citations
  2. The Break-Even Point on Optimization Trajectories of Deep Neural NetworksStanislaw Jastrzebski, Maciej Szymczak, Stanislav Fort, Devansh Arpit et al.ICLR 2020 · 198 citations
  3. The Impact of Neural Network Overparameterization on Gradient Confusion and Stochastic Gradient DescentKarthik Abinav Sankararaman, Soham De, Zheng Xu, W. Ronny Huang et al.ICML 2020 · 122 citations
  4. Catastrophic Fisher Explosion: Early Phase Fisher Matrix Impacts GeneralizationStanislaw Jastrzebski, Devansh Arpit, Oliver Åstrand, Giancarlo Kerg et al.ICML 2021 · 78 citations
  5. Coherent Gradients: An Approach to Understanding Generalization in Gradient Descent-based OptimizationSatrajit ChatterjeeICLR 2020 · 60 citations

Related papers

  1. Hindsight Logging for Model TrainingRolando Garcia, Eric Liu, Vikram Sreekanti, Bobby Yan et al.VLDB 2021 · 10 citations
  2. AUTOTRAINER: An Automatic DNN Training Problem Detection and Repair SystemXiaoyu Zhang, Juan Zhai, Shiqing Ma, Chao ShenICSE 2021 · 62 citations
  3. BackPACK: Packing more into BackpropFelix Dangel, Frederik Kunstner, Philipp HennigICLR 2020 · 114 citations
  4. DeepDiagnosis: Automatically Diagnosing Faults and Recommending Actionable Fixes in Deep Learning ProgramsMohammad Wardat, Breno Dantas Cruz, Wei Le, Hridesh RajanICSE 2022 · 46 citations
  5. Skyline: Interactive In-Editor Computational Performance Profiling for Deep Neural Network TrainingGeoffrey X. Yu, Tovi Grossman, Gennady PekhimenkoUIST 2020 · 16 citations
Dusk over the sea between two cliffs drawn in fine vertical lines