L-Dynamic Attention: Learned Age-Aware KV Cache Management for Efficient Long-Context Transformers

Abstract: We introduce L-Dynamic Attention, a learned Key-Value (KV) cache management mechanism designed to enable efficient long-context Transformer inference. In modern Large Language Models (LLMs), processing extended sequences suffers from linear KV cache growth and massive memory bottlenecks. Shifting away from rigid, hand-crafted pruning heuristics, our framework assigns each token a dynamic scalar utility score w_j ∈ [0,1], estimated via a lightweight predictor trained on key embeddings, positional tokens, and local context. These individual utility scores are combined with token age (temporal entropy t_j) into a unified viability function v_j = w_j^2 / (t_j^age + ε), directly instantiating the foundational Lt-parameter framework (v = L²/t) within deep learning architectures. Under an adaptive percentile thresholding eviction policy, non-essential tokens are systematically collapsed to maintain a strict memory budget. Empirical evaluations on LLaMA-2 7B (up to 32k context lengths) demonstrate up to a 10x memory footprint reduction with negligible accuracy degradation (<1.5% perplexity increase on PG19, and <3% drop in long-context retrieval accuracy). We provide a rigorous theoretical interpretation of this mechanism as an approximate solution to a constrained memory optimization problem under an evolutionary survival-process paradigm.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-05-19
DOI
https://doi.org/10.5281/zenodo.20285159
Primary Topic
Age of Information Optimization
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
preprint

L-Dynamic Attention: Learned Age-Aware KV Cache Management for Efficient Long-Context Transformers

Stanislav Usychenko
Zenodo (CERN European Organization for Nuclear Research)
Age of Information Optimization
preprint

L-Dynamic Attention: Learned Age-Aware KV Cache Management for Efficient Long-Context Transformers

Stanislav Usychenko
preprint en

Abstract

Abstract: We introduce L-Dynamic Attention, a learned Key-Value (KV) cache management mechanism designed to enable efficient long-context Transformer inference. In modern Large Language Models (LLMs), processing extended sequences suffers from linear KV cache growth and massive memory bottlenecks. Shifting away from rigid, hand-crafted pruning heuristics, our framework assigns each token a dynamic scalar utility score w_j ∈ [0,1], estimated via a lightweight predictor trained on key embeddings, positional tokens, and local context. These individual utility scores are combined with token age (temporal entropy t_j) into a unified viability function v_j = w_j^2 / (t_j^age + ε), directly instantiating the foundational Lt-parameter framework (v = L²/t) within deep learning architectures. Under an adaptive percentile thresholding eviction policy, non-essential tokens are systematically collapsed to maintain a strict memory budget. Empirical evaluations on LLaMA-2 7B (up to 32k context lengths) demonstrate up to a 10x memory footprint reduction with negligible accuracy degradation (<1.5% perplexity increase on PG19, and <3% drop in long-context retrieval accuracy). We provide a rigorous theoretical interpretation of this mechanism as an approximate solution to a constrained memory optimization problem under an evolutionary survival-process paradigm.

Zenodo (CERN European Organization for Nuclear Research)
Age of Information Optimization
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.