How Noise Improves Computing

Поділитися
Вставка
  • Опубліковано 12 кві 2024
  • Check out courses in coding, math, science, and more on Brilliant. First 30 days are free and 20% off the annual premium subscription when you use our link ➜ brilliant.org/sabine.
    It sounds weird, but randomness can actually improve computer calculations, in certain circumstances. After some digging into the reasons why, I’ve uncovered three different ways this can happen. The first one is noisy computation, then there’s stochastic computation, and then there’s probabilistic computation. What exactly are the differences and how do they help computation? Let’s have a look.
    🤓 Check out my new quiz app ➜ quizwithit.com/
    💌 Support me on Donatebox ➜ donorbox.org/swtg
    📝 Transcripts and written news on Substack ➜ sciencewtg.substack.com/
    👉 Transcript with links to references on Patreon ➜ / sabine
    📩 Free weekly science newsletter ➜ sabinehossenfelder.com/newsle...
    👂 Audio only podcast ➜ open.spotify.com/show/0MkNfXl...
    🔗 Join this channel to get access to perks ➜
    / @sabinehossenfelder
    🖼️ On instagram ➜ / sciencewtg
    #science #sciencenews #technews #technology
  • Наука та технологія

КОМЕНТАРІ • 389

  • @victorkrawchuk9141
    @victorkrawchuk9141 Місяць тому +366

    As a heavy metal fan I'm glad that noise is finally getting the attention and respect it deserves.

    • @brb__bathroom
      @brb__bathroom Місяць тому +10

      I am gonna blast my speakers with speedcore, gonna scare that CPU into overdrive

    • @TLguitar
      @TLguitar Місяць тому +5

      Perhaps you mean _"grindcore_ fan".

    • @quatore-5886
      @quatore-5886 Місяць тому

      Thanks Mr clever

    • @johnkeck
      @johnkeck Місяць тому +2

      Not the admission I’d expect from a fan

    • @epapanak
      @epapanak Місяць тому

      I have calculated that moving to renewables it is much cheaper to 100% finance Greek families acquiring zero cost renewable energy(sun,air, battery), than the Government giving subsidies, tax breaks and costs of improvement of the electric grid.
      This finding changes the present approach to funding , and promotes the transfer from fossil to renewables.
      I have been writing letters to the President of the European Commission, to the Greek Prime Minister and others , arguing and presenting the savings with numbers and data.
      Additionally, the management, resilience and security of the electric grid will be much better with this approach
      The social impact of financing the citizens for acquiring renewable energy (sun,air, battery) will be enormous in the abundant production of goods and freedom of the citizens.
      Could I kindly ask you to, please consider, explore and present this approach.
      😊

  • @imikla
    @imikla Місяць тому +90

    I built a hardware random number generator in the 70s by reverse biasing a germanium transistor to it's breakdown voltage. I used the resulting white noise to make random 1s and 0s that were constantly flowing through a shift register. When you pressed a button, it would use the random bits in the shift register and a bit of logic to present a number on a 7-segment display. The random number would be between 1 and 6. A true random die. Got an A+ in my 9th grade science class for designing and building it. That was a lot more than ten years ago.

    • @maverick9708
      @maverick9708 Місяць тому +5

      I don't know if you still have any of the schematics or pictures, but I recently started dabbling in electronics and designing circuits myself so I'm thinking about wanting to try building something similar.
      Sounds like a great time :)

    • @imikla
      @imikla Місяць тому +5

      @@maverick9708 I wish I did, I don't have the die anymore either. Sold it in desperate times. But I pretty much have what I did in my head. It's on my list of things to recreate from the past for my other channel (which would be rude of me to mention here).

    • @TooSlowTube
      @TooSlowTube Місяць тому

      @@maverick9708 There are a lot of schematics and partial schematics for analog synthesizers available online (electronic musical instruments, in case the context is unclear).
      There are two main types of noise generator circuit that have been used. One uses a simple device like a transistor as the main element, making a true random source (but subject to electromagnetic interference). The other uses a shift register starting from a known state, but producing a usefully long pseudo random sequence, by feeding the output back to different stages of the shift register - for example look at the circuit for the TR-909’s noise generator.
      Both types are meant to produce audio noise, but they can just as easily be used to produce a random or pseudo random one bit number. You might need a comparator circuit (e.g. op amp based), to get a binary value from the transistor based one, which you can also use to change the probability of getting a 1 or a 0, by changing the threshold voltage.

    • @axle.student
      @axle.student Місяць тому +4

      That's way kool. P.S. I was doing that wiz kid stuff back in the day too. Had way heaps of fun, except for the beatings for being a geek, that wasn't fun.

    • @ShonMardani
      @ShonMardani Місяць тому

      There is no use of random generation in computer science except to generate unique id / key. Generating random values in all other applications is because of lack of real data. There is no other use of randomization in science or technology. If we depend on, or reference to randomization, we are faking since it will not be reproducible.

  • @johngiraldi1150
    @johngiraldi1150 Місяць тому +69

    As a computer engineer at IBM (1977-1983) we used "simulated annealing" techniques on our next flagship mainframe for chip/circuit placement at many packaging levels to minimize power requirements, eliminate wiring bottlenecks and to maximize processor speed.

    • @kensho123456
      @kensho123456 Місяць тому

      I wish you lot would stop using stupid prentious names for these things....enough already begorrah.

    • @0MoTheG
      @0MoTheG Місяць тому

      I experimented with that too for placing. You still have to define a cost, potential function, not easy.
      I never got useful results.

    • @joshuascholar3220
      @joshuascholar3220 Місяць тому

      I've used it to find and optimize nonstandard kinds of filters for sound processing. It worked very well. Note that if the filter had been based on common form then I could have used an already known formula to make it instead of using an optimizer.

  • @lujoconnor
    @lujoconnor Місяць тому +81

    Something very much like the "truth probabilities" trick, which I hadn't heard of, is widely used in computational linear algebra, where it is often possible to approximate difficult matrix computations with the help of random vectors.

    • @matthewcahill4475
      @matthewcahill4475 Місяць тому +5

      Yeah aerodynamics calculations use that, the solutions are too large to directly calculate so a psuedo random Jacobian iteration is used

    • @ShonMardani
      @ShonMardani Місяць тому

      There is no use of random generation in computer science except to generate unique id / key. Generating random values in all other applications is because of lack of real data. There is no other use of randomization in science or technology. If we depend on, or reference to randomization, we are faking since it will not be reproducible.

  • @gregorseidel8203
    @gregorseidel8203 Місяць тому +6

    Not to mention that mini-batch gradient descent, a variant of stochastic gradient descent, is the current standard for training artificial neural networks. Just to nitpick: according to the Tokyo university paper, the annealing processor system used roughly 100 seconds rather than 1000 (8:37). The caption is correct.

  • @super8hell
    @super8hell Місяць тому +9

    There's an idea percolating in the neuroscience for years that stochastic resonance also exists in neuronal processing. Claims suggest that internal (brain) noise enhances a sensory target detection among environmental noise. Interesting idea that captured my attention for a while, difficult to capture though.

  • @kurtiserikson7334
    @kurtiserikson7334 Місяць тому +34

    Efficiency from chaos. I love the irony. That’s the excuse I’ll use the next time my wife complains about my messy desk.

    • @almightysapling
      @almightysapling Місяць тому +1

      You need to keep a variety of tools in level 1 cache.

    • @imho4556
      @imho4556 Місяць тому +2

      It's not irony. It's a higher and more general level of efficiency. Would there be e. g. life on earth without it?
      BTW: Be careful not to create life on your desk 😉

    • @kurtiserikson7334
      @kurtiserikson7334 Місяць тому +3

      @@imho4556
      Definition of irony: An outcome that is opposite of what you would expect. Chaos is not generally associated with the idea of efficiency. It provides efficiency in this context when developing a program that needs random numbers since there is no formula for generating random numbers which is why lottery numbers are generated by numbered ping pong balls. Chaos is a component of nature and economics and is therefore necessary when modeling natural systems.
      It doesn’t matter if the irony has a rational explanation, all irony does, it just has to be counter intuitive like a criminal who has been in and out of jail and ends up becoming a prosecutor or the chief of police. It’s possible, but contrary to conventional expectation.

    • @UnderscoreZeroLP
      @UnderscoreZeroLP Місяць тому +3

      @@kurtiserikson7334autism vs autism

  • @johnl4885
    @johnl4885 Місяць тому +7

    Tim Palmer's excellent book, "The Primacy of Doubt," gives several examples of chaos geometry that shows how randomness actually enhances computational results for Lorentz systems. BTW Sabine reviewed this book and gave it a nice accolade on the backside of the dust sleeve.

  • @burakgursoy1388
    @burakgursoy1388 Місяць тому +29

    2:44: Sarcastic computing

    • @seriousmaran9414
      @seriousmaran9414 Місяць тому +1

      I think you can easily add sarcastic physics to that.

  • @darthmoomoo
    @darthmoomoo Місяць тому +5

    One big application of randomness is in Monte-Carlo simulations. This is used to ascertain effects of parameter uncertainties in highly complex systems. E.g. spacecraft algorithms are frequently validated using Monte-Carlo sims where the various spacecraft parameters are randomly scattered based on the uncertainty in their values.

  • @MrAlanCristhian
    @MrAlanCristhian Місяць тому +16

    3:50 Even ChatGPT isn't safe from Sabine 🤣

    • @tarmaque
      @tarmaque Місяць тому +1

      I think a Turing test between ChatGPT and Sabine would be fascinating.

    • @Kenjuudo
      @Kenjuudo Місяць тому +3

      @@tarmaque ChatGPT would start questioning its free will.

    • @tarmaque
      @tarmaque Місяць тому +2

      @@Kenjuudo According to Sabine, free will is an illusion. So... Yeah.

  • @davidtucker1555
    @davidtucker1555 Місяць тому +5

    I have two favorite uses of randomness.
    The first is in down sampling an image. Say you want to reduce the resolution by a factor of 64. You would normally go through the source image in blocs of 64x64 and average them to compute a pixel on the destination image. However you can just randomly sample a few pixels in the source region and average those for a much faster process, that does not suffer from bad aliasing.
    The other is in trying to digitize a weak analog signal. Say you have an analog sine wave that fluctuates between 1 and 2. The digital signal will be a simple square wave that is 1 for half the time and 2 for the other half of the time. But by injecting randomness into the source signal, you end up with a signal that randomly goes from 1 to 2 based roughly on the gain of the source signal. You end up capturing the signal with more fidelity as a pulse code modulated output.

  • @JouMxyzptlk
    @JouMxyzptlk Місяць тому +5

    3:42 Video error: Should be "50%: either 01 or 10".
    Which proves: I watched it :D

    • @Irondragon1945
      @Irondragon1945 Місяць тому +3

      i was wondering why nobody else pointed it out lol

    • @JouMxyzptlk
      @JouMxyzptlk Місяць тому +1

      @@Irondragon1945 Believe me, I was wondering the same since that video was a few hours up when I watched it.

  • @drkcobra
    @drkcobra Місяць тому +21

    I would be less afraid of this machine wanting to be called Hal than if it told me, "I'm sorry Dave, I'm afraid I can't do that."

  • @lorensims4846
    @lorensims4846 Місяць тому +9

    I used noise for years in Photoshop filters. Often it's just the right je ne sais quoi to help sharpen OR blur a specific part of an image just right, and for MANY other uses.
    I've also been long fascinated by the phenomenon of undertones and overtones caused by resonances between two different tones.
    Back in the old days, we would get pseudorandom numbers by arbitrarily sampling a timer or sound generator.
    It can be quite difficult to come up with truly random numbers because there seems to be some sort of pattern to almost any source of data you choose.

  • @aaronmicalowe
    @aaronmicalowe Місяць тому +38

    This method has been in use for much longer than 10 years. Back in the 80s, my Amiga had such a device. It worked like this. The scan line on the monitor was faster than the device measuring it, leading to an error that was exploited. This error was used as a random seed to generate genuine random numbers. Even my ZX81 uses something similar and it was made in 1981 (hence the name).

    • @jonwesick2844
      @jonwesick2844 Місяць тому +2

      Back in the 90s, a company called NOMOS used simulated annealing to plan radiation treatment.

    • @imikla
      @imikla Місяць тому +6

      Agree. I built a hardware random number generator in the 70s by reverse biasing a germanium transistor to produce white noise that I used to make a constant stream of random bits.

    • @float32
      @float32 Місяць тому +1

      @@imiklasome Intel processors (and probably others) have this built in as “true” random number generators.

    • @aaronmicalowe
      @aaronmicalowe Місяць тому +2

      @@imikla The funny thing is, when trying to get ordered output, we sometimes end up accidently creating random noise. 🤷‍♂

    • @EinsteinsHair
      @EinsteinsHair Місяць тому +8

      Wish I could remember the details better. I wanted to get a pair of random 0s or 1s on the ZX81, so 00, 01, 10, or 11. I found that the probabilities were not exactly 1/4 for each, but if I ran it a large number of times, there was always a very slight bias for the numbers to be the same, 00 or 11. It wasn't by much.
      Really enjoyed the Timex Sinclair version of BASIC, though.

  • @MrKelaher
    @MrKelaher Місяць тому +1

    Fun current use to me - stable diffusion image AI starts from a random noise image, it reduces the number of generations needed to get a "good" image.

  •  Місяць тому +2

    I worked for a company (Nanoteq, SA) in 1998 that made a computer card that used white noise from an antenna to generate random number when it does hardware encryption of transactional data on the fly. It was very successful and even Commerce Bank (DE) used it back then.

  • @theophrastusbomblastus821
    @theophrastusbomblastus821 Місяць тому +2

    IMO, perhaps Sabine's best video to date. Incredibly important concepts presented here. If you watch it once, watch it three times. Keep in mind anything humans have done, nature did a long time ago, so these concepts have value to all disciplines of science. Also, any video that mentions stochastic in the proper context (ie, without being stupid as hell), is a good thing, a very good thing indeed.

  • @mingto7753
    @mingto7753 Місяць тому +3

    Thanks, Sabine. Your talk took me down the winding memory lane of collaborative research efforts of UBC/Dr John A. Wheeler's Exxon tech memo on Random walk(2D Markov chain process)/ University of Calgary Geophysics dept PhD thesis on 3 D random walk/ University of Alberta, and of course D:Wave.

  • @SurfinScientist
    @SurfinScientist Місяць тому +2

    Sabine, you forgot one more class of computation: 4. Noise-driven computation, which uses noise to drive computation. An example is "Brownian circuits", which use Brownian motion to make signals search their way through a circuit so that a deterministic outcome is obtained. Another example is circuits in which the signals are noise sources or superpositions thereof like in quantum computing. There have been research on implementing Brownian circuits by Single Electron Tunneling circuits, as well as by spintronics based on skyrmions.

  • @bioxbiox
    @bioxbiox Місяць тому +2

    Proud researcher on applied Chaos theory. This video directly enters in my golden archive. Sabine is amazing, as always.

  • @iriscapes
    @iriscapes Місяць тому +1

    Many recent CPUs support the RDRAND and RDSEED instructions for returning random numbers from an on-chip hardware random number generator.
    Also, many SoCs that contain ARM CPU cores contain a HWRNG peripheral (/dev/hw_random).

  • @Ramkumar-uj9fo
    @Ramkumar-uj9fo Місяць тому +1

    Thank you for accepting random numbers. In neural networks they actually kill certain nodes at random to avoid overfitting. 🎉They told us that radioactivity was random in which we do not know what atom decays. The word noise implies that humans cannot make out the signal as per one interpretation if you look at things lile SETI. I often got the police walkie talkie on the noise in the TV as a kid.
    ---
    ChatGPT Verified
    Yes, dropout regularization randomly turns off nodes during training to prevent overfitting.

  • @ChanakyanStudent7971
    @ChanakyanStudent7971 Місяць тому +3

    I actually worked on a project for my networking course last year which involved using randomness for optimisation, but you might be well aware that it was all for research paper publishing rather than actually improving humanity. (Like 99% of research papers)

  • @user-uf4rx5ih3v
    @user-uf4rx5ih3v Місяць тому +2

    Sometimes, when an algorithm needs to make a choice but doesn't know how to make the most optimal one, making it at random is usually better, but the reason is unknown.

  • @timmccormack3930
    @timmccormack3930 Місяць тому +1

    A correction on pseudo-random number generators (PRNGs): They don't have to be very computationally intensive at all. The only requirement is that they algorithm be uncorrelated with how the output will be used. Their main problem is actually that they need to be "seeded" with an initial random number, and that's not feasible in some applications (such as in a computer on its first startup.) That's where true RNGs come in-a bit of hardware that is guaranteed to give a random value each time even though it can't keep notes about its internal state. (And generally you only use it to seed the PRNG.)

  • @aaronjennings8385
    @aaronjennings8385 Місяць тому +7

    I assume that stochastic and sarchastic mean similar things.
    That's why stochastic climate models are so super dee duper accurate.

  • @simonleung2130
    @simonleung2130 Місяць тому +2

    You can generate a random number with some math function and taking the decimal part.
    for example , you can take square root of the product of date time in msec and a random number generated by the computer, and then take the decimal parts , if you plot the results graphically , you will find that it looks liked a white noise.

  • @marcod53
    @marcod53 Місяць тому +12

    Hey, I'm an expert (kinda) in neural computation! Noise as computational strategy is super interesting. You'd think evolution would push us to strict logic, but brains are statistics machines and on a neural population level noise gives a much better representation of signal encoding than anything strict. Neat stuff

    • @user-vc5zt9ci12
      @user-vc5zt9ci12 Місяць тому +2

      Is this noise our perception of free choice?

    • @marcomoreno6748
      @marcomoreno6748 Місяць тому

      I'm working with some CA RC techniques right now.

    • @marcomoreno6748
      @marcomoreno6748 Місяць тому

      ​@@user-vc5zt9ci12 I would say the perception of free choice as well as sense of self breaks down upon examination techniques for example mindful meditation. Ironically, the sense of self isn't even subjectively real.

    • @karelberanek1007
      @karelberanek1007 Місяць тому +2

      Evolution depends on noise. Without noise it would fail to improve. You need population of members who are varying. And then apply fitness function to find the ones who are better than others. Without noise they would all be the same. All genetic algorithms, regardless whether applied by nature or a computer, require random noise. It also includes the decisions, not just biological functions. You want some people to go north while some others go south. You need some to fight, others to run. Etc.

    • @ErazerPT
      @ErazerPT Місяць тому

      @@user-vc5zt9ci12 your statement itself is the truth. "Perception of". You don't really have it as the "decision tree" is already in place, you're just running the "data" through it and getting a result. And it changes itself, so you don't even know what the result of running the same "data" again through it will be...

  • @Nostrudoomus
    @Nostrudoomus Місяць тому +1

    Thanks, I have long wondered if such things could be done!

  • @AnimusInvidious
    @AnimusInvidious Місяць тому

    Really enjoyed this analysis of the topic. Thank you, Sabine and team.

  • @jeffgriffith9692
    @jeffgriffith9692 Місяць тому +3

    So interesting - appreciate your insight!

  • @DouglasThom
    @DouglasThom Місяць тому +1

    I watched a video that explained how an electric current 'knew' which path was open and which shorted. If you then described a maze with electrical paths, it would solve it 'instantly'. I feel like this is along those lines.

  • @kenchilton
    @kenchilton Місяць тому

    From a computer science vantage, stochastic theory is in many ways the foundation of probability theory and simulated annealing. We also use it in some neural networks and genetic algorithms. What you present as stochastic computation, a simple stochastic matrix, is a very limited example of how varied the field is, and many of the later examples are still essentially stochastic computations behind the scenes. One of the other areas stochastic theory creates is the Markov process (and Markov chains) and Monte Carlo analysis.
    An area of research I am interested in relates to discerning the entropy of apparent noise. Any noise over a finite time has entropy and can be described with finite generators. There are interesting use cases from not only being able to create the generators, but also the processes that create the generators. This can lead to higher speed networks, higher quality processes, better cryptographic algorithms, and techniques to uncover counterfeit information, such as that generated by AI.

  • @daleamon2547
    @daleamon2547 Місяць тому +1

    That metal plate solution made me think of the Simulated Annealing algorithm, with volume as a stand in for the 'temperature'.

  • @blinkingmanchannel
    @blinkingmanchannel Місяць тому +6

    Wow! My first draft of this note was very badly written. I’ll try again:
    Great video here. I’m trying to catch up to what we know in physical chemistry (or maybe quantum chemistry) about how to bond CO2 in the reverse Krebs cycle. A long the way, I think I understand that molecular bonds are more than just the sum of the pairs of atoms. Somebody referred me to ‘supramolecular’ chemistry, for example. I gotta be honest: it’s starting to run together… But intuitively, I feel like this survey of random numbers being useful is kinda reminding me of the ways people describe electrons. In the video, there’s a comparison of sand finding stable points on a sheet of metal with vibrations running through it. That’s quite a good illustration. I immediately thought of how electrons work. I’m trying to find the current state of thinking about how chemistry works in mitochondria, but I don’t think I’ve got the right search terms yet. Please feel free to suggest. I’ll read anything at this point. I’m particularly interested in how we might replace haber-bosch for fertilizer production, or at least stop using methane for it.

    • @philipm3173
      @philipm3173 Місяць тому +1

      So the big shift that will help you is to abandon the idea that the electrons are within the bonds or being bonded. ❌

    • @blinkingmanchannel
      @blinkingmanchannel Місяць тому

      @@philipm3173 Thanks! This will sound a bit elementary but I’ve found “crash course” video channel on UA-cam.

    • @philipm3173
      @philipm3173 Місяць тому +1

      @@blinkingmanchannel Check out the video "How atoms REALLY make molecules."

    • @philipm3173
      @philipm3173 Місяць тому +1

      @@blinkingmanchannel and as for the Krebs cycle I recommend "the bumbling biochemist", I think I saw they just uploaded a video on TCA

    • @blinkingmanchannel
      @blinkingmanchannel Місяць тому

      @@philipm3173Thanks! I'll comment further once I've had a chance to see those.
      In the meantime: 😂 UA-cam decided I'd like to see videos related to "Breaking Bad" 😮😂 So I watched some. I see why it was so popular. And I'm glad we're done with the "shaky handheld" shot.

  • @MCsCreations
    @MCsCreations Місяць тому +4

    Randomness is highly used for games as well, Sabine. For card games, for example. 😊
    Stay safe there with your family! 🖖😊

  • @KipIngram
    @KipIngram Місяць тому

    The thing is, for most applications of "random" numbers, pseudo-random numbers are good enough, and computers are VERY good at producing those, in extremely large quantities. They're not "truly" random, because they are generated by algorithms, and repeating the algorithm with the same inputs will always produce exactly the same stream. But they do pass the primary standard tests for randomness in a sequence, so they can get the job done. For most simulation purposes I'd expect them to be fine.

  • @rand0mn0
    @rand0mn0 Місяць тому +1

    Loved those mysterious ChatGPT 'higher math' probability calcs. Here's a fun homework project: implement a spreadsheet to run on top of ChatGPT. Using the super-smart AI Chatbot mathematical powers, the results are sure to be unpredictable and entertaining for all! 🙃

  • @cheesedoodlefeeder
    @cheesedoodlefeeder Місяць тому

    Back in the day, we used noise to improve the accuracy of A/D converters. It was called "dithering"

  • @eonasjohn
    @eonasjohn Місяць тому +4

    Thank you for the video.

  • @david_porthouse
    @david_porthouse Місяць тому

    If we have some gas confined by a piston inside a cylinder, then we observe at once that the piston is heavier than the Planck mass. Model it with a bit of classical Brownian motion on the scale of the Heisenberg Uncertainty Principle, but replace this with the Fuerth Uncertainty Principle. Model gas molecules with a bit of Lucretian motion, which means random changes in direction but no change in kinetic energy. Any tendency to a Poincare cycle in the gas will be rapidly disrupted by all this randomness, and our model does not have any arrow of time issue.

  • @T1Oracle
    @T1Oracle Місяць тому

    As a software engineer, my primary use for randomness is security. Outside of that, I usually want pseudorandomness. Usually for things that are intended to be entertaining.

  • @maurasmith-mitsky762
    @maurasmith-mitsky762 Місяць тому +4

    Thanks!

  • @kurt7020
    @kurt7020 Місяць тому +1

    PRNGs - Strongly preferred!
    Easier to debug; Test can be seeded to be reproducible. They produce more even distributions for crypto work. Their security is testable and quantifiable. (See Yarrow, Fortuna, etc.) Much higher throughput with no pool exhaustion. That said, great vid! Cool to see options on the horizon.

    • @__christopher__
      @__christopher__ Місяць тому +1

      But for cryptographic applications you generally want to seed your cryptographic PRNG with a true RNG.

    • @kurt7020
      @kurt7020 Місяць тому

      @@__christopher__ Agreed!

  • @rlsmith6904
    @rlsmith6904 Місяць тому

    The Texas Instruments TI-58 was considered “powerful” at introduction in the 1980’s. The random number generator would repeat after ~1000 iterations. Not very random. But it would generate a solution if one recognized the RNG’s limitations. The tools have definitely gotten better.

  • @Warp9pnt9
    @Warp9pnt9 Місяць тому +3

    Hardware RNG cards have existed for 25+ years, not 10. I remember reading about them in the late 1990s and it seemed an established industry, just small and niche. FYI, "noise" algorithms can also be seeded by this RNG and generate 2D maps that can be interpreted as topographical information used in the procedural generation of video-game world terrain. I'm not sure how to utilize such techniques to generate randomness such as caves and spires or plateaus, though I suppose it's possible. Randomness helps keeps humans entertained as they jog on digital hamster wheels.

    • @mettaursp309
      @mettaursp309 Місяць тому +1

      Caves can be done with cellular automata on noise iteratively to create a sort of "surface tension" type effect joining neighbors & smoothing them out.
      Plateaus could be done with perlin noise & fractal perlin noise with a max() function to chop the tops of hills off.
      Spires could be done with weighted perlin noise, exaggerating the peaks & flattening the rest.
      Gradual steps & layers on any of the 3 could be done with an effect similar to cel shading, where you bias generated data points near certain ranges to clamp to a certain value, or be weighted to approach it faster.

  • @TheGingerjames123
    @TheGingerjames123 Місяць тому

    Each randomness generation has its implicit bias(no bias is itself a bias). I believe the closest we can get to a truely random must be an aggregate of all the techniques(the technique used for a specific problem would itself be chosen randomly which proposes a derivative regression problem but I digress). Its also worth considering if we are even asking the right question. Many physics data manifests as cyclical, it could be that chaotic dynamic systems are just a huge number of cyclical patterns laid over top each other, and true random is a ghost we've imagined to exist

  • @joshuascholar3220
    @joshuascholar3220 Місяць тому

    There are also algorithms that use some randomness for problems that aren't exactly optimization problems. For instance there are some linear problems whose solutions can be found much more efficiently with algorithms that use some randomness and converge on a solution rather than compute that solution directly.
    Another point is that simulated annealing is a useful kind of algorithm even on conventional computers using pseudo randomness rather than hardware random sources

    • @schmetterling4477
      @schmetterling4477 Місяць тому

      If you are using simulated annealing for optimization problems then you are at least 80 years old and you have stopped reading the literature over 40 years ago. There are much, much better modern algorithms for most such problems.

    • @joshuascholar3220
      @joshuascholar3220 Місяць тому

      @@schmetterling4477 well, I was using the library of routines from "Numerical Recipes in C".
      However I just saw an article mention linear solutions that can be found hundreds of times faster with an algorithm that has a little bit of randomness in it.
      That might be related to Avi Wigderson getting the 2023 Turing Award, I'm not sure. I guess that was 80 years ago.

  • @andygoldensixties4201
    @andygoldensixties4201 Місяць тому +1

    thank you for the video, noise is a very interesting subject for me. I wonder if my tinnitus is stochastic.

  • @eafindme
    @eafindme Місяць тому

    When I first proposed using random noise to do computing in 2020, especially for AI hardware acceleration, many people thought it wouldn't work because it defies modern computing logic. Then, the 2024 Abel Prize (Nobel Prize in mathematics) and the 2023 Turing Award (Nobel Prize in computing) go to recognise the importance of randomness. Sometimes, you have to see ahead to make decisions, not because it is irrelevant for now, but because it will be relevant in the future.

  • @dadsonworldwide3238
    @dadsonworldwide3238 Місяць тому

    This a theme of influence showing up in countless avenues. Inspiring models on this basis.
    Reminds me of movie & music where to much quality & clearity makes it hard for us to zone out or dive into movies that are to clear.
    The distortion in sound can even distinctively stand alone as an era or genre we have created.
    This definitely deserves some sycho anylisis by anyone that studys our relationship with maths, science and the world around us.
    This simple fact its the point between dualism that we are full of historically is very interesting side note. I hear new orgin of life trying to use this and maybe something like grass, or things we miss diagnosis as life can be allocated some modeling value on this.
    But i would think its a more precise and accurate foundational architecture to be found non the less

  • @luizbotelho1908
    @luizbotelho1908 20 днів тому

    It could be the " Rugitus principia mathematica " -
    Methods Of Bosonic Path Integrals Representations: Random System On Classical Physics UK ed. Edition
    by Luiz C. L. Botelho (Author)

  • @mentatphilosopher
    @mentatphilosopher Місяць тому

    Pseudo random noise is also placed on idle channels in code division multiplexing RF mobile communications instead of the “silence” encoding as it improved the overall signal error rate.

  • @JohnJaggerJack
    @JohnJaggerJack Місяць тому

    You mean to tell me my over-paid ECC ram, the LC filters in my speakers, the carefully calibrated diaphragm in cars pressure sensors, the laser cut resistors in passive EC's and ICs, and so on and so forth are holding us down from scientific enlighten? Truly entertaining, miss YTber.

  • @francisverhelst9375
    @francisverhelst9375 Місяць тому

    Noise allows to upsample AD converters form eg from 10 to 12 bits because the noise is not randomly distributed

  • @vishaltanwar30
    @vishaltanwar30 Місяць тому

    Never stop your work, millions of people like you and value your knowledge. Also, not all those are kid but expert in many domains.

  • @HughChing
    @HughChing Місяць тому

    My experience is that Monte Carlo and ruining frequency in encryption need random numbers. However, being the heir of fuzzy logic and the founder of post-science fuzzy logic, I believe that fuzzy convergence will avoid dead loop in exact convergence scheme. One of the way to produce fuzziness is random numbers. I also speculate that nothing can exist if it does not compute, and fuzzy logic should be the foundation of knowledge with random number playing a vaulted role in knowledge. The recent Turing Award is given for randomness; I just hope that the recipient knows fuzzy logic, since my nomination on fuzzy logic, robot touch, and complete automation have all been rejected.

  • @kewkabe
    @kewkabe Місяць тому

    We also use noise in signal processing to boost weak analog signals (stochastic resonance).

  • @sabinrawr
    @sabinrawr Місяць тому

    I have long believe that two technologies are the near future of superpowered computing: analog chips and probabilistic computing. I think I saw the analog chips on a Veritasium video or another similar channel. Really fascinating stuff.
    In a way, I am comforted by the idea of imperfect computing. Most Skynet scenarios rely on the machines being smarter or somehow "more perfect" than human minds, therefore the machines know what's in our own best interests better than we do. I'm a world of imperfect computing, that doesn't happen. Instead, the machines aren't any more "perfect" than their human constructors, they're just faster. This sort of dynamic could foster a cooperative environment where humans and machines work together for the betterment of everyone.
    Idealistic and naive, probably, but it sounds nice anyway.

  • @TheEulerID
    @TheEulerID Місяць тому

    There is a government run lottery system in the UK called Premium Bonds, and the device at the core of that, ERNIE, for Electronic Random Number Indicating equipment had a true hardware random number generator at its core, and that was devised back in 1957, by a certain Tommy Flowers. Who is he you may ask? Well, he just happened to be the designer and builder of the top secret Colossus machine at Bletchley Park, the first fully electronic, programmable (albeit not Turing complete) computer, which automated the cracking of encoded messages using the Nazi Lorenz machine (a completely different type of machine to the Enigma one, using a different cryptographic machine.
    In any event, the idea that hardware random number generators have only been used for about 10 years is not the case. They have been used for at least 67 years.
    ERNIE 1 used the signal noise from neon tubes, was the size of a van and produced 2,000 random winners an hour. The latest incarnation, ERNIE 5, uses quantum effects to generate numbers and produces 3 million winning numbers in just 12 minutes.

  • @daleamon2547
    @daleamon2547 Місяць тому

    Of course the key to simulated annealing is the simulated cooling profile. You turn up the 'heat' to get large jumps (say in the position of wiring in a PCB) and then as you cool it the changes become more and more localized until the system 'crystalizes' into its satisficed optimum state.

  • @bretthagey7916
    @bretthagey7916 Місяць тому

    I remember the ATARI 8-bit systems had a wild random number generator at the circuit level, I believe it was. I made some fractal graphics stuff back then and it made a perfect 48-bit float randomizer.

  • @s90210h
    @s90210h Місяць тому

    Dithering is used in digital audio to give more headroom

  • @HughChing
    @HughChing Місяць тому +1

    Source of creativity.

  • @aquahood
    @aquahood Місяць тому +2

    The best encryption is that which you can not differentiate from randomness or noise.

    • @giannismentz3570
      @giannismentz3570 Місяць тому

      What do you mean? Noise is random.

    • @azi_and_razi
      @azi_and_razi Місяць тому

      ​@@giannismentz3570 Yeah, noise, true randomness, same thing. And yes, the best encyption is unbreakable (without the key). For example One Time Pad. Generate secret key (truly random) with the same length as message you want to send, distribute it securely to final receivers, XOR your message with that key, destroy original message. Now result of XORing is also truly random and without the key is useless. But with the secret key you can retriever the message by XORing it with scrambled message. In other words you encode original message in difference between two sequences of random numbers. So message become non local in some sense ;)

  • @seanb3516
    @seanb3516 Місяць тому +4

    I Got 0.99 Problems, But the Noise Ain't 1.00

  • @rhetorical1488
    @rhetorical1488 Місяць тому +4

    Kindergartens should be ideal grounds for supercomputing😂

    • @red.aries1444
      @red.aries1444 Місяць тому

      More and more companies offer kindergartens for their employees with children, maybe they are more interested in the noisy chaos that the children produce than in the productivity of their parents...

  • @vaclavkrpec2879
    @vaclavkrpec2879 Місяць тому

    Probabilistic computing is indeed fascinating, but also theoretically rather taxing. BPP (bounded-error probabilistic polynomial) class of problems contain many highly practical ones. Their solutions analysis (algorithm correctness and complexity) is in sharp contrast with their perceived simplicity. I remember that back at the uni, we did analyse a simple BPP algorithm for hypercube routing (this is used in supercomputers with hypercube architecture to efficiently pass information between CPUs). The algorithm can be implemented in ~10 lines of code. The analysis took half of the semester. :-)

  • @beckywaytoomuch
    @beckywaytoomuch Місяць тому

    "That's amazing!" I agree. 08:42

  • @s404n1tn0cc
    @s404n1tn0cc Місяць тому

    Great Stufff!!

  • @BjornHeijligers
    @BjornHeijligers Місяць тому

    @sabine. Listen to Feynman's talk about reversible computation (in tokyo when I remember correctly) to find a 4th way in which noise can drive extremely power efficient calculations. (Ah maybe I should have listened to your talk first ;) . You are talking about it indirectly. ). Thanks for all the great content.

  • @TLMuse
    @TLMuse Місяць тому

    Perhaps not just a coincidence you're treating this topic this week: The ACM just awarded this year's Turing Award ("Nobel of computer science") to Avi Wigderson, a leading computer science researcher working on randomness in computing. The main work cited for the award is about *derandomization*, i.e., showing that, when randomness helps a computation, there's a deterministic algorithm that works as well. Here's the text from the announcement: "Computer scientists have discovered a remarkable connection between randomness and computational difficulty (i.e., identifying natural problems that have no efficient algorithms). Working with colleagues, Wigderson authored a highly influential series of works on trading hardness for randomness. They proved that, under standard and widely believed computational assumptions, every probabilistic polynomial time algorithm can be efficiently derandomized (namely, made fully deterministic). In other words, randomness is not necessary for efficient computation. This sequence of works revolutionized our understanding of the role of randomness in computation, and the way we think about randomness." -Tom

  • @davidnicholson4136
    @davidnicholson4136 Місяць тому

    I'd be looking at an analogue solution to the random generator problem. Perhaps the Brownian motion in an on-board liquid or it might be more practical to use a gas.

  • @Simon-ir6mq
    @Simon-ir6mq Місяць тому

    randomness is super powerful! The classical best-known maxcut algorithm by goemans-williamson also uses randomness in a brilliant way and works pretty well in practice (87% of optimal solution in worst case but typically more like 95%). Also, maxcut is not that difficult on planar/euclidean graph layouts as you can lump clusters of neighboring nodes together and just assume that they belong to the same side of the cut. You can then bruteforce the solution for the (much fewer) clusters. The result can be made arbitrarily efficient in polynomial time (though it takes longer to get better solutions as you need more small clusters).

  • @grindupBaker
    @grindupBaker Місяць тому +1

    This is fine because we can just wear ear plugs all our life (I have to for bicycling anyway). Anything for the machines (I'm just sucking up to them in case they take over, they'll need whipmasters). In 1966 one of our programs (not mine) for seismic oil exploration blew a gasket whenever a "dead trace" (all 0s recorded) happened & printed "Floating Point Underflow - 100% White Noise Added" (it was dividing by zero) repeatedly (Jack Nicholson Shining all work and no play) as fast as the huge IBM line printer could run the 11x17 continuous paper through & the operators scrambled to kill it before it had wasted a box of printer paper. I used pseudorandom rectangular deviates sequences for randomizing with the seed based on the obvious date and time including how thousandths of seconds had passed in the second when the CPU randomly was at seed selection. I used it for iterative process minimum RMS error fit geophone line calculation seismic oil exploration in ~1970, for computer simulation modeling in 1973 and 2002, and for controlling 5 elevators to answer the calls fast in KOIN Centre, Columbia & Clay, Portland, Oregon in 1990 (upgrade to state-of-the-art Prestige Building security & monitoring system I wrote in 1984-85). Prototype computer control of elevators. Building Engineer said it worked real good, fast service. Torn out soon later because technology advanced fast, computers cheapened since our IBM PCs (new computers they invented, even smaller than 2 wardrobes). I tried devising Regular Logic for 5 days to assign elevators faultlessly, wasted 50 hours of frustration and made an Executive Decision to switch to Fuzzy Logic, random numbers generated to point into a Table of values statistically corresponding to the required ratios so that any one pick was random unpredictable but large quantities of picks were guaranteed to group in the required ratios, the Magic of Large Statistics averaging out, similar to quantum mechanics on a simpler level. I did something similar but less in 1975 on a Fairchild F8 with PROM or EPROM, I added closed-loop-feedback to an open-loop elevator, improved service.

  • @alex79suited
    @alex79suited Місяць тому +1

    So, I'm going off topic, Sabina. I was doing some listening to a program, and I was listening to the physics dude and his way of thinking. And it occurred to me that his way of thinking reminded me of my son at 5 years old. And it shocked me at first. Then, as I was lying, there I thought how could I have a conversation with someone that thinks like that seriously. I'm still wondering if this way of thinking has become normal in the field. To be quite honest, I find listening to you, Sabina, to be more adult like. Are they so hardwired to this way of thinking, I wonder. Could they ever really understand if it slapped them right in the face. Anyway, another great video,Sabina. Thanks for being the adult of the field. Peace ✌️ 😎. I'm still baffled about this. I would have to explain it like to my 5 year old. Incredible. Thanks, kid. He will be 29.

  • @rrmackay
    @rrmackay Місяць тому

    I remember years ago we set up a microphone in the server room and fed its input to the random number generator in the OS to give it truly random noise root.

    • @schmetterling4477
      @schmetterling4477 Місяць тому

      Did it change anything about the result of what you were doing? Probably not, right?

    • @rrmackay
      @rrmackay Місяць тому

      @@schmetterling4477 It did produce a more random number, especially at that time

    • @schmetterling4477
      @schmetterling4477 Місяць тому

      @@rrmackay Yes, but did that change anything about the result of what you were doing with that random number?

  • @Substance242
    @Substance242 Місяць тому

    Yep, I was also perplexed when started working with radio signals, that you can increase signal/noise ratio (SNR) by ADDING noise. :-) (not always with any signal and any noise)

    • @Bob-1802
      @Bob-1802 Місяць тому +1

      And adding many amplifiers in parallel *decreases* the output noise.

  • @franklinnash
    @franklinnash Місяць тому

    True random number generation is still one of software engineering's unsolved problems. Sure we can generate pseudo random numbers, but given enough values patterns soon start to emerge.

  • @hanslepoeter5167
    @hanslepoeter5167 Місяць тому

    Right. I got to admit did not understand many things, and I design hardware and embedded software for a living. In general, noise is a pain for electronic circuits and we want to avoid it, just like the quantum computer. However, sometimes noise or randomness is needed :
    - when doing analog to digital conversion and we are averaging the output. Without noise, we could average all we want and get the same result, with noise we can average and increase resolution. This is very commonly done.
    - For programming games. If we want the next move of our opponents to be unexpected, it better be random.
    - For testing noise canceling algorithms. Hard to test those without noise.
    - For certain AI algorithms. If an AI never tries a random thing when learning, how is it to learn something new.
    As for random number generation in a computer, a common source used is the program code in a computer program itself. These are instructions and operand codes and if you just retrieve those from memory, it is more or less random.
    Another source is human input. The moment a human pushes a button on a keyboard is pretty random. When a high resolution timer is present it is a good source of randomness.

  • @LionKimbro
    @LionKimbro Місяць тому

    9:55 -- this is the premise behind "reconfigurable computing"

  • @punkbutcher5321
    @punkbutcher5321 Місяць тому

    Simplest / most readily available source of hardware noise: your soundcard!
    Just use the an ADC with nothing hooked up and you get hardware random noise.
    Pesky problem: the samples tend to be correlated, 50Hz and such.

  • @sir_no_name1478
    @sir_no_name1478 Місяць тому

    Yeah we have also chips for grafic, ai accelerators, fpgas etc.
    It gets more specialized.

  • @dhm7815
    @dhm7815 Місяць тому

    Just 2 days ago I was writing a program that would make a random selection but avoid the previous item. That is, it would loop and compare.
    So my first thought was to use the computer's date and time function as nanoseconds as a seed and then keep calling the languages built-in pseudorandom number generator.
    BUT... the time of the call to the date function is uncertain because the operating system is running processes and check for breaks and so on in background. Nanoseconds from date and time can never be precise.
    So I just put the nanosecond function in the loop and use it as the random number.
    This is closer to true random than the pseudorandom function.
    No additonal hardware needed.

    • @almightysapling
      @almightysapling Місяць тому

      Instead of looping and comparing (which rarely but inevitably requires many loops to settle) you could just rand (n-1) and add 1 when the result is >= the id of the previous item. One shot and no bias.
      As for calling from the clock for each rand, there's reasons people don't do this. Often, when you need theoretic/cryptographic randomness, you need more than just uncertainty, you need independence which your method likely lacks, especially if it's called very frequently.
      And if you don't need strong randomness, then PRNGs are just more convenient for getting uniform numbers.
      For many, many purposes, pretty much any sort of randomness are fine, so if you like your method, keep it.

  • @BooleanDisorder
    @BooleanDisorder Місяць тому

    Sabine, keep being awesome!

  • @walterblanc9708
    @walterblanc9708 Місяць тому

    I trust the "conventional computer" used in the annealing comparison was a bit more modern than the one shown ;)

  • @me-ro8yk
    @me-ro8yk Місяць тому

    That chatgpt burn was hilarious.

  •  Місяць тому +2

    Im wondering if that will lead us to the first infinite improbability drive.

  • @FredPlanatia
    @FredPlanatia Місяць тому

    i thought annealing was a way of always having the right amount of noise to jump between solutions on a given scale. In annealing you gradually cool down and so you first make large scale choices (high noise level) and as you cool down (lower noise) you make smaller and smaller scale choices until you end up at the optimal solution. So i didn't understand that part about not knowing how much noise is needed.

  • @markbothum4338
    @markbothum4338 Місяць тому

    This seems analogous to how analog (see what I did there?) amplifiers require small oscillations to work. End goal is a large increase with 0 oscillations, but with 0 oscillation it wouldn't work in the first place.

  • @Nostrudoomus
    @Nostrudoomus Місяць тому +1

    Very INTERESTING 🧐 now tell us about the latest chemistry news in German chemistry publications?

  • @danielbarreiro8228
    @danielbarreiro8228 Місяць тому +3

    Lava lamps as a source of randomness: ua-cam.com/video/1cUUfMeOijg/v-deo.html

  • @RichardGoldwaterMD
    @RichardGoldwaterMD Місяць тому

    Digital audio sounded awful until dithering was added. It took the sharp edges off the digits, I suppose. But isn’t a preexisting optimal state Teleological? What determines such a state?

  • @cbnewham5633
    @cbnewham5633 Місяць тому

    Hardware random number generators have been available for longer than 10 years! One of the early 1980s home computers (was it Atari or Texas Instruments?) had a random number generator that used electrical noise - it was marketed as being the only PC that had a true RN generator bult in and available from BASIC.

  • @aware2action
    @aware2action Місяць тому

    Also to be known, is that noise degrades digital signals, and that, all our modern cpu's are based upon. It is also what necessiates radiation hardening of the components exposed to cosmic rays outside our atmosphere. This is also the reason for the need of analog frontends with high noise floor, since the extent of digital processing is limited by noise. Just some 💭

  • @aniksamiurrahman6365
    @aniksamiurrahman6365 Місяць тому

    How can I get some reading material on it? btw, I've heard about annealing and Ising model.

  • @tsbrownie
    @tsbrownie Місяць тому +1

    Next they'll be making add on hardware dedicated to graphics!

  • @enerjohnsavior3227
    @enerjohnsavior3227 Місяць тому

    I like that Sabine refuses to say that "the first 100 people that sign up for (*sponsor*) will get 20% off."