Skip to main content
QUICK REVIEW

[Paper Review] The Effects of Hyperparameters on SGD Training of Neural Networks

Thomas M. Breuel|arXiv (Cornell University)|Aug 12, 2015
Machine Learning and Data ClassificationComputer Science1 references52 citations
TL;DR

This paper investigates the effects of key hyperparameters—learning rate, batch size, activation functions, and output layer type—on SGD training of feedforward neural networks using MNIST. It finds that logistic outputs consistently outperform softmax in test error (1.0% vs. 1.1%) despite higher training error, and ReLU units significantly improve training stability and scalability compared to sigmoidal units, especially in deep networks.

ABSTRACT

The performance of neural network classifiers is determined by a number of hyperparameters, including learning rate, batch size, and depth. A number of attempts have been made to explore these parameters in the literature, and at times, to develop methods for optimizing them. However, exploration of parameter spaces has often been limited. In this note, I report the results of large scale experiments exploring these different parameters and their interactions.

Motivation & Objective

  • To systematically evaluate the impact of hyperparameters such as learning rate, batch size, activation functions, and output layer type on neural network training performance.
  • To investigate whether commonly used architectures and optimization choices are optimal, especially in light of limited prior exploration of hyperparameter interactions.
  • To challenge assumptions about the superiority of softmax outputs and ReLU units by testing them under diverse training conditions.
  • To provide practical guidelines for hyperparameter search and model selection based on empirical results from large-scale experiments on MNIST.

Proposed method

  • Conducted large-scale experiments using the Torch library and CUDA on deskewed MNIST data with fully connected networks.
  • Compared logistic and softmax output layers using identical architectures and training protocols to isolate the effect of output layer type.
  • Varied learning rates, batch sizes, and number of hidden units across thousands of training runs to map performance across hyperparameter space.
  • Used scatterplots of training vs. test error to visualize generalization performance and identify optimal hyperparameter regions.
  • Explored batch size effects by comparing single-sample updates to larger batches, analyzing convergence and error rates.
  • Evaluated ReLU and sigmoidal activation functions in both shallow and deep networks, measuring their impact on training stability and test accuracy.

Experimental results

Research questions

  • RQ1How do different output layer types—logistic vs. softmax—impact test set error and generalization in SGD-trained neural networks?
  • RQ2What is the optimal range of learning rates and batch sizes for different output layer types and activation functions?
  • RQ3How do ReLU and sigmoidal activation functions compare in terms of training stability, scalability, and test performance across varying network depths?
  • RQ4To what extent do hyperparameter interactions—especially between learning rate, batch size, and output type—affect model generalization?
  • RQ5Does increasing network depth improve test set error, and how does this depend on activation function and batch size?

Key findings

  • Logistic output layers achieved a test error of 1.0% on MNIST, outperforming softmax outputs, which reached 1.1%, despite the latter achieving lower training error.
  • Softmax outputs required learning rates approximately an order of magnitude smaller than logistic outputs to achieve optimal performance, indicating different optimal hyperparameter regimes.
  • ReLU units significantly outperformed sigmoidal units in terms of training stability and scalability, especially in deep networks, and showed reduced batch size dependency.
  • Large batch sizes often failed to deliver speedups due to the need to scale down the per-sample learning rate proportionally, and they narrowed the feasible range of good hyperparameters.
  • The interaction between hyperparameters is highly complex: performance improvements in isolation do not compound when combined, and some configurations that work well in isolation fail in combination.
  • Hyperparameter optimization should focus on minimizing the best error across multiple random initializations rather than optimizing for expected performance, as this yields more robust results.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.