The CAP Principle for LLM Serving: A Survey of Long-Context Large Language Model Serving
Pai Zeng, Zhenyu Ning, Jieru Zhao, Weihao Cui, Mengwei Xu, Liwei Guo,, Xusheng Chen, Yizhou Shan

TL;DR
This survey introduces the CAP principle for LLM serving, highlighting the inherent trade-offs between context length, accuracy, and performance, and categorizing existing approaches within this framework.
Contribution
It proposes a CAP-based framework for understanding trade-offs in LLM serving, focusing on extending context length and analyzing measurement metrics.
Findings
Trade-offs exist among context length, accuracy, and performance.
Existing works can be categorized within the CAP framework.
Measurement metrics are crucial for evaluating goal achievement.
Abstract
We survey the large language model (LLM) serving area to understand the intricate dynamics between cost-efficiency and accuracy, which is magnified by the growing need for longer contextual understanding when deploying models at a massive scale. Our findings reveal that works in this space optimize along three distinct but conflicting goals: improving serving context length (C), improving serving accuracy (A), and improving serving performance (P). Drawing inspiration from the CAP theorem in databases, we propose a CAP principle for LLM serving, which suggests that any optimization can improve at most two of these three goals simultaneously. Our survey categorizes existing works within this framework. We find the definition and continuity of user-perceived measurement metrics are crucial in determining whether a goal has been met, akin to prior CAP databases in the wild. We recognize…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsDigital Rights Management and Security · Business Law and Ethics · Dispute Resolution and Class Actions
