Deep Bayes: Discrete Latent Variables

Introduction:

这篇笔记会记录一些离散隐变量模型,转载请注明。
Reference:Deep Bayes

Motivation

  1. Easier to interpret discrete categories than continuous spectrum
    example: discrete variational autoencoder
  2. Allow the model to make a discrete choice
    example: hard attention
    An attention module generates binary mask of where to look at
    The network classifies masked images
    We want attention module to attend only important areas of the image.

Reinforce Estimator

图片说明
However, this typically has large variance
Requires sophisticated Variance Reduction methods
Just taking bigger M gives only a modest improvement.
图片说明
图片说明
Idea: Relax the objective over discrete random samples z into an objective oven continuous random samples during training and use the reparametrization trick:
图片说明

Gumbel-Max trick

图片说明
图片说明
Some ideas about Gumbel Distribution:
https://qinqianshan.com/math/probability_distribution/gumbel-distribution/
图片说明
图片说明
图片说明
图片说明

Variance Reduction

Control Variates
Consider some with tractable expectation . Then图片说明
图片说明
图片说明
图片说明
Simple Baselines:
Constant baseline
图片说明
Variance Minimization:
图片说明
Gumbel-Relaxed Baselines:
图片说明
图片说明

算法小屋 文章被收录于专栏

不定期分享各类算法以及面经。同时也正在学习相关分布式技术。欢迎一起交流。

全部评论

相关推荐

点赞 评论 收藏
分享
06-07 19:59
门头沟学院 C++
补药卡我啊😭:都快15年前的了还在11新特性
你的简历改到第几版了
点赞 评论 收藏
分享
头像 会员标识
05-26 10:24
门头沟学院 Java
qq乃乃好喝到咩噗茶:其实是对的,线上面试容易被人当野怪刷了
找工作时遇到的神仙HR
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务