LeCaR Cache Replacement with Adaptive Weights

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional cache replacement algorithms, such as LRU and LFU, fail to adapt to changes in workload and do not achieve optimal performance, especially in scenarios with infrequent access patterns, leading to suboptimal cache hit rates.

Innovation Solution

The LeCaR system dynamically adjusts the weights of LRU and LFU policies based on regret minimization, using a probability distribution of two fundamental policies (recency-based and frequency-based evictions) to make adaptive cache replacement decisions, effectively managing cache metadata and updating weights based on misses and hits.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If static replacement policies (LRU or LFU) are used, then implementation is simple, but adaptability to changing workload patterns is poor

Engineering Contradiction:
Improveadaptability to workload changesVSAvoidalgorithm complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent implements dynamic replacement policies that adapt to changing workload patterns. The system transitions from static LRU/LFU to dynamic algorithms that learn and adjust replacement decisions based on observed access patterns, achieving adaptability without excessive complexity through incremental learning approaches.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The patent changes key parameters of replacement algorithms dynamically. Instead of fixed replacement rules, the system adjusts replacement probabilities and policy parameters based on workload characteristics, enabling adaptation to different access patterns while maintaining manageable complexity through parameter tuning rather than structural overhaul.

Inventive Principle:
Principle #35Parameter changes

2Adaptability or versatility

If ML-based cache replacement is implemented, then adaptability improves, but computational efficiency deteriorates due to simulating multiple expensive algorithms

Engineering Contradiction:
Improveadaptive replacement capabilityVSAvoidcomputational efficiency
Core Design Contradiction:
Adaptability or versatilityVSProductivity

Solution Approach 1:

The patent extracts and implements only the essential adaptive components needed for cache replacement, rather than simulating multiple complete replacement algorithms. By focusing on key adaptive mechanisms and removing unnecessary computational overhead, the system achieves adaptability while maintaining computational efficiency.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent uses lightweight, computationally inexpensive adaptive mechanisms that can be rapidly updated and discarded if needed. Instead of maintaining multiple expensive algorithm simulations, the system employs simple adaptive structures that provide necessary flexibility with minimal computational cost.

Inventive Principle:
Principle #27Cheap short-living objects (Disposable)

3Quantity of substance

If cache capacity is limited, then memory resource utilization is efficient, but cache hit rate deteriorates when useful information must be discarded

Engineering Contradiction:
Improvecache capacityVSAvoidcache hit rate
Core Design Contradiction:
Quantity of substanceVSReliability

Solution Approach 1:

The patent applies preliminary actions by proactively retaining items in cache based on predicted future utility rather than waiting for misses to occur. The adaptive algorithms anticipate which items will be needed and preserve them in the limited cache capacity, improving hit rates without requiring additional cache space.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent implements feedback mechanisms where replacement decisions are continuously refined based on actual cache performance. The system monitors hit/miss patterns and adjusts replacement policies accordingly, optimizing the use of limited cache capacity to maintain high hit rates through iterative improvement.

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS10558583B1Systems and methods for managing cache replacement with machine learning
Publication Date: 2020.02.11 FLORIDA INTERNATIONAL UNIVERSITY
  • US10558583B1 patent drawing
  • US10558583B1 patent drawing
  • US10558583B1 patent drawing

AI summary

Systems and methods for management of a computer-based cache are provided. A system can include a processor, a cache, a memory device, and a storage device. The processor can be configured to evict a page from the cache to a history index based upon a greater weight respectively assigned to a least frequently used (LFU) and least recently used policy (LRU) policy, detect a requested page that was evicted to the history index, and adjust the respective weights assigned to the policies based upon the requested page being in the history index.