Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Alder, Nicolas, Kajale, Shivam Nitin, Tunsiricharoengul, Milin, Sarkar, Deblina, Herbrich, Ralf
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:https://arxiv.org/abs/2501.00015
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866909445682888704
author Alder, Nicolas
Kajale, Shivam Nitin
Tunsiricharoengul, Milin
Sarkar, Deblina
Herbrich, Ralf
author_facet Alder, Nicolas
Kajale, Shivam Nitin
Tunsiricharoengul, Milin
Sarkar, Deblina
Herbrich, Ralf
contents (Pseudo)random sampling, a costly yet widely used method in (probabilistic) machine learning and Markov Chain Monte Carlo algorithms, remains unfeasible on a truly large scale due to unmet computational requirements. We introduce an energy-efficient algorithm for uniform Float16 sampling, utilizing a room-temperature stochastic magnetic tunnel junction device to generate truly random floating-point numbers. By avoiding expensive symbolic computation and mapping physical phenomena directly to the statistical properties of the floating-point format and uniform distribution, our approach achieves a higher level of energy efficiency than the state-of-the-art Mersenne-Twister algorithm by a minimum factor of 9721 and an improvement factor of 5649 compared to the more energy-efficient PCG algorithm. Building on this sampling technique and hardware framework, we decompose arbitrary distributions into many non-overlapping approximative uniform distributions along with convolution and prior-likelihood operations, which allows us to sample from any 1D distribution without closed-form solutions. We provide measurements of the potential accumulated approximation errors, demonstrating the effectiveness of our method.
format Preprint
id arxiv_https___arxiv_org_abs_2501_00015
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Energy-Efficient Sampling Using Stochastic Magnetic Tunnel Junctions
Alder, Nicolas
Kajale, Shivam Nitin
Tunsiricharoengul, Milin
Sarkar, Deblina
Herbrich, Ralf
Computational Physics
Machine Learning
Computation
(Pseudo)random sampling, a costly yet widely used method in (probabilistic) machine learning and Markov Chain Monte Carlo algorithms, remains unfeasible on a truly large scale due to unmet computational requirements. We introduce an energy-efficient algorithm for uniform Float16 sampling, utilizing a room-temperature stochastic magnetic tunnel junction device to generate truly random floating-point numbers. By avoiding expensive symbolic computation and mapping physical phenomena directly to the statistical properties of the floating-point format and uniform distribution, our approach achieves a higher level of energy efficiency than the state-of-the-art Mersenne-Twister algorithm by a minimum factor of 9721 and an improvement factor of 5649 compared to the more energy-efficient PCG algorithm. Building on this sampling technique and hardware framework, we decompose arbitrary distributions into many non-overlapping approximative uniform distributions along with convolution and prior-likelihood operations, which allows us to sample from any 1D distribution without closed-form solutions. We provide measurements of the potential accumulated approximation errors, demonstrating the effectiveness of our method.
title Energy-Efficient Sampling Using Stochastic Magnetic Tunnel Junctions
topic Computational Physics
Machine Learning
Computation
url https://arxiv.org/abs/2501.00015