Compute Costs and Usage Limit Governance in LLM Chat Services: Engineering Practices

    This article explains why LLM chat services impose usage limits, using a recent case in which a domestic Chinese LLM app stopped retaining conversations idle for more than seven days, lowered its maximum single input length, and added daily quotas. It covers the KV Cache and VRAM costs of long sessions, the repeated prefill computation that inflates compute use, and engineering options such as session TTLs, context summarization, tiered quotas, and prefix caching. It also discusses product-side alternatives to flat limits.

    Recently, a domestic Chinese LLM app drew wide attention after it changed its chat service policy. It no longer keeps conversations that have had no interaction for more than seven days, it lowered the maximum length of a single input, and it introduced a daily usage quota. Once the quota runs out, users must wait until the next day for it to reset. Many users gave the app low ratings in app stores, and its rating dropped noticeably. Setting the emotional debate aside, this event is a typical example of how inference services are governed under compute constraints. Developers working on LLM engineering should understand the technical logic behind it.

    1. The Core Issue: Inference Compute Is Not Unlimited

    Many people assume a chat with an LLM is a lightweight exchange: one message in, one reply out. In practice, the cost structure of LLM inference is far more complex than that.

    Public industry statistics show that the weekly token volume of leading open-source models has reached tens of trillions of tokens, which places them among the highest-volume services in the world. Under that load, occasional service errors and even prolonged outages are not surprising. When supply cannot keep up with demand, operators usually face two options: protect paid enterprise API calls, which are the main source of revenue, or scale back free consumer services. From a business standpoint, prioritizing business customers and limiting consumer users is almost an inevitable choice.

    For cloud users, this is also a reminder. Whether you run your own inference cluster or call a third-party model service, capacity planning comes first. When you deploy inference services on platforms such as Baidu AI Cloud, you should use monitoring and alerting to track GPU utilization, VRAM usage, and request queuing over time, and prepare elastic scaling plans in advance.

    2. Why Long Conversations Become a VRAM Black Hole

    Understanding this limit requires understanding the two core cost sources of LLM inference.

    2.1 KV Cache and HBM Memory Usage

    When an autoregressive model generates each token, it must access the key-value attention cache (KV Cache) of all previous tokens. This cache resides in the GPU’s high-bandwidth memory (HBM), which is among the most expensive and scarce resources on a GPU.

    Consider a user who opens a conversation spanning thousands of turns, with tens of thousands of tokens of setup, such as role-play or interactive fiction. As long as the session is not ended, its context must remain available for recovery. This effectively occupies valuable VRAM for a long time. Dozens of such long sessions running at once put enormous pressure on an inference cluster.

    2.2 Repeated Computation of Historical Context

    LLMs have no true memory. Each request re-encodes the full conversation history. In a conversation of 5,000 turns, the prefill computation for the 5,000th request far exceeds that of a typical single-turn question. If users frequently edit settings or regenerate responses, some even regenerating the same question thousands of times, compute consumption can multiply several times over.

    A simplified cost estimate looks like this:

    1. def estimate_prefill_cost(history_tokens: int, rounds: int) -> int:
    2. """In long sessions, the full history must be reprocessed in every round"""
    3. total = 0
    4. ctx = 0
    5. for _ in range(rounds):
    6. ctx += history_tokens # Context added in each round
    7. total += ctx # Tokens to prefill in this round
    8. return total
    9. # Session with an average history of 10,000 tokens over 1,000 rounds
    10. print(estimate_prefill_cost(10_000, 1000)) # roughly 5 billion tokens of computation

    The longer a session runs, the higher its marginal cost, which grows roughly quadratically. This is the main reason why users of text-based games and AI companionship apps consume far more compute than users who only run ordinary queries.

    3. Engineering Responses

    Platform teams and developers building their own services can take several technical measures to address this resource problem.

    3.1 Session Lifecycle Management

    Set a TTL (Time To Live) for idle sessions. If a session has no interaction before the timeout, reclaim its KV Cache and archive its history to low-cost storage. When the user resumes the conversation, rebuild the context on demand instead of keeping it resident in VRAM. This is the technical logic behind the policy of not retaining conversations that have had no interaction for more than seven days.

    3.2 Context Compression and Summarization

    For very long conversations, use rolling summarization. Periodically compress early history into a summary to keep the context window within a manageable length. A simplified flow looks like this:

    1. def compress_context(messages, max_tokens, summary=None):
    2. """Replace early history with a summary when the context exceeds the threshold"""
    3. total = count_tokens(messages)
    4. if total <= max_tokens:
    5. return messages, summary
    6. head, tail = split_history(messages, ratio=0.6)
    7. new_summary = summarize(head, prev_summary=summary)
    8. return [system_summary_msg(new_summary)] + tail, new_summary

    3.3 Tiered Quotas and Rate Limiting

    Use free quotas, daily limits, and maximum input length as three layers of control, and combine them with a message queue to smooth out traffic bursts. Quota design should rest on a realistic cost model. Billing by token consumption is fairer and easier to control than billing by number of conversations.

    3.4 Cache Reuse

    Use prefix caching for repeated prefixes such as system prompts and fixed settings. This avoids recomputing identical prefixes during prefill and can significantly reduce the actual cost of role-play scenarios that rely on long, fixed settings.

    4. Product Considerations: Options Beyond Quotas

    Many users who hit the limits did not necessarily demand free access. Many said they were willing to pay, but did not want to deal with APIs. This points to a gap in product design. For ordinary users, applying for API keys and configuring call parameters is too high a barrier.

    A more practical path is to offer tiered subscriptions within the app. A free tier would keep basic quotas, and a paid tier would unlock longer context and higher limits. Explaining transparently why long conversations cost more often earns more understanding than silent limits. Any policy change should also be announced in advance, with a transition period. This is a basic practice in user operations.

    5. Summary

    At its core, this controversy is a conflict between user expectations of free service and the high cost of inference. Long-context conversations occupy expensive VRAM, historical turns are recomputed repeatedly, and highly engaging experiences can keep growing without limit. Together, these factors form a compute sink. For developers, the path forward is engineering work: KV Cache management, context compression, tiered rate limiting, and prefix caching, all aimed at a sustainable inference service. For product teams, transparent pricing and a clear paid access path retain users better than blanket limits. While compute remains scarce, the services that spend each unit of VRAM where it matters will be the ones that balance user experience and cost over the long run.