GithubHelp home page GithubHelp logo

Batch optimization about pix2latent HOT 2 CLOSED

kkang831 avatar kkang831 commented on July 26, 2024
Batch optimization

from pix2latent.

Comments (2)

minyoungg avatar minyoungg commented on July 26, 2024 1

If I understood your question correctly ..

The goal is to not have diverse initialization but to show that an algorithm that is robust to the initialization and local-minima can find better solutions.

Adam has a nice property of letting you optimize a single sample. However, Adam is greatly affected by the initialization of latent variable z and therefore it's beneficial to do batched-optimization regardless and take the argmax_zs L(G(zs), y) where zs is the batch of latent variables z.

A more initialization-robust alternative is to use BasinCma/CMA. CMA-based algorithms are natively a batched es-optimizers. The optimizer will update the sampling distribution with the evaluation from the batched-candidates. Resample candidates from the updated distribution and repeat.

In the end, it boils down to what you care about. Speed vs quality of fit.

Adam: very fast + mediocre fit (allows you to optimize with any number of batch-size)
CMA: fast + decent fit (no backward pass required / fixed batch optimization)
BasinCMA: slow + great fit (backward pass required / fixed batch optimization)

from pix2latent.

kkang831 avatar kkang831 commented on July 26, 2024

Thank you for the kind explanation.
That's a perfect explanation.

from pix2latent.

Related Issues (9)

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.