Litcius/Paper detail

Phase transitions in the mini-batch size for sparse and dense two-layer neural networks

Raffaele Marino, Federico Ricci‐Tersenghi

2024Machine Learning Science and Technology11 citationsDOIOpen Access PDF

Abstract

Abstract The use of mini-batches of data in training artificial neural networks is nowadays very common. Despite its broad usage, theories explaining quantitatively how large or small the optimal mini-batch size should be are missing. This work presents a systematic attempt at understanding the role of the mini-batch size in training two-layer neural networks. Working in the teacher-student scenario, with a sparse teacher, and focusing on tasks of different complexity, we quantify the effects of changing the mini-batch size m . We find that often the generalization performances of the student strongly depend on m and may undergo sharp phase transitions at a critical value <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"> <mml:msub> <mml:mi>m</mml:mi> <mml:mrow> <mml:mtext>c</mml:mtext> </mml:mrow> </mml:msub> </mml:math> , such that for <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"> <mml:mi>m</mml:mi> <mml:mo>&lt;</mml:mo> <mml:msub> <mml:mi>m</mml:mi> <mml:mrow> <mml:mtext>c</mml:mtext> </mml:mrow> </mml:msub> </mml:math> the training process fails, while for <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"> <mml:mi>m</mml:mi> <mml:mo>&gt;</mml:mo> <mml:msub> <mml:mi>m</mml:mi> <mml:mrow> <mml:mtext>c</mml:mtext> </mml:mrow> </mml:msub> </mml:math> the student learns perfectly or generalizes very well the teacher. Phase transitions are induced by collective phenomena firstly discovered in statistical mechanics and later observed in many fields of science. Observing a phase transition by varying the mini-batch size across different architectures raises several questions about the role of this hyperparameter in the neural network learning process.

Topics & Concepts

HyperparameterArtificial neural networkGeneralizationProcess (computing)Computer sciencePhase transitionPhase (matter)Statistical mechanicsLayer (electronics)Artificial intelligenceMachine learningStatistical physicsMathematicsPhysicsMaterials scienceNanotechnologyThermodynamicsQuantum mechanicsMathematical analysisOperating systemNeural Networks and ApplicationsMachine Learning in Materials ScienceStatistical Mechanics and Entropy
Phase transitions in the mini-batch size for sparse and dense two-layer neural networks | Litcius