CPU, GPU AND RAM

ZoomR: keeping long reasoning between CPU RAM and GPU memory

In this article
THE QUICK TAKE

ZoomR reduces GPU cache residency by retaining full history in CPU RAM and retrieving selected details; author tests show speed and accuracy costs.

The longer a language model reasons before answering, the more memory its computational history occupies. Researchers at Rensselaer Polytechnic Institute and IBM Research proposed ZoomR, which keeps that history in CPU RAM and transfers to the GPU only details likely to matter now. The preprint appeared on April 13, 2026, and the work subsequently entered the ACL 2026 main proceedings.

The authors report substantial GPU-memory savings, at a cost in speed and some accuracy. The result concerns particular models and tests, rather than every long-context task. Conference publication represents a selection process, rather than independent experimental reproduction.

Why memory grows

A model generates one token at a time, attending to earlier tokens at each step. To avoid recomputing everything, it retains intermediate key and value representations, the KV cache. Long answers expand this cache, and concurrent requests increase memory further. Limited GPU memory can restrict reasoning length or batch size. Accounting for active context memory separates this growing resource from fixed model weights.

One option is offloading the cache into host RAM and transferring it back as required, but CPU-GPU communication takes time. Another is deleting old records, risking the loss of an important intermediate result. ZoomR combines a complete history in RAM with selective retrieval of details to the GPU. The authors describe a multilevel selection process, in which parts of the past are available either as summaries or in detail.

Summaries as pointers to details

In the evaluated implementation, the model is fine-tuned to insert a short summary after each reasoning paragraph. Instead of revisiting every transformation in a paragraph, for example, it can first see that a constraint on a variable was established. The full passage remains in CPU memory with its KV cache.

During generation, summary representations serve as an index. The current attention query is compared with them; individual attention heads propose relevant segments, and votes are aggregated across heads and layers. Selected paragraphs’ full caches move to the GPU. Other past segments can remain represented by summaries, while the active context also retains the original prompt and recent tokens. This provides an overview of the previous solution alongside details of selected steps. The selected set changes as generation proceeds. Paper method.

Updating selection after every token would be expensive. The authors instead refresh at boundaries such as punctuation and paragraph transitions, averaging approximately once per 35 tokens in their configuration. Layerwise cache transfers are pipelined to overlap communication with computation where possible. This reduces overhead without eliminating bandwidth constraints.

Inference-time cache selection needs no separate training, but the complete experimental pipeline is not training-free. The authors adapted models with LoRA on Bespoke-17K augmented with summaries generated by Llama 3 70B. The appendix specifies three epochs, LoRA rank 16, and maximum sequence length of 16 384 tokens. Deployment therefore includes preparing a summary-generating model; it is not simply a switch for any existing checkpoint. Training details.

What the evaluations show

The authors tested fine-tuned DeepSeek-R1-Distill-Llama-3-8B and DeepSeek-R1-Distill-Qwen2-7B on NVIDIA H100 GPUs. Tasks were AIME2025 and MATH500 mathematics, and GPQA Diamond science questions. Comparisons included full cache, StreamingLLM and H2O at matched GPU-cache budgets, and SumR, which uses summaries without retrieving detailed passages. Conditions and Table 1.

For Llama, average accuracy across the three tests was 51.0% with ZoomR, 54.8% with full cache, and 43.9% with SumR. Qwen’s corresponding values were 51.3%, 57.2%, and 43.7%. On AIME2025, Llama with ZoomR matched full cache at 26.7%, while Qwen reached 23.3% versus 30.0%. Detailed retrieval therefore helped relative to summaries alone, but did not fully restore average quality. These are the authors’ table values, rather than transferable guarantees for other models and task distributions.

At 16 thousand generated tokens and batch size 16, the authors report over 20 times less GPU KV-cache memory than keeping the full cache on the GPU, and over four times less GPU memory than full-cache CPU offloading. Model weights were excluded, while ZoomR’s complete cache history remained in CPU RAM. The RAM versus VRAM distinction matters: reducing one device’s occupied memory moves storage and transfers to another resource. The figure does not imply fourfold reduction in total system memory or model-plus-weights memory. Memory graph and conditions.

The authors also give a calculated example: 16 384 generated tokens, a 512-token prompt, and specified window and retrieval sizes produce a modeled cache reduction of 5.48 times. This illustrates selected parameters, rather than another universal measured result. The paper reports reduced throughput relative to full-cache generation because CPU-GPU transfer is PCIe-limited. Exact speeds are not tabulated; estimating from a plot does not replace raw measurements, so no universal tokens-per-second cost is asserted here. Memory and performance analysis.

Where the approach may help

ZoomR is relevant to inference researchers and developers who need long mathematical or scientific reasoning with constrained GPU memory and available host RAM. It offers a specific compromise: retain the complete past while allocating expensive GPU space selectively. Practical benefit depends on output length, RAM, CPU-GPU interconnect, batch size, and acceptable quality and speed reductions.

Evidence remains limited to two models around 7–8 billion parameters and three tests. A summary may omit a condition, or retrieval may fail to return the necessary passage; long code generation and other models were not established by these results. Additional searching did not identify an independent experimental reproduction of ZoomR, which does not prove none exists. No quantitative evidence of widespread adoption was established either.

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.

Explore GPU hosting
← All articles