acceptodds
Published as a conference paper at NeurIPS 2026

Flipping Bits, Not Gradients: Sharpness-Aware Minimization Directly on the Boolean Hypercube

Ba-Hien Tran

Abstract

Sharpness-Aware Minimization (SAM) improves generalization in continuous deep learning, yet applying it to binary-weight networks via latent-space heuristics suffers from a fundamental geometric mismatch: continuous perturbations do not faithfully probe the discrete loss landscape on . We introduce BOLD-SAM, the first sharpness-aware optimizer that operates natively on the Boolean hypercube, replacing the Euclidean -ball with a -bit Hamming ball and solving the resulting discrete min-max problem via greedy ascent followed by sharpness-aware bit-flip descent. The objective is theoretically justified from three complementary perspectives: 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 governed by the discrete interaction Hessian, which emerges as the unifying quantity linking ascent quality to convergence rate. We further connect discrete flatness to Forman-Ricci curvature and algorithmic complexity. Experiments on a wide range of architectures and datasets demonstrate consistent improvements in clean accuracy and out-of-distribution robustness over standard binary training and latent-space SAM baselines.

Keywords:
Sydney

Reviews

Among:
Shape:
123456this paper, Bottom 17%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 4.00 over 3 reviews, above 17% of the others.
Reviewer_cZM9OpenReview ↗
Rating
4
Clarity
3
Confidence
3
Originality
3
Quality
3
Significance
3
Read review
Summary

This paper proposes BOLD-SAM, a sharpness-aware optimization algorithm for Boolean-weight neural networks. In contrast to conventional SAM, which performs optimization in a continuous latent weight space, the proposed method defines sharpness directly over Boolean weight configurations through a Hamming-ball min-max objective. The paper motivates this objective from three perspectives: PAC-Bayes theory, model compression, and distributionally robust optimization. It further provides theoretical analysis of the greedy ascent procedure and the finite-time convergence of the descent step under assumptions on the discrete interaction Hessian.

Strengths and weaknesses

Strengths

  1. The paper studies how to define and optimize sharpness directly in discrete Boolean-weight spaces, rather than relying on continuous latent-weight surrogate variables.

  2. The paper analyzes the vanishing perturbation effect and the geometric mismatch between Euclidean and Hamming spaces, which provides a clear motivation for why directly transferring continuous-domain SAM to binary or Boolean neural networks may be inherently limited.

  3. The proposed method is conceptually clear. It first constructs a locally worst-case Boolean weight configuration through greedy bit-flip ascent, and then performs descent updates at the adversarial point based on Boolean Variation.

Weaknesses

  1. The theoretical analysis focuses on a sequential greedy procedure, while the practical implementation uses a top-k approximation for efficiency. It would be helpful to further clarify the gap between the analyzed and implemented algorithms.

  2. The PAC-Bayes and compression perspectives provide useful motivation, but the paper would be stronger with more quantitative generalization evidence for the trained models.

  3. The convergence analysis is currently established for the empirical loss under accepted bit-flip updates. A discussion of the convergence behavior of the adversarial min-max objective would further strengthen the theoretical part.

  4. The paper states that the computational cost is comparable to continuous SAM. Additional evidence on wall-clock time, memory usage, top-(k) overhead, and scalability would make this claim more convincing.

Questions

Please look at the "weakness" section.

Limitations

The theoretical analysis does not fully match the practical implementation, since the convergence guarantee is derived for a sequential greedy procedure, whereas the implemented algorithm uses a top-k approximation.

Paper formatting concerns

No major formatting concerns.

Final justification

Thank you for answering my questions. All my doubts have been resolved, and I will keep my positive rating.

1 comment

We sincerely thank the reviewer for the careful review, and for the constructive feedbacks, each of which we can now answer concretely. We also thank the AC for the meta-review. Full proofs of the new results are in Supplementary Official Comment A under this review, and the detailed computational and PAC-Bayes protocols are in Supplementary Official Comment B due to the limit of characters for rebuttal.


W1: gap between the analyzed sequential greedy and the implemented top-k.

We have closed this gap with a new theorem giving a direct guarantee for the practical top-k rule against the global optimum, assuming only the bounded interaction Hessian ∣Hij∣≤h|H_{ij}| \leq h already used in Theorem 5.7 (no monotonicity or submodularity):

f(S^tk)≥f(S⋆)−k(k−1)h−2Rmax⁡,f(\hat S_{tk}) \geq f(S^\star) - k(k-1) h - 2R_{\max},

where S⋆S^\star is the optimal adversarial set and Rmax⁡R_{\max} bounds third- and higher-order interactions.

The proof subtracts the Mobius/multilinear expansions of ff at the two sets: the top-k rule already maximizes the first-order term exactly, so the deficit is controlled entirely by pairwise and higher interactions, i.e., by the same discrete Hessian that governs descent convergence (η>kh\eta > kh) and multi-bit safety.

Remarks:

(i) the bound is additive in the interaction strength rather than multiplicative like (1−1/e)(1-1/e), and it holds under strictly weaker hypotheses than Theorem 5.2, so the two results are complementary (sequential greedy as the clean conceptual benchmark, the additive bound for the algorithm as run);

(ii) it reinforces the paper's thesis that the interaction Hessian is the single quantity unifying ascent quality and descent convergence;

(iii) most importantly for the reviewer's concern, the convergence guarantee of Theorem 5.7 is agnostic to ascent quality, since its telescoping proof uses only that w^\hat{w} differs from wtw^t in kk bits. The top-k approximation therefore affects only how faithfully the probe approximates the worst case, which the new theorem quantifies. Empirically, the top-k probe retains 71% of the sequential adversarial gain on ResNet-18 and 45% on VGG-16 at convergence (Table 12), and the gap narrows during training as the interaction Hessian collapses (100x on ResNet-18, 12x on VGG-16; Table 10), so the theorem's mechanism explains the trend already reported in Appendix O.5.


W2: more quantitative generalization evidence.

Thanks for your comment. There are three quantitative lines of evidence:

(i) the aggregate table in our response to Reviewer bVXq (+2.34% out-of-distribution on average, positive in all 7 settings);

(ii) per-corruption universality (improvement on all 19 CIFAR-10-C corruption types, Fig. 5);

(iii) the landscape flatness score dropping from 0.0039 (BOLD) to 0.0011 (BOLD-SAM), a nearly 4x reduction (Appendix N.2). In several settings BOLD-SAM's corrupted-data error drops below even the full-precision baseline despite 1-bit weights, which we regard as a strong generalization evidence in the paper.

Moreover, the submission contains a quantitative PAC-Bayes evaluation in Appendix J.3 (Table 4), using data-dependent Bernoulli priors on a 3-layer MLP (n=442,368n = 442{,}368, m=25,000m = 25{,}000, δ=0.05\delta = 0.05). We suspect its placement deep in the appendix made it easy to miss; we will forward-reference it prominently from Section 5.2. Summary:

MethodEpochTest Accd=dH(w^,w0)d = d_H(\hat{w}, w_0)Bound
BOLD148.0%20.547
BOLD5049.6%4,2331.196
BOLD-SAM152.1%00.494
BOLD-SAM5051.3%6440.799

BOLD-SAM yields non-vacuous bounds at every epoch while BOLD is vacuous after epoch 1, and BOLD-SAM needs 6.6x fewer bit-flips to adapt across the data split, directly instantiating the flat-basin mechanism of Section 5.2: flat basins are stable under distribution shift, so the adaptation distance dd stays small and the O(dlog⁡(n/d))O(d \log(n/d)) complexity term stays controlled (a uniform prior would give KL ≈306,600\approx 306{,}600 and a vacuous bound exceeding 2.4; the data-dependent prior gives KL ≈4,850\approx 4{,}850 and a generalization-gap term of ≈0.31\approx 0.31).

A second finding in the same table is worth highlighting: at epoch 1, before any fine-tuning (d=0d = 0), the BOLD-SAM prior already reaches 52.1% on the held-out half versus 48.0% for the BOLD prior, and attains the tightest bound of all (0.494); the flat basin found on S0S_0 transfers to S1S_1 with zero adaptation, which is the flat-minima hypothesis observed directly rather than inferred. To our knowledge, these are the first non-vacuous PAC-Bayes bounds reported for a Boolean-weight training method.


W3: convergence behavior of the adversarial min-max objective.

The Mobius expansion behind the new theorem yields a corollary that partially resolves this.

Corollary (Sharpness composition). For every ww: Ladv(w)−L^(w)≤kB1(w)+k(k−1)2h+Rmax⁡\mathcal L_{adv}(w) - \hat{\mathcal{L}}(w) \leq k B_1(w) + \frac{k(k-1)}{2}h + R_{\max}, where B1(w)=max⁡imax⁡(BVi(w),0)B_1(w) = \max_i \max(BV_i(w), 0) is the 1-bit sharpness, computable in one backward pass.

Combined with Theorem 5.7 (which proves L^(wt)\hat{\mathcal{L}}(w^t) converges), the adversarial objective is provably confined to an explicit, observable band above the empirical loss along the whole trajectory, and full min-max convergence reduces to controlling B1B_1, which the descent phase directly attacks and which can be monitored at every step.

This also clarifies the logical structure the reviewer points at: η\eta-stationarity of L^\hat{\mathcal{L}} (Definition 5.5) is necessary but not sufficient for low adversarial loss, and the corollary supplies exactly the missing sufficient direction up to the interaction terms.

Full convergence of the min-max value remains open in both the discrete and the continuous settings: Khanh et al. (NeurIPS 2024) prove convergence of continuous SAM on the base loss, not of the perturbed objective; one structural advantage of our setting is that accepted steps decrease L^\hat{\mathcal{L}} monotonically with no stepsize schedule. We will make the parallel and the new corollary explicit in the revised Section 5.3.


W4: wall-clock time, memory, top-k overhead, scalability.

Per training step, standard BOLD performs one forward-backward pass; BOLD-SAM performs two (one at wtw^t for the ascent, one at w^\hat{w} for the descent) plus an O(n)O(n) Boolean-Variation extraction and a single torch.topk over the nn BV values, O(nlog⁡k)O(n \log k). Measured on a single V100 (CIFAR-10, batch size 128; wall-clock is per-iteration mean ± std, memory is peak GPU allocation):

Arch.BOLD (ms/iter)BOLD-SAM (ms/iter)RatioPeak mem, BOLD / BOLD-SAM (MB)
VGG-1629.80 ± 0.1255.45 ± 0.471.86x694.56 / 694.56
ResNet-1859.64 ± 0.35112.49 ± 0.591.89x915.59 / 915.61
ViT70.69 ± 0.55126.60 ± 1.071.79x1335.51 / 1335.53

The ratio is 1.79-1.89x, slightly below the theoretical 2x because data loading and other non-pass overheads are shared, and it is nearly constant across three very different architecture families because the cost is dominated by the second backward pass; the added time per iteration is in each case slightly less than one full baseline iteration, exactly the profile of one extra forward-backward pass.

Peak GPU memory is identical to within 0.02 MB (about 20 KB), consistent with the only new persistent state being the kk adversarial indices. The top-k selection adds under 1% of step time, and, importantly, the per-step cost is independent of kk: this is precisely why Algorithm 1 uses the one-shot top-k rather than the sequential greedy, which would require kk backward passes per step and is the computational motivation that the new theorem now backs with a guarantee. Memory overhead is thus negligible by measurement, not only by argument: no duplicate copy of the weights and no additional optimizer state beyond the standard BOLD accumulator.

There is zero inference-time cost, since the deployed binary network is unchanged and the sharpness machinery exists only during training. Because the overhead consists entirely of a second pass through the same network, both terms of the ratio scale identically with model size, dataset size, and batch size, so the ratio is scale-invariant by construction; the near-constant value across three heterogeneous architecture families confirms this empirically.


We hope these results and clarifications address the reviewer's concerns. We would be glad to answer any follow-up questions during the discussion phase.

Reviewer_bVXqOpenReview ↗
Rating
4
Clarity
3
Confidence
4
Originality
3
Quality
3
Significance
3
Read review
Summary

This paper proposes BOLD-SAM, a sharpness-aware optimization method based on BOLD for binary-weight neural networks that operates directly on the Boolean hypercube. It mainly replaces the continuous perturbations used in standard SAM with Hamming-ball bit-flip perturbations, using a greedy ascent step to identify a high-loss neighboring configuration and a Boolean-variation-based descent step to update the weights. The paper provides PAC-Bayes, compression, and DRO motivations for the objective, analyzes the greedy ascent and convergence behavior under discrete-Hessian assumptions. At the end, thy conduct experiments to evaluates BOLD-SAM on CIFAR and ImageNet against BOLD and latent-space SAM baselines.

Strengths and weaknesses

Strengths

  • The paper studies a natural extension of SAM to the Boolean hypercube. The Hamming-ball formulation is well motivated for BOLD-style binary training.
  • The paper gives several complementary views of the objective, including PAC-Bayes, compression, and DRO. The discrete interaction Hessian provides a reasonable lens for analyzing interactions among bit flips.
  • The paper is generally clear and technically well organized.

Weaknesses

  • The novelty over BOLD seems somewhat incremental. BOLD-SAM is a natural SAM-style extension of BOLD, built on the existing Boolean Variation framework, rather than a fundamentally new theory of Boolean optimization.
  • The theoretical guarantees do not fully match the implemented algorithm. The ascent theorem analyzes sequential greedy selection with repeated marginal-gain updates, while Algorithm 1 uses a one-shot top-(k) rule.
  • The convergence result only shows descent of the base empirical loss, not convergence of the proposed Hamming-ball adversarial objective. It also relies on a global bounded interaction-Hessian assumption that is only checked empirically and locally.
  • The empirical gains over BOLD are not always substantial. Clean-accuracy improvements are generally below one percentage point, and robustness gains vary across settings and depend on the choice of (k). The paper would benefit from a clearer aggregate comparison over BOLD, including mean improvements, confidence intervals, and sensitivity to (k).
Questions
  • Can the authors provide a theoretical guarantee for the one-shot top-k ascent rule used in Algorithm 1, rather than the sequential greedy variant?
  • Can the authors clarify whether any convergence or stationarity result can be obtained for Ladv(w)L_{\mathrm{adv}}(w), rather than only for the base loss L^(w)\widehat L(w)?
  • How often do the assumptions behind Theorems 5.2 and 5.7 hold during training? For example, can the authors report submodularity-ratio estimates or interaction-Hessian statistics across training?
  • How is k selected for each experiment? Is the same validation budget used for BOLD-SAM and the baselines?
  • Can the authors provide an aggregate table summarizing average clean-accuracy and corruption-robustness gains over BOLD across all architectures and datasets?
Limitations

The limitations discussion could more clearly state that the theoretical guarantees rely on assumptions that may not hold for the practical one-shot top-(k) algorithm.

Paper formatting concerns

No

Final justification

The authors have addressed my concerns and I would like to keep my score.

1 comment

We sincerely thank the reviewer for the exceptionally thorough review; the questions on the top-k guarantee, adversarial-loss convergence, and assumption verification identified exactly the right pressure points, and answering them has strengthened the paper. We also thank the AC for the meta-review. Our two main theoretical additions are stated below, with full proofs in Supplementary Official Comment A under this review and the complete assumption-verification data in Supplementary Official Comment B due to the limit of characters for rebuttal..


W2 / Q1: a theoretical guarantee for the one-shot top-k ascent.

We have derived one. Let ΔT(w)\Delta_T(w) denote the order-∣T∣|T| discrete derivatives (with Δi=BVi\Delta_i = BV_i, Δij=Hij\Delta_{ij} = H_{ij}), hp=max⁡w,∣T∣=p∣ΔT(w)∣h_p = \max_{w,|T|=p} |\Delta_T(w)|, and let Rmax⁡R_{\max} bound the total third-and-higher-order interaction mass over sets of size ≤k\leq k.

Theorem (Top-k Ascent Guarantee). Let S^tk\hat S_{tk} be the top-k selection of Algorithm 1 (restricted to bits with BVi>0BV_i > 0, per Remark 5.3) and S⋆=arg⁡max⁡∣S∣≤kf(S)S^\star = \arg\max_{|S| \leq k} f(S). If ∣Hij(w)∣≤h|H_{ij}(w)| \leq h for all w,i≠jw, i \neq j, then

f(S^tk)≥f(S⋆)−k(k−1)h−2Rmax⁡.f(\hat S_{tk}) \geq f(S^\star) - k(k-1) h - 2R_{\max}.

Proof sketch (full proof in Official Comment A): the Mobius/multilinear expansion of pseudo-Boolean functions gives f(S)=∑i∈SBVi(wt)+∑{i,j}⊆SHij(wt)+R(S)f(S) = \sum_{i \in S} BV_i(w^t) + \sum_{\lbrace i,j \rbrace \subseteq S} H_{ij}(w^t) + R(S). Subtracting the expansions of S⋆S^\star and S^tk\hat S_{tk}: the singleton term is ≤0\leq 0 because top-k maximizes ∑iBVi\sum_i BV_i over positive-BV sets of size ≤k\leq k; the pairwise terms contribute at most 2(k2)h2\binom{k}{2}h; the residuals at most 2Rmax⁡2R_{\max}.

Remarks:

(i) The bound is against the global optimum and needs neither monotonicity nor submodularity, strictly weaker hypotheses than Theorem 5.2; it is additive rather than multiplicative like (1−1/e)(1 - 1/e), and the two results are complementary, with the additive bound tighter whenever k(k−1)h+2Rmax⁡<f(S⋆)/ek(k-1)h + 2R_{\max} < f(S^\star)/e.

(ii) It involves the same Hessian bound hh that governs descent convergence (η>kh\eta > kh, Thm. 5.7), multi-bit safety (Prop. 5.9), and the submodularity ratio (Hij≤0⇒γk=1H_{ij} \leq 0 \Rightarrow \gamma_k = 1, Prop. F.3), reinforcing the thesis that HijH_{ij} is the unifying quantity of the framework.

(iii) Independently of ascent quality, the convergence guarantee of Theorem 5.7 was never at risk: its telescoping proof uses only that w^\hat{w} differs from wtw^t in kk bits, so it holds verbatim for any point in Bk(wt)B_k(w^t); the top-k question concerns only the fidelity of the sharpness probe, which the theorem now quantifies.


Q2: convergence or stationarity for Ladv\mathcal L_{adv}.

Partially closed by a corollary of the same expansion. Corollary (Sharpness composition). Under the assumptions above, for every ww: Ladv(w)−L^(w)≤kB1(w)+k(k−1)2h+Rmax⁡\mathcal L_{adv}(w) - \hat{\mathcal{L}}(w) \leq k B_1(w) + \frac{k(k-1)}{2}h + R_{\max}, where B1(w)=max⁡imax⁡(BVi(w),0)B_1(w) = \max_i \max(BV_i(w), 0) is the 1-bit sharpness (one backward pass).

Combined with Theorem 5.7, Ladv(wt)\mathcal L_{adv}(w^t) is provably confined to an explicit band above the convergent L^(wt)\hat{\mathcal{L}}(w^t); full min-max convergence reduces to controlling B1B_1, which the descent phase directly attacks and which is observable at every step, making the band monitorable in practice rather than merely existential.

We would emphasize that full convergence of the min-max value remains open in both the discrete and continuous settings: Khanh et al. (NeurIPS 2024) prove convergence of continuous SAM on the base loss, not of the perturbed objective. One structural advantage of our setting is that each accepted step decreases L^\hat{\mathcal{L}} monotonically with no stepsize schedule.


W1: novelty over BOLD.

We respectfully believe this conflates the computational backend (BOLD) with this paper's contribution (a sharpness framework for the Boolean hypercube). The quantities the theory is built on are not BOLD-specific: BViBV_i and HijH_{ij} are the classical first- and second-order discrete derivatives of pseudo-Boolean function theory (Crama and Hammer 2011; O'Donnell 2014), defined on {−1,+1}n\lbrace -1,+1 \rbrace^n independently of how they are computed; any per-bit discrete-derivative oracle could serve as the backend (BOLD's chain rule, Bop-style signal accumulation [Helwegen et al., NeurIPS 2019], or extended finite differences [Bacellar et al., ICML 2024]).

What did not exist for any backend, and constitutes the contribution (see also the structural correspondence in Table 1): (1) the Hamming-ball min-max objective with three independent justifications and, to our knowledge, the first non-vacuous PAC-Bayes bounds for Boolean-weight training (Table 4); (2) ascent guarantees, now including the practical top-k rule; (3) finite-time convergence linked to the discrete interaction Hessian; (4) the Forman-Ricci and algorithmic-complexity connections, both firsts for a parameter space.

The relationship parallels SGD vs. SAM: SGD computes gradients, SAM embeds them in a sharpness objective with its own theory; BOLD computes Boolean Variations, BOLD-SAM embeds them in a Hamming-ball min-max framework with its own theory.


W3: bounded Hessian checked only empirically and locally.

Thanks for your comment. We would provide two clarifications, which will be added around Remark 5.8 in the camera-ready:

(i) Theorem 5.7 requires ∣Hij∣≤h|H_{ij}| \leq h only along the actual trajectory and its kk-flip restorations, not globally, so trajectory-local measurement is the relevant check rather than a shortcut.

(ii) The assumption has a structural basis in our actual setting (Boolean weights with standard real-valued activations): bits in different neurons of the same layer perturb disjoint pre-activations, each by a single bounded XNOR term, so any pairwise interaction routes only through downstream composition and is attenuated accordingly. In the threshold-activation limit the attenuation is exact (Hij=0H_{ij} = 0 once a neuron's margin absorbs the shift; the case Remark 5.8 cites), while with the activations we train the interaction is nonzero but collapses, as measured: 99% of sampled entries below 10−810^{-8} at convergence on ResNet-18. We now additionally report the effective constant among adversarially selected coordinates, heff≈10−5h_{\mathrm{eff}} \approx 10^{-5} (Official Comment A); even under this stricter constant, the convergence condition η>kheff\eta > k h_{\mathrm{eff}} holds with a about 6x margin.


Q3: how often do the assumptions of Thms 5.2/5.7 hold during training?

Thanks for your comment. This was already measured in the submission, Appendix O (Tables 9-11); we suspect the appendix ordering made it easy to miss, and we will forward-reference it from the theorem statements. For BOLD-SAM:

Arch.Epochγmin⁡\gamma_{\min}γmed\gamma_{\mathrm{med}}hmax⁡h_{\max} (sampled)% zerokhkh
MLP10.9061.0007.2×10−77.2{\times}10^{-7}15%3.2×10−43.2{\times}10^{-4}
MLP3000.8451.0003.1×10−63.1{\times}10^{-6}7%1.4×10−31.4{\times}10^{-3}
ResNet-1800.9351.0001.2×10−61.2{\times}10^{-6}11%1.4×10−21.4{\times}10^{-2}
ResNet-181500.9900.9981.2×10−81.2{\times}10^{-8}99%1.3×10−41.3{\times}10^{-4}
VGG-1600.9221.0001.7×10−61.7{\times}10^{-6}19%2.4×10−22.4{\times}10^{-2}
VGG-161500.9951.0001.4×10−71.4{\times}10^{-7}93%2.1×10−32.1{\times}10^{-3}

The median γk\gamma_k is 1.0 at every checkpoint; the minimum stays above 0.84 everywhere, and we note for completeness the one unflattering entry, the MLP minimum dipping to 0.845 at convergence, while the convolutional architectures rise to 0.99+. The telescoping identity underlying Theorem 5.7 is verified to error exactly 0.0 at every checkpoint (Table 11), and the multi-bit bound of Proposition 5.9 holds in 40/40 tests (Fig. 11). The full data, including standard-BOLD rows and the measurement protocol, are in Official Comment B.


Q4: selection of kk and validation budget.

k∈{50,100,500,1000}k \in \lbrace 50, 100, 500, 1000 \rbrace on a held-out validation set; STE-SAM's ρ∈{0.005,0.01,0.05,0.1,0.5}\rho \in \lbrace 0.005, 0.01, 0.05, 0.1, 0.5 \rbrace under the identical protocol (Appendix M), so the baseline received an equal-or-larger tuning budget (5 candidates vs. 4). All remaining hyperparameters are shared.

W4 / Q5: aggregate comparison over BOLD (mean ± std, 4 seeds; corruption = mean over 5 severities; ImageNet OOD = AUROC).

Arch.DatasetClean Δ\DeltaCorr./OOD Δ\DeltaRatio
ResNet-18C10+0.55 ± 0.23+3.18 ± 0.315.8x
VGG-16C10+0.60 ± 0.11+1.46 ± 0.192.4x
ViTC10+0.75 ± 0.17+1.07 ± 0.181.4x
ResNet-18C100+0.66 ± 0.05+3.20 ± 0.124.8x
VGG-16C100+1.09 ± 0.14+2.28 ± 0.212.1x
ViTC100+2.14 ± 0.19+2.55 ± 0.191.2x
ResNet-50ImageNet+0.69 ± 0.18+2.65 ± 0.143.8x
Avg.+0.93+2.342.5x

Every entry is positive, and the OOD gains (the metric the method targets) are roughly an order of magnitude above seed noise; the improvement holds on all 19 corruption types individually (Fig. 5), and in several settings BOLD-SAM's corrupted-data error drops below even the full-precision baseline despite 1-bit weights (e.g., ViT at every severity on both datasets).


We are grateful for questions that materially improved the paper, and we would welcome any follow-up during the discussion phase; in particular, we would be glad to know whether the new top-k guarantee resolves the reviewer's primary concern.

Reviewer_fengOpenReview ↗
Rating
4
Clarity
4
Confidence
4
Originality
3
Quality
3
Significance
3
Read review
Summary

This paper introduces BOLD-SAM, a sharpness-aware optimization method extended for binary-weight neural networks. Instead of relying on continuous latent-space perturbations, the proposed approach defines sharpness over a Hamming ball (natural discrete neighborhood) and solves the resulting discrete min-max optimization problem through greedy ascent followed by sharpness-aware bit-flip descent. The authors provide theoretical motivation of the objective from PAC-Bayes, compression, and distributionally robust optimization, along with approximation and convergence guarantees based on the discrete interaction Hessian. Evaluations across multiple architectures and datasets demonstrate improvements in clean accuracy and out-of-distribution robustness compared with standard binary training and latent-space SAM baselines.

Strengths and weaknesses

Strengths

  • The paper addresses an important limitation of applying sharpness-aware optimization to binary neural networks by proposing a formulation that operates directly in the discrete parameter space.
  • The paper is supported by solid theoretical analysis, including approximation and convergence guarantees, which strengthen the technical contribution.

Weakness

  • The motivation relies on framing SAM’s incompatibility with binary networks as “geometric pathologies” of latent-space methods. While the mismatch between continuous perturbations and discrete parameter spaces is valid, it is also relatively direct. It is therefore unclear whether this framing provides additional conceptual insight beyond the well-known fact that binary networks require discrete optimization, and some of the motivational discussion may be overstated relative to its actual contribution to the method.
  • The gains in clean accuracy are relatively modest (typically below 1%). Although consistent, the paper would benefit from a more detailed discussion of the trade-off between these improvements and the additional computational complexity introduced by the optimization procedure.
  • While the theoretical analysis motivates the scaling of the Hamming radius with the network size, it ultimately provides only a qualitative scaling law, as acknowledged by the authors. The practical implementation still relies on the heuristic (k=⌊αn⌋)(k=\lfloor\alpha n\rfloor), yet the paper offers limited guidance on how to choose the hyperparameter (α\alpha) or why α=0.0001\alpha=0.0001 is a robust approach. Additional discussion, sensitivity analysis, or a principled tuning strategy for (α\alpha) would strengthen the practical applicability of the proposed method.
Questions
  • The results in Figure 6 suggest that increasing the Hamming radius (k) is associated with higher statistical variance. It would be helpful if the authors could explain the underlying cause of this behavior and clarify whether it reflects optimization instability, an increased search space size, or sensitivity to the bit-flip ascent or descent procedure.
  • Following the previous comment and just for curiosity, k=1 gives a similar test accuracy and lower statistical variance than baseline BOLD?
  • Could the authors further clarify what additional conceptual insight is gained by framing the issue in terms of “geometric pathologies” of latent-space SAM, beyond the observation that binary networks require discrete optimization? It would be helpful to understand whether this perspective plays a direct role in motivating the design or analysis of BOLD-SAM, or is mainly used as an interpretive framework.
Limitations

It would be helpful to clarify the trade-off between the observed performance gains and the additional computational overhead, to better understand how much extra complexity is required to achieve these improvements.

Paper formatting concerns

N/A

Final justification

The authors addressed my concerns, so I increased some component score(s). However, my positive overall recommendation remains unchanged.

1 comment

We sincerely thank the reviewer for the careful review, for the positive assessment of the paper's motivation and theoretical contribution, and for questions that pushed us to sharpen both the empirical framing and the practical guidance. We also thank the AC for the meta-review, which we used to prioritize this response. We address each point below; a new theoretical result addressing the meta-review's shared concern is summarized at the end, with full proofs in Supplementary Official Comment A under this review and supplementary detail in Supplementary Official Comment B due to the limit of characters for rebuttal..


W1 / Q3: What conceptual insight do the "geometric pathologies" add, and do they play a direct role in the design?

They play a direct and quantitative role, beyond the general observation that binary networks require discrete optimization:

  1. Quantitative, not qualitative. Proposition E.4 (Appendix E.4) converts Proposition 3.1 into a formula: a perturbation of radius ρ\rho flips on average kequiv=nΦ(−cn/ρ)k_{\mathrm{equiv}} = n \Phi(-c\sqrt{n}/\rho) bits. For a typical trained network (c=2c=2, n=106n=10^6, standard ρ=0.05\rho=0.05), kequiv≈0k_{\mathrm{equiv}} \approx 0: latent-space SAM probes essentially zero discrete configurations, and the effect worsens as training progresses and latent confidence grows. This is a testable failure-mode prediction, not merely an incompatibility statement (derivation sketch in Official Comment B).

  2. The prediction is confirmed at scale. On ImageNet (Table 2), STE-SAM degrades both metrics relative to plain STE (68.53% vs. 68.97% accuracy; 77.12 vs. 77.79 OOD AUC), while BOLD-SAM improves both. Without the analysis of Section 3, STE-SAM's failure would be an unexplained curiosity; with it, it is the expected outcome.

  3. Each proposition maps to a design choice. Prop. 3.1 (perturbations must cross sign boundaries) dictates a Hamming ball rather than an ℓp\ell_p-ball; Prop. 3.2 (Euclidean proximity is neither necessary nor sufficient for Hamming proximity) dictates that flatness be measured in the Hamming metric, i.e., objective (1) rather than a latent surrogate.


W2 / Modest clean gains and the compute trade-off.

We would respectfully clarify the target metric: BOLD-SAM is a generalization method, and its aim is robustness under distribution shift. Averaged over all 7 architecture-dataset settings, the clean gain over BOLD is +0.93% (positive in every setting), in the same range that continuous SAM typically delivers over SGD in full-precision networks.

The out-of-distribution gain is the method's payoff: +2.34% on average and up to +3.2%, roughly an order of magnitude above the seed standard deviation in every setting (e.g., ResNet-18/CIFAR-10: +3.18 ± 0.31).

The improvement is also universal rather than corruption-specific: BOLD-SAM reduces error on all 19 corruption types of CIFAR-10-C (Fig. 5), with the largest gains on high-frequency corruptions (Glass Blur, Shot and Impulse Noise), indicating a general-purpose sharpness mechanism.

In addition, under corruption BOLD-SAM's error drops below even the full-precision baseline in several settings despite 1-bit weights: severity 5 on ResNet-18/CIFAR-10 (42.69% vs. FP 43.18%), and on ViT at every severity level on both datasets (e.g., 44.71% vs. 47.74% at severity 5 on CIFAR-10; Tables 7-8). We believe a 1-bit model outperforming its full-precision counterpart on corrupted inputs is the clearest evidence that Hamming-ball flatness is a robustness mechanism of independent value.

Compute trade-off. On cost, now measured on a V100 (CIFAR-10, batch 128): 1.79-1.89x training wall-clock over BOLD (ViT 1.79x, VGG-16 1.86x, ResNet-18 1.89x; the same two-backward-pass structure as continuous SAM, slightly under the theoretical 2x because non-pass overheads are shared), peak GPU memory identical to within 0.02 MB, and zero inference-time cost, since the deployed binary network is unchanged and the sharpness machinery exists only during training. For the edge-deployment regime that motivates binary networks, where corrupted inputs are the operating condition, we believe a one-time sub-2x training cost for a 2-3x robustness-to-clean gain ratio is favorable. Longer training does not close the gap for the baseline: standard BOLD converges by about 20K steps to a sharper minimum (Fig. 6, left), and the landscape visualization quantifies the difference in the solutions themselves, with the flatness score dropping from 0.0039 (BOLD) to 0.0011 (BOLD-SAM), a nearly 4x reduction (Appendix N.2, Fig. 9). The improvement therefore reflects a different solution, not extra optimization budget. A full aggregate table with per-setting confidence intervals appears in our response to Reviewer bVXq.


W3: guidance for choosing kk, and why k=⌊αn⌋k=\lfloor \alpha n \rfloor is robust.

We agree this deserves consolidation, and we will gather the following into a single subsection (Section 4.4 / Appendix E.5):

(i) Scaling: Proposition 4.6 shows k⋆k^\star scales with the network size nn, which is precisely why a fixed fraction α\alpha transfers across model sizes while a fixed count would not. Complementarily, Lemma E.3 shows the complexity reduction log⁡Vk≈klog⁡(n/k)\log V_k \approx k \log(n/k) becomes substantial only for kk well above a constant, locating the useful range between "too small to regularize" and "too large to optimize", consistent with Remark 4.2's three-view tradeoff (PAC-Bayes concentration vs. adversarial difficulty vs. compression benefit).

(ii) Robustness of the heuristic: the ablation (Fig. 6) shows accuracy and mCA are flat across k∈[50,1000]k \in [50, 1000], a 20x range, with degradation only at k≥5000k \geq 5000; α=10−4\alpha = 10^{-4} sits mid-plateau on every architecture we tested, so the heuristic does not require per-task tuning to be safe.

(iii) Online diagnostic: the sharpness Bk=Ladv−L^B_k = \mathcal L_{adv} - \hat{\mathcal{L}} is observable during training at no extra cost, and Appendix E.5 gives the calibration rule Bk∈[0.01,0.5]B_k \in [0.01, 0.5] for cross-entropy, together with an adaptive schedule k(t)k(t) for practitioners who prefer not to fix kk at all.


Q1: cause of the higher variance at larger kk (Fig. 6).

Two compounding mechanisms, which we will add to Section 7.2:

  1. Shrinking acceptance margin. Theorem 5.7 shows the descent signal at the adversarial point is perturbed by interaction crosstalk of magnitude up to khkh. As kk grows, this crosstalk grows relative to the effective threshold ηeff\eta_{\mathrm{eff}}, so flip accept/reject decisions become marginal and trajectories diverge across seeds; at k=10,000k = 10{,}000 the adversarial point can leave the current basin entirely, the discrete analogue of continuous SAM's instability at large ρ\rho.

  2. Instability of the adversarial set. The top-kk index set is stable across minibatches for small kk (a few hundred dominant BV coordinates); for very large kk, the tail of the selection is essentially noise-ranked, injecting batch-to-batch variance into the perturbation direction.

The variance therefore reflects both optimization instability and probe instability at large kk, not an implementation artifact, and it is corroborated by the ablation itself: accuracy and mCA peak at k∈[100,500]k \in [100, 500] and the Forman-Ricci and Hessian diagnostics degrade monotonically beyond it (Fig. 6, right).


Q2: does k=1k=1 give similar accuracy to BOLD with lower variance?

Theory predicts yes, from two directions. Optimization: at k=1k = 1, the telescoping identity gives ∣BVi(w^)−BVi(wt)∣≤h|BV_i(\hat{w}) - BV_i(w^t)| \leq h, so the update is nearly identical to standard BOLD, giving similar clean accuracy and minimal seed variance. Generalization: the compression view (Appendix E.3) shows the complexity reduction at k=1k=1 is only log⁡n\log n bits, negligible for large models, so the robustness gain should also be negligible: the probe is too weak to shape the basin. We ran this check on CIFAR-10 and can confirm the prediction empirically: at k=1k = 1, BOLD-SAM behaves essentially identically to standard BOLD, with closely matching test accuracy and no meaningful robustness gain. The full numbers will be included in the revised ablation (Fig. 6) to anchor its low end, and we thank the reviewer for suggesting the experiment.


New result addressing the meta-review's shared concern (analyzed sequential greedy vs. implemented top-k).

We have derived a direct guarantee for the practical top-k rule against the global optimum, assuming only the bounded interaction Hessian ∣Hij∣≤h|H_{ij}| \leq h already used in Theorem 5.7 (no monotonicity or submodularity): f(S^tk)≥f(S⋆)−k(k−1)h−2Rmax⁡f(\hat S_{tk}) \geq f(S^\star) - k(k-1)h - 2R_{\max}, where Rmax⁡R_{\max} bounds third- and higher-order interactions. A corollary further bounds the adversarial objective along the trajectory: Ladv(wt)≤L^(wt)+kB1(wt)+k(k−1)2h+Rmax⁡\mathcal L_{adv}(w^t) \leq \hat{\mathcal{L}}(w^t) + k B_1(w^t) + \frac{k(k-1)}{2} h + R_{\max}, where B1B_1 is the 1-bit sharpness; since Theorem 5.7 proves L^(wt)\hat{\mathcal{L}}(w^t) converges, the adversarial loss is confined to an explicit, observable band above it. The statement and proof sketch can be found in our rebuttal to Reviewer bVXq and cZM9. Full statements, proofs, and the empirical instantiation are in Supplementary Official Comment A under this review.


We hope these results and clarifications address the reviewer's concerns, and we would be glad to answer any follow-up questions during the discussion phase.

Comments on the paper

1 comment
Meta-review

This work proposes BOLD-SAM, a SAM variant for binary weight networks that replaces continuous Euclidean perturbations with discrete Hamming-ball neighborhoods. The authors justify this through PAC-Bayes generalization bounds, compression complexity reduction, and Distributionally Robust Optimization. They also provide approximation guarantees for greedy ascent and finite-time convergence bounds by the discrete interaction Hessian. Empirically, they show improvements in accuracy and out-of-distribution robustness over BOLD and latent-space SAM baselines across multiple architectures. Reviewers agree the work is well-motivated and presents a solid theory connecting discrete flatness to Forman-Ricci curvature and algorithmic complexity.

However, reviewers identified a gap between the theory and the actual algorithm. The ascent theorem analyzes a sequential greedy selection with repeated marginal-gain updates, while the algorithm uses a one-shot top-k rule without a theoretical guarantee. Similarly, the convergence proofs only apply to descent on the base empirical loss rather than the proposed Hamming-ball adversarial objective. Reviewers bVXq and cZM9 noted that the accuracy gains over BOLD are modest (typically under 1%). Reviewer feng questioned whether framing the limitations of continuous SAM as pathologies overstates the conceptual contribution relative to the method itself. The submission also lacks wall-clock training time, memory usage, and top-k sorting overhead, and limited guidance on the heuristic choice of the Hamming radius hyperparameter.

The authors should address the gap between their analysis and practical execution. The rebuttal needs to provide a theoretical guarantee or conceptual justification for the one-shot top-k ascent rule and also clarification on whether stationarity or convergence claims can be obtained for the adversarial loss. The authors should also compare wall-clock time and memory usage against the baseline BOLD algorithm. Finally, addressing the sensitivity of the Hamming radius by explaining the cause of the increased variance at larger radii in Figure 6 as well as providing a comparison table with confidence intervals will be helpful.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.