arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2405.01263cs.LGcs.NIcs.OS
收藏

一种具有对数复杂度和遗憾保证的基于在线梯度的缓存策略

An Online Gradient-Based Caching Policy with Logarithmic Complexity and Regret Guarantees

University of Verona(维罗纳大学);Inria(法国国家信息与自动化研究所)

Damiano Carra, Giovanni Neglia

AI总结:

针对具有遗憾保证的在线缓存策略计算复杂度过高的问题,本文提出一种相对目录规模为对数复杂度的基于梯度的新变体,并在百万级请求与项目的真实轨迹上验证其实用收益。

摘要:

常用的缓存策略,例如 LRU(最近最少使用)或 LFU(最不经常使用),仅在特定流量模式下表现出最优性能。即使是检测历史请求数据中模式的先进机器学习方法,在未来请求偏离过去趋势时也会表现不佳。最近,出现了一类对变化流量模式具有鲁棒性的新策略。这些算法处理在线优化问题,从而能够持续适应上下文。它们在遗憾指标上提供理论保证,该指标衡量在线策略与事后最优静态缓存分配之间的性能差距。然而,这些解决方案的高计算复杂度阻碍了其实际采用。在本研究中,我们提出一种基于梯度的在线缓存策略的新变体,相对于目录规模实现了突破性的对数计算复杂度,同时提供遗憾保证。这一进展使我们能够在包含数百万个请求和项目的大规模真实世界轨迹上测试该策略——这是一项重要成就,因为现有具有遗憾保证的策略无法达到此类规模。据我们所知,我们的实验结果首次证明,基于梯度的缓存策略的遗憾保证在实际场景中提供了实质性收益。

英文摘要:

Commonly used caching policies, such as LRU (Least Recently Used) or LFU (Least Frequently Used), exhibit optimal performance only under specific traffic patterns. Even advanced machine learning-based methods, which detect patterns in historical request data, struggle when future requests deviate from past trends. Recently, a new class of policies has emerged that are robust to varying traffic patterns. These algorithms address an online optimization problem, enabling continuous adaptation to the context. They offer theoretical guarantees on the regret metric, which measures the performance gap between the online policy and the optimal static cache allocation in hindsight. However, the high computational complexity of these solutions hinders their practical adoption. In this study, we introduce a new variant of the gradient-based online caching policy that achieves groundbreaking logarithmic computational complexity relative to catalog size, while also providing regret guarantees. This advancement allows us to test the policy on large-scale, real-world traces featuring millions of requests and items - a significant achievement, as such scales have been beyond the reach of existing policies with regret guarantees. To the best of our knowledge, our experimental results demonstrate for the first time that the regret guarantees of gradient-based caching policies offer substantial benefits in practical scenarios.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑