Skip to content

Vanishing gradients? #3

Description

@netheril96

The derivative of sigmoid is very small when the scores are away from zero, which is why sigmoid activation has all but abandoned in deep learning. In the original GAN, the logarithm of sigmoid is used as the loss function, and the derivative of logarithm is large enough to cancel out the vanishing gradient issue.

If I get it right, in LSGAN the loss for the generator is the squared sum of 1 minus sigmoid of discriminator output. That seems to suffer from vanishing gradients as well, and indeed in my cursory experiments the network loss never goes down. How do you overcome that?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions