KV-PRM: Efficient Process Reward Modeling via KV-Cache Transfer for Multi-Agent Test-Time Scaling
Peng Kuang, Haibo Jin, Xiaoyu Han, Yanli Wang, Xiaopeng Yuan, Ye Yu, Kaidi Xu, Haohan Wang
NeurIPS page · OpenReview · alphaXiv · Open on the map
Category: LLM Post-Training: RL & Distillation › Reasoning Distillation Methods · Type: new method · Keywords: process reward modeling, KV cache, test-time scaling, multi-agent systems, efficient inference
Areas: Memory › Model Memory Optimization › KV Cache Optimization; AI Agents › Agent Optimization and Evaluation › KV Cache Optimization
Summary
KV-PRM introduces an efficient process reward model that leverages the LLM's KV cache to reduce scoring cost from O(L²) to O(L), achieving massive speedups and memory savings on MATH, GSM8K, and AIME benchmarks.
Explained to a 5-year-old
A group of smart robots talks to each other to solve problems step by step. After each robot makes a move, they need to check whether the move is correct. Usually, they have to read the whole conversation again to see if everything is right. The researchers noticed that while the robots are talking, they keep a hidden record of what they have said. By using this hidden record, they can check their steps quickly without reading everything again. This makes the robots faster, uses less memory, and helps them solve harder problems.
Explained to a 5-year-old, longer
A group of smart robots works together to solve puzzles by thinking step by step. After each robot makes a move, they need to check whether the move is correct. Usually, they have to read the whole conversation again to see if everything is right. Reading everything again takes a lot of time, especially when there are many steps. The researchers noticed that while the robots are talking, they keep a hidden record of what they have said. This hidden record is called the KV cache, and it stores important information about the conversation. Instead of re-reading the whole text, the robots can look at this hidden record to check their moves. Looking at the hidden record is much faster because it only needs a tiny piece of information. This way, the robots can check their steps in linear time instead of quadratic time. The new method also uses less memory because it does not need to keep the whole text in memory. As a result, the robots can solve harder problems more quickly and with fewer resources. The researchers tested this idea on math problems and found it works as well as the old method, but much faster.
For a technical reader
The paper addresses the high computational cost of text-based process reward models, which re-encode entire trajectories and scale quadratically with length. It shows how the LLM’s KV cache, already generated during inference, can be reused to compute rewards in linear time, dramatically cutting FLOPs, latency, and memory. Theoretical analysis proves the KV cache carries more information than raw text for reward modeling. Experiments on MATH, GSM8K, and AIME confirm the new approach matches or exceeds existing PRMs while delivering up to 5,000× fewer FLOPs and substantial speed and memory savings.
Problem
Existing text-based process reward models re-encode entire trajectory texts, causing scoring cost to grow quadratically with sequence length and becoming prohibitive for long multi-agent rollouts.
Method
The approach reads the LLM's KV cache generated during text generation to compute rewards directly, processing a single verify token against the cache to achieve linear-time scoring without re-encoding the full trajectory.
Results
The approach matches or outperforms text-based PRMs on MATH, GSM8K, and AIME, achieving up to 5,000× reduction in scoring FLOPs, 37× reduction in latency, and 34× reduction in per-sequence memory footprint.
Contributions
It provides a theoretical proof that KV cache holds more information than text for reward modeling and demonstrates a practical reward model that leverages this property for massive efficiency gains.
Practical relevance
This enables scaling process reward modeling to longer contexts, facilitating more capable LLM-based multi-agent systems.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction