Term
straight-through estimator
Meaning
A heuristic gradient estimator for a hard threshold unit that passes the gradient with respect to the sampled binary output straight back to the pre-sigmoid activation, as if the threshold were the identity. It is a biased estimator.
Source Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computation
How papers use it 7 papers
Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computation
Use Used for the stochastic gater in the MNIST conditional computation experiment, where the gradient with respect to the sampled output is used directly as the gradient with respect to the pre-sigmoid activation. The paper reports that multiplying by the derivative of the sigmoid did not help, so the plain version was used. The authors describe the estimator as correct in sign for a single layer but not guaranteed for deeper stacks. In the MNIST comparison it gave the lowest validation and test error among the gater types.
wav2vec 2.0: A Framework for Self-Supervised Learning of Speech Representations
Use Used together with hard Gumbel softmax operations in the quantization module, so that the discrete codebook selection stays trainable end to end. The model applies G such hard Gumbel softmax operations, one per codebook group.
Meaning A gradient estimator for discrete choices that lets the forward pass use a hard, non-differentiable selection while the backward pass passes gradients through as if the selection were a differentiable operation.
Cracks in Embeddings: Robustness and Stability of JEPA-Based Chest X-Ray Representations
Use Used in the codebook predictor to handle the nearest-codebook-vector choice, which has no gradient. The forward pass uses the selected codebook vector, and the backward pass lets gradients bypass the quantization step, so the convolutional features can still be trained.
Meaning A gradient approximation for operations that have no useful gradient, such as choosing the nearest element of a discrete set. The forward pass uses the discrete output, while the backward pass treats the operation as an identity so that gradients flow to the inputs.
Neural Discrete Representation Learning
Use Used to pass gradients through the nearest-neighbour quantisation step: the gradient at the decoder input is copied to the encoder output, since the discrete assignment has no useful gradient. The authors note that a subgradient through the quantisation could be used instead, but this simple version worked well in their initial experiments.
Meaning A gradient approximation for a non-differentiable operation that treats the operation as the identity in the backward pass. The gradient computed at the output of the operation is copied to its input.
MERF: Memory-Efficient Radiance Fields for Real-time View Synthesis in Unbounded Scenes
Use Applied to the byte quantization function in the quantization step of training. A stop-gradient is used so that the rounding acts as the identity for gradient computation, which lets the optimization receive gradients through the quantizer.
Meaning A gradient approximation for non-differentiable operations such as rounding. The operation is used unchanged in the forward pass, and the backward pass treats it as the identity so that gradients still reach earlier parameters.
Obfuscated Gradients Give a False Sense of Security: Circumventing Defenses to Adversarial Examples
Use Described in the paper as a special case of Backward Pass Differentiable Approximation (BPDA), used for preprocessors \(g(\cdot)\) that satisfy \(g(x)\approx x\). The paper notes this case works when \(g\) is smooth and differentiable, and that recent preprocessors that are neither smooth nor differentiable require the more general BPDA form.
Meaning A gradient approximation for a model that contains a non-differentiable step. The backward pass treats that step as the identity function, so the gradient flows through as if the step were absent.
DoReFa-Net: Training Low Bitwidth Convolutional Neural Networks with Low Bitwidth Gradients
Use Used to make the quantizers for weights, activations and gradients trainable. The authors justify it by noting that a function with a small finite output set would have zero gradient almost everywhere. Their quantizer for weights uses a tanh rescaling before the STE, and their activation quantizer applies the STE to inputs assumed to lie in [0, 1].
Meaning A gradient approximation for operators whose forward step is non-differentiable, such as rounding or sampling. The operator is given a chosen forward function and a separately defined backward function, so that gradients can flow through the operator during backpropagation.