Archive for Bayesian learning

is it necessary to learn summary statistics? [One World ABC seminar]

Posted in Books, pictures, Statistics, University life with tags , , , , , , , , , , on November 19, 2023 by xi'an

Next week, on 30 November, at 9am (UK time), Yanzhi Chen (Cambridge) will give a One World ABC webinar on Is “It Necessary to Learn Summary Statistics for Likelihood-free Inference?”, a PMLR paper join with Michael Guttman and Adrian Weller:

Likelihood-free inference (LFI) is a set of techniques for inference in implicit statistical models. A longstanding question in LFI has been how to design or learn good summary statistics of data, but this might now seem unnecessary due to the advent of recent end-to- end (i.e. neural network-based) LFI methods. In this work, we rethink this question with a new method for learning summary statistics. We show that learning sufficient statistics may be easier than direct posterior inference, as the former problem can be reduced to a set of low-dimensional, easy-to-solve learning problems. This suggests us to explicitly decouple summary statistics learning from posterior inference in LFI. Experiments on five inference tasks with different data types validate our hypothesis.

 

Bayesian learning

Posted in Statistics with tags , , , , , , , , on May 4, 2023 by xi'an

“…many well-known learning-algorithms, such as those used in optimization, deep learning, and machine learning in general, can now be derived directly following the above scheme using a single algorithm”

The One World ABC webinar today was delivered by Emtiyaz Khan (RIKEN), about the Bayesian Learning Rule, following Khan and Rue 2021 arXival on Bayesian learning. (It had a great intro featuring a video of the speaker’s daughter learning about the purpose of a ukulele in her first year!) The paper argues about a Bayesian interpretation/version of gradient descent algorithms, starting with Zellner’s (1988, the year I first met him!) identity that the posterior is solution to

\min_q \mathbb E_q[\ell(\theta,x)] + KL(q||\pi)

when ℓ is the likelihood and π the prior. This identity can be generalised to an arbitrary loss function (also dependent on the data)  replacing the likelihood and considered for a posterior chosen within an exponential family just as variational Bayes. Ending up with a posterior adapted to this target (in the KL sense). The optimal hyperparameter or pseudo-hyperparameter of this approximation can be recovered by some gradient algorithm, recovering as well stochastic gradient and Newton’s methods. While constructing a prior out of a loss function would have pleased the late Herman Rubin, this is not the case, but rater an approach to deriving a generalised Bayes distribution within a parametric family, including mixtures of Gaussians. At some point in the talk, the uncertainty endemic to the Bayesian approach seeped back into the picture, but since most of the intuition came from machine learning, I was somewhat lost at the nature of this uncertainty.

 

 

the Bayesian learning rule [One World ABC’minar, 27 April]

Posted in Books, Statistics, University life with tags , , , , , , , , , , , on April 24, 2023 by xi'an

The next One World ABC seminar is taking place (on-line, requiring pre-registration) on 27 April, 9:30am UK time, with Mohammad Emtiyaz Khan (RIKEN-AIP, Tokyo) speaking about the Bayesian learning rule:

We show that many machine-learning algorithms are specific instances of a single algorithm called the Bayesian learning rule. The rule, derived from Bayesian principles, yields a wide-range of algorithms from fields such as optimization, deep learning, and graphical models. This includes classical algorithms such as ridge regression, Newton’s method, and Kalman filter, as well as modern deep-learning algorithms such as stochastic-gradient descent, RMSprop, and Dropout. The key idea in deriving such algorithms is to approximate the posterior using candidate distributions estimated by using natural gradients. Different candidate distributions result in different algorithms and further approximations to natural gradients give rise to variants of those algorithms. Our work not only unifies, generalizes, and improves existing algorithms, but also helps us design new ones.

mini-Bayes in Nature [and Paris-Saclay]

Posted in Books, Running, Statistics, University life with tags , , , , , , , , , , on February 7, 2023 by xi'an

What is luck? [book review]

Posted in Books, Statistics, Travel, University life with tags , , , , , , , , , , , , , , , , , , , , , , , , on December 10, 2021 by xi'an

I was sent—by Columbia University Press—this book for a potential review in CHANCE: What are the chances? (Why we believe in luck?) was written by Barbara Blatchley, professor of Psychology and Neuroscience at Agnes Scott College in Decatur, Georgia. I have read rather quickly its 193 pages over the recent trips I made to Marseille and Warwick. The topic is truly about luck and the psychology of the feeling of being luck or unlucky. There is thus rather little to relate to as a statistician, as this is not a book about chance! (I always need to pay attention when using both words, since, in French chance primarily means luck, while malchance means bad luck. And the French term for chance and randomness is hasard…) The book is pleasant to read, even though the accumulation of reports about psychological studies may prove tiresome in the long run and, for a statistician, worrisome as to which percentage of such studies were properly validated by statistical arguments…

“…the famous quote by Louis Pasteur: “Dans les champs de l’observation, le hasard ne favorise que les esprits préparés”s (…) Pasteur never saw a challenge he couldn’t overcome with patience and preparation.” (p.19)

Even the part about randomness is a-statistical and mostly a-probabilist, rather focusing on our subjective and biased (un)ability to judge randomness. The author introduces us to the concepts of apophenia, which is “the unmotivated seeing of connections accompanied with a specific feeling of abnormal meaningfulness”, and of patternicity for the “tendency to find meaningful patterns in meaningless noise”. She also states that (Neyman-Pearson) Type I error is about seeing a pattern in random noise while Type II errors are for conclusion of meaningless when the data is meaningful (p.15). Which is reductive to say the least, but lead her to recall the four types of luck proposed by James Austin (which I first misread as Jane Austin).

“There is a long-standing and deeply intimate connection between luck, religion, and belief in the supernatural.” (p.28)

I enjoyed very much the sections on these connections between a belief in luck and religions, even though the anthropological references to ancient religions are not strongly connected to luck, but rather to the belief that gods and goddesses could modify one’s fate (and avoiding the most established religions). Still, I appreciate her stressing the fact that if one believes in luck (as opposed to sheer randomness), this expresses at the very least a form of irrational belief in higher powers that can bend randomness in one’s favour (or disfavour). Which is the seed for more elaborate if irrational beliefs. (For illustrations, Borgès’ stories come to mind.)

“B.F. Skinner believed that superstitious behaviour was a consequence of learning and reinforcement.” (p.85)

There are also parts where (a belief in) luck and (human) learning are connected, but, unfortunately, no mention is made of the (vaguely) Bayesian nature of the (plastic, p. 188) brain modus operandi. The large section on the brain found in the book is instead physiological, since concerned with finding regions where the belief in luck could be located. In relation with attention-deficit disorders. (Revealing the interesting existence (for me) of mirror neurons, dedicated to predicting what could happen! Described as “predictive coding”, p.153). The last chapter “How to get lucky” contains a rather lengthy account of “Clever Hans”, the 1990 German counting horse (!). Who, as well-known, reacted to subtle and possibly unconscious signals from his trainer rather than to an equine feeling for arithmetic…

One of the clearest conclusions of the book is (imho) that a belief in luck may improve the life of the believers, while a belief in being unlucky may deteriorate it. The Taoist tale finishing the book is a pure gem. But I am still in the dark as to whether or not my exceptional number of bike punctures in the past year qualifies as bad luck!

“Luck is the way you face the randomness of the world.” (p.191)

As an irrelevant aside, one anecdote at the beginning of the book brought back memories of the Wabash River flowing through Lafayette, IN, as it tells of the luck of two Purdue female rowers who attempted a transatlantic race and survived capsizing in the middle of the Atlantic. It also made me regret I had not realised at the time there was a rowing opportunity there!