Git Product home page Git Product logo

gaussianvi's Introduction

An implementation of Gaussian variational inference (GVI) algorithm that uses a natural gradient method and leverages the factorized structure of the problem.

The GVI algorithm aims to optimize a Gaussian distribution, $q$ parameterized by $\mathcal{N}(\mu_\theta, \Sigma_\theta)$, to approximate a given posterior distribution, $p(X|Z)$, by minimizing the KL divergence between the 2 distributions:

$$q^{\star} = \underset{q \in \mathcal{Q}}{\arg\min}; {\rm KL} [q(X) || p(X|Z)]$$

If we denote the objective function $J(q) \triangleq {\rm KL} [q(X) || p(X|Z)] $, and define the negative-log-probability of the posterior distribution as $\psi(X) = -\log p(X|Z)$, then the update law of a natural gradient paradigm has closed-from [1] as expectations of $\psi$ with respect to the proposal Gaussian. For generic distributions $\psi$, the expectations can be estimated using nonlinear quadratures; For Gaussian like posteriors, $p(X|Z) = \exp \left( | \Lambda X - \Psi \mu |_{K^{-1}}^2 \right)$, the expectations have closed-form, which is much more efficient.

A simple 1D example

A simple 1D example for nonlinear factor estimation

Example applications

Nonlinear state estimation [2].

Stochastic Motion Planning [3].

References

[1] Opper, M. and Archambeau, C., 2009. The variational Gaussian approximation revisited. Neural computation, 21(3), pp.786-792.

[2] Barfoot, T.D., Forbes, J.R. and Yoon, D.J., 2020. Exactly sparse Gaussian variational inference with application to derivative-free batch nonlinear state estimation. The International Journal of Robotics Research, 39(13), pp.1473-1502.

[3] Yu, H., & Chen, Y. (2023). Stochastic Motion Planning as Gaussian Variational Inference: Theory and Algorithms. arXiv preprint arXiv:2308.14985.

gaussianvi's People

Contributors

hzyu17 avatar zinuochang avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.