Why Transformers Need Positional Encoding
Date: | Estimated Reading Time: 9 min | Author: Chi Zhang Table of Contents What attention sees without positions Two obvious fixes: integers and fractions Binary: bounded and length-independent, but discontinuous Sinusoidal encoding: smoothing out the steps Wavelengths: a geometric sequence from 2π to…