Abstract: Training deep neural networks is a relevant problem with open questions related to convergence and quality of learned representations. Gradient-based optimization methods are used in practice, but cases of failure and success are still to be investigated. In this context, we set out to better understand the convergence properties of different optimization strategies, under different parameter options. Our results show that (i) feature embeddings are impacted by different optimization settings, (ii) suboptimal results are achieved by the use of default parameters, (iii) significant improvement is obtained by making educated choices of parameters, (iv) learning rate decay should always be considered. Such findings offer guidelines for training and deployment of deep networks.
Introduction
In the world of deep learning, research often obsesses over the latest "SOTA" (State-of-the-Art) architecture. While we debate the merits of Transformers versus Convolutions, the training process is frequently relegated to the default settings of popular frameworks. This paper argues that this "default-first" mentality is a mistake. Optimization choices—specifically optimizer type, learning rate, and batch size—are fundamental to the quality of the representations a model learns, not just implementation details.
Methodology and Evaluation
The researchers conducted an extensive empirical study comparing three popular optimizers: SGD, Adam, and RAdam (Rectified Adam). To evaluate the quality of the learned representations, the authors used a Support Vector Machine (SVM) with a linear kernel to classify the feature embeddings (the output of the layer just before the final prediction). This serves as a "litmus test" for how well the optimizer organized the feature space into linearly separable clusters.
The study utilized standard benchmarks including Fashion-MNIST, CIFAR-10, and the Flowers Recognition dataset to ensure findings were robust across different levels of complexity and network architectures (CNNs, ResNet-50, and MobileNetV2).
Key Insights and Results
1. The Danger of Default Settings
The default learning rate in many frameworks (e.g., 0.01 for Adam) often failed to produce a reasonable feature space. In several tests, default settings led to near-random classification results, while "educated" choices reached over 90% accuracy.
2. Optimizer "Personalities"
The study found a clear divide in how optimizers interact with batch sizes. SGD tends to perform better with smaller batch sizes (8–32) and is highly sensitive to larger batches. Conversely, Adam and RAdam are more robust to—and often prefer—larger batch sizes (64–512).
3. Visualizing Representation Quality
t-SNE projections clearly demonstrate that "wrong" optimization choices result in a tangled mess of data points, whereas "correct" choices create distinct, well-separated clusters. This visual evidence confirms that the optimizer's parameters directly dictate the discriminative power of the learned features.
4. The Role of Decay and Transfer Learning
Learning rate decay (either Step or Exponential) consistently improved the discriminative power of representations compared to a fixed learning rate. Furthermore, in transfer learning scenarios, starting with a significantly lower learning rate is critical to avoid "shattering" pre-trained features before the model adapts to the new task.
Conclusion
For practitioners, the takeaway is clear: do not trust the defaults. Spending time tuning your optimizer's "starting line" and decay strategy is just as important as the architecture itself. These guidelines provide a roadmap for more reliable and high-quality deep learning deployment.
Summary updated