A research team at the Institute of Physics, Chinese Academy of Sciences, and collaborators has developed a method that computes powers with rational exponents by adjusting a nanomagnet's switching probability during operation, with no per-device calibration beforehand. They demonstrated it with measured data. Even magnetic devices of the same design vary in the voltage needed to switch magnetization with a given probability. Instead of preparing a voltage-to-switching-probability table for each device, the team adopted a scheme that feeds the switching results back to adjust the next write voltage.

The peer-reviewed paper, by Shilong Xiong, Caihua Wan, Xiufeng Han and colleagues, was published online in the journal Applied Physics Reviews on November 2, 2026. The Institute of Physics and the Chinese Academy of Sciences announced the findings on November 23.

AD

Controlling a nanomagnet's switching probability with voltage

The team used a three-terminal spin-orbit-torque magnetic tunnel junction (SOT-MTJ) with a tungsten write channel and an elliptical junction of about 300 nm × 100 nm. Even with zero external magnetic field, near the switching threshold the magnetization of the magnetic layer flips stochastically, driven by the write pulse and thermal fluctuations. Measured at room temperature, the junction's resistance was about 36 kΩ in the parallel magnetization state and about 100 kΩ in the antiparallel state. After resetting the device and applying a 50 ns write pulse, reading out the resistance records whether the magnetization switched as a single bit.

Across 25 devices of the same design, the voltage at which the switching probability reaches 50% ranged from 1.603 to 2.236 V. The steepness of the probability change with voltage also varied: the slope parameter obtained by curve fitting ranged from 3.595 to 11.818 V⁻¹. Conventionally, one would measure each device's voltage–probability relationship in advance and build a table to select the voltage for a target probability. The new scheme omits this pre-calibration by adjusting the next write voltage according to whether switching occurred.

In stochastic computing, the probability of a 1 appearing in a bit stream is treated as a numerical value. Let the normalized input be () and the exponent's denominator be . The team ran trials at the same voltage; if all outcomes were 1, the voltage was lowered, and otherwise it was raised. The decrease equals the learning rate times , and the increase equals the learning rate times . If the frequency of all-1 outcomes falls below the target , the voltage rises on average; if it exceeds , the voltage falls.

Assume the device operates in a range where switching probability rises with write voltage, and that the target probability is reachable within the allowed voltage. If trials near the stable operating point are further assumed to be independent, then with a single-trial switching probability , the probability that magnetization switches in all trials is . In the model, the condition for the average voltage change to be zero is:

The switching probability therefore approaches:

Letting be the numerator of the exponent and counting how often bits are all 1, the desired power can be estimated.

Five powers from a single bit stream

For three representative operations, the initial voltage was set to 0 V and the learning rate to 50 mV, with 1,500 bits of measured data acquired per operation. In computing , the estimate approached the theoretical value after about 200 trials. Across the three operations, the maximum absolute difference between the point estimate and the theoretical value was 0.003 at the table's displayed precision.

Operation Point estimate from measured bit stream Theoretical value Approx. 95% confidence interval (block means)
0.351 0.354 0.323–0.382
0.793 0.794 0.774–0.813
0.127 0.125 0.093–0.165

The point estimates and confidence intervals in the table were obtained by digitally processing the acquired bit streams, excluding the initial portion before the voltage stabilized. For point estimates, the aggregation window was slid along the bit stream, using overlapping windows. For interval estimates, the post-stabilization bit stream was divided into non-overlapping blocks: 24 blocks of 50 bits for the first two operations and 12 blocks of 100 bits for the last. The confidence intervals in the table indicate the uncertainty of the estimates assuming sufficiently weak dependence between blocks, and all contain the theoretical values.

A distinctive feature of this scheme is that when the input value and the exponent's denominator are the same, the switching probability set by feedback control is also the same. The team fixed the input at 0.5 and the denominator at 3, varied the numerator from 1 to 5, and obtained five powers from the same bit stream generated by one device.

Simply by changing the number of bits aggregated for each operation, multiple results can be estimated while sharing the device that generates the stochastic bit stream and the voltage-control circuit.

AD

Preserving shadow detail in a 4-bit image

As an application example, the team applied gamma correction to an 8-bit grayscale image of a flower. For the value with pixel values normalized to the range 0–1, they performed the following transformation:

This transformation allocates a wider range of tone levels to dark regions before quantizing to 4 bits. Compared with 4-bit linear quantization, which divides the original tones at equal intervals, it better preserved contours and texture in dark areas. In the experiment, the gamma-corrected value for each input tone level was obtained from the measured bit stream and applied to all pixels sharing that tone level.

For the accuracy of the gamma transformation itself, the team compared the image before final 4-bit quantization against one transformed by the theoretical formula. Using peak signal-to-noise ratio (PSNR) as the metric, the measured bit streams from about 1,000 trials yielded a PSNR of about 35 dB.

In an evaluation that includes the effect of 4-bit quantization, the restored image after decoding and inverse gamma transformation was compared with the original. The mean absolute errors over tone values 0–255 were as follows:

Quantization method Mean absolute error
Linear quantization 29.05
Quantization with gamma correction by theoretical formula 17.44
Quantization with gamma correction from measured bit streams 15.10

For this image, the method using measured bit streams showed a smaller error than gamma correction by the theoretical formula. The authors explain that the combination of the image's tone distribution and the quantization intervals may have influenced this result.

How well it handles device variation and environmental change

To examine adaptability to environmental change during operation, the team applied a 5 Oe external magnetic field at the 500th trial, shifting the device's switching probability. Feedback control adjusted the write voltage, and the system moved to a new operating point within a few dozen updates. What was verified on real hardware was the response to this magnetic-field change; handling of temperature variation and aging remains a subject for future validation.

The tolerance to device-to-device variation was simulated using the averages of the measured parameters from the 25 devices as a baseline. The mean voltage for 50% switching probability was 1.881 V, and the slope parameter was 7.543 V⁻¹. Each parameter was varied in 5% steps within ±90% of its mean, and all combinations were evaluated. The initial voltage was 0 V, the drive voltage was limited to ±3.5 V, and results were compared with the theoretical gamma-correction results for the same input tone values.

The PSNR of about 35 dB obtained with gamma correction from measured bit streams and the 34.83 dB shown in Fig. 4(e) of the paper were evaluated under different conditions. The former is an evaluation using measured bit streams from about 1,000 trials; the latter is the average PSNR in simulations using the mean of the 25 devices' measured parameters.

The announcements from the Institute of Physics and the Chinese Academy of Sciences present the 34.83 dB figure in connection with the 25 devices and ±90% parameter variation, and Tech Xplore carried a similar description in an article provided by the Chinese Academy of Sciences. However, PSNR in simulations using each of the 25 devices' measured parameters ranged from 31.75 to 36.83 dB, and across all combinations examined within ±90%, it ranged from 4.61 to 37.51 dB, a large difference depending on conditions.

Under conditions where the voltage for 50% switching probability is high and the switching probability changes gradually, the voltage required to reach some target probabilities exceeded the +3.5 V upper limit. When the voltage hits the limit, the switching probability cannot be matched to the target, and PSNR drops. In addition, some of the voltages used in the simulation fall outside the measured range of 0.9–3.0 V and therefore involve extrapolation from measured data.

AD

Computational cost of omitting pre-calibration

A fixed transformation of a 4-bit input can be implemented with a 16-entry lookup table. The authors see an advantage in the new scheme when the input bit width is large or when multiple transformations are applied to the same input. While the probability source and voltage-control circuit can be shared, circuits are still needed to tally bits and hold results for each operation.

In addition to the trials needed for feedback control to approach the target switching probability, further trials are needed to estimate the result from that probability. Because the voltage update step and the number of bits are finite, fluctuations remain in the switching probability and the estimates. Using more bits for estimation improves accuracy, but because reset, readout, and feedback control are repeated in addition to writing, processing time and energy consumption increase. How to incorporate into the circuit the deterministic operation required when the input is 0 or 1 is also an implementation challenge.

At present, no replication by an independent research team can be confirmed from public information. Going forward, in addition to validation on multiple images and production-scale device arrays, evaluating processing speed, power consumption, and circuit area including peripheral circuits will be needed to identify applications where the benefits of omitting pre-calibration and sharing the probability source outweigh the cost of repeated trials.