PaperThe following article is Open access

Stochastic resetting mitigates latent gradient bias of SGD from label noise

, and

Published 12 March 2025 © 2025 The Author(s). Published by IOP Publishing Ltd
, , Focus on ML and the Physical Sciences Citation Youngkyoung Bae et al 2025 Mach. Learn.: Sci. Technol. 6 015062DOI 10.1088/2632-2153/adbc46

2632-2153/6/1/015062

Abstract

Giving up and starting over may seem wasteful in many situations such as searching for a target or training deep neural networks (DNNs). Our study, though, demonstrates that resetting from a checkpoint can significantly improve generalization performance when training DNNs with noisy labels. In the presence of noisy labels, DNNs initially learn the general patterns of the data but then gradually memorize the corrupted data, leading to overfitting. By deconstructing the dynamics of stochastic gradient descent (SGD), we identify the behavior of a latent gradient bias induced by noisy labels, which harms generalization. To mitigate this negative effect, we apply the stochastic resetting method to SGD, inspired by recent developments in the field of statistical physics achieving efficient target searches. We first theoretically identify the conditions where resetting becomes beneficial, and then we empirically validate our theory, confirming the significant improvements achieved by resetting. We further demonstrate that our method is both easy to implement and compatible with other methods for handling noisy labels. Additionally, this work offers insights into the learning dynamics of DNNs from an interpretability perspective, expanding the potential to analyze training methods through the lens of statistical physics.

Export citation and abstractBibTeXRIS

Original content from this work may be used under the terms of the Creative Commons Attribution 4.0 license. Any further distribution of this work must maintain attribution to the author(s) and the title of the work, journal citation and DOI.

1. Introduction

When we explore a search space having complex choices of training schemes or search for appropriate hyperparameters of deep neural networks (DNNs), we often meet circumstances that cause us to give up and train the network all over again. This is akin to our experiences in daily life, where we face various tasks that require solving problems through hit-and-miss. For example, when trying to find a beloved one’s face in a crowd, our eyes typically flick back to a certain starting point after scanning the surrounding area. Similarly, when searching for a misplaced wallet after a big night out, we often fail to locate it and restart our search from some original location. These patterns are also frequently observed in animal behavior, such as foraging for food and returning to familiar locations such as nests or dens. In these situations, one might think that revisiting places is a waste of time and resources, potentially diminishing search performance. However, recent developments in statistical physics have proven that resetting to the start or a mid-point can improve the performance of the search process, meaning that this strategy is not so haphazard after all.

This effect of resetting from a particular configuration has been extensively investigated in the field of statistical physics in recent years [1, 2]. These investigations typically involve a blind searcher who evolves their current state stochastically over time without knowledge of the target’s location. Surprisingly, it has been found that resetting does not hinder the search process but rather can make the searcher more efficient across diverse conditions, including scenarios with high dimensions or the presence of external forces [311]. Capitalizing on the success of the resetting strategy, numerous algorithms incorporating this approach have begun to emerge in diverse fields such as molecular dynamics simulations [12, 13] and queuing systems [14].

In parallel, statistical physics has emerged as a valuable framework for understanding the nature of DNNs, offering insights that are both explainable and interpretable [15, 16]. Several techniques rooted in statistical physics, such as spin-glass theories [17, 18] and analytical tools for stochastic systems [19, 20], have been recently applied to advance the understanding of DNNs. Yet it remains unclear how statistical physics, in addition to its ability to analyze the learning process of DNNs, can be effectively utilized to enhance their performance, especially in practical scenarios including low-quality datasets.

In this work, we propose applying the stochastic resetting strategy to supervised learning with noisy labels and show that it can prevent overfitting to corrupted data (also called the memorization effect). During network training, our method resets the model parameters to a checkpoint with a certain probability and restarts the training process (figure 1(a)). By mapping the stochastic gradient descent (SGD) dynamics to the corresponding Langevin dynamics, we explore in-depth to understand the mechanisms and conditions by which resetting can help SGD find the optimal parameters. Our main contributions are summarized as follows.

  • We reveal a latent gradient bias in the SGD dynamics induced by noisy labels, which drives the memorization effect in DNNs. Based on this finding, we apply the stochastic resetting method to counteract this effect and explain its core beneficial mechanism (section 3).
  • We analyze the key factors for applying the stochastic resetting method. First, we discuss the means of selecting preferable checkpoints to reset to. Then, both theoretically and empirically, we find that the improvements of resetting increase as the stochasticity of the SGD dynamics and the proportion of corrupted training data increase (section 4.1, 4.2).
  • We show that the resetting method can be seamlessly integrated into existing approaches and consistently improves generalization performance across several standard benchmark datasets, including those incorporating real-world noise (section 4.4).

Figure 1. (a) Schematic of stochastic gradient descent (SGD) dynamics with stochastic resetting. The network parameter vector θ evolves via SGD to find an optimal value on the training risk landscape (upper colormap), which differs from the true risk landscape (lower colormap) due to corrupted data. Here, θ resets to the checkpoint (home icon) with the reset probability r and resets to . (b) Fraction of correctly predicted data with wrong labels during training with SGD (gray) and SGD with reset (green). The inset shows the validation losses during training.

Standard image High-resolution image

2. Related works

2.1. Search processes and stochastic resetting in statistical physics

Search processes are ubiquitous across various domains, spanning from systems in nature to applications in engineering. For instance, ligands exhibit search processes as they navigate toward target binding sites within proteins [2123], and similarly, predators employ search strategies to locate their prey in the wild [24, 25]. In engineering, search processes are relevant to finding primary research studies [26], ranking web pages [27], and determining optimal hyperparameters for training algorithms [28]. Although diverse search strategies are employed depending on the problem at hand, they share a common goal: to identify an efficient search protocol. Efficiency is typically assessed by the time required to reach a target, referred to as the first passage time (FPT) in the context of random walk literature [29]. Numerous search strategies have been investigated to achieve this goal, including the Lévy strategies [30, 31], self-avoiding walks [32, 33], intermittent strategies [34], persistent random walks [35], and more [36]. One recent strategy that has garnered attention is stochastic resetting, with studies showcasing its ability to enhance search performance by revisiting previous places [2, 7, 10, 37]. In particular, these studies have demonstrated that stochastic restarts prevent a random searcher from wandering too far, thereby ensuring a finite mean time to find a target, whereas the mean time is infinite for a diffusive particle without resetting. Drawing from this concept, we introduce a resetting method for training DNNs and illustrate its effectiveness in addressing the noisy label problem.

2.2. Deep learning from noisy labels

While the accessibility of large datasets has propelled remarkable advancements in DNNs, the presence of noisy labels within these datasets often leads to erroneous model prediction [38]. Specifically, DNNs tend to overfit the entire corrupted training dataset by memorizing the wrong labels, which degenerates their generalization performance on a test dataset. Numerous studies have been conducted to address this overfitting phenomenon [3944], and it has been revealed that DNNs initially learn the clean data (general patterns) during an early learning stage and then gradually memorize the corrupted data (task-specific patterns) [4547]. The overfitting issue stemming from the memorization effect can be seen in figure 1(b), where the model’s accuracy in predicting the true labels of the data with noisy labels exhibits an inverted U-shaped curve as the model progressively memorizes the noise. Based on this understanding, the surprising effectiveness of the early-stopping method [48] in alleviating the memorization effect becomes evident; as such, various methods have been proposed to leverage this insight, including Co-teaching [49], SELFIE [50], early learning regularization (ELR) [51], and robust early learning [52]. Our proposed method also capitalizes on this insight by enabling the DNN to reset to a checkpoint, i.e. previously visited parameters during early learning stages, and implicitly serves as a regularization mechanism by indirectly affecting the SGD dynamics. Additionally, our theoretical analysis explores how label noise affects the performance of DNNs from the perspective of optimization strategies, such as those discussed in [47, 48]. We adopt a different approach based on statistical physics, assuming more practical settings, which offers novel insights and leads to the development of our method. In section 3, we provide a detailed analysis identifying a latent gradient bias of SGD due to label noise that causes the memorization effect, and how stochastic resetting can mitigate such negative effects.

3. Methodology

In this section, we first investigate the SGD dynamics in the presence of label noise and identify the latent gradient bias that leads to memorizing corrupted labels. We then introduce how stochastic resetting can be incorporated into SGD and demonstrate how this improves generalization performance by approximating SGD dynamics into Langevin dynamics.

Problem setup.   Consider a c-class classification problem, which is a supervised learning task aimed at training a function to map input features to labels through a DNN. Let be the feature space, be the label space in one-hot vector form, and be a DNN model where encompasses all trainable parameters in the DNN. The goal is to find an optimal such that accurately assigns labels to corresponding input features, given an unknown joint probability distribution over (figure 1(a)). To obtain this, a training algorithm is applied to minimize the risk during training, where denotes a loss function (e.g. cross-entropy loss). Here, denotes the loss for a sample from with a given model , and denotes the average over . In a typical classification problem, the DNN is trained by minimizing the risk on the training dataset via SGD and is selected at the minimum risk on the validation dataset to mitigate overfitting on , where and each is sampled from . Empirically, the risk on the training (validation) dataset is computed as . In the presence of noisy labels, suppose we have a corrupted training dataset , where is a noisy label that may be corrupted from a ground truth label , and is sampled from the corrupted distribution . This corrupted dataset can be partitioned into two subsets, i.e. , where () consists of () samples with correct (wrong) labels. Note that and for an unknown noise rate .

3.1. Latent gradient bias in SGD by label noise

When we apply the minibatch SGD to minimize the empirical risk with respect to θ, the update rules of θ at each training iteration t can be represented by

where is θ at the t-th iteration, , and for simplicity. Here, η > 0 is the learning rate and is the minibatch of size B consisting of independent and identically distributed (i.i.d.) samples from . While the first term on the right-hand-side (RHS) is deterministic for a given , the second term on the RHS is stochastic due to the randomly sampled batch at each iteration. Thus, equation (1) can be rewritten as

where a random noise vector satisfies and with , where δij denotes the Kronecker delta (see details in the Supplementary Materials (SM) and references [5355]). In terms of Langevin dynamics, and correspond to the potential and diffusion matrix, respectively, where the former generates the deterministic long-term trend called drift and the latter determines the level of stochasticity of the system [56]. As a result, the SGD dynamics of can be understood by the Langevin dynamics of a d-dimensional particle diffusing with drift and diffusion matrix .

For a corrupted dataset , the equation of SGD dynamics remains analogous to equation (2) when we substitute with . Then we can divide the drift vector into two components, one originating from and the other from as follows (figure 2(a)):

with the gradients from the correct part and the gradients from the wrong part . We refer to the drift from the wrong part as the latent gradient bias by label noise. Note that , implying that reflects the gradients toward the true optimum, while reflects the gradients toward the false optimum by memorizing the noisy labels. Additionally, we observe that and are orthogonal to each other (figures 2(b) and S.1 in the SM), leading to being represented by the sum of two orthogonal vectors. Thus, becomes more correlated with as the noise rate τ increases. Figures 2(b) and (c) illustrate that becomes increasingly dominant so that the drift gradually tilts toward wrong directions as τ increases, where denotes the cosine similarity between and , and denotes the Euclidean norm of a vector. This gradually tilting trend toward a wrong direction can also be observed with respect to iteration t, implying that becomes increasingly dominant as the learning process progresses beyond an early learning phase [51]. Therefore, in the presence of noisy labels, we can see that the latent gradient bias emerges and hinders the search for the optimal parameters .

Figure 2. (a) Schematic of , decomposed by two orthogonal terms and . (b) Cosine similarity between and (; red), and between and (grey), throughout all training iterations for varying noise rate τ. (c) Magnitude difference between the two vectors throughout all training iterations for varying τ. Here, we set the batch size to B = 8 in Setting 1 described in section 4. Darker colors represent larger values of τ in (b), (c).

Standard image High-resolution image

We note that a similar analysis of the SGD dynamics using statistical physics was previously performed in [47]. While both studies observed an increasing trend in the effect of latent gradient bias during the learning process, their findings on the cosine similarity between drift components, , differ from ours. To address this discrepancy, we conducted additional experiments and identified the contributing factors, as detailed in section D.2 of the SM.

3.2. Stochastic resetting method

We now describe how the stochastic resetting method can be integrated into SGD. Based on this, we establish the specific premises of this work. Let be a reset checkpoint and r be the reset probability at each iteration t, where a checkpoint refers to previously visited model parameters during training. By incorporating the resetting method, equation (2) for can be expressed as

Below we provide the pseudo-code for SGD with stochastic resetting, algorithm 1.

Algorithm 1. Stochastic resetting.
require Corrupted training set , validation set , reset probability r, threshold .
1: Initialize and set t = 0, , and
2: for t = 0 to T do
3:   Update where is a randomly sampled batch from
4:   if and then
5:     Restart
6:   end if
7:    where checks whether is the minimum.
8:   if remains unchanged for iterations or then
9:     Set the checkpoint
10:   end if
11: end for

The SGD dynamics with stochastic resetting involves two processes: resetting from a checkpoint with probability r (top of equation (4)), and maintaining the SGD dynamics with probability (bottom of equation (4)). Note that equation (4) shares the same form as the (overdamped) Langevin equation with Poissonian reset [3], and also that training DNNs to find optimal parameters can be likened to a search process for an unknown target. These parallels imply that similar advantages of stochastic resetting may arise in the training process of DNNs as in the random search process of Langevin dynamics. To examine this hypothesis, we first explore the beneficial mechanism of stochastic resetting in the search process with a simplified case.

The search efficiency of a random search process is typically quantified by the mean first passage time (MFPT) [29], which represents the average time to find a target. It has been well-established that incorporating stochastic resetting can significantly reduce the MFPT in various complex scenarios, including high-dimensional spaces [1], various confining potentials [7, 57], and a searcher with momentum [6, 58], among others [2]. For a simplified case, let us consider a random searcher in one dimension with diffusion coefficient D, drift v, and reset rate γ ( with a time interval Δt between steps), and assume that the searcher starts at the origin (reset point). Then the MFPT for a target located at L () can be expressed by

where denotes the MFPT with the reset rate γ (see the derivation in section B of the SM). Examining equation (5) provides several insights into the effects of stochastic resetting. When the random searcher either normally diffuses or drifts away from the target ( ), it is straightforward that diverges as but becomes finite for any γ > 0. Conversely, when the searcher drifts toward the target (v > 0), while is finite as without resetting, introducing stochastic resetting can significantly reduce within a certain range of γ, provided the following condition is met:

Here, is known as the Péclet number, which quantifies the ratio between drift and diffusive transport rates, and the beneficial condition () can be identified by verifying where . Figure 3 illustrates how the behavior of evolves with varying : as decreases, the initially monotonically increasing curve gradually transforms into a U-shaped curve, achieving a minimum at the optimal reset rate . These findings indicate that resetting is advantageous for a target search when the stochasticity (D) is sufficiently larger than the drift toward a target (v). Furthermore, we note that both the optimal reset rate and the improvement ratio increase as decreases (figure 3), indicating that the benefits of resetting grow as D increases and v decreases.

Figure 3. The mean first passage time (MFPT) from equation (5) with varying (a) diffusion coefficient D and (b) drift v with respect to the reset rate γ. Markers represent the minimum MFPT, , at the optimal reset rate . We set v = 1 in (a), D = 1 in (b), and L = 1 in both.

Standard image High-resolution image

According to the above observations, the beneficial properties of resetting in a random search process can be summarized as follows:


When the stochasticity is sufficiently larger than the drift toward a target, resetting can be beneficial for random searches and there exists an optimal reset probability.

The advantageous mechanism of resetting in a random search process is to suppress trajectories that move away from the target, thus increasing the chances of finding it. Drawing a parallel between the random search process and the training procedure of DNNs via SGD, we hypothesize this mechanism is also applicable to the noisy label problem in DNNs. Specifically, in supervised learning with noisy labels, the stochasticity of the SGD dynamics increases as batch size B decreases, and the drift component toward a target weakens (i.e. the latent gradient bias strengthens) as the noise rate τ increases. Therefore, the boxed statement suggests that the resetting strategy would be beneficial for searching for optimal parameters in cases with a small batch size and large noise rate in the presence of noisy labels. In section 4, we perform several experiments and empirically show that stochastic resetting enhances generalization performance.

4. Experiments

This section presents the experimental results that support our theory. We perform image classification tasks with noisy labels in the following settings.

Setting 1 (sections 4.14.3). To examine the impact of stochastic resetting on the noisy label problem, we first utilize a small dataset called ciFAIR-10 [59], a variant of CIFAR-10 [60]. We employ a vanilla convolutional neural network (VCNN, see section C.1 in the SM) to facilitate straightforward testing of our claims. Training is performed using cross-entropy loss, an SGD optimizer with a fixed learning rate of 10−2, and threshold iterations for the stochastic resetting method. A clean validation set, , is used to select the best model and monitor the validation loss during training.

Setting 2 (section 4.4). We assess the generalization performance of our method on two benchmark datasets, CIFAR-10 and CIFAR-100 [60], as well as its compatibility with various existing methods. The model architecture used is ResNet-34 [61], trained with SGD using a momentum of 0.9 and threshold iterations for the stochastic resetting method as default. Additional details for the choice of hyperparameters are provided in section C.2 of the SM. To demonstrate the efficacy of our method, we compare test accuracy with and without resetting. Note that the optimizer and learning rate scheduler do not restart throughout this experiment. To consider practical situations, a corrupted validation set, , is used for model selection and validation loss monitoring during training.

Setting 3 (section 4.5). Under the same parameter conditions as setting 2, we evaluate the performance of the stochastic resetting method on real-world noisy datasets, beyond the synthetic noise scenarios in settings 1 and 2. Specifically, we use CIFAR-10N/100N, which are controllable, easy-to-use, and moderately sized real-world noisy datasets designed to enable fair comparisons across different benchmarks within accessible computational resources [62]. These datasets contain real-world human annotation errors obtained from Amazon Mechanical Turk. Additionally, we test on ANIMAL-10N, a dataset created by web-crawling image pairs of visually similar animals (e.g. cat and lynx, jaguar and cheetah) [50], to further examine its effectiveness across diverse real-world datasets.

In settings 1 and 2, we apply symmetric noise with a noise rate τ, where each label in c classes is randomly flipped to an incorrect label in other classes with equal probability . Note that all results are obtained from the model at the optimal iteration based on minimum validation loss as default, and also that the resulting test accuracy is evaluated on the clean validation set, i.e. the test dataset is set to .

We use the relative difference in validation loss (RDVLoss) and the relative difference in test accuracy (RDTAcc.) as metrics to indicate the relative improvement compared to the baseline. This metric enables effective comparison of the performance difference between stochastic resetting and original training. These metrics are calculated by , where v(r) is the resulting value with the reset probability r and is the baseline value obtained from the original training (). The unnormalized results can be found in section D.4 of the SM. We repeated our experiments five times across all settings to report the average and standard error values.

4.1. Which checkpoint would be preferable to reset to?

To introduce the resetting strategy in DNN training, we first explore which checkpoint is suitable to reset to in order to find optimal parameters. A straightforward choice is to select the parameters at the overfitting iteration tm. Here, the overfitting iteration tm refers to an iteration where the validation loss ceases to decrease and begins to increase due to the memorization effect [inset of figure 1(b)]. The checkpoint at tm, denoted by , has the minimum validation loss during training when the double descent phenomenon does not occur [63], and is typically employed as an early-stopping point. Instead of early stopping and considering as the final model, we utilize as the checkpoint to reset to (algorithm 1), leading to significantly improved results (figure 4(a)). Here, is initially set to and adaptively changes to the parameter at a newly found minimum validation loss during training. As can be seen in figure 4(a), resetting suppresses the trajectory of θ to be near , which successfully prevents memorizing the noisy labels and increases the chance to find more appropriate parameters. It is important to note that the reset probability r controls the degree of suppression and the results at r = 0 and r = 1 are almost the same due to the overfitting phenomenon (the case of r = 1 corresponds to the early-stopping method). Therefore, the resulting RDVLoss curve for r should be U-shaped, indicating that an optimal r exists to optimize the performance.

Figure 4. (a) Test accuracies of the SGD (gray) and the SGD with our resetting method (green) during training. The inset shows the validation losses. (b), (c) Relative difference of validation loss (RDVLoss) with varying the checkpoint to reset to with respect to the reset probability r. In (b), based on the checkpoint at the overfitting iteration tm, RDVLoss is obtained in earlier iterations (left) and later iterations than tm (right). denotes the iteration where the checkpoint is selected. In (c), RDVLoss is plotted with the perturbed checkpoint parameters , where denotes the checkpoint and denotes a random unit vector. The shaded areas denote the standard error.

Standard image High-resolution image

While we simply select as the initial and adaptively update it, one may ask what effect the choice of has. To check this, we experiment with a fixed checkpoint both earlier and later than . For earlier checkpoints (left panel in figure 4(b)), the improvement over resetting from slightly decreases and the value of the optimal r gets smaller as the checkpoint gets earlier. In contrast, for later checkpoints (right panel in figure 4(b)), the improvement over resetting from significantly decreases as the checkpoint gets later. These results support our understanding of the beneficial mechanism of resetting in increasing the chance of finding better parameters, because the chance would decrease as the model memorizes more noise. Therefore, we can conclude that resetting in early learning stages is a good choice: the more memorization occurs, the smaller the improvement.

We additionally experiment to verify how the effect of resetting changes with the distance between the (adaptive) checkpoint at the minimum validation loss and a perturbed checkpoint . Here, we set the perturbed checkpoint by adding the perturbation into with varying the perturbation magnitude ε, where is a random unit vector with a standard normal random vector n. As shown in figure 4(c), it is observed that the benefits of resetting decrease as the distance between the checkpoint to reset to and increases. This result also supports that while resetting can improve the generalization performance, the choice of checkpoint to reset to can affect the performance, and that the minimum validation loss point is a good choice.

4.2. Impact of stochasticity and drift on stochastic resetting

As the statement highlighted in section 3.2 clarifies, it has been proven in the statistical physics field that the resetting strategy can improve search efficiency as the stochasticity becomes larger than the drift component toward a target. In this section, we verify whether this statement is also valid in the training of DNNs and show under what circumstances resetting is more effective than not resetting.

It is first important to note that the stochasticity and the drift toward a target, i.e. , can be controlled by the batch size B and the noise rate τ, respectively, as illustrated in section 3.1. Particularly, and , meaning that the stochasticity increases and the drift toward a target decreases as B decreases and τ increases, respectively. We quantitatively examine the RDVLoss and the RDTAcc. values with varying B and τ with respect to the reset probability r. Remarkably, the improvements of RDVLoss and RDTAcc. with resetting become more significant as B decreases (figure 5(a)) and τ increases (figure 5(b)). These observations strongly support our claim that stochastic resetting offers more benefits as the stochasticity increases and the drift toward a target decreases.

Figure 5. Relative difference of validation loss (RDVLoss, left) and relative difference of test accuracy (RDTAcc., right) results with (a) varying the batch size B, and (b) varying the noise rate τ with respect to the reset probability r. We set τ = 0.4 in (a) and B = 16 in (b). The shaded areas denote the standard error.

Standard image High-resolution image

Moreover, we expect that the optimal reset probability decreases as B decreases and τ increases, but this can only be verified qualitatively because the fluctuation of the results makes it difficult to identify .

4.3. Ablation study on partial resetting

Until now, we have leveraged the memorization effect in our algorithm by utilizing the parameters at the minimum validation loss as the checkpoint for resetting the entire network, a process referred to as full resetting. However, several studies have highlighted that different layers within a DNN exhibit varied learning behaviors, leading to distinct levels of overfitting across these layers [64, 65]. A prevailing explanation for this phenomenon suggests that gradients tend to weaken as they propagate from the latter layers (closer to the output layer) to the former layers (closer to the input layer).

Here, we experiment on which layers, former or latter, play a more dominant role in improving performance with the resetting method. For this, we introduce partial resetting, which involves resetting only one section of the network layers rather than the entire network, while the remaining section of layers continues to follow the standard SGD update rule without resetting. We divide the VCNN structure into former and latter sections, comprising convolutional and linear layers, respectively, and apply partial resetting to one section. Interestingly, our experiments reveal that partial resetting of the latter section can further enhance generalization performance compared to full resetting, whereas partial resetting of the former section does not yield improvements over the case with no resetting (r = 0) (figure 6).

Figure 6. Relative difference of validation loss (RDVLoss) and relative difference of test accuracy (RDTAcc.) results with varying one section of the network to reset with respect to the reset probability r. We set τ = 0.4 and B = 16. The shaded areas denote the standard error.

Standard image High-resolution image

Moreover, even when we freeze the latter section by setting r = 1, partial resetting of the latter section still achieves significant improvement. We attribute these findings to a well-established observation: the former layers of CNNs tend to learn general features, while the latter layers tend to specialize in capturing specific features [64, 6669]. In other words, the latter section composed of linear layers exhibits strong memorization of the corrupted data, leading to improved performances even when we freeze the latter section (r = 1), whereas the former section composed of convolutional layers focuses on learning general features, leading to no improvements even with resetting.

It is essential to note that although our ablation study suggests the effectiveness of partial resetting, our findings do not imply that partial resetting of the latter section always enhances generalization performance compared to full resetting. The extent to which each layer overfits the corrupted data depends on multiple factors, such as the network structure and the choice of loss function. Thus, determining the most effective section of the network to reset also hinges on the specific context. Future research investigating these points would be intriguing and valuable.

4.4. Results on corrupted benchmark datasets

In Setting 2, we investigate the impact of the stochastic resetting strategy on the performance of benchmark datasets, CIFAR-10 and CIFAR-100, under symmetric noise corruption using various methods. Table 1 compares the best results without resetting (No) and with resetting (Reset) at the reset probability r = 0.001. In the table, CE denotes cross-entropy loss, PartRestart denotes cross-entropy loss with partial resetting of only the last linear layer and the last two blocks of ResNet-34 (section 4.3), MAE denotes robust mean absolute error [70], GCE denotes generalized cross-entropy [71], SL denotes symmetric cross-entropy loss [72], ELR denotes early-learning regularization [51], and SOP+ denotes sparse over-parameterization with consistency regularization and class-balance regularization [73]. ELR and SOP+ are representative methods to robustly train DNNs with an additional regularization term to prevent overfitting to corrupted data. However, these methods require additional hyperparameters to be fine-tuned depending on the loss landscape (e.g. dataset, model architecture), and in practical scenarios, it is often costly to find the optimal settings of these methods. In this section, we consider both optimal and non-optimal hyperparameter settings to take such practical situations into account, where we use an asterisk (*) to denote a non-optimal hyperparameter setting (i.e. ELR*, SOP+*). We provide additional details about the hyperparameters for each method in section C.2 of the SM.

Table 1. Test accuracies (%) on test datasets with different methods. We compare the performance without resetting (No) and with resetting (Reset) at r = 0.001. Results are presented as the average and the standard deviation. The best results are indicated in bold with statistical significance.

DatasetMethodNoise rate τ = 0.2Noise rate τ = 0.4Noise rate τ = 0.6
NoResetNoResetNoReset
CIFAR-10CE
Part
MAE
GCE
SL
ELR*
SOP+*
CIFAR-100CE
Part
MAE
GCE
SL
ELR*
SOP+*

Remarkably, in all cases examined, our resetting method consistently achieves either at least equivalent or higher test accuracies compared to the baseline approach involving no resetting (table 1). Results show that the extent of improvement becomes more pronounced as the noise rate increases, which supports our claim that resetting becomes more advantageous with higher noise rates. Furthermore, while the PartRestart method also obtains improved performance, it does not surpass the benefits of full resetting. We conjecture that the network structure may influence the extent of the additional improvements obtained, as the memorization effect in different layers can vary depending on the network architecture [74]. Minimal improvements are observed in the MAE results for both datasets; this is primarily because the MAE convergence is too slow to identify a suitable checkpoint for resetting, consequently resulting in few instances of resetting in many trials. For ELR and SOP+, no significant improvements are found in the performance when stochastic resetting is used with the known optimal hyperparameter settings, as shown in table S.4 in the SM. However, for ELR* and SOP+*, incorporating the stochastic resetting method leads to either at least equivalent performance or significant improvements compared to no resetting. This can be explained by the design of ELR and SOP+ that provide regularization terms to prevent memorization, akin to reducing the effect of the latent gradient bias. These results indicate that stochastic resetting is compatible with well-established methods, and can also provide at least equal performance compared to the methods without resetting.

We likewise demonstrate the effectiveness of the stochastic resetting method in asymmetric (i.e. class-dependent) noise scenarios (table S.5 in the SM), and we also verify the improvement of the validation loss when using our stochastic resetting method (table S.6 in the SM).

4.5. Results on real-world noisy datasets

Finally, we test our stochastic resetting method on real-world noisy datasets, namely CIFAR-10N/100N (Setting 3). There are five different noise types for CIFAR-10N, namely Rand1, Rand2, Rand3, Aggregate, and Worst with a noise rate of 9.03%, 17.23%, 18.12%, 17.64%, and 40.21%, respectively, and a single noise type for CIFAR-100N with a noise rate of 40.20%. For CIFAR-10N, we selected Rand1, Aggregate, and Worst noise types to account for various real-world noise rates. We further evaluate our method on ANIMAL-10N with the default setting of Setting 3 using cross-entropy loss. For the ANIMAL-10N dataset, there is only a single noise type while the ground-truth labels remain unknown. The noise rate τ was estimated as using cross-validation with a grid search and based on human inspection, respectively.

Table 2 presents the performance results without resetting (No) and with resetting (Reset) at the reset probability r = 0.001 for CIFAR-10N/100N. Similarly, the results for ANIMAL-10N are shown in table 3. We provide additional details about the hyperparameters in section C.2 of the SM. For the case of CIFAR-10N, the stochastic resetting method consistently achieves either at least equivalent or higher test accuracies compared to the baseline without resetting, similar to the results in section 4.4 (table 1). While the experiments on CIFAR-10N show some cases with minimal improvements from the stochastic resetting method, the results on CIFAR-100N and ANIMAL-10N provide strong evidence of the advantages of applying stochastic resetting in practical scenarios. These results demonstrate that the stochastic resetting method can provide significant improvements while acting as a safeguard to maintain baseline performance.

Table 2. Test accuracies (%) on test datasets with real-world datasets CIFAR-10N/100N. We compare the performance without resetting (No) and with resetting (Reset) at r = 0.001. Results are presented as the average and the standard deviation. The best results are indicated in bold with statistical significance.

MethodCIFAR-10NCIFAR-10NCIFAR-10NCIFAR-100N
Random 1 ()Aggregate ()Worst ()Noisy ()
NoResetNoResetNoResetNoReset
CE
MAE
SL
GCE
ELR*
SOP+*
ViT-T
ViT-T

Table 3. Test accuracies (%) on test datasets with real-world datasets ANIMAL-10N. We compare the performance without resetting (No) and with resetting (Reset) at r = 0.001.

DatasetNoReset
ANIMAL-10N

Furthermore, to assess the applicability of our method beyond CNN-based approaches, we evaluate it on the Vision Transformer (ViT) [75]. As shown in table 2, the resetting method consistently improves performance on ViT, denoted by ViT-Trd and ViT-Tpt, which correspond to ViT-Tiny models [76] trained from randomly initialized and pre-trained weights, respectively. Previous studies have reported that ViTs without pre-training are more prone to overfitting, particularly in the presence of label noise [77, 78], which we also observe in table 1. Interestingly, regardless of initialization, the resetting method results in significant performance improvements, highlighting its potential for a broader range of recent architectures and scenarios.

5. Discussion

In this work, we identified a latent gradient bias that hinders SGD from generalizing in the presence of label noise. To address this, we developed a stochastic resetting method, motivated by the success of the resetting strategy in statistical physics. By analyzing SGD dynamics through the lens of Langevin dynamics, we theoretically identified factors that influence the effectiveness of resetting, i.e. batch size and noise rate, and then experimentally confirmed the impact of these factors. Experiments showed that the resetting method consistently yields equivalent or improved performance on benchmark datasets compared to existing methods.

As our method can be implemented with minimal code changes and without additional computational costs, flexibility and ease of integration with other approaches are ensured. This simplicity also facilitates extensions to other variants, such as non-Poissonian resetting [79, 80] and state-dependent reset probability [3, 81], etc [2]. In particular, as illustrated by the U-shaped curves in figures 35, resetting can excessively constrain the target search of the SGD dynamics for sufficiently large values of r, which can degrade training efficiency. To address this, introducing occasional larger, more dynamic jumps (e.g. those inspired by Lèvy strategies and intermittent search strategies [34]) or adjusting the reset probability based on recent performance (e.g. decreasing the reset probability when no improvement is observed over time) can enhance the performance of our method while mitigating the risk of getting stuck. Moreover, while we evaluated DNN models up to ResNet-34, we confirmed that the computational overhead, including I/O operations associated with resetting, is negligible compared to the overall training time. This makes our method scalable effectively to large-scale models, as further discussed in section D.8 of the SM.

The main limitation of this work is that the proposed method may not be as effective when the double descent phenomenon occurs or the convergence of validation loss is too late, such as the MAE case in table 1. Moreover, it is challenging to identify the optimal reset probability from a limited number of experiments. In fact, it has been observed that the coefficient of variation of the FPT is unity at the optimal reset probability in a random search problem [82, 83]. Future work investigating whether a similar relationship exists in DNN training may help to identify the optimal reset probability in practice.

We note that the resetting method shares a similar spirit with forgetting, which refers to the loss of previously acquired knowledge [84]. Similar to resetting, forgetting was initially viewed as a catastrophic phenomenon that needed to be addressed [85, 86]; however, recent studies have highlighted its benefits, leading to its use in improving network performance [87, 88]. From this perspective, resetting can be viewed as a form of forgetting memorized task-specific patterns, but unlike general forgetting that primarily erases early experiences, resetting targets the erasure of later experiences. It will be interesting to further explore the connections between resetting and forgetting in future discussions.

We anticipate that our work can influence two different research directions. First, it opens up the possibility of analyzing existing training methods from a statistical physics perspective, and second, it can pave the way to applying various new search strategies, beyond resetting, into neural network training.

Acknowledgment

This study was supported by the Basic Science Research Program through the National Research Foundation of Korea (Y S NRF Grant No. 2021R1A6A1A14045741, H J RS-2025-00514776). Y B was supported by an NRF grant funded by the Korean government (MSIT) (No. RS-2023-00278985).

Data availability statement

The data that support the findings of this study are openly available at the following URL/DOI: https://github.com/qodudrud/stochastic-resetting.

Please wait… references are loading.