Navigating the Boolean Hypercube: Sharpness-Aware Minimization Directly in Discrete Loss Landscapes
Abstract
Sharpness-Aware Minimization (SAM) improves generalization in deep learning with continuous weights. However, applying it to binary neural networks through latent-weight heuristics suffers from a geometric mismatch: continuous perturbations do not faithfully probe the discrete loss landscape on . We introduce Hamming-SAM, the first sharpness-aware optimizer that operates natively on the Boolean hypercube. It replaces the Euclidean -ball with a -bit Hamming ball and solves the resulting discrete min-max problem by greedy ascent followed by sharpness-aware bit-flip descent. The objective is theoretically justified through the lens of PAC-Bayes, compression, and distributionally robust optimization. We prove an approximation guarantee for the ascent step and a finite-time convergence bound for the descent. Both are governed by the discrete interaction Hessian, the classical second-order derivative of pseudo-Boolean analysis, which serves as the unifying quantity connecting ascent quality to convergence rate. We further connect discrete flatness to Forman-Ricci curvature and algorithmic complexity. Experiments on a wide range of models and datasets demonstrate consistent improvements in in-distribution accuracy and out-of-distribution robustness over standard binary training and latent-space SAM baselines.
Create a lesson
Metadata
- Categories
- cs.LG, stat.ML
- Comments
- NeurIPS 2026 (Main Conference)
Related papers
Generalization of Sharpness-Aware Minimization with Interpolating Neural Networks
Shared title terminologycs.LGTan Sun, Junhong Lin
Direction-Adaptive Haar Framelets on Graphs
Shared title terminologycs.LGZehua Fang, Xiaosheng Zhuang
Give Me a Brake! Bridging Implicit and Explicit Energy Landscapes with Conformal Equilibrium Matching
Shared title terminologycs.LGLorenzo S. Querol, Hideaki Hayashi, Hajime Nagahara
Token Tells: Prompt Tokens That Copy a Steering Vector Need Its Direction
Shared title terminologycs.LGAniket Ghosh, Mohamed Amine Merzouk, Adam Oberman
Learning in the Right Directions : Algorithmically Adjusted Rademacher Complexity in Deep Neural Networks
Shared title terminologycs.LGAbhik Rana, Aritra Das, Mihir More et al.
CEFIRA: Modular Correlation-Aware Ensemble for VNF Performance Forecasting in Computing Continuum
Shared title terminologycs.LGMilad Rafiee, Andres Ocampo-Palacio, Amir Taherkordi et al.