长上下文LLM服务中保留上下文的计量与计费框架
Measuring and Charging for Retained Context in Long-Context LLM Services
研究提出三层框架,将内容相关性、可观测代理指标与可审计位置权重分离,用于长上下文LLM服务的上下文计费。上下文消融实验显示相关性主导位置影响,距离衰减类方法未优于仅相关性基线;实测服务栈在65,536 tokens时缓存命中将重复前缀计算成本降低两个数量级以上。校准模拟使会话费用99分位降低31-42%,但收入匹配的非线性定价也取得类似降幅且中位费用上升。
arXiv:2611.24071v1 Announce Type: cross Abstract: Long-context large language model (LLM) services charge for repeated context, yet billing weights need not reflect its contribution to answer quality. We present a three-layer framework separating content relevance, observable proxies and auditable positional weights. Context-ablation experiments show that relevance dominates position and that distance-decay families do not outperform a relevance-only baseline. A measured serving stack shows that cache hits reduce repeated-prefix compute cost by over two orders of magnitude at 65,536 tokens, while cold resends constrain sustainable discounts. Cross-provider measurements separate cache value from tokenisation and list-price differences. Calibrated simulations reduce the 99th percentile of session charges by 31-42%, although revenue-matched nonlinear tariffs achieve similar reductions and median charges increase. The framework provides a bounded per-token accounting rule and measured deployment constraints, rather than a validated utility estimator.
来源:arXiv (AI + Vision + Imaging) · arxiv.org