FlexBudget standardises KV cache eviction comparisons in PyTorch
KV cache eviction methods are usually benchmarked with their own custom kernels, so performance claims conflate the rule with the implementation. FlexBudget gives practitioners a controlled harness for fair, reproducible comparisons. Developers running long-context inference in PyTorch can adopt it directly, and the talk also suits anyone evaluating which eviction strategy fits their memory budget.
FlexBudget is a PyTorch-based framework presented at PyTorchCon North America in San Jose on 20-21 October.
It holds the kernel and memory budget fixed while swapping only the KV cache eviction rule, such as keeping recent tokens versus keeping high-attention tokens.
This lets researchers tell whether a method's gains come from a smarter importance signal or simply faster code.
The approach is training-free and built entirely on core PyTorch FlexAttention.The poster is presented by Huanran Wang of AMD.
When you run a model over a long context, the KV cache gets huge, so you have to throw some of it away. There are competing rules for choosing what to drop: keep the most recent tokens, keep the ones that get the most attention, and so on. The problem is that every method ships its rule welded to its own kernel. So if one method beats another, you can't tell whether the rule was smarter or the code was just faster.
At #PyTorchCon North America, Huanran Wang of @AMD will present the poster: FlexBudget: Interchangeable KV Importance Signals under One Compiled FlexAttention Budget We hold the kernel and the memory budget fixed, and swap only the rule. Same code, same allowance, honest comparison. It's training-free, and it's all core PyTorch.
Join us in San Jose, October 20-21 to learn more: https://t.co/jBApW8nESi
This report is categorized under AITOP's "How-to" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include FlexAttention, KV cache, PyTorch, long context.
Source attribution: curated from PyTorch (@PyTorch).