Long-Session Compute Governance Behind Free Tier Quota Changes

    This article examines why an unannounced free-tier quota adjustment triggered strong user backlash, and breaks down the real cost structure of long LLM conversations: prefill, decode, and retries. It explains how KV cache size drives GPU memory pressure and limits concurrency, then covers practical mitigation techniques such as paged KV cache management, prefix sharing, cache quantization, offloading, and context compression. It also proposes separating persistent session assets from volatile runtime cache, layered memory with rolling summaries and retrieval, multi-dimensional and tiered quotas with predictable change policies, and a UX checklist for companion-style use cases.

    1. Background: Why a Quota Change Drew Such a Strong Reaction

    In mid-November 2026, a domestic LLM service adjusted its consumer free-tier limits without advance notice. Three measures took effect at once: long conversations inactive beyond a certain number of days were frozen, with some users seeing a shorter threshold and an “insufficient compute” style message; single-input text length was capped at around 40,000 characters; and a new daily conversation quota was added, resetting only in the early hours of the next day after exhaustion. The day after rollout, the topic trended on social platforms, app store ratings dipped in the short term, and the official account’s comment section filled with feedback.

    The strongest reaction came not from light users but from young women who use the model for role-play, emotional companionship, interactive fiction, and “human-AI romance” scenarios. Their usage pattern differs sharply from ordinary Q&A: they keep a dozen to several dozen independent conversation windows open at once, each injected with tens of thousands of tokens of worldbuilding, character setting cards, and prior plot, with individual sessions running to hundreds or thousands of turns. Each window corresponds to a separate relationship and storyline. So “frozen after seven days of inactivity” was read as “no reply for seven days means a default breakup”—even when logging in daily, any window not reached in rotation stays stalled; history remains readable but cannot be continued.

    This dynamic had been foreshadowed on female-dominated social platforms: large numbers of “prompt instruction” and “exclusive AI boyfriend/girlfriend” posts let users copy, paste, and generate a virtual partner, with prompts specifying height, personality, habits, and possessiveness, plus scene setup and prohibited actions to keep the plot from breaking. The real technical pressure surfaced here too: long sessions consume far more compute than ordinary Q&A. Dozens of windows each loaded with tens of thousands of tokens of settings keep occupying the most expensive high-bandwidth memory on the GPU as long as the process stays alive, and every reply must re-read the entire history. When the model “forgets” settings or produces off-target output, users repeatedly ask for regeneration—in extreme cases, the same question is asked to be answered thousands of times.

    2. Framing the Problem as an Engineering Question: The Real Cost Structure of Long Sessions

    To govern the cost, first see where it lands. The cost of one autoregressive inference pass splits into three parts:

    1. Prefill: reading the entire history at once and building the key-value cache, with cost growing roughly linearly with history length;
    2. Decode: generating token by token, where every step reads the KV cache for all prior history, making memory bandwidth the main bottleneck;
    3. Retries and regeneration: every “do it again” from an unsatisfied user pays both costs above, again.
    1. # Illustrative: approximate cost model for one conversation turn
    2. def turn_cost(history_tokens, out_tokens, retries, kv_bytes_per_token):
    3. prefill = history_tokens * 2 # approximate cost term for matmuls
    4. decode = history_tokens * out_tokens # every step scans the KV cache
    5. total = (prefill + decode) * (1 + retries)
    6. kv_footprint = history_tokens * kv_bytes_per_token
    7. return total, kv_footprint

    Three conclusions follow. First, long-session cost is not determined by “output length” but jointly by “history length × turns × retry count,” which explains why light users barely notice while companionship users get hit hard. Second, what is truly scarce is not total compute but memory: resident KV caches crowd out the number of concurrent requests and drag down overall throughput. Third, retries are a hidden amplifier—experience problems convert directly into billing problems.

    3. Memory and Throughput: Why Long Conversations Hit the Wall First

    KV cache size is proportional to the number of layers, attention heads, head dimension, and history length. A common engineering estimate is:

    1. KV_bytes ≈ 2 × layers × kv_heads × head_dim × dtype_bytes × seq_len × batch

    The factor of 2 accounts for the two tensors, keys and values. Plugging in a purely illustrative hypothetical configuration (32 layers, 8 KV heads, head dimension 128, half precision, sequence length 40,000), the KV cache for a single session reaches several GB—one session consumes more than half of an accelerator card’s memory, and ten sessions cannot run concurrently. This explains why the service would rather compress single-input length than see large numbers of ultra-long sessions resident at once.

    The mitigations are a mature combination in engineering:

    • Paged KV cache management, slicing contiguous memory into blocks allocated on demand to reduce fragmentation and reserved waste;
    • Prefix sharing, reusing cached common prefixes such as system prompts and setting cards across multiple sessions;
    • Cache quantization, storing keys and values at lower precision in exchange for capacity;
    • Offloading and swapping, pushing caches of long-inactive sessions down to host memory or object storage and swapping them back when needed;
    • Context compression, summarizing early plot and keeping only a two-tier structure of recent verbatim text plus a long-term summary.

    4. Externalizing Session State: Moving “Memory” Out of GPU Memory

    The emotional backlash over freezing long conversations stems from binding “user assets” to “runtime cache.” A more sensible design separates the layers explicitly: GPU memory holds disposable runtime cache, while the persistence layer holds portable session assets.

    1. Session asset layer (persistent): raw messages, setting cards, plot summaries, vector index
    2. Session runtime layer (volatile): KV cache, temporary drafts, intermediate generation state

    With this split, “seven days inactive” affects only the runtime layer—the cache is reclaimed and re-prefilled on next entry, while history and relationship continuity remain intact. In implementation, layered memory can be introduced: keep the last N turns verbatim, roll older content into summaries, and store character settings as structured fields injected on every turn so they are not diluted by long history.

    1. def build_context(session, recent_n=20, summary_budget=1500):
    2. setting = session.setting_card # structured setting, always injected
    3. recent = session.messages[-recent_n:]
    4. summary = session.rolling_summary[-summary_budget:]
    5. return setting + summary + recent

    Combined with semantic retrieval, writing historical plot slices into a vector index and recalling a few relevant fragments by current topic preserves the impression of “remembering” within a limited context, while pushing single-input length back into a controllable range.

    5. Quotas and Tiering: From One-Size-Fits-All to Predictable Resource Governance

    Quotas themselves are not the problem; unpredictability is. Practical measures include:

    • Multi-dimensional quotas: track input tokens, output tokens, session count, and retry count together, rather than limiting a single total;
    • Tiered service: the free tier gets smaller concurrency and shorter context, the paid tier opens longer context and higher concurrency, with rules published up front;
    • Predictable changes: announce any threshold adjustment in advance and provide a transition and migration window, avoiding “unannounced tightening”;
    • Explainable feedback: exhaustion messages should show remaining quota, recovery time, and optimization suggestions, not information-free copy like “server busy”;
    • Retry-friendly behavior: debounce and rate-limit repeated generation, and prompt on clearly abnormal repeated requests instead of billing them directly.
    1. quota:
    2. free:
    3. max_context_tokens: 32000
    4. daily_input_tokens: 200000
    5. concurrent_sessions: 3
    6. retry_per_minute: 6
    7. pro:
    8. max_context_tokens: 200000
    9. daily_input_tokens: 5000000
    10. concurrent_sessions: 30
    11. retry_per_minute: 60
    12. change_policy:
    13. announce_days_before: 14
    14. grace_period_days: 7

    6. Experience Optimization Checklist for Companionship Scenarios

    • Rework the freeze semantics: change “freeze” to “archive plus one-click resume,” rebuilding the cache asynchronously in the background on resume so the user waits without noticing;
    • Multi-window rotation protection: judge activity across the whole session pool for active accounts, avoiding collateral damage from windows not opened individually;
    • Strong setting-card constraints: place character settings at high priority and run consistency checks to reduce regeneration caused by “forgetting the setting”;
    • Streaming feedback and draft reuse: on generation failure, keep the fragments already produced and have retries compute only the unfinished part;
    • Cost visibility: show the user the token and quota consumption of the current conversation, turning “quota” into an understandable, plannable metric.

    7. Conclusion

    A dispute triggered by one quota adjustment looks like a product communication problem on the surface, but underneath it is a compute and memory governance problem for long-session scenarios. Decoupling runtime cache from user assets, compressing context with prefix sharing and layered memory, and replacing one-size-fits-all with tiered quotas and predictable changes is how to balance cost control against experience continuity. For developers, the same approach applies to any intelligent application needing long-term memory and many concurrent sessions; landing the layered design above on the general capabilities of cloud platforms such as Baidu AI Cloud (for example object storage, container platforms, log services, and monitoring and alerting) is an optional path that balances stability and cost.