From Reaction to Prescience
Hardware cache is ubiquitous on modern processors, from mobile phones to AI engines, and it is foundational and necessary because program performance depends on it. Current cache management is by storing recently accessed data and hence enabling data reuse in the cache. It is history based and reactive.
For over five years, researchers in computer science at the University of Rochester and in electrical and microelectronic engineering at RIT have developed a new design that enables cache programming using leases, adding foresight to cache management by encoding compiler knowledge of program data use in the leases. This page highlights the key ideas and results, and the list below shows the main publications and funding support.
- Benchmarking Cache Programming Against Optimal Caching: MEMSYS 2025, authors Yanghui Wu, Vincent Michelini, Chen Ding, Dorin Patru, evaluating lease-based cache programming against optimal caching (OPT), with lease programming closing an average of two-thirds of the performance gap between conventional caching and OPT.
- Implementation of a Two-Level Programmable Cache Emulation and Test System: MEMSYS 2024, authors Marcus Figorito, Vincent Michelini, Benjamin Reber, Chen Ding, et al., introducing a two-level lease cache emulation system.
- Cache Programming for Scientific Loops Using Leases: ACM TACO 2023, authors Benjamin Reber, Chen Ding, et al., scope-based lease cache programming for scientific loops.
- CARL: Compiler Assigned Reference Leasing: ACM TACO 2022, authors Chen Ding, Dong Chen, Fangzhou Liu, et al., optimality and other formal properties of reference leasing.
- Uniform lease vs. LRU cache: Analysis and evaluation: ACM SIGPLAN ISMM 2021, authors Dong Chen, Chen Ding, Fangzhou Liu, Ben Reber, Wesley Smith, and Pengcheng Li, showing the equivalence in theory and experiments.
- CLAM: Compiler Lease of Cache Memory: MEMSYS 2020, pp. 281–296, authors Ian Prechtl, Ben Reber, Chen Ding, Dorin Patru, Dong Chen, initial design of compiler-assigned reference lease (CARL) and implementation on a RISC-V + FPGA platform CLAM (Compiler Lease of cAche Memory).
- NSF Collaborative Research: SHF: Small: Programmable Hierarchical Caches: Design, Programming, and Prototyping — University of Rochester side Award #2114319 (PI Chen Ding) and RIT side Award #2114285 (PI Dorin Patru, Co-PI Linlin Chen), project period September 2021–August 2025, researching programmable hardware lease cache systems. Program manager: Almadena Chtchelkanova.
No More LRU
The lease cache is managed primarily by leases: each data access comes with a lease, and the cache block stays in the cache for the duration of that lease—renewed if the block is accessed again, and evicted at the end of the lease otherwise. Think of the lease cache like a university or airport restroom faucet with an auto-off timer. Each hand placement turns the water on for a set duration—like a data access arriving with a lease. If you move your hands back under before time runs out, the timer resets (the lease is renewed); if you walk away, the water shuts off when the timer expires (the block is evicted).
At a cache miss, if every cache block holds resident data with an active lease, a secondary policy randomly selects a block and evicts its data to make room for the new arrival. Unlike traditional caches, which use LRU eviction, the lease cache uses a combination of lease expiration and random eviction.
Reference Leases
CLAM is the first hardware lease cache. A compiler adds a lease table to a program binary, giving each load and store instruction either a single lease or a dual lease. Lease programming means selecting the lease values to achieve maximal cache utilization, i.e., most cache hits. Lease selection rests on two considerations. The first is prioritization based on locality: loads and stores with a higher hit density are given the leases they need first. The second is respecting the resource limit: leases are made proportionally longer or shorter based on available cache space. A dual lease is used when a short lease under-utilizes the cache but a long lease over-allocates it—in a dual lease, some leases are short and the rest are long. In the reference lease table, at most one entry has a dual lease; the rest all have a single lease value.
The initial use of a cache lease is for coherence: a lease is a period during which the cached value is guaranteed valid. In mathematical modeling of caching, the analogous concept is Time-to-Live (TTL). A coherence lease corresponds to TTL without renewal, while a reference lease corresponds to TTL with renewal. Beyond terminology, a difference is how time is measured: in the lease cache, time is logical and counted in data accesses, whereas TTL uses wall-clock time. The original lease cache was studied for storage caches and efficient algorithmic implementation led by Pengcheng Li and Colin Pronovost [ASPLOS’19].
The Best and Worst of Lease Programming
If all leases have the same value, the cache is called a Uniform Lease (UL) cache. The UL cache performs the same as an LRU cache [ISMM’21, MEMSYS’20 (appendix)], which represents the worst case when a compiler has no information about a program—in that case, lease programming is trivial. When a compiler does have information, however, lease programming can, depending on the precision of that information, maximize the cache’s ability to exploit it.
Lease programming is based on aggregate information, i.e., distributions of reuse intervals (RIs) rather than individual RIs. That is, the compiler knows statements like “instruction A has a 96.77% probability of being reused within 8 accesses,” rather than knowing “the next reuse will happen 5 accesses later. Assuming unrestricted dynamic occupancy in the cache, which allows the cache size to vary arbitrarily, the following properties are provably true [TACO’22]:
- Optimality: Give reuse-interval distributions, the CARL algorithm is optimal—its greedy lease assignment maximizes cache hits for any given cache occupancy.
- Convexity: The miss curve is not just monotone—misses never increase as cache capacity grows, so it avoids Belady’s anomaly—but also convex, meaning each additional unit of cache yields diminishing marginal miss reduction.
- Sub-partitioning Monotonicity: Fine-grained per-reference lease assignment performs at least as well as coarse-grained group assignment, justifying per-reference leasing.
Unrestricted dynamic occupancy does not hold in actual fixed-size hardware. A practical way to achieve optimality is to identify steady-state behavior and assign leases. Since the cache size is constant, the optimality result carries over to the fixed-size cache [TACO’23].
Ongoing Research: Portable Leases for Managing Shared Cache
Modern processors use shared caches because integrating many CPU or GPU cores onto a single chip creates a fundamental resource-management problem: a large, fast cache is too expensive to replicate privately for every core, so the last-level cache (LLC) is shared as a common pool that all cores draw from, making efficient use of silicon area while still absorbing the memory traffic generated by many cores running concurrently. When it works well, caching provides capacity amplification; when it doesn’t, it leads to contention and unpredictable performance.
Instead of single lease values, we are developing portable leases, which include leases appropriate for all cache sizes. Portable leases are to cache capacity what virtual addresses are to physical memory.
Virtual memory management bridges a capacity mismatch: programs are written against a large, uniform address space, but physical memory is finite and shared. The OS and MMU close the gap with a portable interface (virtual addresses) plus run-time resolution (page tables, TLB, replacement, and allocation policy), so one binary runs across memory sizes and alongside arbitrary co-runners, with fairness and priority set as policy knobs above the mechanism.
The lease paradigm does the same for caches: software’s reuse behavior is fixed at compile time, but cache capacity is finite, varies across machines, and is shared among co-runners. Leases are the portable interface—a binary carries reuse intent that stays valid across cache sizes—and the hardware cache is the run-time resolver, deciding which leases are used given actual occupancy, while marginal-benefit arbitration across programs plays the role of page replacement and allocation policy.
The analogy is not entirely accurate: a lease carries statistical reuse intent, whereas a virtual address is about naming, and the cache manages shared residency, whereas page tables manage addressing. Still, the other parallels hold: both are portable annotations, and both require run-time policy to manage the sharing of memory.





