Summary

The straight-through estimator (STE, also called straight-through trick) uses both a hard/discrete value and a soft value in the forward pass, thereby allowing gradients to flow through its continuous input during backpropagation: , where is the forward pass, and in the backward pass. This allows rounding, argmax, quantization, etc., and is practically applied to do discrete sequence optimization in protein design by hallucination and codebook lookups in VQ-VAEs.

See also