Robot Technology News  
ROBO SPACE
Algorithm quickly simulates a roll of loaded dice
by Steve Nadis for MIT News
Boston MA (SPX) May 29, 2020

A new algorithm, called the Fast Loaded Dice Roller (FLDR), simulates the roll of dice to produce random integers. The dice, in this case, could have any number of sides, and they are "loaded," or weighted, to make some sides more likely to come up than others.

The fast and efficient generation of random numbers has long been an important challenge. For centuries, games of chance have relied on the roll of a die, the flip of a coin, or the shuffling of cards to bring some randomness into the proceedings. In the second half of the 20th century, computers started taking over that role, for applications in cryptography, statistics, and artificial intelligence, as well as for various simulations - climatic, epidemiological, financial, and so forth.

MIT researchers have now developed a computer algorithm that might, at least for some tasks, churn out random numbers with the best combination of speed, accuracy, and low memory requirements available today. The algorithm, called the Fast Loaded Dice Roller (FLDR), was created by MIT graduate student Feras Saad, Research Scientist Cameron Freer, Professor Martin Rinard, and Principal Research Scientist Vikash Mansinghka, and it will be presented next week at the 23rd International Conference on Artificial Intelligence and Statistics.

Simply put, FLDR is a computer program that simulates the roll of dice to produce random integers. The dice can have any number of sides, and they are "loaded," or weighted, to make some sides more likely to come up than others. A loaded die can still yield random numbers - as one cannot predict in advance which side will turn up - but the randomness is constrained to meet a preset probability distribution. One might, for instance, use loaded dice to simulate the outcome of a baseball game; while the superior team is more likely to win, on a given day either team could end up on top.

With FLDR, the dice are "perfectly" loaded, which means they exactly achieve the specified probabilities. With a four-sided die, for example, one could arrange things so that the numbers 1,2,3, and 4 turn up exactly 23 percent, 34 percent, 17 percent, and 26 percent of the time, respectively.

To simulate the roll of loaded dice that have a large number of sides, the MIT team first had to draw on a simpler source of randomness - that being a computerized (binary) version of a coin toss, yielding either a 0 or a 1, each with 50 percent probability. The efficiency of their method, a key design criterion, depends on the number of times they have to tap into this random source - the number of "coin tosses," in other words - to simulate each dice roll.

In a landmark 1976 paper, the computer scientists Donald Knuth and Andrew Yao devised an algorithm that could simulate the roll of loaded dice with the maximum efficiency theoretically attainable. "While their algorithm was optimally efficient with respect to time," Saad explains, meaning that literally nothing could be faster, "it is inefficient in terms of the space, or computer memory, needed to store that information." In fact, the amount of memory required grows exponentially, depending on the number of sides on the dice and other factors. That renders the Knuth-Yao method impractical, he says, except for special cases, despite its theoretical importance.

FLDR was designed for greater utility. "We are almost as time efficient," Saad says, "but orders of magnitude better in terms of memory efficiency." FLDR can use up to 10,000 times less memory storage space than the Knuth-Yao approach, while taking no more than 1.5 times longer per operation.

For now, FLDR's main competitor is the Alias method, which has been the field's dominant technology for decades. When analyzed theoretically, according to Freer, FLDR has one clear-cut advantage over Alias: It makes more efficient use of the random source - the "coin tosses," to continue with that metaphor - than Alias. In certain cases, moreover, FLDR is also faster than Alias in generating rolls of loaded dice.

FLDR, of course, is still brand new and has not yet seen widespread use. But its developers are already thinking of ways to improve its effectiveness through both software and hardware engineering. They also have specific applications in mind, apart from the general, ever-present need for random numbers. Where FLDR can help most, Mansinghka suggests, is by making so-called Monte Carlo simulations and Monte Carlo inference techniques more efficient. Just as FLDR uses coin flips to simulate the more complicated roll of weighted, many-sided dice, Monte Carlo simulations use a dice roll to generate more complex patterns of random numbers.

The United Nations, for instance, runs simulations of seismic activity that show when and where earthquakes, tremors, or nuclear tests are happening on the globe. The United Nations also carries out Monte Carlo inference: running random simulations that generate possible explanations for actual seismic data. This works by conducting a second series of Monte Carlo simulations, which randomly test out alternative parameters for an underlying seismic simulation to find the parameter values most likely to reproduce the observed data. These parameters contain information about when and where earthquakes and nuclear tests might actually have occurred.

"Monte Carlo inference can require hundreds of thousands of times more random numbers than Monte Carlo simulations," Mansinghka says. "That's one big bottleneck where FLDR could really help. Monte Carlo simulation and inference algorithms are also central to probabilistic programming, an emerging area of AI with broad applications."

Ryan Rifkin, Director of Research at Google, sees great potential for FLDR in this regard. "Monte Carlo inference algorithms are central to modern AI engineering ... and to large-scale statistical modeling," says Rifkin, who was not involved in the study. "FLDR is an extremely promising development that may lead to ways to speed up the fundamental building blocks of random number generation, and might help Google make Monte Carlo inference significantly faster and more energy efficient."

Despite its seemingly bright future, FLDR almost did not come to light. Hints of it first emerged from a previous paper the same four MIT researchers published at a symposium in January, which introduced a separate algorithm. In that work, the authors showed that if a predetermined amount of memory were allocated for a computer program to simulate the roll of loaded dice, their algorithm could determine the minimum amount of "error" possible - that is, how close one comes toward meeting the designated probabilities for each side of the dice.

If one doesn't limit the memory in advance, the error can be reduced to zero, but Saad noticed a variant with zero error that used substantially less memory and was nearly as fast. At first he thought the result might be too trivial to bother with. But he mentioned it to Freer who assured Saad that this avenue was worth pursuing. FLDR, which is error-free in this same respect, arose from those humble origins and now has a chance of becoming a leading technology in the realm of random number generation. That's no trivial matter given that we live in a world that's governed, to a large extent, by random processes - a principle that applies to the distribution of galaxies in the universe, as well as to the outcome of a spirited game of craps.

Research paper


Related Links
MIT News
All about the robots on Earth and beyond!


Thanks for being here;
We need your help. The SpaceDaily news network continues to grow but revenues have never been harder to maintain.

With the rise of Ad Blockers, and Facebook - our traditional revenue sources via quality network advertising continues to decline. And unlike so many other news sites, we don't have a paywall - with those annoying usernames and passwords.

Our news coverage takes time and effort to publish 365 days a year.

If you find our news sites informative and useful then please consider becoming a regular supporter or for now make a one off contribution.
SpaceDaily Contributor
$5 Billed Once


credit card or paypal
SpaceDaily Monthly Supporter
$5 Billed Monthly


paypal only


ROBO SPACE
Robot dog on virus park patrol in Singapore
Singapore (AFP) May 21, 2020
A yellow robot dog called Spot which found fame online for dancing to hit song "Uptown Funk" has been deployed to patrol a Singapore park and ensure people observe social distancing. The hi-tech hound is remote-controlled and can clamber easily over all types of terrain, which its creators say means it can go where wheeled robots cannot. As it trots through the park, Spot - who has the same name as the popular fictional puppy - uses cameras to estimate the number of visitors. And the robo ... read more

Comment using your Disqus, Facebook, Google or Twitter login.



Share this article via these popular social media networks
del.icio.usdel.icio.us DiggDigg RedditReddit GoogleGoogle

ROBO SPACE
Northrop Grumman supports government flight testing of the MQ-8C Fire Scout Radar

FLIR to supply Black Hornet Nano-UAV Systems for US Army's Soldier Borne Sensor Program

Textron nabs $20.7M contract modification for Navy drone program

Elbit Systems Introduces a UAS-Based Long-Range Maritime Rescue Capability

ROBO SPACE
Amazon puts heat on eSports giants with 'Crucible'

Controlling artificial cilia with magnetic fields and light

Fireflies helps companies get more out of meetings

The flame of discovery grows as Saffire sets new fires in space

ROBO SPACE
'One-way' electronic devices enter the mainstream

Huawei says 'survival' at stake after US chip restrictions

Scientists break the link between a quantum material's spin and orbital states

Light, fantastic: the path ahead for faster, smaller computer processors

ROBO SPACE
Framatome to provide engineering services to EDF in the United Kingdom

EDF submits plans for controversial UK nuclear plant

US awards two projects utilizing the BWRX-300 Small Modular Reactor Design

Study reveals single-step strategy for recycling used nuclear fuel

ROBO SPACE
FBI says Texas navy base shooting is 'terrorism-related'

Sri Lanka president warns UN over war crimes claims

Bosnian protests at Mass for Croatia's pro-Nazi WWII regime

Confessions of a Colombian extrajudicial killer commander

ROBO SPACE
World needs 'green recovery', health pros tell G20 leaders

Global CO2 emissions to drop 4-7% in 2020, but will it matter

New map highlights China's export-driven CO2 emissions

COVID-19 to cause record emissions fall in 2020: IEA

ROBO SPACE
Surprise link found to edge turbulence in fusion plasma

Next-gen laser facilities look to usher in new era of relativistic plasmas research

Discovery about the edge of fusion plasma could help realize fusion power

Skoltech scientists show a promising solid electrolyte is 'hydrophobic'

ROBO SPACE
More details of China's space station unveiled

China's tracking ship Yuanwang-5 back from rocket monitoring mission

China's Kuaizhou rocket industrial park partially operational

China's experimental new-generation manned spaceship works normally in orbit









The content herein, unless otherwise known to be public domain, are Copyright 1995-2024 - Space Media Network. All websites are published in Australia and are solely subject to Australian law and governed by Fair Use principals for news reporting and research purposes. AFP, UPI and IANS news wire stories are copyright Agence France-Presse, United Press International and Indo-Asia News Service. ESA news reports are copyright European Space Agency. All NASA sourced material is public domain. Additional copyrights may apply in whole or part to other bona fide parties. All articles labeled "by Staff Writers" include reports supplied to Space Media Network by industry news wires, PR agencies, corporate press officers and the like. Such articles are individually curated and edited by Space Media Network staff on the basis of the report's information value to our industry and professional readership. Advertising does not imply endorsement, agreement or approval of any opinions, statements or information provided by Space Media Network on any Web page published or hosted by Space Media Network. General Data Protection Regulation (GDPR) Statement Our advertisers use various cookies and the like to deliver the best ad banner available at one time. All network advertising suppliers have GDPR policies (Legitimate Interest) that conform with EU regulations for data collection. By using our websites you consent to cookie based advertising. If you do not agree with this then you must stop using the websites from May 25, 2018. Privacy Statement. Additional information can be found here at About Us.