Archive for the ‘Alphazero’ Category

Open source at Facebook: 700 repositories and 1.3 million followers – ZDNet

Another 127,000 new developers starred Facebook's projects in the past year.

Facebook's open-source platform has been growing steadily since it launched and is showing no sign of its popularity waning anytime soon: the past year has seen the project expand yet again, reaching close to 1.3 million followers on Github.

SEE: Managing AI and ML in the enterprise: Tech leaders increase project development and implementation (TechRepublic Premium)

That's another 127,000 new developers starring Facebook's projects on the open-source platform just in the last year, a testimony to "the growth of open source worldwide," according to Suraj Subramanian, developer advocate at Facebook, who compileda review of the social media giant's key achievementsin the open-source space in 2020.

The past year has seen Facebook open source expand yet again, reaching close to 1.3 million followers on Github.

For many years, Facebook has been sharing the company's creations with the wider developer community in a major open-source project.

Developers around the world can access the codebase for some of the company's major software and hardware tools in Github repositories. Subramanian confirmed that Facebook's portfolio of repositories has now grown to more than 700, with over 200 projects made public this year alone another increase from 2019, which saw 170 new repositories added to the portfolio.

SEE:The algorithms are watching us, but who is watching the algorithms?

Both Facebook engineers and independent developers around the world contributed to the community by tweaking Facebook's codebase almost 128,000 times in total, with about 15% of those changes carried out by participants external to the company. That marks a change from the previous year, when external contributors committed about a third of the total changes.

Both Facebook engineers and independent developers around the world contributed to the community by tweaking Facebook's codebase 128,000 times in total.

Subramanian added that 20 new projects were added to Facebook's PyTorch ecosystem, a Python-based machine-learning library that is mostly used for computer applications and natural language processing.

The past few months also saw many companies external to Facebook make use of the PyTorch library for a variety of use cases, ranging fromtraining robotic crop sprayersto identifying weeds as they move through a field, toimproving the training of surgeons. Pharmaceutical firm AstraZeneca also revealed that it is using PyTorch tostreamline the drug discovery process.

Among some of the key technologies that were open sourced by the social media company last year, Subramanian highlighted M2M-100, a multilingual machine translation model that cantranslate any pair of 100 languageswithout relying on English, and is thought to be more accurate than systems that require translating into English before coming up with a final translation in the target language.

Facebook also made its ReBel algorithmavailable to the public in 2020, which builds on the technology that underpins AlphaZero to beat humans at a wide range of games such as poker or Texas Hold'em, and constitutes, according to Subramanian, "a big step towards general AI."

Another one of Facebook's open-source projects that has garnered attention is React Native, a JavaScript code library that lets developers build user interfaces for native iOS and Android apps. Although the platform has existed for a long time, in early 2020 Facebook open-sourced a new React library called Recoil to provide developers with features like time-travel debugging, which are hard to achieve with React alone. In less than a year, Recoil has alreadysecured over 11,000 followers.

Original post:
Open source at Facebook: 700 repositories and 1.3 million followers - ZDNet

Scientists say dropping acid can help with social anxiety and alcoholism – The Next Web

What happens when the pandemic finally ends and hundreds of millions of people whove spent an inordinate amount of time secluded are suddenly launched back into the rat race?

Things will likely never go back to normal, but eventually well find a way to occupy space together again and that could be difficult for people whove developed social anxiety or had setbacks in their treatment due to the unique nature of pandemic isolation.

We couldnt find any actual rats to ask how theyre coping with the race, but a team of laboratory mice might just have the answer: its dropping a bunch of acid and letting nature do its thing.

According to a team of researchers from McGill University, LSD (colloquially known as acid) makes people more social and capable of greater human empathy.

The team figured this out by giving lab mice LSD and then measuring their brain activity. The mice became more social while under the influence. And the positive effects of LSD were immediately nullified when the scientists used bursts of light to interrupt the chemical processes thus rendering the mice immediately sober.

The researchers work led to novel insight into how LSD causes a cascade effect of receptor and synapse activity that ultimately seems to kick-start neurotypical feelings of empathy and social inclination.

Due to the nature of the specific chemical reactions concurring in the brain upon the consumption of LSD, it would appear as though its a strong candidate for the potential treatment of myriad mental illnesses and for those with autism spectrum disorder.

Per the teams research paper:

These results indicate that LSD selectively enhances SB by potentiating mPFC excitatory transmission through 5-HT2A/AMPA receptors and mTOR signaling. The activation of 5-HT2A/AMPA/mTORC1 in the mPFC by psychedelic drugs should be explored for the treatment of mental diseases with SB impairments such as autism spectrum disorder and social anxiety disorder.

Quick take: Scientists have understood the effect LSD has on mood receptors in the brain for decades. Whats new here is that we now know how those interactions cause other interactions that create whats essentially a system for increasing empathy or decreasing social anxiety.

Recent research on LSD, cannabis, and psilocybin (shrooms) indicates each has myriad uses for combating and treating mental illness and other disorders related to neurotypical receptor and synapse regulation.

The McGill teams research on LSD, for example, indicates it could prove useful to fight the harmful effects of alcoholism where people are at increased risk of developingsocial anxiety due toaddiction, thus further isolating themselves from others.

This latest study is important in that it drives home what decades of research and millennia of anecdotal evidence already tells us: Some drugs have the potential to do good.

And if we could study them like rational humans instead of allowing politicians to make it almost impossible for researchers to conduct controlled, long term studies on so-called banned substances the world would be a better place.

If you think this is interesting, check out this piece on Neural from earlier today. Where the study in the article youve just read says LSD can amplify empathy and reduce social anxiety, this one shows how empathy happens in a theory of the mind that can be identified down to the single-neuron level.

Read next: Zuckerberg promises Facebook will show less political content from now on

Read more:
Scientists say dropping acid can help with social anxiety and alcoholism - The Next Web

AlphaZero – Chess Engines – Chess.com

In 2017 the chess world was shaken to its core when Stockfish (the world's strongest chess engine) was defeated in a one-sided match. It was not defeated by a human but by an unknown computer program that seemed to be otherworldlyAlphaZero.

Let's learn more about this powerful chess entity. Here is what you need to know about AlphaZero:

AlphaZero was developed by the artificial intelligence and research company DeepMind, which was acquired by Google. It is a computer program that reached a virtually unthinkable level of play using only reinforcement learning and self-play in order to train its neural networks. In other words, it was only given the rules of the game and then played against itself many millions of times (44 million games in the first nine hours, according to DeepMind).

AlphaZero uses its neural networks to make extremely advanced evaluations of positions, which negates the need to look at over 70 million positions per second (like Stockfish does). According to DeepMind, AlphaZero reached the benchmarks necessary to defeat Stockfish in a mere four hours.

AlphaZero runs on custom hardware that some have referred to as a "Google Supercomputer"although DeepMind has since clarified that AlphaZero ran on four tensor processing units (TPUs) in its matches.

In December 2017, DeepMind published a research paper that announced that AlphaZero had easily defeated Stockfish in a 100-game match. AlphaZero would go on to defeat Stockfish in a second match consisting of 1,000 games; the results were published in a paper in late 2018.

Unfortunately, AlphaZero is not available to the public in any form. The match results versus Stockfish and AlphaZero's incredible games have led to multiple open-source neural network chess projects being created. Leela Chess Zero, Leelenstein, Alliestein, and others try to emulate AlphaZero's learning and playing style. Even Stockfish, the conventional brute-force king, has added neural networks.

In 2020 DeepMind and AlphaZero continued to contribute to the chess world in the form of different chess variants. When DeepMind and the AlphaZero team speak, the chess world listens!

From the moment it stepped onto the scene, AlphaZero has changed chess by spawning a new generation of neural network chess engines, by contributing to chess variants, and through its transcendent games.

As mentioned, AlphaZero defeated the world's strongest chess engine, Stockfish, in a one-sided 100-game match in December 2017 (scoring 28 wins, 72 draws, and zero losses). The public was given 10 example games from this match, and the chess world's reaction was borderline disbelief.GM Peter Heine Nielsen likened watching AlphaZero's games to seeing a superior species landing on earth and showing us how to play chess:

Other grandmasters shared Nielsen's sentiment, including the legendary GM Garry Kasparov, who told Chess.com, "It's a remarkable achievement.... It approaches the 'Type B,' human-like approach to machine chess dreamt of by Claude Shannon and Alan Turing instead of brute force."

Others questioned the results because of the disparity of hardware used in the first match. Some also found it unfair that Stockfish was not allowed to use its opening book and its endgame tablebase.

GM Hikaru Nakamura stated: "I don't necessarily put a lot of credibility in the results simply because my understanding is that AlphaZero is basically using the Google supercomputer, and Stockfish doesn't run on that hardware; Stockfish was basically running on what would be my laptop."

Roughly one year after the first match, DeepMind published a new paper that announced an updated version of AlphaZero had defeated Stockfish in a 1,000-game match. This time, the current version of Stockfish (version 9 at the time) was used, Stockfish was able to use a strong opening book in many of the games, the time controls were adjusted (with Stockfish having large time advantages), and Stockfish was run on the same type of hardware used in the Top Chess Engine Championships (TCEC).

The results didn't change muchAlphaZero defeated Stockfish again with a score of 155 wins, 839 draws, and 6 losses.

In 2019 and 2020 GM Vladimir Kramnik was able to spend some time with AlphaZero and the DeepMind team to explore chess variants andco-wrote a paper with DeepMind about the exploration of new chess variants, including sideways pawns, no castling, torpedo chess (where pawns can always move forward one or more squares).

In September 2020 Chess.com hosted a roundtable discussion with Kramnik and members of the DeepMind team where they discussed variants and other topics. You can watch the full video here:

Many of these chess variants (and more) have been added to Chess.com. This article outlines the new chess variants and how to play them. If you want to check out any of these variants for yourself, simply head over to Chess.com/variants or hover your mouse over the "Play" button in the menu bar and select "Variants":

After you select "Variants," you are directed to the Chess Variants Page. All you have to do is select a variant and press "Play."

In this first game example, we see some of the magic that AlphaZero shocked the world with in the first match. AlphaZero gambits a pawn in the opening and immediately goes on the attack. After 19...Kxh6 Stockfish is up a piece, but the king is not safe, and the entire queenside is undeveloped:

AlphaZero keeps up the pressure, but its compensation for the piece is mostly unclear to us mortals. Only in hindsight can we tell that a couple of Black's pieces (most notably the a8-rook and queen's knight) will never really be part of the game. After 36.Qe6, the position has crystallized, and AlphaZero wins convincingly:

This second game example is from the second AlphaZero-Stockfish match. AlphaZero puts on a positional clinic and tortures Stockfish with the bishop pair in the endgame after 45. Bxe4. Here is the full game:

In the following video, GM Robert Hess covers this fantastic game in great detail:

You now know what AlphaZero is, what it has accomplished, and more. If you are interested in seeing what you can learn from AlphaZero's play, check out this great series of video lessons by Chess.com's IM Danny Rensch.

Original post:
AlphaZero - Chess Engines - Chess.com

AlphaZero: Shedding new light on chess, shogi, and Go …

As with Go, we are excited about AlphaZeros creative response to chess, which has been a grand challenge for artificial intelligence since the dawn of the computing age with early pioneers including Babbage, Turing, Shannon, and von Neumann all trying their hand at designing chess programs. But AlphaZero is about more than chess, shogi or Go. To create intelligent systems capable of solving a wide range of real-world problems we need them to be flexible and generalise to new situations. While there has been some progress towards this goal, it remains a major challenge in AI research with systems capable of mastering specific skills to a very high standard, but often failing when presented with even slightly modified tasks.

AlphaZeros ability to master three different complex games and potentially any perfect information game is an important step towards overcoming this problem. It demonstrates that a single algorithm can learn how to discover new knowledge in a range of settings. And, while it is still early days, AlphaZeros creative insights coupled with the encouraging results we see in other projects such as AlphaFold, give us confidence in our mission to create general purpose learning systems that will one day help us find novel solutions to some of the most important and complex scientific problems.

This work was done by David Silver, Thomas Hubert, Julian Schrittwieser, Ioannis Antonoglou, Matthew Lai, Arthur Guez, Marc Lanctot, Laurent Sifre, Dharshan Kumaran, Thore Graepel, Timothy Lillicrap, Karen Simonyan, and Demis Hassabis.

Read more from the original source:
AlphaZero: Shedding new light on chess, shogi, and Go ...

The art of chess: a brief history of the World Championship – TheArticle

Last week Barry Martin, along with Patrick Hughes, one of the worlds top chess playing artists, asked me to identify the most significant happenings in the chess world over the past ten years. Barry and Patrick used to meet in the final of the Chelsea Arts Club Championship and Barry writes an excellent monthly column in Kensington, Westminster and Chelsea Today(KWC). The point of the question was to celebrate ten years ofKWCand ten years of Barrys column, many of which have been gathered together in the anthology,Chess, Problems, Play and Personalities(Filament Publishing).

Of those significant developments, which define the contemporary chess scene, I have already covered the phenomenon of the new Netflix chess-based TV series,Queens Gambit, in last weeks column. The combination of brilliance and beauty, exemplified in the persona of the chess champion heroine, Beth Harmon, has proved irresistible to record-breaking audiences around the world. Sales of chess sets alone, a key indicator of a new-found enthusiasm, have soared by 300 per cent since Beth first appeared on our screens.

A second vital element has been the creation of the AlphaZero chess-playing engine, with its amazing abilities, including an almost vertical learning curve, resulting in the strongest chess-playing entity the world has ever seen. The science has primarily been the work of Demis Hassabis, rewarded with the CBE for his efforts, and a $400 million sale to Google of his company, Deep Mind. The achievements of Demis, and the brilliantly paradoxical strategies and tactics of AlphaZero, were likewise already covered in my column Arise Sir Demis The games were contested against the most powerful available commercial chess programme, called Stockfish itself many times stronger than the IBM Deep Blue programme which defeated Garry Kasparov in 1997.

The 1993 World Title Challenger, the British Grandmaster Nigel Short,described the AlphaZero games as being of such beauty that he felt he was in the presence of God. Demis himself explained that his self-taught programme, which had already mastered the quasi-infinite complexities of the oriental games of Shogi (Japanese Chess) and Go, was the key to understanding intelligence.

This week I turn to the third most decisive development of the past ten years, the meteoric rise and lasting domination of the Norwegian World Chess Champion, Magnus Carlsen. Carlsen is the culmination of a line of champions which stretches back into the 18th century, yet he is also a uniquely talented representative of the modern era. Magnus has attained the highest ever chess rating ever recorded, outclassing even the mighty Garry Kasparov. Magnus wins virtually every competition which he enters, and has adapted seamlessly to the current coronavirus crisis, which has obliged chess to migrate online to a huge extent. Magnus has prudently avoided the damage to his reputation occasioned by suffering defeats against chess computers, a fate which overtook both Garry Kasparov and Vladimir Kramnik.Finally, Magnus has leveraged all the opportunities afforded by his title of World Chess Champion, adapting perfectly to the modern environment, even to the extent of floating his online chess company, Play Magnus, for $85 million dollars, while simultaneously earning a fortune as a trendy ambassador for the fashion line G-Star Raw, often appearing alongside Hollywood superstar, Liv Tyler.

The title of World Chess Champion dates to no later than 1886, when Wilhelm Steinitz defeated Johannes Zukertort in a gladiatorial contest, specifically designed to resolve the question of who was the strongest player in the world after Paul Morphys death in 1884, though Steinitz had claimed that status since 1866. Less clear is whether the great predecessors of Steinitz also merited that proud title. Part of the difficulty of authentication is lack of evidence of important contests and gaps in the record.

The story begins in the 18th century, when the French chess expertFranois-Andr Danican Philidorwon an important match in 1747 against the erudite Philip Stamma, translator of oriental languages to the court of King George II. Sadly, none of those games has survived. Following Philidor, who died in 1795, there comes a hiatus, until the brief flourishing of La Bourdonnais during the 1830s. After this, there is a further gap in the record until the 1840s, when French heir to the Philidor tradition, Saint-Amant, was overthrown in Paris, the epicentre of European chess life at that time, by the English champion Howard Staunton.

Fortunately, from Staunton onwards, there is a relatively unbroken line of succession, with each champion being dethroned by the next in line. The exceptions are the trinity of Morphy, Fischer (who simply downed tools), and Alekhine who died in office, thus permanently preserving their hallowed nimbus of invincibility.

Also worthy of mention are various champions who have won the FID title (FID is the International Chess Federation, the governing body of chess competitions), without gaining universal recognition from the global chess community. These include Max Euwe, Efim Bogolyubov, Vesselin Topalov and Viswanathan Anand. A common outcome is that such FID champions have gone on to contest matches against the universally recognised laureate, and in two such cases (Euwe and Anand) have emerged victorious to become undisputed champions themselves.

The most recent world championship match, staged in London 2018, was run entirely under the auspices of FID, the authority of which is now universally accepted under the reliable new Presidency of Russian Arkady Dvorkovich, and his English Vice President, Nigel Short.

The first great player who could be considered a World Champion was Philidor, whodominatedthe chess scene of his day. The term World Champion was not used when describing him, with commentators preferring to employ such metaphors as wielding the sceptre. There is also the problem that very few of Philidors games on level terms have survived, his reputation largely being constructed on his blindfold simultaneous displays, which so electrified London chess enthusiasts. Philidor was able to conduct three games blindfold at once, a feat that led to a letter of admonishment from the French encyclopaedist, Denis Diderot, warning Philidor that such exploits might lead to brain damage.

It is interesting to note that Philidor was the first great apostle of pawn power in chess. According to Philidor, pawns determined the structure of the game, they were in fact the soul of chess not mere cannon fodder, whose sole task was to make way for the power of the pieces. In this respect his chess teachings paralleled the rise of the masses embodied in the French Revolution of 1789.

France was the dominant chess nation at the turn of the 18th and 19th centuries, and the next player after Philidorwho couldbe considered an early world champion was the 19th-century French master Louis-Charles Mah de La Bourdonnais. La Bourdonnais claim to fame rests primarily on his mammoth series of matches against Alexander McDonnell, contested in London in 1834. This represented the finest corpus of games ever created up to that time and numerous generations of chess devotees learned their basic chess strategies and tactics from these ingenious and well contested battles. Both protagonists appear to have become mentally exhausted by their efforts and died shortly after their epic series.

In the panoply of proto-champions, Howard Staunton, the Victorian polymath, Shakespearean scholar, and assiduous chronicler of the English schools system, is the only English player who could legitimately be considered as world champion. In a series of matches between 1843 and 1846, Staunton defeated the French master Pierre Charles Fournier de Saint-Amant, followed closely by victories against the German master Bernhard Horwitz and Daniel Harrwitz, originally from Poland. Stauntons match against Saint-Amant was the first contest at the highest level that closely resembled the template for modern World Championship competitions. The chess pieces in regular use for important competitions, including the2018 Londoncontest between Carlsen and his challenger, Fabiano Caruana, are named the Staunton pattern, after Howard Staunton.

The German master Adolf Anderssen seized the sceptre from Howard Staunton when he decisively defeated the English champion in the very first international tournament in London 1851. Anderssen was one of that select group, which includes Mikhail Botvinnik and Viswanathan Anand, who initially assumed the accolade of supreme chess master from a tournament rather than a match. The London event was in fact put together by Staunton, who thereby created a perfect pretext for losing out to Anderssen in their knockout match, it being notoriously difficult to compete in an event, whilst simultaneously organising it.

Anderssen can claim to be one of the supreme tacticians of all time. Three of his wins are of imperishable beauty. On their own they would justify anyones devotion to chess. They are his Immortal Game against Kieseritsky (played at Simpsons-in-the-Strand, not the tournament) of London, 1851; his Evergreen game against the pseudonymous Dufresne (in reality the German player E. S. Freund) of Berlin 1856, and his majestic sacrificial masterpiece against Zukertort of Breslau 1869.

Paul Morphy was the American meteor who took the world by storm over thetwo momentous, whirlwind years of 1857 and 1858. His grand tour of Europe culminated in a match victory against Adolf Anderssen, after which Morphy was universally acknowledged as the worlds greatest player. Thereafter Morphy issued a challenge to anyone in the world to take him on at odds (Morphy starting the game with a pawn handicap) but no one accepted. At this point the meteor had burnt itself out and Morphy, tragically, retired from chess, a curious forerunner of Bobby Fischers behaviour following his famous 1972 World Championship victory against Boris Spassky.

Morphy understood the principles of chess better than anyone who came before him. Anderssens tactical brilliance sprang like Athene from the head of Zeus, without necessarily having grown from regular organic pre-conditions. Morphy, on the other hand, constructed his positions along sound strategic and positional lines, before unleashing his devastating arsenal of tactical weaponry.On Morphys retirement, Anderssen resumed the position of world leadership which had belonged so fleetingly to the first great genius of American chess. Anderssen lost a match in 1866 toWilhelm Steinitz, the first player who could definitively be describedas an official World Champion. The previous wielders of the sceptre, Philidor, La Bourdonnais, Staunton, Anderssen and Morphy, were all, at the time, acknowledged as the leading chess practitioner of their day, but it is less clear that the title world champion had been universally accepted. Steinitz, on the other hand, insisted on this description and he himself dated his tenure from his 1866 match victory, also in London, against Anderssen. Steinitzs pre-eminence wasconfirmed 20 years later when he demolished Johannes Zukertort in their 1886 match in the US, which was specifically described as a World Championship contest.

Thus far I have described the early years of the World Championship and now I return to Magnus Carlsens defence of his title, which he has held since 2013. The 2018 Championship match in London was fought out between the Norwegian Magnus Carlsen, the highest ever rated chess grandmaster, and the previously unexpected challenger, Fabiano Caruana, who had been considered somewhat vulnerable and fragile.

Caruana originated from Italy but became an American citizen. With energy and vigour, he decimated his rivals amongthe top ten Grandmasters. In order toqualify,the winner had to exhibit strength, agility, power, alertness, incredible persistence, stamina, and the power of the will to win.From this shark pool, Fabiano became the number one contender, and number two ranked player in the world. Throughout all the complications of selecting the challenger to the World Chess Champion, the pairing was ideal: a battle between the two best in the world fighting for the world title.

The implication is thatchess at this exalted level is a sport, both mentalandphysical an appropriately termed Mind Sport. As the Championship was in process a wonderful flash of confirmatory news emerged from the media: Magnus Carlsen was nominated, in Norway, to win the Sports Personality of the Year. This Championship had emerged as a realBattle of the Titans. Magnus had now won four world title bouts, twice versus Anand and once each against Karjakin and Caruana. The latter two ended with the tie-breaks, at which Magnus excels. On this occasion, Magnus praised Fabiano, as being his most difficult opponent of the three.

Magnus has secured his tenure as World Champion until at least 2021. He will then have held the title for 8 years thus moves into an equal category of championship longevity with such greats as Capablanca, Petrosian, Kramnik and Anand, ahead of Euwe, Smyslov, Tal, Spassky and Fischer. Only Steinitz, Lasker, Alekhine, Botvinnik, Karpov and Kasparov held the title for significantly longer periods. In the modern world, where everything has speeded up, can Carlsen go on to outperform all these titans?

If his ambition had seemed to wane during the classical phase of the London contest, it certainly flared up, as Carlsens predator instincts flashed on for the tiebreak.Like the Terminator, Magnus would be back.In every boxing match and in every tennis set, each minute encapsulates a real battle. Every move in chess is the same. The draws were magnificent mini-battles in every one of the often 65+ moves over the duration of as much as six hours of non-stop sport. And then it came down to speed.Only in the speed play-off did Carlsen finally overcome the onslaught of Caruana, with the World Champion taking the accelerated shoot out by three wins to zero.

I have tried to distil the quintessential elements of Magnus success. Remember that, in Latin Magnus was a title meaning Great, as in Alexander Magnus (Alexander the Great), or Pompeius Magnus (Pompey the Great), Julius Caesars senatorial rival, as noted in ShakespearesJulius Caesar, Act I, Scene One:

You blocks, you stones, you worse than senseless things!

O you hard hearts, you cruel men of Rome.

Knew you not Pompey? Many a time and oft

Have you climbd up to walks and battlements,

To towrs and windows, yea, to chimney tops,

Your infants in your arms, and there have sat

The live long day, with patient expectation.

To see Great Pompey pass the streets of Rome.

I have reduced the formula to seven memorable M principles for Magnus:

Motivation

Mobilisation

Momentum

Material

Masquerade

Massacre

Mate

And this weeks game exemplifies these key ingredients of a Magnus triumph. The game was the decisive win which clinched Magnus World Title defence against the former World Champion, The Tiger of Madras: Viswanathan Anand.

We are the only publication thats committed to covering every angle. We have an important contribution to make, one thats needed now more than ever, and we need your help to continue publishing throughout the pandemic. So please, make a donation.

Read the rest here:
The art of chess: a brief history of the World Championship - TheArticle