Soft ascent-descent as a stable and flexible alternative to flooding

As a heuristic for improving test accuracy in classification, the"flooding"method proposed by Ishida et al. (2020) sets a threshold for the average surrogate loss at training time; above the threshold, gradient descent is run as usual, but below the threshold, a switch to gradient ascent is made. While setting the threshold is non-trivial and is usually done with validation data, this simple technique has proved remarkably effective in terms of accuracy. On the other hand, what if we are also interested in other metrics such as model complexity or average surrogate loss at test time? As an attempt to achieve better overall performance with less fine-tuning, we propose a softened, pointwise mechanism called SoftAD (soft ascent-descent) that downweights points on the borderline, limits the effects of outliers, and retains the ascent-descent effect of flooding, with no additional computational overhead. We contrast formal stationarity guarantees with those for flooding, and empirically demonstrate how SoftAD can realize classification accuracy competitive with flooding (and the more expensive alternative SAM) while enjoying a much smaller loss generalization gap and model norm.

Paper

Similar papers

Peer review

Reviewer bEZy6/10 · confidence 3/52024-06-27

Summary

Flooding method is a previous method which aims at improving the generalization performance by making the average loss equal to a given threshold. This paper makes two changes of the 'flooding' method: 1. Rather than making the average loss equal to a given threshold, they make the point-wise loss equal to a given threshold. 2. To make them equal, previous work uses the absolute function to measure the difference, this work uses a softer function. Experiments are conducted to support their method.

Strengths

This paper is easy to follow. The organization of this paper is clear. The proposed link between flooding and sharpness, as shown in 2.2, is interesting and insightful. It explains why flooding method works from the flatness perspective.

Weaknesses

Although the generalization gap of the proposed method is smaller (shown in Table 1), the accuracy is not larger than SAM (shown in Figure 4). What are the advantages of the proposed method compared with SAM?

Questions

None

Rating

6

Confidence

3

Soundness

3

Presentation

3

Contribution

2

Limitations

None

Reviewer yxTo7/10 · confidence 4/52024-06-28

Summary

The flooding method sets a threshold for the average surrogate loss within a mini-batch during training: if above it do gradient descent as usual but if below it switch to gradient ascent. This paper updates the flooding method in 2 ways: 1) it invert the order of the sign function and the aggregation making it a pointwise method rather than an average method and 2) it replaces the sign function with a continuous, bounded, monotonic function. It provides numerical results to demonstrate the behavior of the new proposed method in Section 3.1 and show theoretical results to compare the convergence properties of the new method with flooding in Section 3.2. Finally, experiments show that the proposed method have similar accuracy compared with flooding/SAM while having much lower generalization gap and smaller model norms (despite not using any explicit shrinkage methods).

Strengths

- The soft truncation is a nice idea to improve the flooding method. The behavior shown in Fig. 1 & 2 is intuitive. - Stationarity guarantees are provided in the theoretical studies and the intuition is provided in Remark 4. - Experiments show softAD has the same level of test accuracy (SAM may be slightly better but at the double the gradient cost) while achieving better level of surrogate test loss. Furthermore, the generalization gap is much smaller and model norms are usually smaller than other baselines. The flood level comparisons are interesting: the softAD allows for a larger flood level. - The discussions about links to sharpness and OCE-like criteria are interesting and informative. - The story, organization, and presentation is clear and easy to read. There are a lot of informative information in the appendix as well.

Weaknesses

- A similar pointwise idea was proposed in "iFlood: A Stable and Effective Regularizer" (ICLR 2022). It would be helpful to have some discussions about iFlood and explain if there are any differences in the pointwise idea. - The experiments are informative, clearly showing the benefits of the approach. However, given that the pointwise idea is already proposed, as an ablation study, it would be important to further check which parts are more effective: the pointwise component or the soft truncation component. If the paper can show that the soft truncation is important, that would make the paper's contribution clear.

Questions

(I wrote my main suggestions in the "Weaknesses section". Here I provide some other comments/questions.) - Having a low generalization gap and better surrogate loss seems to be one strong benefit of the approach. I wonder if the paper can check calibration (such as ECE) which is often correlated with lower test losses. - It is interesting that softAD allows a higher theta threshold. Is it possible to provide some discussions on why the proposed method allows a higher theta?

Rating

7

Confidence

4

Soundness

3

Presentation

4

Contribution

3

Limitations

I believe there is no immediate negative societal impact of this work. The paper discuss that hyper-parameter selection remains and provide future directions to remove this aspect.

Reviewer JmzP4/10 · confidence 3/52024-07-18

Summary

This paper proposes a method called SoftAD (soft ascent-descent) which aims to improve the "flooding" method. Specifically, it downweights points on the borderline, limits the effects of outliers, and retains the ascent-descent effect of flooding, with no additional computational overhead. Stationarity guarantees of these two methods are provided. Empirical results illustrate that SoftAD can have comparable classification accuracy with flooding while enjoying a smaller loss generalization gap and model norm.

Strengths

1. Overall, this paper is well written. 2. The experimental results demonstrate the merit of the proposed method SoftAD over two baselines (i.e., flooding and SAM). Specifically, SoftAD has competitive classification accuracy with these two methods while enjoying a smaller loss generalization gap and model norm.

Weaknesses

1. The motivation might be confusing. As the authors claimed, there are situations where we are interested in other metrics such as model complexity or average surrogate loss at test time. I can not imagine these situations except the generalization analyses of classification accuracy might involve these factors. 2. The proposed method is heuristic which lacks theoretical support. More specifically, generalization analyses are missing to support the claims. 3. Although it is good to give the optimization convergence guarantees of SoftAD and flooding, they can be not directly comparable because one is high probability bound and another is expectation bound.

Questions

Please give the situations where we are interested in other metrics such as model complexity or average surrogate loss at test time.

Rating

4

Confidence

3

Soundness

2

Presentation

3

Contribution

2

Limitations

Please see the Weaknesses part.

Reviewer 55bG5/10 · confidence 2/52024-07-31

Summary

The paper proposes a new optimization technique, Soft Ascent-Descent (SoftAD), aimed at enhancing the stability and performance of machine learning models. The method balances loss minimization and model complexity, positioning itself as an improvement over existing techniques like Flooding and SAM. The paper provides a theoretical foundation, empirical studies across multiple datasets, and a comparison of convergence properties with existing methods, claiming superior stability and often better test loss outcomes.

Strengths

The paper discusses SoftAD designed to balance minimizing loss and controlling model complexity. This method is compared to existing optimization techniques like Flooding and SAM and is shown to provide better stability and often superior test loss outcomes. The theoretical foundation of SoftAD is robust, with clear mathematical formulations and comparisons to existing methods. Empirical validation includes extensive experiments on multiple datasets, such as CIFAR-10, CIFAR-100, FashionMNIST, and SVHN, demonstrating the effectiveness of SoftAD in practical applications. The paper offers a comprehensive analysis of model norms and loss trajectories, underscoring the practical benefits of the method. Additionally, the document is well-structured, featuring clear explanations, figures, and tables that effectively support its claims and contributions.

Weaknesses

1. The SoftAD method may be more complex to implement compared to traditional methods, which could limit its adoption. Implementing SoftAD involves managing both ascent and descent phases, which adds to the complexity. This requires additional code for conditionally switching between ascent and descent based on the loss value and the threshold θ. The complexity is implied by the need to incorporate equations (3) and (4) for the ascent and descent phases into the optimization loop. 2. The method's performance depends on the setting of the threshold parameter θ, which can be non-trivial to optimize. The threshold θ determines when the algorithm switches between ascent and descent phases, directly impacting the performance. Choosing an inappropriate θ can lead to suboptimal results. 3. While the experiments are thorough, additional datasets and real-world applications could further validate the robustness of SoftAD. The experiments are conducted on CIFAR-10, CIFAR-100, FashionMNIST, and SVHN. While these datasets are standard benchmarks, they do not cover the full range of possible applications, especially large-scale or domain-specific datasets. The scope of the experiments is detailed in Section 4, where the datasets used are listed. 4. The paper does not provide a detailed analysis of how sensitive the performance is to hyperparameters other than θ. Changes in other hyperparameters can significantly affect the performance of optimization algorithms. The focus on θ without detailed analysis of other hyperparameters is evident in Section 5, where the experiments primarily vary θ. 5. The paper acknowledges the difficulty in setting the threshold θ but does not provide a concrete solution for it, which might be a crucial limitation for practical implementation. 6. While SoftAD shows better performance in terms of test loss and model norms, it is not always superior in terms of test accuracy when compared to SAM, as noted in the empirical results.

Questions

1. How do you suggest optimizing the threshold parameter θ in practice? Are there any heuristics or automated methods that can be employed? 2. How does SoftAD perform on larger datasets and models, such as those used in natural language processing or large-scale image recognition tasks? 3. Besides θ, are there other critical hyperparameters that significantly affect the performance of SoftAD? How sensitive is the method to these parameters? 4. Can you provide examples or case studies where SoftAD has been successfully applied in real-world scenarios?

Rating

5

Confidence

2

Soundness

3

Presentation

3

Contribution

3

Limitations

Refer to Weaknesses

Reviewer yxTo2024-08-08

Thank you for answering my questions. I think the remaining limitation is the lack of emphasis of the softening idea over the pointwise idea. It seems the authors are currently working on such experiments. If the authors have early results for just 1 dataset/setup, that will be helpful for reviewers. Additionally, would it be straightforward to modify the theoretical results in Section 3.2 to emphasize the softening effect by comparing it with iFlood? If yes, this can also clarify the contributions of this paper.

Authorsrebuttal2024-08-08

Re: Official Comment by Reviewer yxTo

Thanks very much for the follow-up. > If the authors have early results for just 1 dataset/setup, that will be helpful for reviewers. Certainly. We're out of the office for the day, but should have initial results organized to share within 24 hours. > Additionally, would it be straightforward to modify the theoretical results in Section 3.2 to emphasize the softening effect by comparing it with iFlood? This is a great point to raise, and we should have been more explicit about it in our initial rebuttal. The short answer is yes, and in fact, the currently stated results are essentially guarantees for iFlood, though we were unaware of the iFlood paper when writing the original manuscript. To be a bit more precise, after equation (12), we mention that the mini-batch gradients used by the original Flooding procedure do not provide unbiased estimates of (sub-)gradients of the Flooding objective, but they are unbiased estimators for a different objective, namely the upper bound we write as "$\\theta + \\mathbf{E}\_{\\mu}\\vert \\ell(w;\\mathsf{Z}) - \\theta \vert$." This is precisely the population/test objective underlying iFlood. This is also noted by Xie et al., who briefly mention how the point-wise change yields unbiased estimates (end of paragraph 2, sec. 3.1). As such, compared with SoftAD, all the theoretical limitations we highlight in our section 3.2 for Flooding also hold as-is for iFlood. This relation will be made explicit in the revised manuscript.

Authorsrebuttal2024-08-09

Re: Official Comment by Reviewer yxTo

Apologies for the delay, this is a follow-up regarding the initial experimental results using iFlood. We ran all methods in precisely the setup described in the paper, but this time included iFlood, which is essentially implemented by replacing the smooth function $\\rho(x) = \\sqrt{x^{2}+1} - 1$ used in SoftAD with the absolute value function $\\rho(x) = \\vert x \\vert$. We give iFlood the exact same hyperparameter grid as SoftAD, and choose based on validation accuracy as with the original tests. The tests for FashionMNIST have already finished, and so we share those here. We cannot attach figures it seems, and to keep anonymity we will just post numerical values here. In the table below, we post values (averaged over trials) for each of the key quantities shown in Figures 4 and 5 in our paper, namely test (average) loss, test accuracy, and model $\\ell\_{2}$ norm, all after the final epoch is finished. | | ERM | Flooding | SAM | SoftAD | iFlood | | ----------- | ----------- | ----------- | ----------- | ----------- | ----------- | | Test loss | $0.80$ | $0.44$ | $0.61$ | $0.45$ | $0.42$ | | Test acc | $0.90$ | $0.89$ | $0.90$ | $0.90$ | $0.89$ | | $\\ell\_{2}$ norm | $75$ | $84$ | $129$ | $54$ | $74$ | Essentially, for the small/easy FashionMNIST task, we see that losses and accuracies are quite similar, but a big gap in the model norm appears between methods. Regarding how the trajectory of iFlood is over epochs in each of these quantities, it is very similar to SoftAD in the case of loss and accuracy (as seen in Figure 4 in the paper), and doesn't have the dramatic "double descent" that is only present in Flooding. On the other hand, for the 500 epoch tests we've run, iFlood leads to a model norm growing monotonically (like SAM in our Figure 5). While its growth is slower than SAM, the norm growth does not slow down quickly like in SoftAD. It is natural to infer that as learning progresses, the effect of our smoothing function (downweighting points that are borderline, i.e., essentially good enough) is appearing in this rather stark difference in norm trajectories. Regarding which value of $\\theta$ is selected by validation data, iFlood has mean $0.15$ with standard deviation $0.1$, clearly more variance than we see in Flooding (mean $0.01$, SD $0.0$) and SoftAD (mean $0.03$, SD $0.04$) for the same dataset, though this might settle down with more trials. Taken together, it seems like the pointwise design (in both SoftAD and iFlood) leads to a faster convergence than vanilla Flooding, but the smoothness in SoftAD is what induces the strong regularization effect on the model norm, especially in the later stages of the learning process. Thanks again for the feedback.

Reviewer yxTo2024-08-09

Thank you for the update. The contribution of the paper is more clear now. Since I don't have any more questions/concerns, I adjusted my score.

Reviewer bEZy2024-08-08

Thanks for your reply! It addresses my questions. But I think the contributions are limited. Therefore, I will remain my score.

Authorsrebuttal2024-08-09

Re: Official Comment by Reviewer bEZy

Thanks very much for the follow-up, and for sticking with your positive score. Best regards.

Area Chair 7Xv82024-08-14

need your reply

To Reviewer JmzP, Please reply to the authors' comments because your score is low compared to the other reviewers. If you are going to keep the current score, please explain in detail why. best Area Chair,

Program Chairsdecision2024-09-25

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC