PRISM · Statistical-Mechanics PlaygroundPRISM · 통계역학 놀이터
For the same training loss, a wide valley generalizes better than a narrow one. Adjust the temperature (mini-batch noise), the test-distribution shift, and the optimizer (SGD · SAM) to see why the free energy F = ⟨E⟩ − T·S favors flat valleys.같은 학습 손실이라도 넓은 골짜기가 좁은 골짜기보다 일반화가 잘 된다. 온도(미니배치 잡음), 테스트 분포 이동, 옵티마이저(SGD · SAM)를 조절해 왜 자유 에너지 F = ⟨E⟩ − T·S가 평평한 골짜기를 선호하는지 보라.
When the test distribution is offset by s (covariate shift), the narrow well climbs its steep walls and loss spikes, while the wide well barely changes. So low-curvature κ minima have a smaller generalization gap.테스트 분포가 s만큼 이동하면 (공변량 이동), 좁은 골은 가파른 벽을 타고 올라 손실이 급증하지만 넓은 골은 거의 변하지 않는다. 그래서 곡률 κ가 낮은 최솟값일수록 일반화 격차가 작다.
SGD ≈ gradient descent + thermal noise, with stationary distribution p ∝ e^(−L/T). This minimizes the free energy F = ⟨E⟩ − T·S, favoring flat minima whose entropy S (basin volume) is large.SGD ≈ 경사 하강 + 열적 잡음이며, 정상 분포는 p ∝ e^(−L/T)이다. 이는 자유 에너지 F = ⟨E⟩ − T·S를 최소화하여, 엔트로피 S(골의 부피)가 큰 평평한 최솟값을 선호한다.
It minimizes the worst-case loss within a ρ-ball, W(θ)=max L(θ+δ). The narrow well is steep right next door so W spikes and it is avoided; the wide well barely moves and is selected.ρ-공 안에서 최악의 손실 W(θ)=max L(θ+δ)을 최소화한다. 좁은 골은 바로 옆이 가팔라 W가 급증하므로 회피되고, 넓은 골은 거의 변하지 않아 선택된다.