11
$\begingroup$

I was browsing the github repo for Pymc and found this notebook:

Variational Inference: Bayesian Neural Networks

The author extols the virtues of bayesian/probabilistic programming but then goes on to say:

Unfortunately, when it comes to traditional ML problems like classification or (non-linear) regression, Probabilistic Programming often plays second fiddle (in terms of accuracy and scalability) to more algorithmic approaches like ensemble learning (e.g. random forests or gradient boosted regression trees).

Could someone please explain:

  1. If this statement is generally true
  2. Why this statement is true
$\endgroup$

2 Answers 2

20
$\begingroup$
  1. It's generally true in my personal experience as a professional data scientist.

  2. It's true in my personal experience because it's what I observe most of the time. If you're asking why it happens this way, it's for a few reasons:

  3. Many traditional ML algorithms are nowadays available "off the shelf", including sophisticated ensemble methods, neural networks, etc. Probabilistic methods still often require bespoke solutions, either written in a DSL like Stan or directly in a general-purpose programming language.

  4. Many people entering data science nowadays are coming from engineering and natural science backgrounds, where they have strong mathematical and "algorithmic" skills but don't have as much experience or intuition with probability modeling. It's just not on their radar, and they aren't as comfortable with the methods and the software required to implement them.

  5. Making a "hard" prediction from a probabilistic model involves either hand-waving or formal decision theory. AI researchers and highly-paid statistical consultants know this, and they embrace it. But for the rank-and-file data scientist, it's not so easy to turn to your manager and start speaking in terms of distributions and probabilities. The business (or the automated system you're building) just needs a damn answer. Life is just a whole lot easier when you stop equivocating about probabilities and stuff, in which case you might as well not bother with them in the first place.

  6. Probabilistic modeling often ends up being very computationally intensive, especially Bayesian modeling where closed-form solutions are a rare luxury, and doubly especially on "big" data sets. I wouldn't hesitate to run XGBoost on a data set with 10 million rows. I wouldn't even consider running a Stan model on a data set with 10 million rows.

Given all the downsides described above, a data scientist or a small team of data scientists can iterate much more quickly using less-probabilistic machine learning techniques, and get "good enough" results.

Edit: as pointed out in the comments, #1 and #2 could both be because probabilistic programming methods haven't yet been shown to have knockout performance on real-world problems. CNNs got popular because they blew away existing techniques.

Edit 2: it seems that probabilistic is getting popular for time series modeling, where deep learning doesn't seem as effective as in other domains.

Edit 3 (December 2020): probabilistic programming is now becoming much more popular in a wide variety of domains, as probabilistic programming languages get better and the solvers get better and faster.

$\endgroup$
4
  • 2
    $\begingroup$ Nice answer. However the reciprocal of points #1 & #2 could be argued equally well: they could be explained by the lack of practical performance of probabilistic programming. If a PP paper gets out showing the kind of superiority on the state of the art on a benchmark dataset as Krizhevsky's paper did with convnets, many will turn Bayesian overnight. $\endgroup$
    – P-Gn
    Commented Jun 9, 2018 at 16:18
  • $\begingroup$ That's a really good point @user1735003 $\endgroup$ Commented Jun 10, 2018 at 17:13
  • $\begingroup$ I am not sure this answer is good anymore. There are nowadays plenty of techniques for "probabilistic programming" on bigger datasets, and plenty of probabilistic and Bayesian neural network architectures. Please interpret this only as an historical record of my arrogance, and not as useful information in the 2020s and onward. $\endgroup$ Commented Feb 14, 2023 at 17:07
  • $\begingroup$ I am waiting for the 5-year anniversary edit! (I have already upvoted this, and no, I am not totally joking, it is always interesting to see the evolution of these points) $\endgroup$
    – usεr11852
    Commented Feb 24, 2023 at 19:10
5
$\begingroup$

To combat ShadowTalker above's point about probabilistic ML being not quite up to snuff yet, is definitely true as-is, but there have been some really exciting advances in scalability and complexity because of variational inference which is definitely still cutting-edge research. I think it remains an interesting question of whether, if probabilistic ML could deliver the same performance of traditional methods, would we prefer it uniformly to those methods? In a lot of ways, there's so much more information conveyed in a PML estimated posterior.

Regardless of the answer to the above question, I think the two sets of methods will live in different niches in the years to come. I think probably traditional methods will retain a performance edge to some degree, but when we're actually worried about the latent variables (unknowns) in a problem, PML will be the right machinery for the job.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.