lecar · research · also Learning Cache Replacement

LeCaR

LeCaR is a cache replacement policy that learns a probability distribution over LRU and LFU eviction choices from remembered eviction mistakes.

An eviction expert is sampled using its current weight, rather than always choosing the larger weight. A miss on a remembered victim penalizes the responsible expert; the original design discounts this penalty with time spent outside the cache and uses a fixed learning rate. [1]

Both experts describe the same resident cache, not two independently running caches. In the pinned implementation, agreement on a victim bypasses attribution history; an entry forgotten from bounded history also cannot trigger a later weight penalty. Absence of a penalty therefore does not certify a good eviction. [3]

CACHEUS revisits the expert pair and adapts the learning rate to address workload-dependent weaknesses. [2]

Relations

related
CACHEUS, Least recently used replacement, Ghost cache entry, Adaptive Replacement Cache, Cache pollution, Least frequently used replacement

Citations

  1. Vietri et al. Driving Cache Replacement with ML-based LeCaR. HotStorage 2018, sections 3-4. (accessed 2026-11-14)
  2. Rodriguez et al. Learning Cache Replacement with CACHEUS. FAST 2021, pp. 341-354, sections 3-6. (accessed 2026-11-14)
  3. LeCaR author implementation: evict, addToHistory, miss and adjustWeights; commit 1eec63ce166502be33ddd1f35bc041ed73a24f4d. (accessed 2026-11-14)

Further reading

  1. Hesela: source-reviewed eviction feedback cases. (accessed 2026-11-14)
Sources & caveats
  • Primary-paper and pinned-source review. No author simulator execution or reproduction of workload hit rates.
  • The consensus-eviction detail is scoped to the linked implementation, not asserted as a line in the original LeCaR pseudocode.

JSON: /data/terms/lecar.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. LeCaR. Hesela. 2026-11-14. https://hesela.dev/terms/lecar/