Training Tips for the Transformer Model
Not on the map. Why?
Abstract (arXiv)
This article describes our experiments in neural machine translation using the recent Tensor2Tensor framework and the Transformer sequence-to-sequence model (Vaswani et al., 2017). We examine some of the critical parameters that affect the final translation quality, memory usage, training stability and training time, concluding each experiment with a set of recommendations for fellow researchers. In addition to confirming the general mantra "more data and larger models", we address scaling to multiple GPUs and provide practical tips for improved training regarding batch size, learning rate, warmup steps, maximum sentence length and checkpoint averaging. We hope that our observations will allow others to get better results given their particular hardware and data constraints.
Key facts. Cited by 85 papers in the map (data through 14 Oct 2026). First posted on arXiv 1 Apr 2018.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 21; 2022: 18; 2023: 22; 2024: 15; 2025: 8; 2026: 1.
85 papers.
Sort:
By area:
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2022Tensor Programs V: Tuning Large Neural Networks via Zero-Shot Hyperparameter Transfercited by 288
- 2024Simple and Scalable Strategies to Continually Pre-train Large Language Modelscited by 127
- 2022Adaptive Gradient Methods at the Edge of Stabilitycited by 101
- 2021Distributed Deep Learning in Open Collaborationscited by 58
- 2022Speech Emotion Recognition using Self-Supervised Featurescited by 53
- 2021Domain Adaptation and Multi-Domain Adaptation for Neural Machine Translation: A Surveycited by 46
- 2022Transformers in Time-series Analysis: A Tutorialcited by 46
- 2021CoMAE: A Multi-factor Hierarchical Framework for Empathetic Response Generationcited by 42
- 2021Prototypical Representation Learning for Relation Extractioncited by 33
- 2025The Sharpness Disparity Principle in Transformers for Accelerating Language Model Pre-Trainingcited by 30
- 2021Why don't people use character-level machine translation?cited by 27
38 more
- 2021Persformer: A Transformer Architecture for Topological Machine Learningcited by 19
- 2024Parameter Symmetry and Noise Equilibrium of Stochastic Gradient Descentcited by 19
- 2022Distributionally Robust Models with Parametric Likelihood Ratioscited by 17
- 2022Hausa Visual Genome: A Dataset for Multi-Modal English to Hausa Machine Translationcited by 13
- 2022Revisiting Checkpoint Averaging for Neural Machine Translationcited by 13
- 2021Divide and Rule: Effective Pre-Training for Context-Aware Multi-Encoder Translation Modelscited by 12
- 2021Transformers: "The End of History" for NLP?cited by 12
- 2023HaVQA: A Dataset for Visual Question Answering and Multimodal Research in Hausa Languagecited by 12
- 2021Extended Parallel Corpus for Amharic-English Machine Translationcited by 10
- 2021Contextual Semantic Parsing for Multilingual Task-Oriented Dialoguescited by 10
- 2022AdaVAE: Exploring Adaptive GPT-2s in Variational Auto-Encoders for Language Modelingcited by 10
- 2024EPi-cKANs: Elasto-Plasticity Informed Kolmogorov-Arnold Networks Using Chebyshev Polynomialscited by 9
- 2024What Does It Mean to Be a Transformer? Insights from a Theoretical Hessian Analysiscited by 9
- 2021GTNet:Guided Transformer Network for Detecting Human-Object Interactionscited by 8
- 2022Compositionality as Lexical Symmetrycited by 8
- 2023Stochastic Parrots Looking for Stochastic Parrots: LLMs are Easy to Fine-Tune and Hard to Detect with other LLMscited by 8
- 2023Free Lunch: Robust Cross-Lingual Transfer via Model Checkpoint Averagingcited by 8
- 2022Focused Concatenation for Context-Aware Neural Machine Translationcited by 7
- 2021Three-level Hierarchical Transformer Networks for Long-sequence and Multiple Clinical Documents Classificationcited by 6
- 2021Rethinking Adam: A Twofold Exponential Moving Average Approachcited by 6
- 2023Encoding Sentence Position in Context-Aware Neural Machine Translation with Concatenationcited by 6
- 2023Bidirectional Looking with A Novel Double Exponential Moving Average to Adaptive and Non-adaptive Momentum Optimizerscited by 6
- 2022Training Transformers Togethercited by 5
- 2022Relaxed Attention for Transformer Modelscited by 5
- 2023eWaSR -- an embedded-compute-ready maritime obstacle detection networkcited by 5
- 2023SkinDistilViT: Lightweight Vision Transformer for Skin Lesion Classificationcited by 5
- 2024Frequency matters: Modeling irregular morphological patterns in Spanish with Transformerscited by 5
- 2025Stability of Transformers under Layer Normalizationcited by 5
- 2022Gradient Descent, Stochastic Optimization, and Other Talescited by 4
- 2024A Case Study on Context-Aware Neural Machine Translation with Multi-Task Learningcited by 4
- 2024The Impact of LoRA Adapters on LLMs for Clinical Text Classification Under Computational and Data Constraintscited by 4
- 2021Text Simplification for Comprehension-based Question-Answeringcited by 3
- 2022Tackling Low-Resourced Sign Language Translation: UPC at WMT-SLT 22cited by 3
- 2023Curriculum-guided Abstractive Summarization for Mental Health Online Postscited by 3
- 2023NL2CMD: An Updated Workflow for Natural Language to Bash Commands Translationcited by 3
- 2023Improving Transformer Performance for French Clinical Notes Classification Using Mixture of Experts on a Limited Datasetcited by 3
- 2023A Neural Network Transformer Model for Composite Microstructure Homogenizationcited by 3
- 2024When Will Gradient Regularization Be Harmful?cited by 3
50 most cited of 85 All 85 (JSON)
- 2026GeoNorm: Unify Pre-Norm and Post-Norm with Geodesic Optimization29 Jan 2026
- 2025Stability of Transformers under Layer Normalization10 Oct 2025
- 2025Advances in Large Language Models for Medicine23 Sep 2025
- 2025The Warmup Dilemma: How Learning Rate Strategies Impact Speech-to-Text Model Convergence29 May 2025
- 2025A Physics-Inspired Optimizer: Velocity Regularized Adam19 May 2025
- 2025Text Compression for Efficient Language Generation14 Mar 2025
- 2025HieroLM: Egyptian Hieroglyph Recovery with Next Word Prediction Language Model6 Mar 2025
- 2025The Sharpness Disparity Principle in Transformers for Accelerating Language Model Pre-Training26 Feb 2025
- 2025A Unified Hyperparameter Optimization Pipeline for Transformer-Based Time Series Forecasting Models2 Jan 2025
- 2024DBF-Net: A Dual-Branch Network with Feature Fusion for Ultrasound Image Segmentation17 Nov 2024
- 2024SambaMixer: State of Health Prediction of Li-ion Batteries using Mamba State Space Models31 Oct 2024
- 2024Frequency matters: Modeling irregular morphological patterns in Spanish with Transformers28 Oct 2024
38 more
- 2024What Does It Mean to Be a Transformer? Insights from a Theoretical Hessian Analysis14 Oct 2024
- 2024EPi-cKANs: Elasto-Plasticity Informed Kolmogorov-Arnold Networks Using Chebyshev Polynomials12 Oct 2024
- 2024Computational design of target-specific linear peptide binders with TransformerBeta7 Oct 2024
- 2024The Impact of LoRA Adapters on LLMs for Clinical Text Classification Under Computational and Data Constraints27 Jul 2024
- 2024Describe Where You Are: Improving Noise-Robustness for Speech Emotion Recognition with Text Description of the Environment25 Jul 2024
- 2024A Case Study on Context-Aware Neural Machine Translation with Multi-Task Learning3 Jul 2024
- 2024When Will Gradient Regularization Be Harmful?14 Jun 2024
- 2024Challenging Gradient Boosted Decision Trees with Tabular Transformers for Fraud Detection at Booking.com22 May 2024
- 2024Simple and Scalable Strategies to Continually Pre-train Large Language Models13 Mar 2024
- 2024Search Intenion Network for Personalized Query Auto-Completion in E-Commerce5 Mar 2024
- 2024Parameter Symmetry and Noise Equilibrium of Stochastic Gradient Descent11 Feb 2024
- 2024A Novel Transformer-Based Self-Supervised Learning Method to Enhance Photoplethysmogram Signal Artifact Detection2 Jan 2024
- 2023Heterogeneous Encoders Scaling In The Transformer For Neural Machine Translation26 Dec 2023
- 2023Efficient Pre-training for Localized Instruction Generation of Videos27 Nov 2023
- 2023Scaling Studies for Efficient Parameter Search and Parallelism for Large Language Model Pre-training9 Oct 2023
- 2023Investigating Efficient Deep Learning Architectures For Side-Channel Attacks on AES22 Sep 2023
- 2023SkinDistilViT: Lightweight Vision Transformer for Skin Lesion Classification16 Aug 2023
- 2023A Case Study on Context Encoding in Multi-Encoder based Document-Level Neural Machine Translation11 Aug 2023
- 2023ApproBiVT: Lead ASR Models to Generalize Better Using Approximated Bias-Variance Tradeoff Guided Early Stopping and Checkpoint Averaging5 Aug 2023
- 2023Bidirectional Looking with A Novel Double Exponential Moving Average to Adaptive and Non-adaptive Momentum Optimizers2 Jul 2023
- 2023Efficient and Interpretable Compressive Text Summarisation with Unsupervised Dual-Agent Reinforcement Learning6 Jun 2023
- 2023HaVQA: A Dataset for Visual Question Answering and Multimodal Research in Hausa Language28 May 2023
- 2023DPFormer: Learning Differentially Private Transformer on Long-Tailed Data28 May 2023
- 2023Free Lunch: Robust Cross-Lingual Transfer via Model Checkpoint Averaging26 May 2023
- 2023Spatiotemporal Transformer for Stock Movement Prediction5 May 2023
- 2023eWaSR -- an embedded-compute-ready maritime obstacle detection network21 Apr 2023
- 2023Stochastic Parrots Looking for Stochastic Parrots: LLMs are Easy to Fine-Tune and Hard to Detect with other LLMs18 Apr 2023
- 2023A Neural Network Transformer Model for Composite Microstructure Homogenization16 Apr 2023
- 2023Training Strategies for Vision Transformers for Object Detection5 Apr 2023
- 2023Improving Transformer Performance for French Clinical Notes Classification Using Mixture of Experts on a Limited Dataset22 Mar 2023
- 2023NL2CMD: An Updated Workflow for Natural Language to Bash Commands Translation15 Feb 2023
- 2023Encoding Sentence Position in Context-Aware Neural Machine Translation with Concatenation13 Feb 2023
- 2023Curriculum-Guided Abstractive Summarization2 Feb 2023
- 2023Curriculum-guided Abstractive Summarization for Mental Health Online Posts2 Feb 2023
- 2022Tackling Low-Resourced Sign Language Translation: UPC at WMT-SLT 222 Dec 2022
- 2022FusionFormer: Fusing Operations in Transformer for Efficient Streaming Speech Recognition31 Oct 2022
- 2022Focused Concatenation for Context-Aware Neural Machine Translation24 Oct 2022
- 2022Revisiting Checkpoint Averaging for Neural Machine Translation21 Oct 2022
50 newest of 85 All 85 (JSON)
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2022Tensor Programs V: Tuning Large Neural Networks via Zero-Shot Hyperparameter Transfercited by 288
- 2024Simple and Scalable Strategies to Continually Pre-train Large Language Modelscited by 127
- 2022Adaptive Gradient Methods at the Edge of Stabilitycited by 101
- 2021Distributed Deep Learning in Open Collaborationscited by 58
- 2022Speech Emotion Recognition using Self-Supervised Featurescited by 53
- 2021Domain Adaptation and Multi-Domain Adaptation for Neural Machine Translation: A Surveycited by 46
- 2022Transformers in Time-series Analysis: A Tutorialcited by 46
- 2021CoMAE: A Multi-factor Hierarchical Framework for Empathetic Response Generationcited by 42
- 2021Prototypical Representation Learning for Relation Extractioncited by 33
- 2025The Sharpness Disparity Principle in Transformers for Accelerating Language Model Pre-Trainingcited by 30
- 2021Why don't people use character-level machine translation?cited by 27
12 most cited of 83 All 83 (JSON)
- 2026GeoNorm: Unify Pre-Norm and Post-Norm with Geodesic Optimization29 Jan 2026
- 2025Stability of Transformers under Layer Normalization10 Oct 2025
- 2025Advances in Large Language Models for Medicine23 Sep 2025
- 2025The Warmup Dilemma: How Learning Rate Strategies Impact Speech-to-Text Model Convergence29 May 2025
- 2025A Physics-Inspired Optimizer: Velocity Regularized Adam19 May 2025
- 2025Text Compression for Efficient Language Generation14 Mar 2025
- 2025HieroLM: Egyptian Hieroglyph Recovery with Next Word Prediction Language Model6 Mar 2025
- 2025The Sharpness Disparity Principle in Transformers for Accelerating Language Model Pre-Training26 Feb 2025
- 2025A Unified Hyperparameter Optimization Pipeline for Transformer-Based Time Series Forecasting Models2 Jan 2025
- 2024DBF-Net: A Dual-Branch Network with Feature Fusion for Ultrasound Image Segmentation17 Nov 2024
- 2024Frequency matters: Modeling irregular morphological patterns in Spanish with Transformers28 Oct 2024
- 2024What Does It Mean to Be a Transformer? Insights from a Theoretical Hessian Analysis14 Oct 2024
12 newest of 83 All 83 (JSON)