In this article
Counterbalance treatment order and verify state preparation; randomization cannot erase persistent state created by the previous treatment.
The comparison being tested
A benchmark alternates runtime settings on one long-lived service. The first treatment creates reusable prefix state and the next treatment benefits from it. Randomizing order changes which candidate inherits the advantage but does not remove carryover. A result labeled a comparison of current settings may actually estimate the effect of both the current and preceding treatment history.
The confounding mechanism
Prefix caching reuses previously computed context rather than merely matching a benchmark label. Blocking and randomization address nuisance variation under a defined design, but persistent treatment effects can violate the intended comparable-state assumption. A process restart may clear one cache while leaving another tier warm. The relevant state boundary must therefore be verified rather than inferred from a shuffled schedule.
Fix the experimental contract
Define whether the target is cold, deliberately warmed or history-dependent service. Record state preparation and the preceding treatment for every observation. Distinguish retained prompt preparation, model responses and runtime KV state where applicable. Specify a bounded washout or reset policy only for state that must be removed. Intentional shared-cache operation is a valid different question if its history is preserved.
A step-by-step comparison
Construct synthetic sequences with the same current request under different preceding treatments. Compare both orderings and an independently prepared state control. Observe cache reuse through supported counters or diagnostics instead of assuming a repeated prompt guarantees a hit. Keep actual input tokens and output requirements comparable. If state cannot be reset, analyze and report the ordered sequence as the experimental condition.
Evidence required for the result
Acceptance evidence includes treatment order, state preparation, cache identity and observations for each current request. Show whether the apparent effect changes with its predecessor. Retain failed reset attempts and uncertain cache coverage separately. A balanced order can expose carryover, but an attractive average over inherited states is not the same result as performance from a fresh or consistently warmed state.
Interpretation and limits
This protocol does not require clearing every cache or treating reuse as an unfair advantage. The issue is whether the observed history matches the claim. Long-lived production service may intentionally depend on that history. Results remain bounded by cache tier, eviction behavior and workload sequence; they cannot establish one setting’s isolated effect when the previous treatment’s state remains uncontrolled or unobserved.
Primary references and related reading
Counterbalance treatment order and verify state preparation; randomization cannot erase persistent state created by the previous treatment. vLLM automatic prefix caching; NIST randomized block designs.
The proposed investigation of cache carryover treatment order is not an executed deployment benchmark. Related reading: Prefix caching: when repeated context helps a GPU pool; lm-eval caching: prompt construction and model responses need separate identities.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.