Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [adam]

An adaptive algorithm for gradient-based optimization of stochastic objective functions, often used to train deep neural networks.

0
votes
1answer
87 views

Combining Random forest with Adam (or an other gradient method)

There is no "gradient" in the standard Random Forest formulation, but can I combine random Forests with an optimisation method like Gradient Descent or SGD? Can I use Adam (Adaptive moment estimation)...
5
votes
2answers
512 views

How well should I expect Adam to work?

I've been coding up a neural network package for my own amusement, and it seems to work. I've been reading about Adam and from what I've seen it's very difficult to beat. Well, when I implement the ...
0
votes
0answers
15 views

Significant oscillation in fully connected layer neural network training

I am using neural networks for a regression problem. There is one output variable. 80 features per sample. 2000 samples total. I have 2 hidden fully connected layers with 500, and 100 neurons, ...
0
votes
0answers
20 views

Accelerated Projected SGD under box constraints

Are there generalizations of ADAM or Adagrad algorithm that allow box constraints for the parameters to be incorporated in the gradient descent step? Is it valid to simply run the algorithm as usual ...
1
vote
1answer
382 views

What does decay_steps mean in Tensorflow tf.train.exponential_decay?

I am trying to implement an exponential learning rate decay with the Adam optimizer for a LSTM. I do not want the 'staircase = true' version. The decay_steps for me feels like the number of steps that ...
0
votes
1answer
147 views

Why we call ADAM an a adaptive learning rate algorithm if the step size is a constant

In the book "Deep Learning" by Goodfellow et.al, the ADAM algorithm is described in sub-chapter 8.5 "Algorithm with Adaptive Learning Rate". To my understanding an adaptive learning rate should ...
0
votes
0answers
81 views

Adam optimizer's escape from local minima [duplicate]

I noticed some interesting behaviour in my loss history while training my model. Please note the sudden change in test loss at around epoch 106. A similar drop will appear around epoch ~1000. It ...
0
votes
0answers
118 views

How to select parameters for ADAM gradient descent

I am using ADAM for performing gradient descent. I am having difficulty in setting the learning rate, $\beta_1$ and $\beta_2$. Along with gradient descent, I am projecting the paramters on $L_1$ ball ...
4
votes
0answers
119 views

what is the mistake of convergence proof in Adam

Sashank J. Reddi et. al in their paper "On the convergence of Adam and beyond" say that, Adam's proof of convergence as stated in original paper is wrong. More than that, they point out that the value ...
1
vote
1answer
231 views

Understanding a derivation of bias correction for the Adam optimizer

I'm reading paper about the Adam optimizer and went up until the bias-correction section; in the paper they estimate the bias of the moving average of the squared gradient. These are the equations ...
1
vote
0answers
43 views

Adaptive Moment Estimate - What is meant by parameters of Adam optimizer are biased towards zero initially? [duplicate]

Let us consider the Adam optimizer with the equation given below: $w_{t + 1} = w_{t} - \frac{\eta \times \bar{m_t}} {\sqrt{\bar{v_t} + \epsilon}}$ Here $w$ denotes weight (in time $t$ and $t + 1$) ...
3
votes
1answer
326 views

What does Diagonal Rescaling of the gradients mean in ADAM paper?

I was reading the original paper on ADAM (Adam: A Method for Stochastic Optimization), which mentions: [...] invariant to diagonal rescaling of the gradients, [...] What does it mean? Also, ...
0
votes
0answers
24 views

Normalizing Data and Adaptive Gradient-based Optimization

Do you need to normalize your data if you use an adaptive gradient-based method like Adam, AdaDelta, AdaGrad, or AdaMax? According to some responses I read on other questions, normalization helps keep ...
2
votes
1answer
206 views

Two large decreses in loss function with ADAM optimizer

I am training an RNN with tensorflow using the ADAM optimizer. The loss with respect to iteration has a sort of "two stage" decrease. As shown in the image below. The task itself if just trying to ...
1
vote
0answers
28 views

Decreasing accuracy of neural network after long training

I trained a MLP network in Tensorflow which reached at some point 98.66 % accuracy. I used the MNIST data set and five hidden layers of the following size: 4096, 2048, 4096, 2048, 4096. In Tensorflow ...
6
votes
2answers
1k views

Etymology of “Adam” algorithm for gradient descent

What is the history behind the choice of the name "Adam" as used in Adam: A Method for Stochastic Optimization?
1
vote
0answers
114 views

Do we need to normalize inputs when using adaptive learning rate optimizers?

As stated in this thread Why do we need to normalize the images before we put them into CNN?, normalization of the inputs to a deep network to have zero mean and unit-deviation will make SGD more ...
2
votes
0answers
195 views

Difference between Stochastic Approximation (SA) and Stochastic Gradient Descent (SGD)

I understand the intended use cases for both stochastic approximation algorithms like SPSA or FDSA, and for SGD algorithms like Adam. SPSA is intended for noisy objective functions, and Adam for ...
3
votes
1answer
347 views

What should we do when changing SGD optimizer to Adam optimizer?

Adam is one popular method of the optimization policies with adaptive learning rate. I'm focusing on a image segmentation project using fully convolutional networks. All weights were initialized by ...
2
votes
0answers
276 views

Does RMSProp/Adam solve vanishing gradient problem?

RMSProp and Adam both scale the effectively learning rate by dividing the moving average of past gradients (root mean squared). So if the first layer has gradient much smaller than the last layer, ...
0
votes
1answer
609 views

XGBoost Optimization Function

Which optimization technique does XGBoost use? I have trained my XGBoost classifier using the 'binary:logistic' objective. Does it use SGD / Adam?
8
votes
1answer
16k views

RMSProp and Adam vs SGD

I am performing experiments on the EMNIST validation set using networks with RMSProp, Adam and SGD. I am achieving 87% accuracy with SGD(learning rate of 0.1) and dropout (0.1 dropout prob) as well ...
6
votes
1answer
2k views

The reason of superiority of Limited-memory BFGS over ADAM solver

I am using Multilayer Perceptron MLPClassifier for training a classification model for my problem. I noticed that using the solver lbfgs (I guess it implies Limited-...
1
vote
1answer
2k views

No change in accuracy using Adam Optimizer when SGD works fine

I have been training a Spatial Transformer network with DNN on GTRSB dataset. I initially used SGF with momentum and was able to achieve good accuracy. For further improvements and testing, I ...
2
votes
1answer
5k views

How does batch size affect Adam Optimizer?

What impact does mini-batch size have on Adam Optimizer? Is there a recommended mini-batch size when training a (covolutional) neural network with Adam Optimizer? From what I understood (I might be ...
1
vote
0answers
448 views

Loss update with mini batches and after epoch

If I understand correctly, when using deep learning with mini batches, we have a forward and backward pass in every mini batch (with the corresponding optimizer). But does something different happen ...
7
votes
2answers
5k views

Explanation of Spikes in training loss vs. iterations with Adam Optimizer

I am training a neural network using i) SGD and ii) Adam Optimizer. When using normal SGD, I get a smooth training loss vs. iteration curve as seen below (the red one). However, when I used the Adam ...
5
votes
0answers
1k views

Spikes in loss function of deep neural network training [duplicate]

I'm training a simple feed-forward Deep Network with standard relu/sigmoid activation functions, using Tensorflow. I tried several optimizers and I noticed that those belonging to the Adam family show ...
1
vote
2answers
1k views

Why update all parameters at each step of the Adam optimiser even when we have sparse observations?

Adam is a method for stochastic optimisation. The algorithm is given below. Consider our parameters that we wish to optimise $$\boldsymbol{\theta} = [\theta_1, \theta_2]$$ observations $$\...
0
votes
0answers
842 views

Better Performance With Gradient Descent than Adam on word2vec

I was implementing word2vec in TensorFlow and found that Gradient Descent worked much better and faster than the AdamOptimizer. I was under the impression that Adam was the "smarter" option that ...
4
votes
1answer
1k views

Is manually tuning learning rate during training redundant with optimization methods like Adam?

I have seen some high-profile deep learning papers where an optimization method like Adam was used, yet the learning rate was manually changed at specific iterations. What is the relationship between ...
1
vote
1answer
557 views

Convergence proof of ADAM optimizer

I've read ADAM paper (https://arxiv.org/abs/1412.6980) and found out a suspicious part. In Lemma 10.3 of Appendix, \begin{align*} \sqrt{\|g_{1:T,i}\|_2^2 - g_{T,i}^2} & \le \|g_{1:T,i}\|_2 - \...
5
votes
1answer
6k views

How to choose between SGD with Nesterov momentum and Adam?

I'm currently implementing a neural network architecture on Keras. I would like to optimize the training time, and I'm considering using alternative optimizers such as SGD with Nesterov Momentum and ...
1
vote
1answer
2k views

Training accuracy increase abruptly at first epoch to 99%. is it normal?

I expected my training process is like this: But my training accuracy increased to 99% at only 1 epoch, not steadily increase. I was suspicious about high learning rate, so i used various learning ...
4
votes
1answer
468 views

Should you use optimization algorithms like Adagrad and ADAM for neural network online training?

Optimization algorithms like Adagrad and ADAM decay your learning rate over time. To me this sounds like a bad idea for online training since you're always getting new data as opposed to retraining on ...
11
votes
1answer
5k views

Why is it important to include a bias correction term for the Adam optimizer for Deep Learning?

I was reading about the Adam optimizer for Deep Learning and came across the following sentence in the new book Deep Learning by Begnio, Goodfellow and Courtville: Adam includes bias corrections to ...
23
votes
3answers
6k views

What is the reason that the Adam Optimizer is considered robust to the value of its hyper parameters?

I was reading about the Adam optimizer for Deep Learning and came across the following sentence in the new book Deep Learning by Bengio, Goodfellow and Courville: Adam is generally regarded as ...
43
votes
1answer
26k views

How does the Adam method of stochastic gradient descent work?

I'm familiar with basic gradient descent algorithms for training neural networks. I've read the paper proposing Adam: ADAM: A METHOD FOR STOCHASTIC OPTIMIZATION. While I've definitely got some ...
49
votes
5answers
60k views

Adam optimizer with exponential decay

In most Tensorflow code I have seen Adam Optimizer is used with a constant Learning Rate of 1e-4 (i.e. 0.0001). The code usually looks the following: ...