minibatch sub-sampling with ADVI

275 views
Skip to first unread message

inti pedroso

unread,
Mar 4, 2016, 1:14:35 PM3/4/16
to Stan users mailing list
Hello,
I have the following mixture model, https://gist.github.com/inti/f8b91ee7bcb98288e314. I want to implement ADVI using sub-sampling/minibatches. 
I have checked the pre-print Automatic Variational Inference in Stan by Kucukelbir et al. Looking the example of ADVI with mini batches on Figure 10 and 11 but I still cannot get my head around on how is implemented. 
Are the mini-batches defined from the start? how is the data sub-sampled during the inference? 

Any help would be very much welcomed.
Thanks in advance
Kind Regards,

Inti

Bob Carpenter

unread,
Mar 4, 2016, 5:40:05 PM3/4/16
to stan-...@googlegroups.com
Mini-batching isn't supported through Stan yet. They
figured out how to make it work for the paper, but we
still need to figure out how to define what the minibatches
are (and perhaps batch-related parameters) before interfacing
to general Stan models.

- Bob
> --
> You received this message because you are subscribed to the Google Groups "Stan users mailing list" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to stan-users+...@googlegroups.com.
> To post to this group, send email to stan-...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Inti Pedroso

unread,
Mar 4, 2016, 6:37:40 PM3/4/16
to stan-...@googlegroups.com
Thanks for the clarification!
Cheers
Inti
> You received this message because you are subscribed to a topic in the Google Groups "Stan users mailing list" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/stan-users/TDzbm6LA0Iw/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to stan-users+...@googlegroups.com.

Dustin Tran

unread,
Mar 5, 2016, 1:23:14 AM3/5/16
to stan-...@googlegroups.com
Hi Inti,

Meanwhile, we have a short tutorial documenting how to do a hack so that you can do data subsampling with ADVI:

Dustin

Inti Pedroso

unread,
Mar 5, 2016, 8:14:09 AM3/5/16
to stan-...@googlegroups.com
Thanks, will git a go!

Bob Carpenter

unread,
Mar 5, 2016, 2:53:07 PM3/5/16
to stan-...@googlegroups.com
Cool --- didn't know that was there.

- Bob

Alp Kucukelbir

unread,
Mar 5, 2016, 4:09:45 PM3/5/16
to Stan users mailing list
inti: let us know how it goes; i've used that strategy to good effect, but not on many models.

cheers,
alp
Reply all
Reply to author
Forward
0 new messages