Manuscript Offprint
arXiv:2610.22621Noise-shaped Sampling and Annealing for Scalable On-the-edge Training of Binary and Ternary AI Models
Abstract
The training loss of binary and ternary neural networks, expanded as a multilinear polynomial over the discrete weights, is structurally equivalent to the energy of a hierarchical high-order Ising model. We exploit this equivalence to apply Ising solvers to discrete-weight network training, while accounting for a fundamental difference in objectives: an Ising solver seeks the ground state of a fixed energy function, whereas training seeks solutions that generalize to unseen data. Our key contribution is -Sampler, an optimizer that reconciles these objectives by embedding a stochastic sampling-and-annealing step as a noisy quantizer inside a first-order noise-shaping loop. The loop pushes noise from weight quantization, high-order frustration, and mini-batch sampling out of the low-frequency adaptation band, so that discrete weight updates follow the smooth descent trajectories embedded in the rugged loss landscape. We validate the framework on a planted quadratic unconstrained binary optimization (QUBO) benchmark with a known minimizer; on CIFAR-10, where a 13M-parameter ternary model comes within 1% of full-precision accuracy; on ImageNet-1k, where a ternary ResNet-18 comes within 0.4% Top-5 accuracy.
of a ternary baseline; on class-incremental continual learning, where prior-task accuracy is preserved; and on MatMul-free language models up to 2.7B parameters, where it outperforms a straight-through-estimator baseline under matched continued pre-training. Compared with standard quantization-aware training, -Sampler reduces the training memory footprint by over 50%, delivers an order-of-magnitude speed-up, and reduces weight-update memory traffic by four orders of magnitude, making it attractive for on-device training and fine-tuning of large binary and ternary models.
1 Introduction
The Ising model, originally introduced to describe ferromagnetic phase transitions in statistical physics, has since become a unifying abstraction for combinatorial optimization [1–3]. This has given rise to a rich ecosystem of efficient Ising solvers, including quantum annealers [4, 5], coherent optical Ising machines [6], probabilistic-bit [7, 8] and oscillator-based hardware [9, 10], parallel digital annealing algorithms [11–14], and neuromorphic architectures [15, 16]. In its mth-order generalization, the Hamiltonian (energy function) of the system takes the form
where are binary spins, each clause is a set of exactly spin indices, and is the corresponding th-order coupling strength [16]. The appeal of these solvers is that they treat the discreteness of the spin space as a structural feature rather than an obstacle, performing massively parallel stochastic search using only binary states, thermal fluctuations, and local-field arithmetic as computational primitives. This makes these solvers highly efficient on dedicated hardware. To date, Ising solvers have been applied predominantly to combinatorial optimization, where the Hamiltonian is explicitly specified and success is defined as reaching the exact ground state (global minimum) of the energy function. Whether the algorithmic principles underlying these solvers can be leveraged for learning problems remains an open question. In learning, the goal is not its exact ground state but a solution that minimizes the generalization error. Discrete-weight neural networks are a natural intersection of the two realms. As shown in Fig. 1a, Binary neural networks (BNNs), which constrain the weights to , were originally developed as the extreme point of the model-compression spectrum [17–21]: the special case of 1-bit quantization, applied to the weights and, in fully binarized networks, also to the activations [22–24]. Ternary networks extend the weight alphabet to , and recent frameworks such as BitNet [25] enable from-scratch pre-training of large language models (LLMs) with 1-bit (binary) and 1.58-bit (ternary) weights. By replacing multiply-accumulate operations with bitwise XNOR, sign-switching, and popcount instructions, discrete-parameter networks achieve dramatic reductions in both compute and memory, making them compelling candidates for deployment in energy-constrained settings such as embedded sensors, mobile platforms, and edge-intelligence systems [26–32].
The structural correspondence between Ising models and discrete-weight networks is illustrated in Fig. 1b. Consider a network of arbitrary architecture with network output , whose inputs and targets are drawn from a stationary data distribution. The training loss is then a function of the discrete weights alone, that is, a real-valued function on the finite set of weight configurations. For every subset of weight indices, define the parity monomial . These monomials form an orthonormal basis (the Walsh–Fourier basis) for the space of real-valued functions on , so the loss admits a unique and exact decomposition
where is the mth-order coupling among the weights in , and the term is a constant offset. The couplings are determined implicitly by the loss function, the network architecture, and the data distribution, but the decomposition itself is architecture-agnostic, and its derivation is given in Methods Section 4.1. Identifying the discrete weights with the spins , and absorbing the sign convention of Eq. (1) into the couplings, the loss becomes a hierarchical sum of Ising Hamiltonians of every order, . The same construction extends to ternary weights. Discrete-weight networks are therefore precisely the model class on which an Ising solver can operate, with one caveat that in practice, the loss is evaluated on minibatches, so the effective couplings are stochastic estimates that fluctuate from one iteration to the next and are only quasi-stationary. One approach for training the network is using post-training quantization [20, 33], in which is optimized in the continuous domain and the final floating-point solution is projected onto the discrete-space. However, this procedure has been shown to be sub-optimal compared with quantization-aware training in the extreme-low-bit domain [21, 34]. Moreover, our focus is on methods that enable training and fine-tuning directly in the discrete domain on edge devices.
Irrespective of the choice of the Ising solver or BNN training algorithm, any optimizer that iteratively minimizes over a discrete set (e.g., or ) can be written as
where is the iteration index and the update vector is constrained such that remains in . Note that for a deterministic flip of the spin or weight , the element of the update vector . The update rule in Eq. (3) can be viewed as drawing at each iteration from an underlying distribution as shown in Fig. 1d
Here P denotes a general sampling process parameterized by a decision signal , the current weights , and a temperature . In simulated annealing (SA), each

b
Order
Order
Order
c
High-order Ising Energy
Medium-order Ising Energy
Low-order Ising Energy
Loss/Energy
Parameter space
Ising order
d

Frequency
Ising order
i 1.0
0.5
0.0
Normalized parameter update rate
Discrete update sampler
AI model
TNN
BNN
Decision
Signal
Discrete
Sampler P
Weight update
Discrete
signal
g
Single-Flip SA
Parallel SA
Loss
h
Loss
-Sampler
Fig. 1 -Sampler for training discrete neural networks. (a) A feedforward binary neural network with weights constrained to . (b) Equivalence between discrete parameter neural networks and a hierarchical high-order Ising machine under stationary data distribution . (c) Conceptual loss/energy profiles for increasing Ising order, where low-order expansions give a smooth landscape and higher-order couplings add frustration, many local minima, and high-frequency components in the gradient space. (d) A general sampler architecture for training discrete weight neural networks. (e) The effect of noise-shaping in spectral domain, where the white-noise is pushed out of the low-frequency adaptation band towards high-frequency. (f) Histogram showing noise-shaping of the Ising decomposition, resulting in the smoother optimization contour that benefits generalization. (g) Rugged non-convex optimization landscape due to parameter discretizations, where traditional simulated annealing optimizers are slow and do not perform well. (h) Optimization trajectory of the -Sampler on the smoothened landscape is more stable and computationally scalable. (i) Parameter update rate maps for a -Sampler at different stages of temperature annealing, early( ), mid( ), and late( ), while training a single layer, showing adaptive regularization on the model parameters tracks the smooth optimization contour.
weight update (spin flip) is accepted according to a Boltzmann criterion [35], with the decision signal denoting the change of the Ising Hamiltonian as a result of the spin state configuration change, while the temperature is lowered according to an annealing schedule. Both ingredients map naturally onto dedicated annealing hardware [15, 16] and are closely related to quantum annealing [5]. The temperature controls the degree of randomness in the sampling process, with corresponding to deterministic sampling. The straight-through estimator (STE) corresponds to this zero-temperature limit, and it constitutes the dominant quantization-aware training paradigm [22, 36–38]. STE optimizer samples the discrete update decision by maintaining a full-precision latent copy of every discrete weight as the decision signal , re-quantizes for the forward pass, and applies the surrogate gradient in updating through conventional gradient-based optimizers with the predominant one being AdamW [39, 40]. Numerous refinements to threshold functions, clipping ranges, and binarization schedules have been proposed [24, 41–44].
However, to generalize well, any weight update rule in Eq. (3) must overcome the challenges revealed by the multi-order decomposition of the loss function, as shown in Fig. 1c. The low-order terms form a smooth envelope with broad basins and well-defined descent directions, because they are dominated by a small number of strong, slowly varying couplings. The high-order terms, in contrast, superimpose fine-grained frustration onto that envelope where exponentially many weak clauses impose competing constraints that cannot all be satisfied simultaneously, producing a proliferation of local minima [45, 46]. Consequently, along the temporal trajectory of any iterative optimizer (such as SA), the contribution of the high-order terms to the update signal fluctuates rapidly (high-frequency), whereas the contribution of the low-order envelope varies slowly (low-frequency). Higher-order frustration is a principal, but not the only, source of these fluctuations. Weight quantization introduces its own error, mini-batch sampling perturbs the couplings from one step to the next, and the stochastic transitions of the sampler add further randomness. Although these sources differ in origin, they share a spectral signature. None of these signals are correlated with the slowly varying descent direction, and each, to a first approximation, exhibits a white-noise (or blue-noise) spectrum across the iteration band. The gradient-descent component, by contrast, arises from the low-order couplings, which change slowly as the optimizer traverses the loss surface and therefore occupy the low-frequency portion of the weight-update trajectory. The STE optimizer omitted the challenges imposed by parameter discretization by tracking the complete continuous counterparts through its decision signal regardless of the spectral properties of the signal. On the other hand, because signal and noise are separated in frequency rather than in amplitude, the natural remedy is to reshape the noise spectrum rather than to suppress the noise outright.
In this work, we propose a new mechanism for generating the updates , driven by the error between the cumulative gradient and the cumulative update, which we call sampling and can be expressed as:
Because the sampler is driven by the accumulated error, the low-pass-filtered gradient trajectory and the low-pass-filtered discrete-update trajectory are forced to remain close to each other. Equivalently, -Sampler pushes the white-noise energy introduced by quantization, Ising frustration, and mini-batching out of the low-frequency adaptation band and toward the high-frequency, a mechanism known as noise-shaped learning [47]. Therefore, -Sampler lowers the noise floor within the frequency band occupied by the gradient-descent signal as shown in Fig. 1e. Since the fluctuating component originates partly from the high-order couplings, the sampler exposes the low-order structure at a higher signal-to-noise ratio demonstrated in Fig. 1f, and the optimizer descends along the smooth low-order envelope rather than tracking the frustration layered on top of it. Note that noise-shaping principles also form the core of high-resolution data converters [48], where quantization noise is moved out of the signal band of interest. The -Sampler described in Eq. (5) can be implemented iteratively as
where denotes a Hadamard product, is the integrator state/ decision signal, is a dynamic feedback-gain, and is a sampling function detailed in Methods Section 4.3. As in other annealing approaches, the temperature controls the degree of randomness in the sampling process. The first-order recursion in Eq. (6) and (7) ensures that remains bounded, hence ensuring the stability of the sampling process. The integrator state varies smoothly during training and preserves the low-frequency content of the loss landscape that encodes the descent direction. Whereas the per-batch gradient is dominated by high-frequency fluctuations arising from the many local minima of the discrete landscape.
In Fig. 1g, different optimization dynamics are illustrated conceptually using a highly non-convex discrete landscape in [49–51], where we have showed the speculative trajectories of Single-flip SA and Parallel SA optimizers in comparison to the dynamics of -Sampler in Fig. 1h. Single-flip SA proposes one spin flip per iteration; it provably converges to the ground state under a sufficiently slow cooling schedule, but it explores the configuration space sequentially [35, 52, 53]. Parallel SA proposes flips for all spins simultaneously; it scales naturally to high-dimensional networks, but cannot provide convergence guarantee as its single-flip variant. Single-flip SA (gray trajectory) is thermally stable but tends to become trapped among the many local minima of the rugged landscape, and its computational cost becomes intractable at the scale of modern deep networks. Unconstrained parallel SA (orange trajectory) makes long-range moves, but because simultaneous flips are decided from noisy local fields that ignore their mutual interactions, the joint energy change of a multi-spin flip is uncontrolled, causing the optimizer to overshoot and diverge. Fig. 1h shows how the noise-shaping transforms this rugged surface into a smoothed effective landscape on which the -Sampler descends stably and long-range parallel transitions remain energetically well behaved. -Sampler thus inherits the stability of single-flip SA without its per-coordinate, per-iteration cost, and the scalability of parallel SA without its divergence.
on rugged landscapes. In other words, a single mechanism closes both the dynamics gap (stability versus scalability) and the objective gap (ground state versus generalization). In the Results section, we show that -Sampler converges substantially faster than standard SA approaches and some benchmark STE approaches. Because acts as a per-parameter signal-to-noise readout of the smoothed landscape, the weight-flip activity (changes in weights) are concentrated where the landscape is steep and decays as coordinates settle into a basin. This produces the spatially and temporally structured update-rate maps of Fig. 1i at early , intermediate , and late training stages. The per-parameter update budget therefore self-regulates without hand-tuned per-parameter schedules, yielding an emergent, landscape-aware regularization that is analogous to an adaptive learning rate in discrete parameter space.
A further benefit of performing the entire optimization in the discrete domain is best seen in contrast with STE. STE is practical precisely because conventional optimizers acting on the full-precision latent weights operate on the comparatively benign continuous loss landscape of deep networks. The -Sampler, in contrast, modulates the discrete states directly. Neither the latent weights nor the first- and second-moment optimizer states attached to them [39] are needed, so the training memory footprint tends towards the inference memory footprint. The combination of a self-regulating update budget and a near-inference-scale training footprint is important for edge and embedded deployment, where models must keep adapting to new data (non-stationary operating conditions) under tight memory and energy budgets [54–59]. Note that for edge and embedded AI applications, carrying a full-precision training stack defeats the very purpose of quantizing the parameters. In the Results section, we first validate the framework on a planted QUBO benchmark whose exact minimizer is known by construction. We then apply the framework to standard vision benchmarks (CIFAR-10 and ImageNet-1k), class-incremental continual learning, and language-model pre-training at the scale of billions of parameters. Across these settings, -Sampler attains convergence dynamics close to those of state-of-the-art full-precision baselines while operating strictly in the discrete parameter space throughout, with a substantially reduced training memory footprint that makes on-device continual adaptation practical.

b
c
d
e
Update Rate
1.0 0.5 0.0
2.0
PC1
g
h
Fig. 2 Spectral and dynamic analysis of -Sampler on a planted Quadratic Unconstrained Binary Optimization (QUBO) problem. (a) Block diagram of the -Sampler update rule. (b) Optimization plot showing convergence towards the planted global optimum over 1,000 steps for four different optimizers: SF (single-flip SA), PF and PF-20 (parallel-flip SA at 100% and 20% flip rates respectively), and -Sampler. (c) Principal component visualization of the optimization trajectories, with (d) showing the convergence on a shorter time-scale. (e), (f) Temporally windowed normalized parameter update rate of PF SA and -Sampler showing smoothing of the parameter update trajectories due to noise shaping. (g) Power spectra of the quantization errors (difference in the decision signal vs. update signals) in different optimizers, showing the effect of noise-shaping. (h) Linear extrapolation of average and against overall parameter update rate during the optimization process.
2.1 Validation of -Sampler on small-scale QUBO
To isolate the mechanisms of noise shaping in a controlled setting, four algorithms were evaluated on a planted Quadratic Unconstrained Binary Optimization (QUBO) instance whose ground state is known by construction. We sample a uniformly random binary upper-triangular coupling matrix and shift its diagonal by , where is chosen strictly larger than the spectral radius of to ensure positive definiteness. The QUBO loss is given by
where the bias is set from a uniformly sampled planted binary optimum . By construction is the globally optimal discrete minimizer of on the binary hypercube. The experiments shown in Fig. 2 use . Under this setup, we compare three simulated annealing (SA) configurations with -Sampler, all sharing the same hyperbolic temperature schedule :
• SF (Single-Flip SA): One coordinate is selected uniformly at random per iteration and flipped with probability .
• PF (Parallel-Flip SA): All coordinates evaluate flips synchronously at each iteration, with each per-coordinate decision driven by its raw per-iteration gradient.
• PF-20 (Partial Parallel-Flip SA): Same as PF, but with the per-iteration flip fraction restricted to 20%, throttling PF’s aggressiveness while retaining its parallelism.
- ( -Sampler): Parallel decisions driven by the -Sampler (Figure 2a). The error between the discrete update signal and the raw gradient is accumulated in the integrator , which is then fed into the sampler to produce .
Figure 2b shows that SF decreases the loss with persistent oscillation but never reaches the global minimum within the recorded time window, whereas PF diverges immediately without recovering, and PF-20 suppresses the most violent oscillations of PF without restoring convergence. The geometric signature of these failure modes is captured in the joint Principal Component Analysis (PCA) projection of the discrete-update streams (Figure 2c; construction detailed in Methods Section 4.7). PF is omitted from the projection because its trajectory dominates the principal components without yielding informative insights about the other variants. PF-20 sweeps a broad volume of the parameter space through large, incoherent excursions that double back on themselves, while SF (magnified in the inset of Figure 2d) remains confined to a microscopic volume. The root cause of both failures is the absence of temporal memory in the per-iteration gradient, which is dominated by the local structure of the non-convex landscape, leading to significant oscillation.
In contrast, the -Sampler recovers exactly in Figure 2b with the inset highlights an initial high-flip-rate exploration phase followed by rapid convergence into the basin within 100 steps. In the PCA projection in Figure 2c,d, the -Sampler traces a broad trajectory through the joint PC space before converging onto the planted solution, effectively converting uncoordinated and parallel random walk into coherent macro-steps along the noise-shaped loss-contour. The per-parameter origin of this behavior is demonstrated in Figure 2e,f, which displays time-binned, normalized flip activity per parameter across optimization for PF-20 and , respectively. PF-20 produces broadband, undifferentiated activity across all coordinates and iterations, oscillating against per-iteration noise regardless of the location on the loss surface. Under the same temperature schedule, -Sampler produces a temporally regularized update map consistent with Figure 1i, where per-coordinate activity is modulated proportionally to the local gradient and then decays smoothly toward zero near the basin.
The spectral signature in Figure 2g identifies the mechanism underlying these different temporal trajectories. Each curve depicts the power spectral density (PSD) of the residual between a loop's decision signal ( or ) and its realized flip output (representing the per-step quantization error). For the open-loop raw error (yellow, ) extracted from the PF optimizer, the error spectrum is dominated by a peak at the Nyquist frequency which is a hallmark of a period-2 limit cycle in which each step's flips are immediately reversed on the subsequent step, expending the iterations on oscillations within the loss-landscape rather than descent. The rise in energy-content at low frequencies represents the smooth component of the gradient embedded within the error signal, indicating that the landscape's descent contour is discarded by the flips. When the useful signal is buried inside a Nyquist-dominated error, the loop fails to converge.
Conversely, the same residual for the -Sampler, (light blue), exhibits no low-frequency structure and the systematic descent content of the gradient is fully absorbed within the parameter trajectory, leaving uncorrelated per-step error for the accumulator to integrate. As a result, the persistent descent component accumulates coherently while transient noise averages out. The accumulator residual (dark blue, ) then exhibits the characteristic noise-shaping signature which is a V-shaped spectrum whose low-frequency branch represents the preserved learning signal and whose high-frequency branch rising toward Nyquist reflects the first-order-shaped quantization noise of the flip output, consistent with the noise transfer function (Methods Section 4.3).
Figure 2h characterizes this population-level mechanism by plotting the time-averaged gradient magnitude and accumulator magnitude against the normalized per-parameter update rate across all parameters. The two quantities exhibit opposing linear trends. Coordinates with large flip frequently and maintain small which signifies a low signal-to-noise ratio (SNR) regime where the integrator discharges rapidly after each flip because of noise embedded in gradient signal with large amplitude. Conversely, coordinates with small flip rarely and accumulate larger which signifies a high-SNR regime where a clear decent direction builds up in the decision signal. While the noise-shaping spectrum of Figure 2g applies identically to every parameter, the local SNR set by dictates the individual update frequency, causing the update budget to self-regulate dynamically. This confirms at the population level the per-parameter SNR mechanism proposed in the introduction and illustrated in Figure 1i.
2.2 -Sampler results on standard vision benchmarks
Having validated the behavior of noise-shaping under the controlled QUBO setting (Section 2.1), we evaluate the -Sampler as a practical training algorithm for deep quantized networks on standard image classification benchmarks, and to characterize it dynamics in neural network training. Figure 3a presents the training (dashed) and validation (solid) accuracy trajectories of VGG-7 and VGG-8, both trained end-to-end with the -Sampler pipeline on CIFAR-10. Figure 3b illustrates the modified VGG-7 convolutional architecture adapted from [24] while VGG-7 differs by omitting the linear layer. The two models achieve similar final test accuracies, with

Fig. 3 -Sampler training dynamics on CIFAR-10 and the spectral signature of noise-shaping. (a) Train (dashed) and test (solid) accuracy of two ternary networks trained end-to-end with the -Sampler pipeline on CIFAR-10: VGG-7 and VGG-8. (b) Block diagram of the used convolution model. (c) Per-epoch probability density function (pdf) of per-parameter inter-flip intervals where color denotes training stage from early (orange) to late (blue) epochs; inset shows the corresponding cumulative distribution function (cdf), where the dashed line marks the median. (d) Normalized empirical power spectral density of the per-parameter integrator state estimated over a randomly sampled cohort of weights, compared against a reference spectrum (marked in red dashed line) overlaid, with (e) showing the low-frequency zoom of the same PSD. (f) Validation accuracy for -Sampler (solid trajectory) and full-precision counterparts (dashed trajectory) in continual-learning configuration, where the different color codes represent different offline-class replay fractions. (g) Per-phase probability density of per-parameter inter-flip intervals across the offline phase (orange to blue) and the online phase (red). (h) Per-parameter reactivation ratio plotted against the phase-1 update rate.
the larger model outperforming the smaller variant by less than 1% at convergence. As reported in Table 1, both models retain > 99% of the accuracy of the full-precision baseline on CIFAR-10, despite the parameter reduction in the 5M-parameter VGG-7 variant. Furthermore, our approach achieves solution quality comparable to existing discrete neural network baselines. Ternary Weight Networks (TWN) reported a top test accuracy of 92.56% in their original work [24], and we obtained a top accuracy of 91.56% by executing the training script from their original codebase following the configuration proposed in the literature. However, the default TWN model configuration as proposed in the original literature includes a full-precision linear classifier head, whereas our model is fully discrete. For fairness of comparison, we performed additional training runs with fully discrete TWN model and last full-precision linear classifier attached to -Sampler model. As shown in Table 1, the full-precision layer contributed to final accuracy, where TWN performs better with FP classifier while sampler performs worse.
Table 1 also details the per-epoch training time for all runs executed on identical hardware (NVIDIA H100 80GB). On average, the -Sampler requires 13.4s/epoch and 11.9s/epoch in ternary mode across the two model variants, and 9.0s/epoch in binary mode, compared to 9.2s/epoch for full-precision training. On a per-epoch basis, ternary annealing introduces a overhead, whereas binary annealing is essentially compute-neutral (). However, because the -Sampler incorporates initial warmup epochs, total training runtime is higher due to the extended schedule (200 epochs vs. 150 epochs). In contrast, the TWN pipeline matches the total epoch count (150) of its full-precision counterpart as reported in [24], but requires 247.8s/epoch—an slowdown relative to our ternary runtime. Finally, for completeness, Supplementary Information Section S8 reports measured GPU power draw across optimizers under identical training setups and we attribute the observed energy variations primarily to algorithmic implementation differences.
Table 1 Final test accuracy and time to presented solution on CIFAR-10 for full-precision baseline model, Ternary Weight Networks (TWN) model [24] and the proposed approach -Sampler on the VGG CNN architecture (13M). *The accuracy reported in the original TWN work is
| Method | Weight precision | Accuracy (%) | Time to solution (h) |
|---|---|---|---|
| FPWN (fp baseline) | fp32 | 92.88 | 0.38 |
| TWN FP classifier | ternary | 91.56* | 10.32 |
| TWN discrete | ternary | 91.47 | 10.85 |
| ΣΔ-Sampler FP classifier | ternary | 92.16 | 0.69 |
| ΣΔ-Sampler discrete | ternary | 92.20 | 0.73 |
| ΣΔ-Sampler, ~5M parameters | ternary | 91.88 | 0.67 |
| ΣΔ-Sampler | binary | 91.89 | 0.50 |
For the remainder of this section, we analyze the optimization dynamics of the -Sampler when training the VGG-8 model. The temporal structure of the per-parameter update stream is quantified at the population level in Figure 3c, which illustrates the distribution of per-parameter inter-flip intervals across training stages. The shift in distribution shape over time reflects a uniform change in flip activity across all parameters. Figure 3c plots the probability density function (pdf) along a logarithmic interval axis. In the earliest stage, the distribution is heavily concentrated at short intervals, indicating that most parameters flip at every iteration. Later stages broaden into a roughly uniform distribution with no single dominant peak. Because each flip corresponds to a write operation on the persistent weight tensor, the systematic lengthening of inter-flip intervals throughout training directly reduces off-chip memory traffic, of which the implication will be discussed further in Section 2.5. The inset shows the corresponding cumulative distribution function (cdf), with dashed vertical lines marking the median interval for each stage. Notably, the median exhibits non-monotonic behavior over training time: the second stage exhibits the highest median, while subsequent stages drift back toward shorter intervals without a monotonic trend.
Figures 3d and 3e provide spectral evidence for the noise-shaping effect within the accumulator signal. For a randomly sampled cohort of weights across all layers, we record the per-iteration accumulator sequence throughout training and compute its empirical power spectral density (PSD), normalized such that the integrated log-spectral energy is matched across layers and against the open-loop baseline. Figure 3d displays the resulting PSD over the full frequency spectrum, while Figure 3e zooms into the low-frequency band. Here, the color gradient denotes layer depth, ranging from light (shallow) to dark (deep). The red dashed line represents a reference spectrum which represents the asymptotic spectrum of a pure integrator driven by white noise, corresponding to the open-loop limit of the recursion (Eq. (6)) with zero feedback gain. This reference models the spectral profile that would arise if the integrator merely accumulated unshaped noise. In contrast, the measured closed-loop PSD is everywhere steeper than the baseline. In the low-frequency view as in Figure 3e, the closed-loop curve bends away from toward an even steeper roll-off. Under log-spectral energy normalization, this steeper slope confirms a structural reallocation of spectral mass from the high-frequency regime into the low-frequency band where the smooth descent signal resides. Parameter update decisions are directly driven by the -shaped accumulator , wherein closed-loop feedback suppresses high-frequency quantization noise and concentrates energy in the low-frequency band to support stable gradient descent.
2.3 -Sampler for continual adaptation
Table 2 CIFAR-10 validation accuracy for -Sampler and the full-precision baseline on a 12.98M VGG-8 model with various training configuration and stages.
| Model | Replay | P1 Off (%) | P2 Off (start → end, %) | P2 On (%) |
|---|---|---|---|---|
| FP | 20% | 92.83 | 72.40 → 83.85 | 98.35 |
| FP | 50% | 92.99 | 84.94 → 88.23 | 97.80 |
| ΣΔ-Sampler | 20% | 92.15 | 64.84 → 77.51 | 97.60 |
| ΣΔ-Sampler | 50% | 92.21 | 78.36 → 84.36 | 97.00 |
The adaptive regularization of discrete parameter update dynamics governed by the -Sampler loop naturally lends itself to on-edge adaptation, as new data distributions automatically reshape the loss landscape and alter the network's current state along the annealing trajectory. We evaluate the proposed algorithm in a continual learning setup using CIFAR-10. Specifically, we partition the ten CIFAR-10 classes into 8 offline classes and 2 online classes, training across two distinct phases. Phase 1 ("offline") exposes the network exclusively to the 8 offline classes. Phase 2
(“online”) introduces the 2 online classes alongside a controlled admixture of offline classes, varied between 20% and 50% to span low- and high-replay regimes. For both phases, we report validation accuracy on the offline and online class groups evaluated separately using the VGG-8 convolutional model. As a baseline, we run an identical protocol on a full-precision counterpart trained with AdamW using the same architecture, learning-rate schedule, and class-mixture sweep. The validation accuracy across setups is shown in Figure 3f, with detailed statistics compiled in Table 2.
While the state variables that cross the phase boundary differ between the two pipelines, their roles are conceptually analogous. For the -Sampler, we checkpoint and reload the complete per-layer accumulator state, comprising the ternary weight tensor , the integrator buffer , the dynamic threshold , the temperature , and the step counter . For the full-precision baseline, we checkpoint and reload the latent weights, the AdamW first- and second-moment estimates ( and ), and the learning-rate schedule state. Consequently, both pipelines enter Phase 2 with a fully populated optimizer state preserved from Phase 1, ensuring neither pipeline benefits from an optimizer reset.
As demonstrated in the results, the -Sampler generates continual-learning dynamics qualitatively similar to full-precision AdamW. When incoming data alters the loss landscape established during Phase 1, a subset of stationary parameters previously pinned to local minima are exposed to new directional gradient information, shifting population dynamics back toward an active flip regime. Figure 3g shows the per-parameter inter-flip interval distributions partitioned by phase. The Phase 1 distributions reproduce the transition from concentrated short intervals to a broad, near-uniform spread observed in the standard benchmark setting. In contrast, the Phase 2 distribution (red) breaks this trend by shifting leftward toward shorter intervals, signifying a population-level reactivation of flip activity rather than continued crystallization. The cumulative distribution inset confirms this shift, showing higher probability mass at short intervals in Phase 2 compared to late Phase 1.
Figure 3h isolates this effect at the parameter level by plotting the reactivation ratio (the ratio of Phase 2 update rate to Phase 1 update rate for parameter ) against the Phase 1 update rate , overlaid with an inverse polynomial fit. This inverse trend identifies parameters with low Phase 1 activity as the primary reservoir of Phase 2 plasticity which is the individual parameter signature of our contour-hugging mechanism. When the online data mixture alters the local loss surface, parameters that remained dormant in Phase 1 absorb the newly introduced gradient pressure and reactivate, whereas highly active Phase 1 parameters, having already saturated their update budgets, resist parameter reallocation.
2.4 Scaling -Sampler to ImageNet-1000 and language models
Having characterized the -Sampler dynamics on CIFAR-10 and under continual adaptation, we test whether the same update rule transfers to substantially more labels, and larger datasets and model families. Figure 4a reports the training and test Top-1 and Top-5 accuracy trajectories for a ResNet-18 trained end-to-end on
ImageNet-1K using the -Sampler optimizer. This setup deploys the same parallel-update, noise-shaping, adaptive-thresholding, and blue-noise stochasticity dynamics used at CIFAR-10 scale, requiring no changes to update-rule hyperparameters beyond standard learning-rate rescaling for batch size. The trajectories rise monotonically to a stable plateau with a narrow train-test gap, mirroring the qualitative pattern observed on smaller benchmarks. Table 3 compares the converged accuracy against ternary-weight and full-precision counterparts on the same model architecture. The -Sampler achieves Top-1 and Top-5 accuracy. This result falls within and of the reported accuracy from TWN literature [24], which retains a full-precision classification head, whereas all layers in our model are fully discrete. Furthermore, our performance remains within and of the full-precision reference model for Top-1 and Top-5 accuracy, respectively.
Table 3 ImageNet-1000 validation accuracy on a ResNet-18 backbone, comparing -Sampler against a ternary-weight-network (TWN) baseline with a full-precision classification layer and the full-precision (FP) reference.
| Method | Top-5 (%) | Top-1 (%) |
|---|---|---|
| FP | 86.76 | 65.40 |
| TWN | 84.20 | 61.80 |
| ΣΔ-Sampler | 83.81 | 61.65 |
To thoroughly evaluate the scalability of the -Sampler optimizer, we train MatMul-Free LLMs [40] using the proposed method. Detailed descriptions of the model architecture, data preparation, and training configurations are provided in Supplementary Section S4. The architecture matches the original MatMul-Free LLMs, with two key modifications: the BitLinear layers within the MatMul-Free Linear Gated Recurrent Units (MLGRU) are replaced with -Linear layers operating in the ternary parameter space, and the language-model head remains continuous, as illustrated in Fig. S1. All three models are pre-trained from scratch on a fixed shard of the FineWeb-Edu corpus for 2,000 steps at 532,480 tokens per step, totaling approximately 1.07 billion tokens. Every run processes identical data in the same order. The -Sampler configuration remains identical across all three model sizes. To ensure a stable and smooth descent trajectory in billion-parameter LLM space, we introduce a per-layer, per-step quota on deterministic weight flips, referred to as the update-rate cap. This cap is fixed at across all runs to isolate model scale as the sole experimental variable. The descent dynamics across various update-rate settings are presented in Supplementary Section S5, while the detailed implementation of the cap within the feedback loop is provided in Supplementary Section S4.5.
Figure 4b shows the resulting training-loss trajectories, and Table 4 reports the converged values. All three model sizes train stably from random initialization along convergent trajectories, establishing that the noise-shaping loop remains well-behaved as the parameter count increases by an order of magnitude and the architecture shifts from convolutional to recurrent/attention-based mechanisms. Scaling the model from 370 M to 1.3 B parameters yields a clear improvement of 0.486 on the final 100-step

Fig. 4 Scaling up -Sampler training on larger dataset (ImageNet1000) and LLMs (a) Training and test accuracy of ResNet18 on Imagenet1000 with -Sampler as optimizer. (b) Training loss of various sized MatMul-Free LLMs on FineWeb-Edu with 532.5K tokens per training step. (c) Continued pre-train on the same dataset from the same quantized checkpoint with STE and -Sampler optimizers respectively. (d) Per-step DRAM transactions due to model weight updates for different models, where transactions become sparser for -Sampler as training progresses.
mean loss. The 1.3B and 2.7B models are statistically indistinguishable at this token budget, separated by only 0.016 against a per-step loss variation of approximately which is an expected outcome given that both models remain far from data saturation at approximately one billion tokens. We therefore interpret these three points as evidence that the optimizer scales successfully, rather than as a definitive scaling law. Guidance for tuning the update-rate cap across different model scales and training regimes is provided in Supplementary Section S5.
Table 4 Numerical results of MatMul-Free language-model pre-training on FineWeb-Edu for all sizes. Tail-100 is the mean training loss over the final 100 steps.
| Model | Discrete params | Mean loss | Tail-100 loss |
|---|---|---|---|
| MMFree-370M | 308.3 M | 6.8312 | 6.4544 |
| MMFree-1.3B | 1.233 B | 6.3630 | 5.9684 |
| MMFree-2.7B | 2.538 B | 6.4871 | 5.9846 |
Training from random initialization establishes stability but does not isolate the specific contribution of the update rule. To evaluate STE and -Sampler under matched conditions, we conduct a continued pre-training experiment in which both runs start from the same publicly released, quantized checkpoint of a 0.13B ternary MatMul-Free LLM and differ solely in how the ternary weights are updated. Both runs are trained for 100 steps on the same corpus with identical optimizer settings for continuous parameters. Figure 4c reports the evaluation loss, with per-run values tabulated in Supplementary Section S5.2. It is worth noting that the initial difference in loss value at step 0 is due to the difference in initializing the scaling factor of both optimizers. While both the -Sampler and the STE optimizer follow the same overall loss trajectory across the evaluation window, the -Sampler consistently outperforms STE throughout as shown in Figure 4c. This aligns with the mechanism proposed in Section 2.2, where the adaptive regularization on the discrete parameters enables optimizers to identify the viable decent directions directly in the discrete domain even from a converged checkpoint, whereas the STE update must accumulate sufficient continuous gradient pressure within a latent weight copy to cross a decision boundary, a threshold it largely fails to reach given this learning rate and step count.
2.5 -Sampler hardware advantages
The discrete-throughout-training nature of the -Sampler optimizer yields significant hardware benefits in both memory allocation and off-chip memory traffic, making it a highly suitable candidate for training deep learning models on resource-constrained platforms. First, it reduces static memory allocation by eliminating adaptive optimizer states on discrete weights. Second, it reduces dynamic memory traffic generated by weight updates during training, as discrete weights incur write operations only when a flip is committed. Regarding static memory allocation, we restrict our analysis to persistent parameter state—comprising weights, gradients, optimizer moments, and algorithm-specific auxiliary buffers, while excluding intermediate activation memory, which remains identical across optimizers for a given architecture and batch size. As shown in Table 5(a), full-precision training and standard STE quantization-aware training both require four FP quantities per parameter (the weight, the gradient, and the AdamW first and second moments), totaling 16 bytes per parameter. Additionally STE packs discrete weights into a single byte, and its overall accounting remains otherwise identical to full precision because it maintains a full-precision latent weight copy in the optimizer. Thus, weight quantization alone provides no net training-time memory savings.
In contrast, under the -Sampler framework, the decision signal is the only persistent state that needs to be stored across iterations. This state is stored as a pair packed at one byte per component. Furthermore, in actual implementation the integrator reuses the existing gradient buffer attached to the parameter rather than requiring a separate allocation, resulting in a total of 6 bytes per discrete parameter. The random draws required by the stochastic branch are consumed directly within the annealing step and require no persistent storage. Crucially, the two AdamW moments (which account for 8 of the 16 bytes in the baseline) are omitted by construction since the annealing update (Eq. (28)) relies solely on the current integrator state and a threshold comparison, eliminating the need for historical optimizer states tracking. Continuous parameters, including scale factors, normalization layers, embeddings, and the language-model head, remain under AdamW optimization at 16 bytes per parameter but the corresponding memory allocation are negligible compared to the learning parameters.
Table 5 Persistent training-state accounting. (a) Per-parameter cost of each stored component. (b) Analytical aggregated memory allocation across models. Activation memory is excluded throughout, since it is identical across optimizers under matched architecture and batch size.
| (a) Component | FP / STE | ΣΔ-Sampler discrete | ΣΔ-Sampler continuous |
|---|---|---|---|
| Weight or ternary code | 4/1(4) | 2 | 4 |
| Gradient, or decision signal | 4 | 4 | 4 |
| AdamW first moment | 4 | 0 | 4 |
| AdamW second moment v | 4 | 0 | 4 |
| Stochastic draw buffer | — | transient | — |
| Total (B/param) | 16/17 | 6 | 16 |
| (b) Model | Discrete params | Discrete frac. | FP | ΣΔ-Sampler | Saving |
|---|---|---|---|---|---|
| VGG-8 (CIFAR-10) | 12.97 M | 96.2% | 215.8 MB | 86.1 MB | -60.1% |
| ResNet-18 (ImageNet) | 11.68 M | 89.3% | 209.3 MB | 92.5 MB | -55.8% |
| MMFree-370M | 308.3 M | 82.4% | 5.99 GB | 2.91 GB | -51.5% |
| MMFree-1.3B | 1.233 B | 90.3% | 21.84 GB | 9.51 GB | -56.5% |
| MMFree-2.7B | 2.538 B | 93.9% | 43.25 GB | 17.87 GB | -58.7% |
Compounding this accounting over each model's parameter inventory produces the aggregate memory footprints reported in Table 5(b). The savings scale directly with the proportion of discrete parameters: on the convolution-dominated ResNet-18 (where per-channel scaling factors carry proportionally higher AdamW overhead) and on the 2.7B language model (where of parameters are ternary). At the largest scale, eliminating the two AdamW moments accounts for a 20.30 GB reduction, while weight compression contributes an additional 5.08 GB saving. Under tight memory constraints, training via the -Sampler optimizer can reduce static memory requirements below the capacity threshold of a single accelerator at scales where full-precision training stacks would otherwise OOM (out-of-memory).
Off-chip memory access accounts for a significant fraction of total energy consumption, particularly during training when parameters are iteratively updated [60]. The second major hardware advantage of the -Sampler optimizer stems from reducing the off-chip memory traffic generated by weight updates, which directly governs both bandwidth consumption and energy dissipation per step. The integrator undergoes dense read-write operations at every step, but because it reuses the standard gradient buffer, this traffic component is identical to that of full-precision or STE baselines and cancels out. In contrast, weight updates do not cancel: full-precision and STE optimizers apply non-zero updates to every latent weight at each step, forcing a complete rewrite of the weight tensor regardless of update magnitude. Under the -Sampler, the persistent parameter is the ternary code itself, which is rewritten only when a discrete flip occurs. Consequently, the weight-update traffic between methods differs by the flip rate, which in the -Sampler framework is sparse and decays smoothly alongside the annealing schedule.
We convert measured per-step flip counts into DRAM transaction estimates using a deliberately pessimistic analytical model as detailed in Supplementary Section S6. Off-chip memory is assumed to be accessed at a granularity of 32 bytes. Thus, a dense rewrite of a full-precision weight tensor requires transactions per step. For the
-Sampler, we charge a full 32-byte transaction for every flipped weight (granting no multi-flip coalescing credit when adjacent flips share a sector), and we cap the transaction count at N/32 when local flip density saturates a sector. Charging a full sector per individual flip represents the worst-case scenario for sparse, spatially uncorrelated updates. The underlying flip counts are recorded empirically at each step during the runs shown in Figure 4b only the DRAM transaction mapping is analytical.
Figure 4d reports these findings. The efficiency advantage grows monotonically with model scale, reaching an approximate transaction reduction on vision models and a reduction on the 2.7 B language model during late-stage training. This reduction is driven by two compounding mechanisms: first, full-precision baseline traffic scales linearly with parameter count while the flip rate does not, as converging parameters undergo crystallization and exhibit increasingly sparse flip activity; second, the adaptive threshold dynamically regulates the global update budget regardless of parameter count, causing late-stage memory traffic to drop far below initial values. Figure 4d illustrates the average per-step memory transactions, highlighting that full-precision baseline traffic remains constant while -Sampler traffic decreases across training phases. Taken together with static footprint savings, the discrete-throughout-training design simultaneously reduces memory footprint and memory movement via a unified structural principle: the parameter being trained is the parameter being stored.
3 Discussion
In this work, we proposed and demonstrated the -Sampler, an optimizer that embeds a stochastic sampling-and-annealing step as a noisy quantizer inside a first-order noise-shaping feedback loop. We showed that this mechanism effectively pushes the noise introduced by weight quantization, higher-order frustration, and mini-batch sampling out of the low-frequency adaptation band. As a result, the discrete weight updates follow the smooth descent trajectories embedded within an otherwise rugged loss landscape. This enables the -Sampler to be faster and significantly more memory-efficient than standard adaptive-moment optimizers, making it an attractive solution for on-device training and fine-tuning of large binary and ternary models.
Like other Ising solvers (e.g., simulated annealing), the choice of temperature annealing schedule is critical to the optimizer's performance. The temperature schedule used in this work, , is asymptotically 1/n. This places it in the fast-cooling regime motivated by the Cauchy machine of Fast Simulated Annealing (FSA), rather than the classical 1/log n regime of single-spin SA [61]. Classical SA requires a 1/log n schedule to guarantee convergence because single-spin proposals only reach a Hamming distance of 1, requiring slower cooling to maintain ergodicity across multi-spin energy barriers [15, 52]. FSA relaxes this constraint to a 1/n schedule by replacing local proposals with a Cauchy distribution whose infinite variance enables long-range jumps at any temperature, compensating for the faster cooling rate with heavy-tailed exploration. The parallel-flip mechanism in the -Sampler produces a per-iteration Hamming distance that is a random variable bounded above by the total parameter count , lacking an infinite tail. Therefore, the structural analogy justifying the 1/n schedule in our setting is not a literal Cauchy proposal, but rather the temperature-controlled reach of the parallel-flip mechanism. Just as the Cauchy distribution concentrates as , the per-iteration Hamming distance contracts in lockstep with temperature, yielding long-range moves at high temperatures and short-range moves at low temperatures without modifying the underlying proposal mechanism. This dynamic property reproduces the dynamic memory access patterns shown in Figure 1i, leading directly to the dramatic off-chip memory traffic reductions reported in Section 2.5. Thus, the core property justifying fast cooling in FSA is that the proposal is in lockstep with the acceptance temperature, and this attribute is also preserved in our discrete setup, even though the formal heavy-tailed proposal property is not. We treat this connection as a conceptual motivation rather than a rigorous mathematical derivation, as the formal FSA convergence theorem does not directly extend to bounded-support proposals. Instead, we motivate the schedule by analogy and validate it empirically through the planted QUBO experiments in Section 2.1 and the deep neural network benchmarks across Sections 2.2 through 2.4.
Two hardware benefits of -Sampler described in Section 2.5 is worth emphasizing since the benefits stem from a single underlying mechanism acting on two distinct resources. First, because the discrete weights itself serves as the persistent parameter rather than a projection of a latent copy, there is no full-precision shadow weight to allocate. Second, because the annealing rule relies solely on the current integrator state and a threshold comparison, no adaptive-optimizer moments are maintained for the discrete weights. Consequently, the persistent training state drops to 6 bytes per ternary parameter compared to 16 bytes for a full-precision or Straight-Through Estimator (STE) pipeline, a reduction of 55.8% on ResNet-18 and 58.7% on the 2.7B language model, with savings scaling proportionally to the fraction of discrete parameters. STE training captures none of these benefits during optimization because its latent weights are stored as full-precision parameters in the optimizer; thus, weight quantization under STE provides inference-time savings but no training-time footprint reduction. The second benefit concerns bandwidth rather than memory capacity. Full-precision and STE optimizers apply non-zero updates to every weight at every step, forcing a dense rewrite of the entire weight tensor on each iteration. In contrast, under the -Sampler, a discrete weight is rewritten only when a flip is committed, and the measured flip rate is both sparse and decreasing over the course of training. Under a deliberately pessimistic transaction model, the resulting reduction in weight-update traffic reaches four orders of magnitude at the billion-parameter scale. Because off-chip memory access dominates the energy budget of training far more than arithmetic operations, this bandwidth reduction represents the primary axis along which the discrete-throughout-training formulation impacts hardware efficiency. This is a benefit that quantization alone cannot deliver, as quantized weights trained through latent copies still incur dense write operations on every step.
We would like to highlight several limitations of the proposed approach which could form the basis of future research directions. First, the bounded-support property of the parallel-flip proposal precludes a direct extension of the FSA convergence theorem to the 1/n schedule in the discrete setting. Thus, the asymptotic guarantees provided by classical single-spin SA cannot be applied to the current -Sampler algorithm.
However, because modern deep learning optimization prioritizes generalization performance rather than finding global energy minima, losing formal discrete convergence bounds is offset by optimization dynamics that favor smooth, generalizable solutions. Empirically, there is still a modest performance gap relative to full-precision baselines, on the order of 1% on CIFAR-10 and 3.75% Top-1 on ImageNet-1K. Furthermore, our language modeling evaluations are conducted on a single pre-training corpus at a sub-saturation token budget, where the primary objective is to demonstrate that the -Sampler scales smoothly across dataset and model dimensions with minimal algorithmic modifications. Finally, our memory traffic evaluations rely on an analytical mapping from measured flip counts to hardware DRAM transactions under sector-granularity assumptions, rather than direct hardware performance-counter measurements, and account strictly for weight-update traffic. The most immediate of these limitations can be addressed via straightforward systems engineering using sub-byte packing of the ternary code. This would further compress both static memory footprint and transaction volume, while custom fused kernels (which accumulate gradients directly into the integrator without populating an intermediate buffer) and direct hardware counter profile measurements would validate the empirical traffic model while halving the remaining dense traffic.
The long-term goal for this research is enable training workflows that natively leverage the hardware primitives and software execution pipelines that were originally designed for low-bit inference. Packed low-bit data structures, integer arithmetic units, and optimized execution kernels were engineered to make model deployment lightweight; a training algorithm operating directly on these native representations inherits these efficiencies rather than requiring a parallel full-precision datapath. The present framework advances this paradigm across the full parameter space, however, the activation is not quantized. Also, while our forward pass operates on quantized representations, the backward pass execution relies on continuous gradients because reverse-mode automatic differentiation requires a composition of transposed matrix products. In such composition, quantization errors accumulate multiplicatively with network depth, requiring precise gradients to prevent long-term integrator drift across training steps. There could be two possible approaches to address this bottleneck. The first approach pushes quantization deeper into the backward path, trading gradient precision for a fully low-precision execution pipeline. The second approach could use backpropagation-free gradient estimators. Alternative gradient estimators, such as Direct Feedback Alignment (DFA) [62] (which replaces transposed weight matrices in the backward pass with fixed random projections) and Simultaneous Perturbation Stochastic Approximation (SPSA) [63] (which estimates descent directions via localized forward perturbations), bypass the precision-sensitive chained matrix multiplications that make standard backpropagation sensitive to quantization noise. Under either approach, error accumulation across deep multiplicative chains is eliminated, significantly relaxing activation precision requirements. Note that the sampler/quantizer in -Sampler processes gradients differently from the traditional gradient-descent approaches, as it never scales a gradient by a learning rate to perform an additive weight update. Instead, it processes a directional decision signal (the integrator) evaluated against an adaptive threshold; the noise-shaping loop
(Section 4.3) is specifically designed to extract a reliable, low-frequency descent vector from noisy per-iteration inputs. Thus, the update is engineered to tolerate stochastic noise in its driving signal which provides a substantially more robust host for low-fidelity gradient estimators than algorithms where gradient magnitudes directly dictate update step sizes. If both weights and activations were made fully discrete throughout training, the overall execution loop would reduce to low-precision forward passes, single-accumulator per-parameter tracking, and sparse discrete state transitions, fundamentally bridging the gap between training and inference architectures. At this point of convergence, the core update primitives transition from software optimizations to native hardware opportunities: binary state representations, stochastic comparisons, and temporal integration map directly to physical operations in in-memory computing and neuromorphic crossbar architectures, where the sampler/quantizer and integrator can be physically realized via device-level stochastic comparators and analog memory elements rather than emulated in digital logic.
4 Methods
4.1 Exact Multilinear Decomposition of the Discrete Loss
Let index every discrete weight in the network, so a configuration is and the loss is a real-valued function on points, fully specified by the values it takes there. We derive its exact polynomial form constructively. For a target the quantity equals one when and zero otherwise, since . Multiplying over coordinates gives the indicator of a single corner,
which vanishes whenever any coordinate mismatches. Exactly one indicator is non-zero at any W, so
which is the retrieval of a tabulated value written as a polynomial in W.
Expanding (9), each bracket contributes either 1 or , and a choice of brackets is a subset , giving terms
Substituting into (10), exchanging the two finite sums, and extracting from the inner sum yields
(12) the expectation being the uniform average over corners.
The representation is exact and model-agnostic. It is unique by counting, since subsets supply coefficients against interpolation conditions, and the monomials are squarefree because collapses repeated indices. Equation (12) is the Walsh–Fourier expansion of a Boolean function [64]. Comparing it with Eq. (1), the discrete weights are spins, a subset is an interaction clause, and is the -spin coupling, with counting the weights participating irreducibly in one term. Order zero is a constant irrelevant to optimization, order one acts as external fields, and a non-vanishing coupling of order is a failure of the loss to decompose into contributions of fewer than weights acting independently.
4.2 Discrete Neural Networks as Energy-Based Systems
In the Ising model, a binary spin vector minimizes a quadratic energy functional
where Q is a symmetric coupling matrix; because , diagonal terms do not affect optimization and may be set to zero without loss of generality. This discrete formulation underlies Hopfield networks, Boltzmann machines, and a long line of physics-inspired learning systems, in which inference and learning are interpreted as descent over a finite configuration space of size . [1, 65, 66]
Modern deep neural networks predominantly operate over continuous parameter domains , optimized by gradient descent on differentiable objectives. Binary neural networks (BNNs) instead constrain weights to
restoring a combinatorial configuration space analogous to spin systems. As established in the introduction in Eq. (1)–(2), the inference function of a BNN decomposes into a hierarchy of m-th order spin interactions given by Eq. (12). Training the discrete neural networks is therefore
where is an empirical loss evaluated under data sampling. Although is implicitly defined by nonlinear layer compositions rather than written out as an explicit polynomial Hamiltonian, it remains an energy functional over a finite discrete state space of cardinality .
Throughout this section we develop the framework in the binary case for clarity. The same framework extends without modification to ternary weights via the decomposition with , of which the decomposition is detailed in Section 4.4. The sampling dynamics, feedback, and adaptive thresholding of Section 4.3 through Section 4.5 apply to each component independently.
4.3 Noise-shaping in -Sampler Extracts the Smooth Contour within the Discrete Loss Landscape
The Boltzmann-weighted parallel update in single-spin SA, applied directly to the per-batch STE gradient , sees the rugged optimization contour as explained through the multi-order Ising decomposition in Eq. (2). What the sampling optimizer should follow is not this noisy per-iteration surface but the smooth low-frequency contour underlying it, the slowly-varying envelope contributed by the dominant low-order terms of the high-order Ising expansion of Eq. (2). To recover that contour from the noisy per-iteration stream, we choose the decision signal through first-order noise-shaping loop [47]. The feedback loop structurally shapes the noise contribution out of the low-frequency adaptation band where the smooth descent signal lives and into the high-frequency Nyquist neighborhood where they are rejected by the thresholding and sampling process rather than allowed to corrupt the parameter trajectory.
For each coordinate we maintain an integrator state initialized at and a discrete update signal that records the realized weight increment at iteration . The -Sampler update cycle is
where denotes the sampler acting on in place of as the decision signal. The feedback gain is attenuated by the same temperature schedule used in the quantizer to ensure the dynamic range of the feedback signal matches the decision signal . Here, is a sub-coordinate learnable auxiliary parameter, which is a standard practice that rescales the discrete parameters in the forward inference [24, 40]. In the derivation, the model weights are denoted as a -dimensional vector to remain model agnostic. In actual implementation, for a linear layer all discrete parameter on the same row share the same gain scalar and for convolutional layers all parameters in the same kernel share the same gain.
To quantify the noise-shaping effect, we adopt the standard additive-noise model in which the per-iteration quantization noise is summarized into a single additive term that is approximately white across the iteration band as shown below for a certain parameter,
Here denotes an ideal noiseless gradient signal derived from full-precision parameter space that differs from the noisy STE gradient obtained in the discrete parameter space. captures the entirety of quantization noise in the proposed training loop and represents the aggregate parameter update rate modulation effect of the feedback. To analyze the frequency response of noise-shaping on the learning parameters, we linearize the quantized noisy gradient descent in Eq. (19) around a local minimum with local Hessian , treating as approximately constant on the relevant timescale. For simplicity we show the z-domain output of the closed-loop
recursion of Eqs. (16)–(18) for a scalar parameter
where denotes the spectrum of the error on the parameter , and is the frequency domain signal of quantization error . The detailed derivation is presented in Supplementary Section S1.3. It could be observed that the noise transfer function acts as a first-order high-pass on the additive quantization noise. The high-frequency content of the additive noise is structurally pushed into the near-Nyquist neighborhood while the low-frequency adaptation band is preserved. Compared to an unshaped open-loop quantized-gradient-descent baseline that we show in Supplementary Section S1.2, whose error spectrum lacks the shaping factor, the closed-loop mean-square error within an adaptation band of bandwidth relative to the iteration rate is reduced by approximately
so the in-band noise floor scales as relative to the unshaped baseline. The narrower the adaptation band relative to the iteration rate, the larger the noise-shaping gain, and the closer the -Sampler's per-iteration decision stream is driven by the smooth low-frequency descent signal rather than the wideband per-iteration noise. The full derivation under the small-signal linearization, including the per-component transfer functions and the closed-loop pole expression, is given in Supplementary Section S1.
4.4 Ternary Weights via Decomposition
The framework extends from binary to ternary weights without altering the loop of Section 4.3. We represent each ternary weight as the difference of two binary components,
so that each component is a binary variable to which the flip rule of Eq. (28) applies unchanged, with the clamp acting on rather than . Because and , the two components see antipodal decision signals. We exploit this to retain a single integrator per weight rather than one per component, driving with and with ,
The two components therefore share the accumulator, the gradient, the temperature , the log-domain scale , the adaptive threshold , and the AGC state of Section 4.5. The only quantity not shared is the random draw, which is sampled independently for each component so that their stochastic branches are not perfectly correlated. Since carries no gradient of its own under this scheme, it is excluded from the autograd graph and no second gradient buffer is allocated for it.
The feedback path closes on the effective weight rather than on either component. The forward pass depends only on , so the quantization error that the loop is designed to cancel is the error in the effective weight, and the integrator recursion of Eq. (16) becomes
4.5 Adaptive Thresholding via Log-Domain Gradient Statistics
The feedback of Section 4.3 produces an integrator state whose magnitudes span several orders of magnitude across layers and training stages. We partition coordinates at each iteration into a deterministic descent set and a stochastic exploration set,
and set the threshold by a feedback loop that locks the realized fraction to a prescribed schedule.
A robust per-iteration scale is obtained from an EMA over the log-magnitude , giving a geometric-mean estimate insensitive to the heavy-tailed magnitude distribution. An automatic gain control (AGC) loop then drives toward a target above-threshold fraction that ramps harmonically from a stochastic-dominated initial value to a deterministic-dominated steady-state value,
with defaults and . Letting be the EMA of the realized above-threshold fraction, the AGC gain and resulting threshold are
When too many coordinates pass the threshold the gain rises and is pushed up; when too few pass it the gain falls and is pulled down. The early-stochastic to late-deterministic balance characteristic of crystallization therefore emerges from the AGC ramp without any manual schedule, with corresponding to 80% of coordinates in the stochastic regime at the start of training and corresponding to 30% at convergence.
The combined update rule is
4.6 Model Architectures and -Layer Placement
All experiments use two -Sampler layer types, and , as drop-in replacements for their standard convolutional and fully-connected counterparts. Each layer carries a discrete weight tensor updated by the annealing dynamics of Section 4.5 together with a small population of continuous parameters that remain under AdamW, namely a per-output-row scale (row_scaling) and bias for linear layers and a per-output-channel/input-channel multiplier (kernel_multiplier) for convolutional layers. Normalization layers, activation functions, and dropout are unchanged from the standard architectures. In contrast to the common practice of exempting the first and last layers from quantization, every learnable weight layer in our vision models is discrete, including the input-facing convolution and the classifier head.
For CIFAR-10 we use two backbones of the VGG family. VGG-7 consists of six discrete convolutional layers of widths 128, 128, 256, 256, 512, 512, all and each followed by batch normalization, ReLU, and spatial dropout, with max-pooling after each width pair, followed by a single Linear classifier, giving approximately 5M discrete parameters. VGG-8 extends the same convolutional stack with a two-layer classifier, Linear(8192→1024), batch normalization, and Linear(1024→10), giving eight discrete weight layers and 12.97M discrete parameters. Unless otherwise stated the CIFAR-10 dynamics reported in Section 2.2 are measured on VGG-8. For ImageNet-1000 we use a ResNet-18 that follows the standard torchvision topology, with a discrete stem convolution, four stages of two basic blocks each at widths 64, 128, 256, 512 in which both block convolutions and the downsampling shortcut convolutions are discrete layers, batch normalization throughout, and an Linear(512→1000) classifier, with stem, block-level, and pre-classifier dropout for regularization. The vision models train in fp32 and use ternary weights under the decomposition of Section 4.4, with the binary case recovered as a special case and used only where explicitly indicated.
For language modeling we integrate the -Sampler machinery into the MatMul-Free transformer of [40], implemented as MMFreeBitTransformerForCausalLM. Each block applies a pre-norm RMSNorm followed by multi-head attention with rotary position embeddings, then a second RMSNorm followed by a SwiGLU MLP whose gate projection produces the gate and value halves jointly. All six linear projections per block, the attention projections , , , and the MLP projections gate_proj and down_proj, are BitLinear layers that combine an input RMSNorm with 8-bit per-token activation quantization, and every one of them is converted to a discrete layer operating in ternary mode, in which the weight code is stored as the pair with effective weight and a per-output-row continuous scale in AdamW. The token embedding, the language-model head, the block-level RMSNorm scales, and the per-BitLinear input norms remain continuous. Parameters are held in fp32 with bf16 applied by autocast, so the continuous parameters carry full fp32 AdamW state. We train three scales of this architecture, summarized in Table 6, in which the discrete fraction of the parameter inventory grows from 82.4% to 93.9% as the model widens while the embedding and normalization cost stays approximately constant. Full training configuration, data preparation, and the definition of the update-rate cap are given in Supplementary Section S4.
Table 6 MatMul-Free LLM configurations
| Model | H | Layers | Heads | Intermediate | Discrete | Fraction |
|---|---|---|---|---|---|---|
| MMFree-370M | 1024 | 24 | 16 | 2816 | 308.3 M | 82.4% |
| MMFree-1.3B | 2048 | 24 | 32 | 5632 | 1.23 B | 90.3% |
| MMFree-2.7B | 2560 | 32 | 40 | 6912 | 2.54 B | 93.9% |
In all settings the discrete weights are excluded from the AdamW optimizer entirely. Each training iteration performs the standard forward and backward pass, applies the AdamW step to the continuous parameters only, and then invokes the anneal step of Eq. (28) on every discrete layer, using the integrator state carried in the gradient buffer as the decision signal.
4.7 Visualization: Principal Component Analysis of Update Trajectories
To visualize the evolution of the parameter-space dynamics of the three optimizers on the planted QUBO of Section 2.1, we apply principal component analysis (PCA) to their discrete update streams, following a dimensionality-reduction procedure similar to that used for neural population dynamics in the literature [67–69]. For each variant we record the discrete-update vector at every iteration and stack the resulting sequence into a per-variant trajectory matrix . The 3 matrices are concatenated row-wise into a joint matrix , mean-centered along the coordinate axis, and decomposed into principal components via the eigendecomposition of its empirical covariance. The top three principal vectors define a shared three-dimensional embedding into which each variant's time-ordered update sequence is projected, producing the 3D trajectories shown in Fig. 2c. Constructing the PCA basis jointly across variants ensures that the axes are common to all 3 and that trajectory comparisons are directly meaningful. The inset panel d isolates the SF, PF-20, and variants on a tighter scale so that the structural characteristics of the trajectories can be read off without the visual dominance of the diverging PF-20 curves.
Data Availability
The planted-QUBO convergence traces, BNN training metrics, and benchmark evaluation data generated in this study will be made available at https://github.com/aimlab-wustl/SD-SA upon acceptance.
Code Availability
The -Sampler training framework, including the Python implementation of the simulated annealing optimizer, the blue-noise rank-mask construction for convolutional layers, and all benchmark training scripts, will be made available at https://github.com/aimlab-wustl/SD-SA upon acceptance.
Acknowledgments
This work was supported by the National Science Foundation grants CNS - FuSE2 - 2425444, ECCS - 2332166 and FET -2551604. Claude and Gemini AI tools were used for correcting typos, structuring sentences, to proof-check some of the mathematical models and analysis presented in the supplementary information. The Authors acknowledge the National Artificial Intelligence Research Resource (NAIRR) Pilot and Purdue Rosen Center for Advanced Computing (RCAC) Anvil compute cluster for contributing to this research result.
Author Contributions
Z.C. and Z.X. formulated the BNN/TNN training algorithm based on classical simulated annealing; S.C and Z.C. proposed and formulated the -sampler for training QUBO, BNN and TNNs. Z.C. and Z.X. ran the benchmark vision experiments and Y.W provided assistance in setting up the vision benchmarks and datasets. Z.C. optimized the -Sampler parameters for training. R-J.Z and J.E helped in setting up the MatMult-free LLM benchmarks and Z.C., R-J.Z, and Z.X. ran the -Sampler on these benchmarks. All authors/co-authors contributed to proof-reading and writing of the manuscript.
Competing interests
The authors declare no competing interests.
Supplementary Information
S1 Noise-Shaping Analysis for Discrete-Space -Sampler Training
The noise-shaping described in the main text relies on an additive-noise model of the per-iteration -Sampler updates. Under this model, the spectral behavior of the loop reduces to the spectral behavior of a first-order gradient-descent recursion of the kind studied in [47], which provides closed-form expressions for adaptation-band noise reduction relative to an unshaped baseline. In this section, we adapt that analysis to the -Sampler setting. The derivation proceeds in three steps: (i) lumping the three -Sampler noise sources into a single additive noise term so that the standard framework applies, (ii) deriving the error transfer function around a local minimum, and (iii) integrating the resulting power spectrum across the adaptation band to obtain a closed-form expression for the noise-shaping gain.
S1.1 Additive-noise model of the per-iteration -Sampler update
Around a local minimum of the discrete loss landscape, we approximate the per-iteration parameter trajectory as a small-signal continuous variable. This is the standard small-signal linearisation used for spectral analysis of discrete-amplitude adaptation systems [47]. Let denote the error vector at iteration and let
denote the per-iteration STE gradient, decomposed into its Taylor expansion around (with ) the Hessian) and an additive noise term . The leading term ) vanishes at the local minimum, leaving the linearised model
The noise term captures three structurally distinct contributions identified in the main text. First, mini-batch sampling noise arises from the finite-sample estimate of and is approximately white on timescales longer than a single batch step. Second, straight-through estimator (STE) quantization error is introduced by treating the binary projection as the identity in the backward pass; this error is also approximately white because the per-iteration discrepancy is uncorrelated with the slowly varying mean gradient. Third, single-bit sampler stochasticity results from the Boltzmann acceptance rule, which replaces a continuous update with a -valued discrete update. Within the small-signal model, all three contributions act as additive perturbations to the deterministic linearized gradient and are aggregated into with a cross-power spectral density that we approximate as flat across the iteration band. This reflects the canonical white-noise assumption used in converters [47], which has been shown empirically to hold for binary quantizers under additive dither [47].
Under this assumption, the per-component power spectral density of is
within the iteration band , with the per-coordinate noise variance and the iteration rate.
S1.2 Unshaped baseline: quantized raw gradient descent
The baseline (without noise-shaping) against which we benchmark the loop is the quantized-gradient-descent (QGD) recursion in which the sampler acts directly on without any feedback path, so that the realised parameter increment is the noisy gradient itself. Under the small-signal model, this is equivalent to the recursion
where is the effective small-signal step size set jointly by the temperature , the dynamic threshold , and the per-coordinate scaling of the -Sampler update rule in the main text. Substituting the linearised gradient (S2) into (S4) and rearranging in terms of the error ,
Taking the z-transform of both sides and solving for the error spectrum gives
For analytic tractability we restrict the analysis to a scalar parameter (or equivalently to a single eigenvector of with eigenvalue ). The error transfer function becomes
At frequencies , and the magnitude transfer function is
where the closed-loop pole is
Under a brick-wall post-processing filter that retains only the adaptation band, the mean-square error of the QGD error spectrum, by Parseval's theorem, is
Equation (S10) is the -Sampler analogue of the QGD adaptation-band MSE of [47]. It exposes the fundamental cost of using a per-iteration noisy gradient as the sampler input. The MSE at the local minimum is set by the noise variance at the iteration rate and is reduced only by widening the adaptation pole or narrowing the post-filter, both of which trade off against tracking bandwidth.
S1.3 First-order loop
The noise shaping loop replaces the open-loop noisy increment of (S4) with a feedback recursion in which the unrealised portion of the previous update is added back into the integrator state and re-presented to the quantizer at the next step. Under the additive-noise model (S2), this recursion is equivalent to driving the parameter trajectory with the differenced noise instead of the raw , so that
This is the small-signal interpretation of the loop equations (16)–(18) of the Methods under the assumption that the feedback gain is approximately constant on the relevant timescale and that the quantizer output can be expressed as in the z-domain. Taking the z-transform of (S11), the error spectrum is
which differs from the QGD result (S6) by the additional noise-shaping factor on . In the scalar case the magnitude transfer function becomes
The closed-loop pole is the same as for the QGD case; what changes is the appearance of in the numerator, which expresses the first-order high-pass shaping of the additive noise. Low-frequency components of are attenuated by a factor proportional to relative to the QGD spectrum (S8), while high-frequency components are preserved.
S1.4 Adaptation-band MSE and the noise-shaping gain
Integrating the squared magnitude transfer function (S13) across the adaptation band gives the mean-square error of the -Sampler recursion as
The ratio of the noise-shaped and unshaped MSEs is
For , expanding gives
so the closed-loop MSE in the adaptation band is smaller than the open-loop QGD MSE by a factor that scales as . The narrower the adaptation band relative to the iteration rate, the larger the noise-shaping gain, with the precise improvement set by the local curvature at the basin of attraction. In the -Sampler setting, the adaptation band is the bandwidth of the smooth low-frequency loss-landscape contour that the loop is designed to expose, and is the iteration rate of the sampler.
The dual interpretation of this result, described in the main text and confirmed empirically by the steeper-than-1/f² spectra of Fig. 3d,e, is that the same first-order (1 - z⁻¹) factor that high-pass-shapes the noise in the parameter spectrum also high-pass-shapes the high-frequency content of the integrator state ωⁿ. The two views are equivalent under Eq. (S12), since both reflect the unity-signal, (1 - z⁻¹)-noise transfer function of the first-order loop. In the limit Tⁿ → 0 the deterministic-flip threshold μⁿ contracts faster than the stochastic-flip rate as shown in Eq. (27), and the effective step size η contracts accordingly, so the closed-loop pole γₚ contracts and the adaptation band γₐ over which Eq. (S16) holds is automatically squeezed toward the low-frequency descent component of the gradient. The annealing schedule and the noise-shaping mechanism therefore act in concert, with annealing concentrating the adaptation band on the smooth descent signal and noise shaping attenuating the additive noise within that band.
S2 Algorithmic Implementation of -Sampler
S2.1 Per-iteration anneal-step pseudocode
The per-iteration -Sampler update implemented in Layer.anneal_step() in the released code can be written compactly as Algorithm 1. Inputs are the current binary weight , the accumulated gradient buffer which already encodes the integrator via cross-mini-batch accumulation, and the per-layer scaling . Outputs are the updated binary weight and the updated gradient buffer for use as in the next call.
The ternary extension is obtained by running Algorithm 1 independently on each of the two component buffers and that compose
Algorithm 1 Per-iteration -Sampler anneal step (binary case).
1: State: ; (gradient buffer ); EMA , ; step .
2: Params: .
3: ▷ Hyperbolic cooling
4: ;
5: ▷ AGC target ramp
6:
7: ▷ Dynamic threshold
8: for each coordinate in parallel do
9: if then
10: ▷ Deterministic descent push to +1
11: else if then
12: ▷ Deterministic descent push to -1
13: else
14: Draw (white noise for FC, blue-noise rank for conv; cf. §S2.2)
15: if then
16: ▷ Thermal flip
17: else
18:
19: end if
20: end if
21: end for
22: ▷ feedback into gradient buffer
23:
Ensure: , updated
, with driven by gradient (produced automatically by autograd because enters the effective weight with a negative coefficient).
S2.2 Blue-noise rank-mask construction
The blue-noise rank mask used for stochastic flip sampling on convolutional layers is precomputed once at initialisation per kernel size by greedy farthest-point sampling on the grid. Algorithm 2 reproduces the construction as implemented in build_blue_noise_rank_mask().
At each anneal step, the per-channel-pair blue-noise variate used in Algorithm 1 (line 11) is generated from by drawing a uniform rotation and a Bernoulli horizontal flip applied to , then adding a per-channel-pair phase shift and a per-position dither , both modulo 1.
Algorithm 2 Blue-noise rank-mask construction on a grid.
1: ; 2: Select uniformly at random from 3: ; order 4: for do 5: 6: ; append to order 7: end for 8: for do 9: Let ; assign rank 10: end for Ensure: rank tensor
S2.3 Hyperparameter defaults
Table S1 lists the default values of the -Sampler-specific hyperparameters used throughout the experiments of Sections 2.1 through 2.3. These are the values defined in the Model_HParams dataclass of the released code and are the only knobs of the algorithm beyond the standard learning rate, weight decay, and batch size of the AdamW optimizer that handles the continuous scaling parameters.
Table S1 Default hyperparameters of the -Sampler per-layer dynamics. Identifiers in monospace are the field names of the Model_HParams dataclass.
| Symbol | Identifier | Default | Role |
|---|---|---|---|
| temp_init | 2.0 | Initial temperature | |
| temp_decay | 5.0 | Cooling time-constant | |
| ema_beta_log | 0.95 | EMA decay for log-gradient statistic | |
| thld_min | 0.0 | Threshold floor | |
| thld_gain | 1.0 | Threshold gain on | |
| thld_tau | 2000 | AGC ramp time-constant (steps) | |
| thld_target_pruned_init | 0.2 | AGC initial deterministic-fraction target | |
| thld_target_pruned | 0.7 | AGC steady-state deterministic-fraction target | |
| thld_agc_alpha | 0.3 | AGC gain exponent | |
| thld_agc_beta | 0.99 | EMA decay for pruned-fraction tracker | |
| — | sigma_delta | true | Enables feedback |
| — | sigma_delta_temp_scale | true | Scales feedback by current |
| — | use_dynamic_threshold | "hard" | Threshold-gated deterministic/stochastic split |
| — | ternary | false | If true, via |
S3 Class-incremental continual-learning protocol
We complement the description in Section 2.4 of the main text with the additional protocol details required for reproducibility. The ten CIFAR-10 classes are partitioned into 8 offline classes and 2 online classes, with the partition fixed across all replay-fraction conditions. The same VGG-8 architecture used for the standard-benchmark experiments of the main text is trained from scratch in two phases. Phase 1 runs for
150 epochs on the offline class group, using the full -Sampler training pipeline of the Methods with the hyperparameters of Table S1. At the end of phase 1, the per-layer decision signal state, comprising the ternary weight tensor , the gradient buffer that encodes the integrator, the log-gradient EMA , the pruned-fraction EMA , the dynamic threshold , and the step counter , is checkpointed and reloaded as the starting point of phase 2. Phase 2 runs for 50 additional epochs on a data stream comprising the 2 online classes and a controlled admixture of the 8 offline classes, with the admixture fraction varied between 20% and 50% to span low- and high-replay conditions. Each minibatch is drawn from the mixed stream so that the gradient signal seen by the sampler at each anneal step combines new and replayed examples in the specified proportion.
The full-precision baseline runs the identical class-incremental protocol on a continuous-weight VGG-8 of the same architecture trained with AdamW, using the same learning-rate schedule, batch size, and class-admixture sweep. The FP baseline differs from -Sampler only in the optimizer (AdamW vs. the annealing dynamics of Algorithm 1) and in the parameter precision (fp32 vs. ternary). No replay buffer, regularizer, or task-aware gating is applied to either model. The reactivation analysis of Fig. 3h uses normalised per-parameter update rates computed over the final epoch of each phase, with the rate of a parameter defined as the number of accepted flips divided by the number of anneal steps in the epoch.
S4 Language-model experimental setup
This section documents the architecture, data pipeline, and optimization settings for the language-model experiments of Section 2.4. All quantities are as run.
S4.1 Model family and architecture
The language models are MatMul-Free LLMs [40], where the BitLinear layers in the original architecture is replaced in-place with the -Linear layers as shown in Fig. S1. Each decoder block applies a pre-norm RMSNorm followed by multi-head attention with rotary position embeddings, then a second RMSNorm followed by a SwiGLU feed-forward network whose gate projection emits the gate and value halves jointly. Every linear projection inside a block is a FusedBitLinear layer, which fuses an input RMSNorm with per-token 8-bit activation quantization into a single kernel and applies W1.58 ternary weight quantization. Six projections per block are placed under -Sampler, namely attn.q_proj, attn.k_proj, attn.v_proj, attn.o_proj, mlp.gate_proj, and mlp.down_proj. The language-model head is excluded and remains continuous, as are the token embedding, the block-level RMSNorm scales, and the per-BitLinear input norms. Table S2 lists the configurations.
S4.2 Data
All runs use a single pinned shard of the FineWeb-Edu corpus, subset sample/10BT, containing 182,101 documents. Text is tokenized with the MMfreeLM-370M Llama tokenizer at a vocabulary of 32,000, streamed, and packed into blocks of 1024 tokens. The

Fig. S1 Computational graph of a single MatMul-free language model layer.
token geometry is tokens per optimizer step, and pre-training runs for 2,000 steps, giving approximately 1.065 billion tokens presented. Because this exceeds the size of the single shard, the stream wraps and the models see a partial second epoch; the figure should therefore be read as tokens presented rather than unique tokens. All runs consume identical data in identical order, so cross-configuration comparisons are unaffected.
Table S2 Language-model configurations. Vocabulary is 32,000 for all sizes, embedding and language-model head are untied, and the SwiGLU intermediate width is for hidden width . Discrete params counts the ternary parameters under -Sampler and layers counts the number of -Sampler layers.
| Model | H | Layers | Heads | Intermediate | Discrete params | ΣΔ layers |
|---|---|---|---|---|---|---|
| MMFree-370M | 1024 | 24 | 16 | 2816 | 308,281,344 | 144 |
| MMFree-1.3B | 2048 | 24 | 32 | 5632 | 1,233,125,376 | 144 |
| MMFree-2.7B | 2560 | 32 | 40 | 6912 | 2,537,553,920 | 192 |
| 12L768 (S5.3) | 768 | 12 | 12 | 2048 | 109,510,656 | 72 |
S4.3 Optimization of the continuous parameters
Continuous parameters are optimized with AdamW at learning rate , , , weight decay 0.1, in the fused implementation, under a cosine decay to zero over the run with a single warmup step. Global gradient-norm clipping is applied at 1.0 over the continuous parameters only, since the discrete weights carry an integrator state rather than a step direction and including them would set the clip factor from parameters that the clip is not intended to control. Parameters are constructed in fp32 and bf16 is applied by autocast. Runs use a single NVIDIA H100 80 GB device with no sharding. The random seed is 42.
We note one implementation detail because it materially affects reproduction. When model parameters are constructed directly in bf16 rather than fp32, AdamW updates smaller than the bf16 representable increment round to zero, and over 20 steps only of BitLinear weight elements change value, against under fp32 parameters. The effect is severe for a straight-through baseline, whose weights move only through accumulated continuous updates, and largely absent for -Sampler, whose ternary weights move by discrete flips. Any comparison between the two under bf16 parameters is therefore biased in favour of -Sampler. All results reported in this work use fp32 parameters.
S4.4 -Sampler configuration
The -Sampler settings are identical across the three pre-training sizes; only the four architecture keys of Table S2 differ. Table S3 lists them.
S4.5 The update-rate cap
Two independent mechanisms limit how many discrete state changes a layer may commit in one step, and both are applied per layer, per ternary component, per step. The first is a hard quota on deterministic flips. Given a cap , at most coordinates may flip deterministically in a layer of weights, and if more coordinates clear the adaptive threshold than the quota allows, only those with the largest are retained. The second is a ceiling on the stochastic flip probability, applied after the deterministic set has been resolved, which clamps from above at . Because and are resolved by two separate calls with independent random draws, the
Table S3 -Sampler configuration for the language-model experiments, identical at all three pre-training scales.
| Setting | Value | Meaning |
|---|---|---|
| mode | direct ternary | , components in |
| 2.0 | initial temperature | |
| 0.5 | ||
| feedback | enabled | second-order temperature scaling, |
| single accumulator | enabled | difference mode ()/2 |
| pure-integration warmup | 20 steps | gradient integrated before feedback engages |
| 0.95 | log-magnitude EMA decay | |
| 0.0, 1.0 | threshold floor and gain | |
| 10,000 | AGC target ramp constant | |
| 0.2 > 0.7 | AGC target above-threshold fraction | |
| 0.3, 0.99 | AGC exponent and EMA decay | |
| update frequency | every step | anneal step invoked once per optimizer step |
effective per-layer budget on changes to the effective ternary weight is up to , which is why cumulative flip counts can exceed the parameter count in uncapped runs.
In all experiments reported here the two mechanisms were set to the same value and varied together, so their individual contributions to the scale-dependent behaviour of Section S5 are not separated. A cap below truncates the deterministic quota to zero and disables deterministic flips for that layer entirely.
S5 Update-rate cap sweep
The update-rate cap is the one hyperparameter whose optimal value we find does not transfer across model scale or training regime. This section reports the full sweep. All runs are 2,000 steps with the configuration of Section S4 and differ only in the cap.
S5.1 From-scratch pre-training
Table S4 Update-rate cap sweep for from-scratch pre-training. Tail-100 is the mean training loss over the final 100 steps. Best tail-100 per size in bold.
| Model | Cap | Mean loss | Tail-100 |
|---|---|---|---|
| MMFree-370M | uncapped | 7.2055 | 6.7011 |
| MMFree-370M | 6.7278 | 6.1271 | |
| MMFree-370M | 6.6890 | 6.1819 | |
| MMFree-370M | 6.8312 | 6.4544 | |
| MMFree-1.3B | uncapped | 7.0237 | 6.5612 |
| MMFree-1.3B | 6.7439 | 6.1921 | |
| MMFree-1.3B | 6.3630 | 5.9684 | |
| MMFree-2.7B | 7.0736 | 6.6201 | |
| MMFree-2.7B | 6.4871 | 5.9846 |
Three observations follow from Table S4. First, capping is necessary. At both sizes where an uncapped run exists it is the worst configuration on loss while also committing the most discrete updates, so there is no tradeoff to argue at that end of the range. Second, the optimum inverts with scale. At 370M the best setting is , better than by 0.327 nats, whereas at 1.3B the ordering reverses and is better than by 0.223 nats, and at 2.7B by 0.636 nats. The preference for a tight budget therefore strengthens with model size, and no single default transfers. Third, at the two larger sizes the tight cap dominates outright, winning on loss while committing roughly fewer discrete updates than the loose setting. The quality-versus-traffic tradeoff that is visible at 370M does not exist at the scales where the memory-traffic argument of Section 2.5 is most consequential.
S5.2 Continued pre-training
The cap behaves differently when training resumes from a converged checkpoint. Table S5 reports every arm. Under the continued pre-training protocol of Section 2.4, the setting that is best for from-scratch 370M pre-training, , is catastrophic, diverging to an evaluation loss of 7.1105 against an untouched-checkpoint value of 3.1721 and committing flips over 100 steps. The arm shows the same mechanism in milder form, beginning far above the other arms and spending the run repairing early damage rather than improving monotonically.
Table S5 Continued pre-training from a common quantized checkpoint, 100 steps, held-out evaluation loss. All arms share the same data, schedule, and continuous-parameter optimizer, and differ only in the ternary weight update rule. The initial loss difference is attributed to initialization of the scaling factors for both arms.
| Update rule | Eval loss at step 0 | Final eval loss | vs STE |
|---|---|---|---|
| BitNet STE | 3.1721 | 3.1644 | — |
| -Sampler, cap | 3.1951 | 3.0800 | -0.084 |
| -Sampler, cap | 3.1950 | 3.0241 | -0.140 |
| -Sampler, cap | 3.1951 | 3.0913 | -0.073 |
| -Sampler, cap | 3.1950 | 7.1105 | +3.946 |
The interpretation is that from-scratch training has no solution to preserve and benefits from aggressive discrete search, whereas continued pre-training begins at a good optimum that a high flip rate destroys faster than 100 steps of gradient information can repair. The optimal cap therefore depends jointly on model scale and training regime.
S6 Training-state and memory-traffic accounting
This section gives the derivations behind the two hardware results of Section 2.5.
S6.1 Per-parameter training state
The accounting covers persistent parameter state only, comprising the weight, the gradient, adaptive-optimizer moments, and per-algorithm auxiliary buffers. Intermediate activations are excluded because they are identical across optimizers under matched architecture and batch size, and because the activation path is shared between -Sampler and the straight-through baseline in the language-model setting.
A full-precision or straight-through parameter carries four fp32 quantities, namely the weight, the gradient, and the AdamW first and second moments, for 16 bytes. The straight-through case is identical to full precision here because the latent weight it maintains is itself a full-precision parameter held in the optimizer. A -Sampler discrete parameter carries the ternary code as the pair , packed at one byte per component, and the integrator in the existing gradient buffer at fp32, for 6 bytes. The AdamW moments are structurally absent, since the annealing rule of Eq. (28) consults only the current integrator state and a threshold, and the random draws consumed by the stochastic branch are transient within the anneal step and require no persistent allocation. Continuous parameters remain under AdamW at 16 bytes.
Aggregating over each model's inventory gives the totals reported in Fig. 4d. For a model with discrete and continuous parameters the ratio is
which approaches as the discrete fraction approaches unity. The residual is carried entirely by the continuous parameters, which is why the saving grows with the discrete fraction and why it is larger on the language models, where 82.4% to 93.9% of parameters are ternary, than on ResNet-18, where the per-channel scaling parameters are proportionally more numerous.
S6.2 DRAM transaction model for weight updates
The traffic comparison is restricted to weight updates. The integrator is read and written densely at every step, but so is the gradient buffer of a full-precision or straight-through optimizer, and the two are the same size, so that component is common to both methods and cancels. What differs is the weight. A full-precision or straight-through optimizer applies a non-zero update to every weight at every step and therefore rewrites the entire weight tensor, whereas a -Sampler discrete weight is written only when a flip is committed.
Various HBM(high bandwidth memory) technology provides configurable bandwidth for off-chip memory accesses. For this particular work, we assume they are fixed at a granularity of 32 bytes. Writing a dense FP32 weight tensor of N parameters therefore costs
(S18) transactions per step, with the number of weights per sector. For -Sampler, writing flipped one-byte codes costs
where the first argument charges one full sector per flipped weight, granting no credit when two flipped weights share a sector, and the second saturates to the dense cost once flips exceed one per sector.
Two aspects of this construction are conservative against -Sampler. Charging a full sector per flip is the worst case for a sparse and spatially uncorrelated update pattern, which is what the blue-noise stochasticity of Section S2.2 is designed to produce, so realized coalescing can only reduce below the reported value. Taking the baseline weight tensor as bf16 rather than the fp32 tensors the runs actually maintain halves the traffic attributed to it. The flip counts are measured per step during the same runs whose loss trajectories appear in Fig. 4b; only the conversion from flips to transactions is analytical. These figures are not hardware performance counters, and the model accounts for weight-update traffic alone, excluding activations, gradients, optimizer state, and collective communication.
S6.3 Per-third transaction rates
Main-text Fig. 4d reports the mean transaction rate over each third of the run, normalized by training steps so that runs of different length remain comparable. The decrease from the early to the late third is the crystallization effect of Section 2.2 expressed in traffic terms.
S6.4 Traffic as a function of the update-rate cap
Because the cap directly bounds the number of committed flips, it also bounds the weight-update traffic. Table S6 reports both quantities for MMFree-370M against a full-precision reference of 19,267,584 transactions per step. The traffic reduction spans a factor of forty across the sweep while the loss varies by 0.6 nats, and the uncapped configuration is dominated on both axes.
Table S6 Weight-update traffic and final loss against the update-rate cap for MMFree-370M. The full-precision reference is 19,267,584 transactions per step.
| Cap | Mean transactions/step | Reduction | Final loss |
|---|---|---|---|
| uncapped | 186,493 | 6.6555 | |
| 86,727 | 6.0654 | ||
| 27,487 | 6.1407 | ||
| 4,209 | 6.4093 |
S7 Hyperparameter sensitivity on CIFAR-10
This section reports a sweep over the -Sampler hyperparameters on ternary VGG-8 / CIFAR-10, which is the setting we use to fix the defaults of Section S2.3. Twenty-four configurations were screened for 100 epochs and the top ten were rerun for 200 epochs. Every run shares the same architecture, loop in single_omega mode, hard dynamic threshold, gradient accumulation over two epochs, batch size 100, step learning-rate decay every 70 epochs, no dropout, and seed 42, and differs from the baseline configuration only in the parameter named. Accuracy is CIFAR-10 validation accuracy in percent from a single seed per configuration.
Table S7 200-epoch reruns of the ten configurations promoted from the screen, ordered by best validation accuracy. Each row differs from the baseline only in the parameter shown. Last-10 is the mean over the final ten epochs.
| Varied parameter | Best val | Final val | Last-10 mean |
|---|---|---|---|
| thld_tau= 5000 | 92.20 | 91.54 | 91.76 |
| sd_accum_epochs= 5 | 92.03 | 91.74 | 91.52 |
| temp_decay= 20 | 92.03 | 91.86 | 91.76 |
| thld_target_pruned_init= 0.3 | 92.01 | 91.68 | 91.64 |
| wd= 0 | 91.99 | 91.78 | 91.70 |
| ema_beta_log= 0.9 | 91.94 | 91.31 | 91.35 |
| thld_gain= 0.5, target_pruned= 0.9 | 91.93 | 91.43 | 91.45 |
| thld_gain= 0.5, target_pruned= 0.5 | 91.91 | 91.84 | 91.57 |
| thld_gain= 1.5, target_pruned= 0.5 | 91.91 | 91.60 | 91.32 |
| sd_accum_epochs= 20 | 91.86 | 91.70 | 91.61 |
The dominant observation is insensitivity. All twenty-four screened configurations fall within a band of 0.83 percentage points, and the ten promoted configurations fall within 0.34 percentage points after 200 epochs, which is narrower than the roughly 0.5 percentage point run-to-run spread we observe across seeds for well-behaved CIFAR-10 configurations. The nine-point grid over threshold gain and AGC pruned-fraction target spans only 0.39 percentage points, which is the behaviour the automatic gain control is intended to produce, since the loop regulates the flip population toward its target regardless of where the gain is set. The one parameter that moves the result consistently is the learning rate of the continuous scaling parameters, where both off-baseline settings rank in the bottom three, so the residual sensitivity of the method sits in the continuous half of the optimizer rather than in the annealing schedule. The best configuration reaches with thld_tau= 5000, and we adopt the baseline of Section S2.3 rather than this value because the difference is within seed noise.
Two caveats apply. Each configuration was run at a single seed, so the ordering within either table should be read as a shortlist rather than a ranking. The screen also under-rates the schedule parameters by construction, since temp_decay, thld_tau and the AGC target ramp are indexed by optimizer step, so a 100-epoch run under-cools the temperature and under-ramps the target relative to the 200-epoch runs. This is visible in the two parameters whose screen and rerun ranks disagree most, thld_tau= 5000 and temp_decay= 20, both of which rise to the top three once given the full schedule.
Table S8 100-epoch screen over all twenty-four configurations, grouped by the parameter varied. The row marked † is the baseline configuration. Rows marked * were promoted to the 200-epoch reruns of Table S7.
| Group | Setting | Best val | Final val |
|---|---|---|---|
| Accumulation window | sd_accum_epochs= 5 * | 91.24 | 90.57 |
| sd_accum_epochs= 10 | 91.18 | 90.91 | |
| sd_accum_epochs= 20 * | 91.36 | 90.99 | |
| Threshold gain & AGC target | 0.5, target 0.5 * | 91.32 | 91.14 |
| 0.5, target 0.7 | 91.07 | 91.05 | |
| 0.5, target 0.9 * | 91.44 | 91.03 | |
| 0.95, target 0.5 | 91.05 | 90.51 | |
| 0.95, target 0.7 † | 91.19 | 90.90 | |
| 0.95, target 0.9 | 91.17 | 91.05 | |
| 1.5, target 0.5 * | 91.39 | 90.91 | |
| 1.5, target 0.7 | 91.07 | 90.82 | |
| 1.5, target 0.9 | 91.18 | 90.87 | |
| AGC target ramp | target_pruned_init= 0.1 | 91.19 | 90.49 |
| target_pruned_init= 0.3 * | 91.26 | 90.91 | |
| Threshold time const. | thld_tau= 1000 | 91.03 | 90.48 |
| thld_tau= 5000 * | 91.29 | 90.78 | |
| Baseline EMA | ema_beta_log= 0.5 | 91.18 | 90.63 |
| ema_beta_log= 0.9 * | 91.30 | 91.00 | |
| Temperature decay | temp_decay= 20 * | 91.23 | 90.83 |
| temp_decay= 50 | 90.76 | 90.48 | |
| Continuous-parameter | 1r= 0.005 | 90.95 | 90.66 |
| learning rate | 1r= 0.03 | 90.61 | 90.49 |
| Weight decay | wd= 0 * | 91.27 | 90.78 |
| wd= 5 × 10 | 91.07 | 91.04 |
S8 GPU power and energy during training
Power was sampled on a single A100 with 40 GB of device memory under matched model, dataset, and batch size, with each optimizer run for 600 seconds of wall-clock training. Energy per epoch is computed from the measured mean board power and the measured step rate at 500 steps per epoch. Idle board power is 49.8 W and is reported separately because it is common to all three arms and is not attributable to the optimizer.
Table S9 Measured power, throughput, and derived energy for the three optimizers. Above-idle power subtracts the 49.8 W idle draw of the device. Energy figures use total board power.
| Optimizer | Mean power | Above idle | Util. | Steps / 600 s | s/epoch | J/epoch | J/step |
|---|---|---|---|---|---|---|---|
| Full precision | 166.6 W | 116.8 W | 42.3% | 30,133 | 9.96 | 1,659 | 3.32 |
| TWN | 53.5 W | 3.7 W | 34.3% | 797 | 376.5 | 20,145 | 40.29 |
| ΣΔ-Sampler | 137.9 W | 88.1 W | 52.7% | 13,776 | 21.78 | 3,004 | 6.01 |
The quantity this measurement speaks to is implementation efficiency rather than algorithmic cost, since all three arms execute the same architecture on the same data.

b
Fig. S2 GPU power benchmarking of three optimizers on VGG-7 / CIFAR-10. (a) Instantaneous board power against wall-clock time. Full precision and -Sampler draw comparable power at comparable device utilization, whereas TWN sustains only 3.2% of the above-idle power and 2.6% of the step throughput of the full-precision baseline. (b) Energy per epoch. TWN is an order of magnitude above the other two, while -Sampler incurs a overhead relative to full precision that we attribute to unfused kernels rather than to the update rule.
and differ only in how the weight update is realized in kernels. Read that way, -Sampler is on par with the full-precision baseline. It draws 88.1 W above idle against 116.8 W and sustains the highest device utilization of the three at 52.7%, indicating that the annealing update keeps the device busy with work rather than stalling it. TWN sits at the opposite end, drawing only 3.7 W above idle while still registering 34.3% utilization, which illustrates that utilization measures the fraction of time some kernel is resident rather than the arithmetic throughput achieved, and a pipeline that is latency-bound on many small launches can appear occupied while performing little work.
Energy per epoch does not follow power, because it is dominated by time to completion. TWN requires 376.5 seconds per epoch and consequently spends the energy of the full-precision baseline despite drawing the least power of the three. -Sampler completes an epoch in 21.78 seconds against 9.96 seconds for full precision, and the resulting energy overhead is entirely a throughput deficit rather than a power deficit. We attribute that deficit to the present implementation rather than to the update rule. The annealing step currently materializes the integrator, the threshold comparison, and the flip mask as separate tensors and launches them as separate kernels, so each discrete update traverses device memory several times where a fused kernel would traverse it once. The arithmetic the update rule performs per parameter is a comparison against a threshold and a conditional sign change, which is strictly cheaper than the multiply-accumulate and two moment updates of an adaptive full-precision optimizer, so we expect a fused implementation to be at least competitive with the full-precision baseline on time and therefore on energy.

Fig. S3 Sensitivity of optimizers to residual connectivity on CIFAR-10. (a) Final training accuracy of STE and -Sampler on CIFAR-style ResNets of increasing depth, with and without residual connections. (b) Peak validation accuracy of ResNet-56 against the number of blocks retaining a skip, counted from the input. (c) Test accuracy of the same architecture under higher-order residual connections.
S9 Sensitivity to residual connectivity
All runs use CIFAR-style ResNets of depth with ternary weights throughout, trained for 200 epochs at batch size 128 and learning rate 0.01 decayed by 0.1 every 50 epochs at seed 42. The two arms differ only in the discrete update rule, with the STE baseline maintaining a latent fp32 weight updated by AdamW through a clipped straight-through estimator with absmean ternarization, and -Sampler annealing the pair directly. Shape-changing skips use the parameter-free option-A shortcut rather than a projection, so residual and plain networks are identical in parameter count, 3,638,852 at depth 110, and adding or removing skips changes only the gradient path. Panel (b) retains a skip in the first K blocks counted from the input, the end of the network farthest from the loss, while panel (c) generalizes the reach of every skip to a residual order R,
so that each block sums the preceding block outputs rather than its immediate predecessor alone, with recovering the standard ResNet. The adapter reshapes an earlier activation by the same option-A recipe, and the LayerNorm carries no affine transformation, so the parameter count is invariant in . That normalization is necessary rather than cosmetic, since under a plain sum the residual stream follows a Fibonacci recursion whose geometric growth drives the depth-110 midpoint activation to at on initialization alone.
Panel (a) establishes the precondition. Removing every skip is almost free at depth 20, below the depth at which skips matter, but the penalty grows sharply thereafter and grows faster for -Sampler, from 12.4 pp against 15.6 pp at depth 56 to 30.0 pp against 68.9 pp at depth 110, where the discrete optimizer no longer fits the training set. Because this degradation is an optimization failure rather than a generalization one, panel (a) reports training accuracy. Panel (b) shows that the optimizers also differ in where skips must sit. Restoring skips to three of 54 blocks nearest the input recovers 45% of the plain-to-residual gap under STE, well beyond the 6% of blocks involved, after which recovery saturates. The same three blocks return 4% to -Sampler, which catches up only once roughly half the network carries skips. A few input-side skips therefore suffice for straight-through training, whereas -Sampler needs them distributed throughout.
Panel (c) tests whether additional residual structure converts this dependence into an advantage, and it does not. Higher-order skips never exceed the standard ResNet for either optimizer. LayerNorm alone at costs 2.5 pp for STE and 3.2 pp for -Sampler, consistent with a normalized skip no longer acting as an identity mapping, and raising the order recovers about half of that loss by and nothing beyond. Notably, the settings with the flattest gradient norm across depth at initialization are not the best trained, so improved gradient flow at initialization does not by itself predict trained accuracy. Across all three panels -Sampler depends on residual structure at least as much as STE does, and adding structure does not reverse that ordering.
All cells are single-seed. Repeated configurations spread by 6 to 15 pp in the strongly degraded regime but only about 0.5 pp with skips throughout, so the large effects above sit well outside run-to-run noise while differences below roughly 1 pp between neighbouring values of R do not. -Sampler is additionally unstable at intermediate K, peaking at 64.7% near epoch 95 before falling to 35.6% by epoch 200 at K=7, whereas STE never declines by more than 1.1 pp, which is why panel (b) reports peak validation accuracy.
References
[1] Barahona, F.: On the computational complexity of ising spin glass models. Journal of Physics A: Mathematical and General 15(10), 3241–3253 (1982)
[2] Lucas, A.: Ising formulations of many np problems. Frontiers in Physics Volume 2 - 2014 (2014) https://doi.org/10.3389/fphy.2014.00005
[3] Mohseni, N., McMahon, P.L., Byrnes, T.: Ising machines as hardware solvers of combinatorial optimization problems. Nature Reviews Physics 4(6), 363–379 (2022)
[4] Farhi, E., Goldstone, J., Gutmann, S., Lapan, J., Lundgren, A., Preda, D.: A quantum adiabatic evolution algorithm applied to random instances of an np-complete problem. Science 292(5516), 472–475 (2001) https://doi.org/10.1126/science.1057726
[5] Boixo, S., Rønnow, T.F., Isakov, S.V., Wang, Z., Wecker, D., Lidar, D.A., Martinis, J.M., Troyer, M.: Evidence for quantum annealing with more than one hundred qubits. Nature Physics 10, 218–224 (2013)
[6] Mwamsojo, N., Lehmann, F., Merghem, K., Benkelfat, B.-E., Frignac, Y.: Optoelectronic coherent ising machine for combinatorial optimization problems. Optics Letters 48(8), 2150 (2023) https://doi.org/10.1364/ol.485215
[7] Singh, N.S., Kobayashi, K., Cao, Q., Selcuk, K., Hu, T., Niazi, S., Aadit, N.A., Kanai, S., Ohno, H., Fukami, S., Camsari, K.Y.: Cmos plus stochastic nanomagnets enabling heterogeneous computers for probabilistic inference and learning. Nature Communications 15(1) (2024) https://doi.org/10.1038/s41467-024-46645-6
[8] Grimaldi, A., Mazza, L., Raimondo, E., Tullo, P., Rodrigues, D., Camsari, K.Y., Crupi, V., Carpentieri, M., Puliafito, V., Finocchio, G.: Evaluating spintronics-compatible implementations of ising machines. Phys. Rev. Appl. 20, 024005 (2023) https://doi.org/10.1103/PhysRevApplied.20.024005
[9] Parihar, A., Shukla, N., Jerry, M., Datta, S., Raychowdhury, A.: Vertex coloring of graphs via phase dynamics of coupled oscillatory networks. Scientific reports 7(1), 911 (2017)
[10] Yin, X., Sedighi, B., Varga, M., Ercsey-Ravasz, M., Toroczkai, Z., Hu, X.S.: Efficient analog circuits for boolean satisfiability. IEEE Transactions on Very Large Scale Integration (VLSI) Systems 26, 155–167 (2016)
[11] King, A.D., Suzuki, S., Raymond, J., Zucca, A., Lanting, T., Altomare, F., Berkley, A.J., Ejtemaee, S., Hoskinson, E., Huang, S., et al.: Coherent quantum annealing in a programmable 2,000 qubit ising chain. Nature Physics 18(11),
1324–1328 (2022)
[12] Maher, O., Jiménez, M., Delacour, C., Harnack, N., Núñez, J., Avedillo, M.J., Linares-Barranco, B., Todri-Sanial, A., Indiveri, G., Karg, S.: A cmos-compatible oscillation-based vo2 ising machine solver. Nature Communications 15(1), 3334 (2024)
[13] Cai, F., Kumar, S., Van Vaerenbergh, T., Sheng, X., Liu, R., Li, C., Liu, Z., Foltin, M., Yu, S., Xia, Q., et al.: Power-efficient combinatorial optimization using intrinsic noise in memristor hopfield neural networks. Nature Electronics 3(7), 409–418 (2020)
[14] Isakov, S.V., Zintchenko, I.N., Rønnow, T.F., Troyer, M.: Optimised simulated annealing for ising spin glasses. Computer Physics Communications 192, 265–271 (2015)
[15] Chen, Z., Xiao, Z., Akl, M., Leugering, J., Olajide, O., Malik, A., Dennler, N., Harper, C., Bose, S., Gonzalez, H.A., Samaali, M., Liu, G., Eshraghian, J., Pignari, R., Urgese, G., Andreou, A.G., Shankar, S., Mayr, C., Cauwenberghs, G., Chakrabartty, S.: On-off neuromorphic ising machines using fowler-nordheim annealers. Nature Communications 16(1) (2025) https://doi.org/10.1038/s41467-025-58231-5
[16] Ahsan, F., Maiti, S., Chen, Z., Kaiser, J., Nandi, A., Srivatsav, M., Schemmel, J., Andreou, A.G., Eshraghian, J., Thakur, C.S., Chakrabartty, S.: Higher-order neuromorphic ising machines—autoencoders and fowler-nordheim annealers are all you need for scalability. Nature Communications (2026) https://doi.org/10.1038/s41467-026-71937-4
[17] Sze, V., Chen, Y.-h., Yang, T.-J., Emer, J.S.: Efficient processing of deep neural networks: A tutorial and survey. Proceedings of the IEEE 105, 2295–2329 (2017)
[18] Ding, X., Ding, G., Zhou, X., Guo, Y., Han, J., Liu, J.: Global sparse momentum SGD for pruning very deep neural networks. Curran Associates Inc., Red Hook, NY, USA (2019)
[19] Chen, G., Choi, W., Yu, X., Han, T.X., Chandraker, M.: Learning efficient object detection models with knowledge distillation. In: Neural Information Processing Systems (2017). https://api.semanticscholar.org/CorpusID:29308926
[20] Xiao, G., Lin, J., Seznec, M., Wu, H., Demouth, J., Han, S.: Smoothquant: accurate and efficient post-training quantization for large language models. In: Proceedings of the 40th International Conference on Machine Learning. ICML'23 (2023)
[21] Jacob, B., Kligys, S., Chen, B., Zhu, M., Tang, M., Howard, A.G., Adam,
H., Kalenichenko, D.: Quantization and training of neural networks for efficient integer-arithmetic-only inference. 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2704–2713 (2017)
[22] Courbariaux, M., Bengio, Y., David, J.-P.: Binaryconnect: training deep neural networks with binary weights during propagations. In: Proceedings of the 29th International Conference on Neural Information Processing Systems - Volume 2. NIPS'15, pp. 3123–3131. MIT Press, Cambridge, MA, USA (2015)
[23] Rastegari, M., Ordonez, V., Redmon, J., Farhadi, A.: Xnor-net: Imagenet classification using binary convolutional neural networks. In: Leibe, B., Matas, J., Sebe, N., Welling, M. (eds.) Computer Vision – ECCV 2016, pp. 525–542. Springer, Cham (2016)
[24] Liu, B., Li, F., Wang, X., Zhang, B., Yan, J.: Ternary weight networks. In: ICASSP 2023 - 2023 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 1–5 (2023). https://doi.org/10.1109/ICASSP49357.2023.10094626
[25] Wang, H., Ma, S., Ma, L., Wang, L., Wang, W., Dong, L., Huang, S., Wang, H., Xue, J., Wang, R., Wu, Y., Wei, F.: Bitnet: 1-bit pre-training for large language models. Journal of Machine Learning Research 26(125), 1–29 (2025)
[26] Chen, Z., Ahsan, F., Chakrabartty, S., Leugering, J., Cauwenberghs, G.: Estimation of energy-dissipation lower bounds for neuromorphic learning in memory. Phys. Rev. E 113, 035311 (2026) https://doi.org/10.1103/497f-nt8h
[27] Li, E., Zhou, Z., Chen, X.: Edge intelligence: On-demand deep learning model co-inference with device-edge synergy. In: Proceedings of the 2018 Workshop on Mobile Edge Communications. MECOMM'18, pp. 31–36. Association for Computing Machinery, New York, NY, USA (2018). https://doi.org/10.1145/3229556.3229562. https://doi.org/10.1145/3229556.3229562
[28] Abrar, M., Ajmal, U., Almohaimeed, Z.M., Gui, X., Akram, R., Masroor, R.: Energy efficient uav-enabled mobile edge computing for iot devices: A review. IEEE Access 9, 127779–127798 (2021) https://doi.org/10.1109/ACCESS.2021.3112104
[29] Sunny, F.P., Mirza, A., Nikdast, M., Pasricha, S.: Robin: A robust optical binary neural network accelerator. ACM Transactions on Embedded Computing Systems (TECS) 20(5s), 1–24 (2021)
[30] Andri, R., Cavigelli, L., Rossi, D., Benini, L.: Yodann: An ultra-low power convolutional neural network accelerator based on binary weights. In: 2016 IEEE Computer Society Annual Symposium on VLSI (ISVLSI), pp. 236–241 (2016). IEEE
[31] Conti, F., Schiavone, P.D., Benini, L.: Xnor neural engine: A hardware accelerator ip for 21.6-fj/op binary neural network inference. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems 37(11), 2940–2951 (2018)
[32] Vo, Q.H., Le, N.L., Asim, F., Kim, L.-W., Hong, C.S.: A deep learning accelerator based on a streaming architecture for binary neural networks. IEEE Access 10, 21141–21159 (2022)
[33] Shen, M., Liang, F., Gong, R., Li, Y., Li, C., Lin, C., Yu, F., Yan, J., Ouyang, W.: Once Quantization-Aware Training: High Performance Extremely Low-bit Architecture Search. In: 2021 IEEE/CVF International Conference on Computer Vision (ICCV), pp. 5320–5329. IEEE Computer Society, Los Alamitos, CA, USA (2021). https://doi.org/10.1109/ICCV48922.2021.00529
[34] Krishnamoorthi, R.: Quantizing deep convolutional networks for efficient inference: A whitepaper (2018). https://arxiv.org/abs/1806.08342
[35] Kirkpatrick, S., Gelatt, C.D., Vecchi, M.P.: Optimization by simulated annealing. Science 220(4598), 671–680 (1983) https://doi.org/10.1126/science.220.4598.671
[36] Bengio, Y., Léonard, N., Courville, A.C.: Estimating or propagating gradients through stochastic neurons for conditional computation. ArXiv abs/1308.3432 (2013)
[37] Neftci, E.O., Mostafa, H., Zenke, F.: Surrogate gradient learning in spiking neural networks: Bringing the power of gradient-based optimization to spiking neural networks. IEEE Signal Processing Magazine 36, 51–63 (2019)
[38] Hubara, I., Courbariaux, M., Soudry, D., El-Yaniv, R., Bengio, Y.: Binarized neural networks. In: Proceedings of the 30th International Conference on Neural Information Processing Systems. NIPS'16, pp. 4114–4122. Curran Associates Inc., Red Hook, NY, USA (2016)
[39] Kingma, D.P., Ba, J.: Adam: A Method for Stochastic Optimization (2017). https://arxiv.org/abs/1412.6980
[40] Zhu, R.-J., Zhang, Y., Sifferman, E., Sheaves, T., Wang, Y., Richmond, D., Zhou, P., Eshraghian, J.K.: Scalable matmul-free language modeling. arXiv preprint arXiv:2406.02528 (2024)
[41] Liu, Z., Shen, Z., Savvides, M., Cheng, K.-T.: Reactnet: Towards precise binary neural network with generalized activation functions. In: Computer Vision – ECCV 2020: 16th European Conference, Glasgow, UK, August 23–28, 2020, Proceedings, Part XIV, pp. 143–159. Springer, Berlin, Heidelberg (2020). https://doi.org/10.1007/978-3-030-58568-6_9
[42] Martínez, B., Yang, J., Bulat, A., Tzimiropoulos, G.: Training binary neural networks with real-to-binary convolutions. ArXiv abs/2003.11535 (2020)
[43] Qin, H., Gong, R., Liu, X., Shen, M., Wei, Z., Yu, F., Song, J.: Forward and backward information retention for accurate binary neural networks. 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2247–2256 (2019)
[44] Liu, Z., Wu, B., Luo, W., Yang, X., Liu, W., Cheng, K.-T.: Bi-real net: Enhancing the performance of 1-bit cnns with improved representational capability and advanced training algorithm, pp. 747–763. Springer, Berlin, Heidelberg (2018)
[45] Derrida, B.: Random-energy model: An exactly solvable model of disordered systems. Phys. Rev. B 24, 2613–2626 (1981) https://doi.org/10.1103/PhysRevB.24.2613
[46] Stariolo, D.A., Cugliandolo, L.F.: Barriers, trapping times, and overlaps between local minima in the dynamics of the disordered ising p-spin model. Phys. Rev. E 102, 022126 (2020) https://doi.org/10.1103/PhysRevE.102.022126
[47] Chakrabartty, S., Shaga, R.K., Aono, K.: Noise-shaping gradient descent-based online adaptation algorithms for digital calibration of analog circuits. IEEE Transactions on Neural Networks and Learning Systems 24(4), 554–565 (2013) https://doi.org/10.1109/TNNLS.2012.2236572
[48] Candy, J.C., Temes, G.C.: Oversampling methods for data conversion. In: [1991] IEEE Pacific Rim Conference on Communications, Computers and Signal Processing Conference Proceedings, pp. 498–5022 (1991). https://doi.org/10.1109/PACRIM.1991.160785
[49] Qin, H., Gong, R., Liu, X., Bai, X., Song, J., Sebe, N.: Binary neural networks: A survey. Pattern Recognition 105, 107281 (2020) https://doi.org/10.1016/j.patcog.2020.107281
[50] Baldassi, C., Pittorino, F., Zecchina, R.: Shaping the learning landscape in neural networks around wide flat minima. Proceedings of the National Academy of Sciences 117(1), 161–170 (2020) https://doi.org/10.1073/pnas.1908636117 https://www.pnas.org/doi/pdf/10.1073/pnas.1908636117
[51] Zhou, H., Ashrafi, A., Blaschko, M.B.: Combinatorial optimization for low bit-width neural networks (2022). https://arxiv.org/abs/2206.02006
[52] Hajek, B.: Cooling schedules for optimal annealing. Mathematics of Operations Research 13(2), 311–329 (1988). Accessed 2024-04-11
[53] Geman, S., Geman, D.: Stochastic relaxation, gibbs distributions, and the bayesian restoration of images. IEEE Transactions on pattern analysis and machine intelligence (6), 721–741 (1984)
[54] Hayes, T.L., Kafle, K., Shrestha, R., Acharya, M., Kanan, C.: Remind your neural network to prevent catastrophic forgetting. In: Computer Vision – ECCV 2020: 16th European Conference, Glasgow, UK, August 23–28, 2020, Proceedings, Part VIII, pp. 466–483. Springer, Berlin, Heidelberg (2020). https://doi.org/10.1007/978-3-030-58598-3_28
[55] Hayes, T.L., Kanan, C.: Online continual learning for embedded devices. ArXiv abs/2203.10681 (2022)
[56] Pellegrini, L., Graffieti, G., Lomonaco, V., Maltoni, D.: Latent Replay for Real-Time Continual Learning (2020). https://arxiv.org/abs/1912.01100
[57] Lin, J., Zhu, L., Chen, W.-M., Wang, W.-C., Gan, C., Han, S.: On-Device Training Under 256KB Memory (2024). https://arxiv.org/abs/2206.15472
[58] Cai, H., Gan, C., Zhu, L., Han, S.: Tinytl: Reduce memory, not parameters for efficient on-device learning. In: Larochelle, H., Ranzato, M., Hadsell, R., Balcan, M.F., Lin, H. (eds.) Advances in Neural Information Processing Systems, vol. 33, pp. 11285–11297. Curran Associates, Inc., Red Hook, NY, USA (2020)
[59] Lin, J., Chen, W.-M., Lin, Y., Cohn, J., Gan, C., Han, S.: Mcunet: tiny deep learning on iot devices. In: Proceedings of the 34th International Conference on Neural Information Processing Systems. NIPS '20. Curran Associates Inc., Red Hook, NY, USA (2020)
[60] Horowitz, M.: 1.1 computing's energy problem (and what we can do about it). In: 2014 IEEE International Solid-State Circuits Conference Digest of Technical Papers (ISSCC), pp. 10–14 (2014). https://doi.org/10.1109/ISSCC.2014.6757323
[61] Szu, H., Hartley, R.: Fast simulated annealing. Physics Letters A 122(3), 157–162 (1987) https://doi.org/10.1016/0375-9601(87)90796-1
[62] Nøkland, A.: Direct feedback alignment provides learning in deep neural networks. In: Proceedings of the 30th International Conference on Neural Information Processing Systems. NIPS'16, pp. 1045–1053. Curran Associates Inc., Red Hook, NY, USA (2016)
[63] Spall, J.C.: Implementation of the simultaneous perturbation algorithm for stochastic optimization. IEEE Transactions on Aerospace and Electronic Systems 34(3), 817–823 (1998) https://doi.org/10.1109/7.705889
[64] O'Donnell, R.: Analysis of Boolean Functions. Cambridge University Press, New York, NY, USA (2014). https://doi.org/10.1017/cbo9781139814782. http://dx.doi.org/10.1017/CBO9781139814782
[65] Hopfield, J.J.: Neural networks and physical systems with emergent collective computational abilities. Proceedings of the National Academy of Sciences 79(8), 2554–2558 (1982) https://doi.org/10.1073/pnas.79.8.2554 https://www.pnas.org/doi/pdf/10.1073/pnas.79.8.2554
[66] Hopfield, J.J.: Neurons with graded response have collective computational properties like those of two-state neurons. Proceedings of the National Academy of Sciences 81(10), 3088–3092 (1984) https://doi.org/10.1073/pnas.81.10.3088 https://www.pnas.org/doi/pdf/10.1073/pnas.81.10.3088
[67] Friedrich, R.W., Laurent, G.: Dynamic optimization of odor representations by slow temporal patterning of mitral cell activity. Science 291(5505), 889–894 (2001)
[68] Stopfer, M., Jayaraman, V., Laurent, G.: Intensity versus identity coding in an olfactory system. Neuron 39(6), 991–1004 (2003)
[69] Gangopadhyay, A., Chakrabartty, S.: A sparsity-driven backpropagation-less learning framework using populations of spiking growth transform neurons. Frontiers in neuroscience 15, 715451 (2021)