À suivreGuide suivant
Descente de gradient stochastique avec élan
Fondamentaux
GUIDE des fondamentaux
Plain gradient descent updates parameters by subtracting a learning rate times the objective's gradient.
Écoutez ce guideNarré par l'IA · ~3 min
It aims to reduce the objective locally, while step size and loss shape determine whether a particular update succeeds.
For a differentiable scalar objective, the gradient identifies the direction of steepest local increase under the usual Euclidean norm. Plain gradient descent moves in the opposite direction. Its update is new weight equals old weight minus learning rate times gradient. In a scalar illustration with old weight two, gradient three, and learning rate one-tenth, the new weight is one-point-seven. That formula describes the proposed update, not a guarantee that every finite step reduces loss. A learning rate that is too large can overshoot or lead to divergence, and a very small rate can make progress slow. Full-batch gradient descent uses the selected training objective over the whole dataset. Stochastic and mini-batch methods instead use gradients from sampled examples or batches. The batch gradient is exact for that batch calculation but estimates the full-data gradient; the resulting variability can help or hurt depending on the problem. Momentum combines information from earlier gradients to influence the current update. Adam maintains per-parameter moment estimates that adapt updates, so it should not be confused with plain unmodified gradient descent. Nonconvex loss surfaces also contain stationary points. A zero gradient is not proof of a globally lowest objective: local minima, maxima, and saddle points can have zero gradient. Training therefore needs monitoring of the objective and relevant evaluation metrics rather than assuming that a named optimizer or a stationary point establishes success.
Réduire l'erreur de prédiction d'un modèle de langage sur des milliards de jetons de formation à l'aide de mises à jour par mini-lots
Ajuster le taux d'apprentissage pour qu'un modèle d'image converge rapidement sans que la perte n'explose
Utiliser l'élan pour accélérer la formation d'un réseau de reconnaissance vocale coincé dans une vallée de perte longue et étroite
Appliquer Adam pour affiner un modèle sur un petit ensemble de données où les taux d'apprentissage par paramètre contribuent à la stabilité
Optimization research studies schedules, moment estimates, curvature, and distributed implementations under specific objectives and workloads. A method that performs well in one experiment may require different settings elsewhere. Report learning rates, sampling, state rules, and evaluation conditions when comparing training runs. Verify that updates change parameters as intended and track whether useful metrics improve; a direction motivated by local calculus is not a universal guarantee of convergence or application quality.
Newsletter gratuite
Trois histoires d'IA vérifiées chaque matin de la semaine, écrites dans un anglais simple. Gratuit pour toujours, sans publicité.
Un e-mail chaque jour de la semaine. Désabonnez-vous en un clic. Nous ne vendons ni ne partageons jamais votre adresse.
Testez-vous
Commentaires instantanés sur chaque réponse et un certificat partageable avec une pièce d'identité vérifiable une fois que vous avez réussi un cours.
Soutenez l’enseignement gratuit de l’IA. AI Understanding est une organisation à but non lucratif 501(c)(3) : pas de publicité, pas de paywall, jamais. Faire un don
Plain gradient descent updates parameters by subtracting a learning rate times the objective's gradient. It aims to reduce the objective locally, while step size and loss shape determine whether a particular update succeeds.
Plain gradient descent subtracts a scaled gradient, with improvement dependent on step size and objective shape.
Le taux d'apprentissage détermine la distance parcourue par les pondérations à chaque mise à jour ; des dépassements trop importants, trop petits, rendent l'entraînement extrêmement lent.
The computed batch derivative is exact for that batch, while sampling makes it an estimate of the full-data derivative.
Les grandes marches peuvent dépasser le minimum et rebondir ou exploser, provoquant une augmentation de la perte plutôt qu'une stabilisation.
Momentum combines gradient history, which can affect progress and oscillation; its effect still depends on settings.
Continuez à apprendre
Plus de guides sélectionnés pour ce sujet
À suivreGuide suivant
Descente de gradient stochastique avec élan
Fondamentaux