跳到主要导航 跳到搜索 跳到主要内容

FairCache: Demystifying Cache-Induced Unfairness in Multi-Tenant Large Language Model Serving

  • Zhuoyan Bai
  • , Bin Gao
  • , Fei Xu*
  • , Hanyu Zhao
  • , Zhi Zhou
  • , Weng Fai Wong
  • *此作品的通讯作者
  • East China Normal University
  • National University of Singapore
  • Alibaba Group Holding Ltd.
  • Sun Yat-Sen University

科研成果: 期刊稿件 › 文章 › 同行评审

摘要

Large language models (LLMs) increasingly rely on context caching to enhance serving efficiency. However, this optimization inadvertently compromises fairness in multi-tenant LLM serving systems. Existing fair schedulers, which account only for compute resources, are unable to handle the multi-dimensional resource demands introduced by context caching. We identify that tenants with high cache hit rates are perceived as having lower compute costs, leading schedulers to unfairly prioritize them over others. Furthermore, the first tenant to compute a shared prefix fully bears the prefill cost for shared prefixes, while subsequent consumers free-ride on the cached data without contributing to such prefill cost. Addressing such unfairness via rigid allocation strategies (e.g., static partitioning) overlooks workload heterogeneity, inevitably wasting host memory on low-reuse workloads. To address the challenges above, we introduce FairCache, the first system that achieves comprehensive resource fairness in multi-tenant LLM serving with context caching. FairCache unifies compute, memory, and I/O costs into a single scheduling metric, and redistributes the prefill cost of shared prefixes across all benefiting tenants to mitigate free-riding. For cache management, FairCache combines the max-min fair allocation with a lightweight reuse-value model that reclaims cold data without harming fairness. Extensive evaluations using a prototype implementation with diverse workloads demonstrate that FairCache effectively eliminates cache-induced unfairness while maintaining high serving efficiency. Theoretical analysis further establishes FairCache's fairness properties and Pareto-efficient cache utilization under bounded request costs, work-conserving operation, and deterministic tie-breaking.

源语言英语
页(从-至)2390-2406
页数17
期刊IEEE Transactions on Parallel and Distributed Systems
卷37
期11
DOI
出版状态已出版 - 1 11月 2026

学术指纹

探究 'FairCache: Demystifying Cache-Induced Unfairness in Multi-Tenant Large Language Model Serving' 的科研主题。它们共同构成独一无二的学术指纹。

引用此