Add tail-adaptive f divergence to variational inference#855
Open
OleksiiBevza wants to merge 3 commits into
Open
Add tail-adaptive f divergence to variational inference#855OleksiiBevza wants to merge 3 commits into
OleksiiBevza wants to merge 3 commits into
Conversation
Contributor
Author
|
I'm also considering contributing implementations of two VI frameworks: Both methods are theoretically motivated to be more robust and capable of better posterior approximations than standard VI, particularly for complex distributions. Would love to hear any design suggestions to keep the implementation clean :) In the meantime will add an example with existing VI to sampling book. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Extension of variational inference with support for multiple divergence objectives.
Estimating and optimizing α-divergences require to use importance sampling, which may have large or infinite variance due to heavy tails of importance weights. In order to avoid this, researchers propose tail-adaptive f divergence that adaptively change the convex function with the tail distribution of the importance weights, in a way that theoretically guarantees finite moments,
while simultaneously achieving mass-covering properties.
Concretely, this PR adds support for:
In particular:
objectiveargumentThis gives users a unified way to experiment with different VI objectives and compare behavior across scenarios, including standard KL-based optimization, α-divergence objectives, and more robust mass-covering tail-adaptive alternatives.
Based on:
(i) https://arxiv.org/abs/1810.11943
(ii) https://seunghan96.github.io/bnn/5.Variational-Inference-with-Tail-adaptive-f-Divergence/
(iii) https://github.com/dilinwang820/adaptive-f-divergence