Git Product home page Git Product logo

csci-ga.3033-022's Introduction

CSCI-GA.3033-022

NYU CIMS 'Deep Generative Models' course

https://cs.nyu.edu/courses/spring18/CSCI-GA.3033-022/

Final Project - Numerical Tests

The aim is to understand if sub-optimal discriminator in GANs define a meaning-ful distance between two distributions. We generated two sets of Gaussian distributions. The first set consists of one fixed distribution P. The second set consists of a collection of distributions Q_i approaching P in some sense. For each Q_i we train a classic GAN discriminator (250 rounds, with L2 regularization) and we report the loss.

Test 1

In this case P is taken to be a d-dimensional standard Gaussian distribution projected on the vector e_1. Q_i is taken to be a d-dimensional standard Gaussian distribution projected on a unit vector v_i. The vectors v_i converge to e_1 as i increases (in particular <e_1,v_i> is an increasing function in i). The plot below reports the loss as a function of i.

Loss

Here i belongs to {0.,0.1,...,0.9,1.} The distribution P and Q_i have not perfectly aligned supports for i < 1. In this case the divergence is not capable to see any differences between the different distributions. The distance is minimized for Q=P (i=1.).

Test 2

In this case P is taken to be a d-dimensional standard Gaussian distribution with mean mu=0. Q_i is taken to be a d-dimensional standard Gaussian distribution with mean mu_i=i, for i in {0.,1.,...,9.}. The plot below reports the loss as a function of i.

Loss

For i < 3., the distance seems to be meaningful. For i >= 3., the supports almost do not overlap - this results in a distance which does not see any difference for different values of mu_i >= 3.

Conclusion

The GAN standard discriminator loss evaluated on a sub-optimal discriminator defines a meaningful distance as long as the supports have some overlapping; over that point, it is not able to recognize between different distributions.

Unfortunately I ran out of time and I did not have chances to run more numerical tests. This will be object of future investigations.

csci-ga.3033-022's People

Contributors

luca-venturi avatar

Watchers

 avatar

Forkers

popkarthb

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.