• Roman Kazinnik

Beyond Supervised ML: learning latent distributions

Supervised ML is a powerful tool, however there is a range of problems where its utilization can't be justified. Such problems include reasoning, inference - and also distributions learning. Until recently large-scale distributed problems were limited to using Supervised ML. Introduction of deep-learning PyTorch and Tensorflow 2.0 opens Unsupervised ML to large-scale problems.


Banner data, regression, three Bayesian distributions

Problem supervised learning based solely on predictors results in incorrect inference. Example: linear logistic regression in Bayesian framework (see using two predictors and their product factor (three-parameter regression) incorrectly infers no statistical significance of the Treatment-Control experiment: Treatment-Control factor distribution contains "0" within 95% CI (right Figure)

Data website visitors presented with red or green banner (denote as Control and Treatment condition). Two other columns include website visitor converted and time spent on website (data example follows AB-test use case in

Data is split into Control-Treatment and Conversion almost equally, with some time pattern that will be learnt automatically.

Goals we want to learn conversion probabilities for Control and Treatment groups.

"Learning conversion rates with Bayesian inference" produces almost equivalent distributions for the two groups.

"Naive Bayes/Supervised ML" can not be utilized directly due to Time being a continuous variable.

"Unsupervised ML: Learning latent variable Group" Bayesian network allows to apply Bayesian inference to Conversion variable, which is now determined by the categorical variables Banner and Group.

Unsupervised ML key advantages include (1) removing rule-based and hard-thresholds constraints, and (2) automatic learning patterns (distributions) from data at arbitrary scale and data complexity.

Unsupervised ML: Learning Latent 'Group' Variable

Learning two conversion distributions: green and red banner

Learning three conversion distributions: 'Robot' (blue) and 'Human' (green and red banner)

Conversion distributions of for Control versus Treatment show not difference when applied as Supervised ML for two variables (Banner and Converted).

Unsupervised ML allows learning a new variable Group "Robot vs. Human": Robot presumably have a unique conversion distribution which does not depend on Banner. Introducing new Group variable allows to utilize Time, which in its turn governs three output conversion distributions: Robots (blue), and Humans (Control, red and Treatment, green). It is clear that Control group converges at higher rates!

Top: histogram of Time. Bottom: learning two Time distributions 'Robot' and 'Human'(red)

Lastly, learning distributions as a part of Unsupervised ML allows to learn the rules from the data rather than hard-coded thresholds.

Here are several most important advantages of Unsupervised ML with distributions learning:

  1. Supervised ML can't be extended directly to inference besides point-wise predictions.

  2. No hard thresholds - departing from manual learning and maintaining hard rules in production

  3. Automatic Inference - hypothesis and models can be built, trained and evaluated automatically.

  4. Real world complex data - including high-cardinal variables and large number of predictors.

8 views0 comments