Understanding SAM through Minimax Perspective
Abstract
Lay Summary
Machine learning models often memorize data instead of learning true patterns, getting trapped in fragile "sharp valleys" in the optimization landscape. To fix this, algorithms play a "min-max" game: they try to minimize error while a hypothetical adversary tries to maximize it by pushing the model to the worst nearby position. However, standard methods rush this game by guessing the adversary's move in just one step, which frequently causes the algorithm to miscalculate the terrain and stall. To solve this, we mathematically modeled this min-max game using a two-timescale continuous framework: imagining two clocks running at different speeds. The "fast clock" allows the adversary to take multiple quick steps to accurately find the true worst-case bump. Meanwhile, the "slow clock" uses this accurate map to safely guide the main model down into a wide, stable valley. Based on this theory, we designed a practical method that periodically uses these fast, multi-step explorations to navigate difficult terrain. By properly separating the min-max dynamics, our approach successfully bypasses deceptive traps. This ensures AI systems reliably find robust solutions and generalize better to new, unseen data.