Million-Token LLM Evaluation: A Practical Framework for Capability, Compute, Memory, and Cost

    Evaluating a long-context large language model requires more than comparing token-window claims. This article provides a practical framework for separating capability-oriented and economy-oriented variants; reporting total versus active parameters, claimed versus usable context, compute growth, and KV-cache growth; and testing hybrid attention with local-faithfulness, multi-hop, and distraction probes. It also covers model selection, token budgeting, truncation, prefix caching, numeric precision, observability, defensible benchmarking, and production limits so teams can measure efficiency on their own request-length distribution and rank models by quality first and cost second.

    Ask the Right Question: Evaluate Capability, Not a Label

    In public discussion, “a new generation of models” is often scored as if it were a single product. A more reliable approach is to understand it as two product lines. One pursues the upper bound of capability, with a larger total parameter count and heavier computation per activation. The other pursues unit cost, with both total and active parameters substantially smaller. They may share the same context-length claim, but their training recipes, inference budgets, and serving forms are often not merely a rename of the same system.

    When evaluating them, first confirm whether the subject is the capability-oriented variant or the economy-oriented variant. Then discuss which is stronger. Otherwise, results produced under different cost constraints are easily mixed into one table.

    The intuitive meaning of a million-token context is that multiple volumes of a long work, an entire policy compilation, or code-repository documentation spanning many iterations can be placed into the same context at once and queried at any local point. That only establishes a large declared window. It does not automatically guarantee three things:

    1. Distant details are still cited accurately.
    2. Long-range dependencies are not lost among intervening content.
    3. Latency and cost per request remain acceptable.

    All the metrics discussed below focus on these three issues.

    Four Metrics That Cannot Substitute for One Another

    Scale and Activation

    Total parameters determine the upper bound of model capacity. Active parameters are closer to the portion that actually participates in computation during each forward pass. In sparse or mixture-of-experts routing, total parameters can be much larger than active parameters.

    Reporting only total parameters overstates the compute required for each inference. Reporting only active parameters understates the knowledge capacity that can be stored. When comparing two generations of models, report total parameters, active parameters, and layer count or equivalent depth together, and state whether they use the same vocabulary and the same context implementation.

    Context Length

    “Supports one million tokens” should be separated into at least three lengths:

    • The length seen during training
    • The length allowed during inference
    • The length at which usable quality is still maintained

    The declared window, the stress-test window, and the production-usable window are often not the same number. The usable window also depends on output length: once the input fills the window, the space left for generation is reduced.

    Compute

    Traditional fully connected self-attention computes associations between each token and all other tokens. For a sequence length of n, attention computation and intermediate states grow roughly with n^2. As length expands from tens of thousands to one million, the quadratic term dominates the bill.

    If a new approach reduces compute at the same million-token length to a smaller fraction of the previous generation, the key question is whether the comparison uses the same hardware, precision, batch size, and whether it includes tokenization and communication. A quoted percentage alone is not enough.

    Memory

    For long contexts, the major memory consumer is usually the key-value cache, not the weights. Weights can be shared across multiple requests. The cache grows with sequence length, layer count, head count, and batch size.

    Lower compute does not imply a proportional reduction in memory. Compressed caches, block reuse, and offloading to cheaper storage all change the curve. Record the compute fraction and the memory fraction separately so that it is clear whether the bottleneck is computation or memory.

    Specific ratios cited in the original discussion—for example, compute at roughly the low twenties percent of the previous generation, memory on the order of one-tenth, with lower values for the economy variant—should be treated only as order-of-magnitude signals in an efficiency narrative. Without a unified protocol, hardware model, precision, and batch size, they should not be written as reproducible conclusions, and they should not be extrapolated to your own cluster.

    What Hybrid Attention Solves

    At million-token lengths, performing dense associations across all tokens would make both computation and cache usage explode. A more common engineering pattern is to alternate “close reading” and “broad reading,” rather than making every layer perform the same expensive full association.

    Close-reading layers or heads apply denser attention only to local windows, the current block, or a small number of key positions. They handle details that cannot be misread, such as coreference, formulas, and interface signatures.

    Broad-reading layers first compress distant content into summary states, block representations, or a small number of global slots. The current token then accesses these compressed results. These layers handle chapter-level themes, cross-file conventions, and long-distance references. The two types of layers are interleaved on a fixed or learnable schedule. As depth increases, information can be merged step by step from within a block to across blocks.

    The benefit is that the base of the quadratic term changes from “all tokens” to “the window plus compressed global state.” The cost is also clear: compression necessarily loses information. If the broad-reading state has insufficient capacity, refreshes too slowly, or the close-reading window cannot cover the place where an entity first appears, the model may remember the outline but misquote the original sentence.

    Hybrid attention therefore does not provide accuracy for free. It trades controlled information loss for a feasible context length.

    When evaluating this kind of mechanism, fix three types of probes instead of looking only at an average score:

    • Local faithfulness: Ask later in the sequence about a number, negation, or parameter name from an earlier sentence, and check whether it has been altered.
    • Multi-hop integration: Make the answer depend on two facts that are far apart, and check whether the compressed state still preserves the connection.
    • Distraction robustness: Insert many similar but incorrect passages in the middle, and check whether the model is led away by recency effects.

    The probes should control total length, the positions of the relevant evidence (beginning, middle, and end), and the density of distractions. Feeling “smarter” only on short contexts does not prove that a million-token window is effective.

    How to Choose Between Economy and Capability Variants

    Capability-oriented variants usually have more layers and more active computation. They suit complex reasoning, precise references in long documents, and professional writing that requires a low error rate.

    Economy-oriented variants have fewer active parameters and use less computation and cache for the same window. They suit high concurrency and tasks that can tolerate minor detail loss, such as summarization, classification, routing, and first drafts.

    Selection should not rely only on whether the window number is the same. It can be estimated by the effective cost per request:

    1. Prefill computation rises with input length and is the major cost in long-document question answering.
    2. During decoding, every generated token requires reading the existing cache; longer outputs are more sensitive to this cost.
    3. Cache occupancy determines how many long sessions can remain active at once. If a cache is swapped out and later read back, latency can jump.
    4. If sparse activation is used, routing and expert communication add overhead. When batches are small, communication may offset the benefit of fewer active parameters.

    A practical criterion is to measure on your real length distribution. For example, 90% of requests may be shorter than 30,000 tokens, while only a few reach hundreds of thousands. If the optimizations for a million-token window pay off only at extreme lengths, short requests may actually become slower. The value of the economy variant often lies in preventing long-tail requests from saturating an entire accelerator, not in making every short question-and-answer interaction faster.

    Engineering Facts on the Serving Side

    Once a long-context model is deployed, the window is only a model-side constraint. Several system-side factors can be amplified.

    Tokens, Not Characters

    Chinese text, code, and tables have very different token-to-character ratios. Estimating length by characters and then enforcing the window can cause truncation or overbilling at the boundary. The application layer should split by token budget and reserve space for output.

    Position and Truncation Strategy

    When an overlong input is truncated, dropping the beginning versus dropping the middle has a completely different effect on question-answering quality. If retrieval or summarization is prepended, evidence should be placed in regions where close reading is more reliable, rather than assuming that “the model will find its way to the end.” Under hybrid attention, fidelity is uneven across regions, and prompt templates must account for that unevenness.

    Cache Lifecycle

    If every turn of a multi-turn conversation replays the entire history, prefill cost is paid repeatedly. Reusable prefix caches can reduce cost significantly, but once a single token in the prefix changes, the subsequent cache often becomes invalid. System prompts and tool descriptions should remain as stable as possible, with volatile content placed later.

    Precision and Numerics

    Low-precision weights and low-precision caches both save memory, but errors can accumulate over long sequences. Evaluations must state the inference precision. Comparing high-precision inference on short text with low-precision inference on million-token text and then drawing quality conclusions is meaningless.

    Observability

    At minimum, record input tokens, output tokens, prefill latency, decode latency, peak memory, whether cache swap-in or swap-out occurred, and the reason for rejection or truncation. Without these fields, it is impossible to verify whether “lower computation and lower memory” actually occur on your traffic.

    An illustrative request budget, independent of any specific platform, can be written as:

    1. budget_tokens = max_context - reserved_output - safety_margin
    2. if tokenize(evidence) > budget_tokens:
    3. evidence = compress_or_select(evidence, budget_tokens)
    4. record(input_tokens, output_tokens, prefill_ms, decode_ms, peak_mem)

    Here, compress_or_select should be explainable retrieval or summarization, not silent dropping without a record. Otherwise, online “answers that do not address the question” cannot be attributed to the model or to truncation.

    How to Run a Defensible Comparison

    Write the comparison protocol as a repeatable checklist rather than an impression score.

    • Use the same probe set, covering local faithfulness, multi-hop reasoning, distraction, tables, and code symbols.
    • Include at least three length bands: short (everyday), medium (single document), and long (close to the declared window while leaving room for output).
    • Use the same precision, batch size, and maximum output length. Report latency and peak memory separately.
    • Report capability-oriented and economy-oriented variants separately. If a model with fewer active parameters has lower quality than one with more active parameters, do not simply call that a “regression.”
    • Report failure modes: fabricated citations, missed negation, repetition of earlier text, mid-sequence forgetting, and not only a total score.
    • If citing a relative compute or memory ratio versus the previous generation, attach the measurement conditions. If the conditions are incomplete, describe it only qualitatively.

    The quality threshold should come before cost. If the error rate on long-context probes is unacceptable, an even lower compute share has no business meaning. After quality passes, rank cost by the prefill computation and cache bytes consumed per correct citation. In this way, economy and capability variants can both be valid: one optimizes the unit cost of very long requests, while the other protects accuracy on difficult samples.

    Capability Boundaries in Deployment

    Even if the efficiency curve improves markedly, a million-token window is still not suitable as unlimited memory. Compressed broad reading will lose low-frequency details. Positional extrapolation may become brittle beyond the training length. Putting all materials into the context at once also amplifies prompt injection and internal contradictions.

    A more robust architecture still uses retrieval or segmented summaries to control how much evidence enters the window. Treat a very long declared context as headroom rather than filling it by default. Model-side hybrid attention reduces the cost of “occasionally having to read everything,” but the system side must still decide which content deserves close reading.

    For cloud deployment, object storage is suitable for original long documents, message queues are suitable for peak shaving, and container platforms can be pooled by length so that short requests and ultra-long requests do not compete for the same instance class. Logs and monitoring alerts should track prefill latency and cache hit rate. These are general capability categories; specific quotas and interfaces depend on the actual environment. Do not assume that a particular instance class can support the maximum window stated in a model claim.

    Conclusion

    Evaluating a new generation of long-context models is not a matter of repeating “large parameters and a very long window.” The key is to see total and active parameters together, declared and usable length together, and the compute curve and cache curve together. Use local-faithfulness and multi-hop probes to test whether hybrid close reading and broad reading actually preserve details. Capability and economy variants should be compared side by side, not treated as two names for the same thing.

    Only when the measurement conditions are complete do the reported reductions in compute and memory have reference value. Until then, treat them as signals of architectural direction and recalculate them against your own length distribution. That is the safe engineering conclusion.