AdaDelta

public class AdaDelta

Optimizer that implements the Adadelta algorithm.

Adadelta optimization is a stochastic gradient descent method that is based on adaptive learning rate per dimension to address two drawbacks:

  • the continual decay of learning rates throughout training
  • the need for a manually selected global learning rate

Adadelta is a more robust extension of Adagrad that adapts learning rates based on a moving window of gradient updates, instead of accumulating all past gradients. This way, Adadelta continues learning even when many updates have been done. Compared to Adagrad, in the original version of Adadelta you don't have to set an initial learning rate. In this version, initial learning rate can be set, as in most other optimizers.

According to section 4.3 ("Effective Learning rates"), near the end of training step sizes converge to 1 which is effectively a high learning rate which would cause divergence. This occurs only near the end of the training as gradients and step sizes are small, and the epsilon constant in the numerator and denominator dominate past gradients and parameter updates which converge the learning rate to 1.

According to section 4.4("Speech Data"),where a large neural network with 4 hidden layers was trained on a corpus of US English data, ADADELTA was used with 100 network replicas.The epsilon used is 1e-6 with rho=0.95 which converged faster than ADAGRAD, by the following construction: new AdaDelta(graph, 1.0f, 0.95f, 1e-6f);

Constants

Inherited Constants

org.tensorflow.framework.optimizers.Optimizer
String VARIABLE_V2

Public Constructors

AdaDelta(Graph graph)
AdaDelta(Graph graph, float learningRate)
Creates an AdaDelta Optimizer
AdaDelta(Graph graph, float learningRate, float rho, float epsilon)
Creates an AdaDelta Optimizer
AdaDelta(Graph graph, String name, float learningRate)
Creates an AdaDelta Optimizer
AdaDelta(Graph graph, String name, float learningRate, float rho, float epsilon)
Creates an AdaDelta Optimizer

Public Methods

String
getOptimizerName()
Get the Name of the optimizer.
String

Inherited Methods

org.tensorflow.framework.optimizers.Optimizer
Op
applyGradients(List<GradAndVar<? extends TType>> gradsAndVars, String name)
Applies gradients to variables
<T extends TType> List<GradAndVar<?>>
computeGradients(Operand<?> loss)
Computes the gradients based on a loss operand.
static String
createName(Output<? extends TType> variable, String slotName)
Creates a name by combining a variable name and a slot name
abstract String
getOptimizerName()
Get the Name of the optimizer.
<T extends TType> Optional<Variable<T>>
getSlot(Output<T> var, String slotName)
Gets the slot associated with the specified variable and slot name.
final Ops
getTF()
Gets the Optimizer's Ops instance
Op
minimize(Operand<?> loss)
Minimizes the loss by updating the variables
Op
minimize(Operand<?> loss, String name)
Minimizes the loss by updating the variables
boolean
equals(Object arg0)
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()

Constants

public static final String ACCUMULATOR

Constant Value: "accum"

public static final String ACCUMULATOR_UPDATE

Constant Value: "accum_update"

public static final float EPSILON_DEFAULT

Constant Value: 1.0E-7

public static final float LEARNING_RATE_DEFAULT

Constant Value: 0.001

public static final float RHO_DEFAULT

Constant Value: 0.95

Public Constructors

public AdaDelta (Graph graph)

public AdaDelta (Graph graph, float learningRate)

Creates an AdaDelta Optimizer

Parameters
graph the TensorFlow Graph
learningRate the learning rate

public AdaDelta (Graph graph, float learningRate, float rho, float epsilon)

Creates an AdaDelta Optimizer

Parameters
graph the TensorFlow Graph
learningRate the learning rate
rho The decay factor
epsilon A constant epsilon used to better conditioning the grad update

public AdaDelta (Graph graph, String name, float learningRate)

Creates an AdaDelta Optimizer

Parameters
graph the TensorFlow Graph
name the name for this Optimizer (defaults to 'Adadelta')
learningRate the learning rate

public AdaDelta (Graph graph, String name, float learningRate, float rho, float epsilon)

Creates an AdaDelta Optimizer

Parameters
graph the TensorFlow Graph
name the name for this Optimizer (defaults to 'Adadelta')
learningRate the learning rate
rho The decay factor
epsilon A constant epsilon used to better conditioning the grad update

Public Methods

public String getOptimizerName ()

Get the Name of the optimizer.

Returns
  • The optimizer name.

public String toString ()