Questions tagged [gradient]

For questions related to the gradient, a way of packing together all the partial derivative information of a function

Filter by
Sorted by
Tagged with
0
votes
0answers
9 views

How to handle critical points during generator training?

Using an MLP as generator introduces multiple critical points in parameter space. You can read this excerpt from research paper titled Generative Adversarial Nets In practice, adversarial nets ...
0
votes
1answer
18 views

What is meant by “well-behaved gradient” in this context?

Consider the following statement about the success of discriminative models So far, the most striking successes in deep learning have involved discriminative models, usually those that map a high-...
0
votes
1answer
25 views

How to calculate the gradient penalty proposed in “Improved Training of Wasserstein GANs”?

The research paper titled Improved Training of Wasserstein GANs proposed a gradient penalty in order to avoid undesired behavior due to weight clipping of the discriminator. We now propose an ...
0
votes
0answers
32 views

What are the input and output gradients in PyTorch?

Suppose I want to train a neural network with $m-$length inputs of form $x = [x_1, x_2, x_3, \cdots, x_m]$ and $n-$length outputs of form $y = [y_1, y_2, y_3, \cdots, y_n]$. Let the number of ...
1
vote
1answer
39 views

What does it mean by “zeros the networks parameters gradients” in the context of training a neural network?

Consider the following PyTorch code ...
0
votes
0answers
16 views

Gradient of Scalar objective cannot be efficiently calculated?

Suppose we generate the vector output $y$ from model $h(x, \theta)$, with input $x$ and parameters $\theta$. Reverse mode differentiation says that we can calculate the gradient \begin{align*} \...
1
vote
0answers
14 views

Terminology for the weight of likelihood ratio/score function?

If we estimate the gradient of $f(x)$ using the likelihood ratio/score function, i.e. $$\nabla f = f^*\dfrac{\partial \log p(x)}{\partial \theta}$$ is there any agreed upon terminology to call "$...
0
votes
1answer
47 views

Why don't integrated gradients explain samples correctly?

I have a linear tabular dataset made of floats. The dataset follows a simple rule like: ...
2
votes
1answer
136 views

Why is it a problem if the outputs of an activation function are not zero-centered?

In this lecture, the professor says that one problem with the sigmoid function is that its outputs aren't zero-centered. Are the explanation provided by the professor regarding why this is bad is that ...
5
votes
2answers
124 views

Why is tf.abs non-differentiable in Tensorflow?

I understand why tf.abs is non-differentiable in principle (discontinuity at 0) but the same applies to tf.nn.relu yet, in case of this function gradient is simply set to 0 at 0. Why the same logic is ...
2
votes
1answer
62 views

What is $ \nabla_{\theta_{k-1}} \theta_{k}$ in the context of MAML?

I am attempting to fully understand the explicit derivation and computation of the Hessian and how it is used in MAML. I came across this blog: https://lilianweng.github.io/lil-log/2018/11/30/meta-...
0
votes
0answers
23 views

During Backpropagation in LSTM, why is the previous output $h_{t-1}$ considered constant w.r.t any $W$ while computing derivative?

I've just started learning LSTM, and some points in the process of calculating the gradients are getting me confused. Say, for example, we want to compute $\frac{\partial}{\partial W_i}L$, where $L$ ...
4
votes
1answer
1k views

How is the gradient of the loss function in DQN derived?

In the original DQN paper, page 1, the loss function of the DQN is $$ L_{i}(\theta_{i}) = \mathbb{E}_{(s,a,r,s') \sim U(D)} [(r+\gamma \max_{a'} Q(s',a',\theta_{i}^{-}) - Q(s,a;\theta_{i}))^2] $$ ...
1
vote
1answer
141 views

How can the sum of squared errors have negative gradient if it's defined as the squared of the error?

The formula for the sum of squared errors (SSE) is: $$ \frac{1}{2} \sum_{i=1}^n (t^i - o^i)^2 $$ I have a few related questions. If $t^i - o^i$ is negative, doesn't the power of 2 eliminate any ...