PagedAttention and Virtual Memory Management: Mathematical Foundations of Non-Contiguous KV-Cache Allocation, Dynamic Block Translation, and Copy-on-Write Forking Mechanics
PagedAttention adapts OS virtual memory paging to transformer KV caches, reducing internal fragmentation from over 70% to under 4% and enabling efficient non-contiguous block allocation.
