The Living Thing / Notebooks :

Machine learning for physics

Turbulent mixing at the boundary between two disciplines with differing inertia

Liu et al (LRPC16_):

CNN classification of atmospheric rivers
CNN classification of atmospheric rivers

Sample images of atmospheric rivers correctly classified (true positive) by our deep CNN model. Figure shows total column water vapor (color map) and land sea boundary (solid line).

In physics, typically, we are concerned with identifying True Parameters for Universal Laws, applicable without prejudice across all the cosmos. We are hunting something like the Platonic ideals that our experiments are poor shadows of. Especially, say, quantum physics or cosmology.

In machine learning, typically we want to make generic predictions for a given process, and quantify how good those predictions can be given how much data we have and the approximate kind of process we witness, and there is no notion of universal truth waiting around the corner to back up our wild fancies. On the other hand, we are less concerned about the noisy sublunary chaos of our experiments and don’t need to worry about how far our noise drives us from truth as long as we estimate it. But then, far from universality, we have weak and vague notions of how to generalise our models to new circumstances and new noise. That is, in the Platonic ideal of machine learning, there are no Platonic ideals to be found.

(This explanation does no justice to either physics or machine learning, but here is a mere framing rather than an essay in the history or philosophy of science.)

Can these areas have something to say to one another nevertheless? After an interesting conversation with Shane Keating about the difficulties of ocean dynamics, I am thinking about this in a new way; Generally, we might have notions from physics of what “truly” underlies a system, but where many unknown parameters, noisy measurements, computational intractability and complex or chaotic dynamics interfere with our ability to predict things using only known laws of physics; Here, we want to come up with a “best possible” stochastic model of a system given our uncertainties and constraints, which looks a lot like an ML problem.

At a basic level, it’s not controversial (I don’t think?) to use machine learning methods to analyse data in experiments, even with trendy deep neural networks (e.g. RKSB16, LRPC16). I understand that this is huge, e.g. in connectomics.

Perhaps a little more fringe is using machine learning to reduce computational burden, e.g. JKPK17, CaTr17.

The thing that is especially interesting to me is learning the whole model from ML formalism, using physical laws as input to the learning process.

To be concrete, Shane specifically was discussing problems in predicting and interpolating “tracers”, such as chemical or heat, in oceanographic flows. Here we know lots of things about the fluids concerned, but less about the details of the ocean floor and have very imperfect measurements of the details. Nonetheless, we also know that there are certain invariants, conservation laws etc, so a truly “nonparametric” approach to dynamics is certainly throwing away information. We know that our

There is some cute work in this area, like the SINDy method, a compressive-sensing state filter of Brunton et al (BrPK16a, BrPK16b); but it’s hard to imagine scaling this up (at least not directly) to big things like large image sensor arrays and other such weakly structured input.

Recently, though, Lotter et al (LoKC16) have shown that in fact prediction of whole sequences of images is possibly using neural nets, although their approach is not physics-driven. They get bonus points for making the code, prednet, downloadable. People like Chang et al (CUTT17) claim that learning “compositional object” models should be possible. The compositional models here are learnable objects with learnable pairwise interactions, and bear a passing resemblance to something like the physical laws that physics experiments hope to discover, although I’m not yet totally persuaded about the details of this particular framework. On the other hand, unmotivated appealing to autoencoders as descriptions of underlying dynamics of physical reality doesn’t seem sufficient.

There is an O’Reilly podcast and reflist about deep learning for science in particular.

The other direction: What does physics say about learning?

See why does deep learning work or the statistical mechanics of statistics.


Why not “statistics for physics”? No reason not to do that; but physics already uses lots of statistics, so we don’t need a new notebook for that. Moreover, there are certain interesting problems in statistics that seem to be especially obvious in physics-driven dynamical problems. The one that bothers me most is estimation theory for time-series data. I find it highly unsatisfactory that, in frequentist statistics, time series estimation results provide only asymptotic guarantees and even then, only for samples from realizations of stationary processes. ML theory, by contrast, has made progress on statistical learning theory for dependent data in the non-stationary case (McSS11, AlLW13, KuMo14).

OTOH, I might be able to get more mileage out of Bayesian time series methods? I’ve never looked into estimation theory there.

Related, maybe: the recovery phase transition in compressed sensing.