Measuring and Charging for Retained Context in Long-Context LLM Services
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.
Create a lesson
Metadata
- Categories
- cs.PF, cs.CL
- Comments
- 33 pages, 4 figures, 9 tables, including Appendices A-F; code and recorded data included as ancillary material
Related papers
SALT: Salience-Aware Lexical Trie for Long-Context Compression
Shared title terminologycs.PFOteo Mamo, Hyunjin Yi, Joydhriti Choudhury et al.
Trustworthiness as a Measurement Structure for Task Conformance in 6G Service Chains
Shared title terminologycs.PFBin Han, Xintong Ling, Muxia Sun et al.
Software Design Patterns for Latency Measurements with eBPF in SDN Environments
Shared title terminologycs.PFPedro Lucas M. S. Rosa, Bruno L. Dalmazo, Leticia S. Machado et al.
How Far Are We From On-Device VLM Inference? A Measurement Study on Edge NPUs
Shared title terminologycs.PFHuan Yang, Shiqi Jiang, Yu Mao et al.
Measuring the Energy Cost of Completing Tasks with Quantized Language-Model Agents
Shared title terminologycs.PFStephen Abkin, Aldric Yang, Alex Flesher et al.
Energy-performance tradeoffs in server farms with batch services and setup times
Shared title terminologycs.PFThu Le-Anh, Tuan Phung-Duc