TL;DR
For standard Large Language Models (LLMs), aggressive 4-bit weight quantization is the go-to memory optimization. However, this "universal rule" fails for reasoning models where long generations make the Key-Value (KV) cache the primary memory bottleneck. A scale-dependent strategy emerges: for small models (under ~4B parameters at 8-bit), it is better to spend a fixed memory budget on larger, higher-precision weights. Conversely, for larger models, memory is best spent on expanding the KV cache to allow for longer test-time compute.
The Problem: Memory Bottlenecks in Reasoning
Historically, studies on LLM memory-performance trade-offs have focused almost entirely on compressing model weights. This made sense for zero-shot or standard generation tasks because model weights typically consume far more GPU memory than the KV cache.
However, modern reasoning models (like OpenAI's o1 or DeepSeek-R1) are designed to generate massive "chain-of-thought" trajectories before arriving at an answer. Because the KV cache grows proportionally with the number of generated tokens, it quickly overtakes model weights as the dominant memory constraint—especially during batched inference.
This shift raises a critical deployment question: Under a strict memory budget, how should practitioners allocate gigabytes between model size, weight precision, token budget (generation length), parallel sampling (majority voting), and KV cache compression to maximize reasoning performance?
Methods and Experimental Setup
The authors conducted a massive empirical study spanning over 1,700 different inference configurations, shifting the focus from traditional FLOPs-based scaling laws to memory-constrained test-time scaling.
Key variables tested include:
- Model Size: 0.6B to 32B parameters (primarily the Qwen family, validated on DeepSeek-R1-Distill and OpenReasoning-Nemotron).
- Weight Precision: 4-bit, 8-bit, and 16-bit (using GPTQ, AWQ, and FP8).
- Test-Time Token Budget: 2k to 30k tokens, controlled via "budget forcing" (prompting the model to keep thinking until a target budget is reached).
- Parallel Scaling: Generating multiple samples (group sizes up to 16) for majority voting.
- KV Cache Compression: Comparing KV cache eviction (R-KV, StreamingLLM) against KV cache quantization (HQQ).
The study evaluated models across benchmarks with complementary difficulty profiles, including AIME25 & MATH500 (mathematical reasoning), LiveCodeBench (code generation), and GPQA-Diamond (knowledge-intensive scientific reasoning).
Key Insights
- The "8-bit 4B" Threshold: There is a critical inflection point for memory allocation. For models with an effective size below an 8-bit 4B model (~4.2 GB), memory is best spent on model capacity (larger weights or higher precision). Above this threshold, memory is best spent on test-time compute (expanding the KV cache for longer generations). Small models simply lack the intrinsic capacity to make use of massive test-time compute.
- Task Dictates Precision: 4-bit quantization is broadly optimal for knowledge-intensive tasks (GPQA), where parameter count matters most for storing facts. However, mathematical reasoning and code generation are highly sensitive to precision loss; for these tasks, 8-bit or 16-bit weights are significantly more memory-efficient.
- Parallel Scaling is for the Big Guys: Generating multiple reasoning trajectories for majority voting requires a massive KV cache. This strategy only improves the memory-accuracy Pareto frontier for models effectively larger than 8-bit 4B. For smaller models, you are better off just using a larger model.
- External Verifiers are Memory Hogs: Using a Process Reward Model (PRM) to verify steps is highly memory-inefficient compared to self-contained majority voting under tight budgets, as the verifier's weights consume too much of the total memory pie.
- Eviction > Quantization for Small Models: When compressing the KV cache, small models suffer heavily from the numerical errors of KV quantization. For these models, KV eviction (dropping less important tokens but keeping the rest in full precision) is vastly superior. For large models, both strategies are competitive.
Key Results
- Precision vs. Size: On the AIME25 math benchmark, an 8B model at 8-bit consistently outperforms a 14B model at 4-bit. Even more surprisingly, a 32B model at 4-bit is strictly dominated by both a 14B at 8-bit and an 8B at 16-bit.
- KV Cache Compression is Mandatory: Weight quantization alone is not enough for optimal reasoning. Applying KV cache compression (either eviction or quantization) decisively pushed the Pareto frontier forward across all tested model sizes and weight precisions.
- Latency/Throughput: 4-bit precision is never on the Pareto frontier for latency or throughput. Because generation length dominates end-to-end latency, 8-bit and 16-bit models consistently provide a better speed-accuracy trade-off than 4-bit models forced to generate longer chains of thought.
- Extreme Parallelism: For large memory budgets (> 28.9 GB), massive parallel scaling (group sizes $\ge$ 8) becomes the dominant strategy for pushing the accuracy frontier.
Limitations and Future Work
To keep the search space tractable (already at 1,700+ configurations), the authors focused strictly on inference-only, post-training quantization methods. They did not explore training-time interventions like Quantization-Aware Training (QAT), which might alter the 4-bit degradation seen in math tasks. Additionally, their exploration of external verifiers was limited to a single PRM; a broader comparison of verifier-based search methods (like Monte Carlo Tree Search) under strict memory constraints remains a promising avenue for future work.
Summary updated