The Illusion of Equivalence: Systematic FP16 Divergence in KV-Cached Autoregressive Inference
16 Apr · Ranjith Chodavarapu, Lei Xu · arXiv:2604.15409
KV caching is a ubiquitous optimization in autoregressive transformer inference, long presumed to be numerically equivalent to cache-free computation. This assumption fails under standard FP16 precision: cache-ON and cache-OFF execution paths employ different floating-point accumulation orderings which, due to FP16 non-associativity, produce a deterministic divergence in decoded token sequences. Across three…