In this article
Reading historical KV does not preserve gradients through history; routed visibility, storage capacity and causal validity require separate evaluation.
Long-context adapter training can run out of memory even when the quantized model itself fits. The HGA training study combines routed attention, segment-wise backward computation and historical KV storage outside VRAM. Its central trade-off is that later segments can read earlier content while gradients stop at segment boundaries.
Distinguish historical visibility from gradient history
The paper commits historical keys and values after processing a segment, then detaches them before the next one. Later queries can still attend to selected historical tokens, but their gradient path does not continue through those earlier segments. This is truncated backpropagation, not unrestricted dense full-sequence training with an identical backward graph.
The official Tensor.detach documentation explains the relevant gradient boundary. It also notes that detachment shares storage rather than automatically creating an independent copy. Moving or storing historical data is therefore an additional implementation responsibility, separate from stopping gradient tracking.
Separate routing summaries from attended values
HGA uses hierarchical summaries to choose historical regions, then gathers exact token keys and values from selected groups. “Exact token” describes the values being attended to, not a claim that every historical token receives the same attention as in a dense computation.
The routing budget controls which content is available to each operation. Selection quality and transfer work therefore belong in the evaluation. A summary cache can reduce movement without establishing that retrieval recall or model loss is unchanged for every prompt.
Keep the memory tiers and row variants explicit
The reported training experiments use RAM-backed history. The paper describes a filesystem-backed option suitable for NVMe but says that tier was not benchmarked in the study. Its existence should not be turned into a measured claim about SSD throughput or endurance.
Resident summaries can also grow with history. The feasibility table includes a larger-context row with bounded summary/token caching and streaming, while the conclusion describes a smaller validated training boundary. We preserve that internal reporting difference rather than presenting every row as one unchanged constant-memory configuration.
Evaluate learned weights separately from routed inference
The matched quality experiment trains two adapters at the context where dense training still fits. It evaluates them with dense and routed readout. Dense readout helps isolate the learned adapter, while routed readout adds the effect of selecting a subset of history.
At longer contexts, a missing dense-training baseline cannot provide evidence of equal quality to a run that was never completed. The paper itself does not claim better training quality from HGA. Its serving integration also remains research work, so the training result is not a measured production API capability.
Retain the reported causal limitation
The limitations describe future-token information influencing shared routing decisions within a chunk during much longer training. This is a training-time causal-leakage problem, distinct from memory capacity. A model exploiting that signal can obtain misleading next-token results even though its tensors fit comfortably.
The authors leave a strictly causal variant for further evaluation. We retain that boundary rather than recommending the reported implementation for unrestricted pretraining. We read the revised method, tables and limitations without executing training. The reproducible-stack guide covers configuration records; the document-split guide covers another form of evaluation leakage. Useful long-context evidence must track gradient truncation, routed visibility, external storage and causal validity together.
Sources
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.