Optimizing Test-Time Compute via Meta Reinforcement Fine-Tuning

Yuxiao Qu, Matthew Y. R. Yang, Amrith Rajagopal Setlur, Lewis Tunstall, E. Beeching, R. Salakhutdinov, Aviral Kumar

arXiv:2503.07572 · 2026-07-27 공개 · arXiv · PDF

reinforcement-learning llm fine-tuning llm-reasoning math-reasoning token-efficiency test-time-compute meta-rl

Abstract

Training models to effectively use test-time compute is crucial for improving the reasoning performance of LLMs. Current methods mostly do so via fine-tuning on search traces or running RL with 0/1 outcome reward, but do these approaches efficiently utilize test-time compute? Would these approaches continue to scale as the budget improves? In this paper, we try to answer these questions. We formalize the problem of optimizing test-time compute as a meta-reinforcement learning (RL) problem, which provides a principled perspective on spending test-time compute. This perspective enables us to view the long output stream from the LLM as consisting of several episodes run at test time and leads us to use a notion of cumulative regret over output tokens as a way to measure the efficacy of test-time compute. Akin to how RL algorithms can best tradeoff exploration and exploitation over training, minimizing cumulative regret would also provide the best balance between exploration and exploitation in the token stream. While we show that state-of-the-art models do not minimize regret, one can do so by maximizing a dense reward bonus in conjunction with the outcome 0/1 reward RL. This bonus is the ''progress'' made by each subsequent block in the output stream, quantified by the change in the likelihood of eventual success. Using these insights, we develop Meta Reinforcement Fine-Tuning, or MRT, a new class of fine-tuning methods for optimizing test-time compute. MRT leads to a 2-3x relative gain in performance and roughly a 1.5x gain in token efficiency for math reasoning compared to outcome-reward RL.

한국어 요약

한 줄 요약

MRT는 테스트 시점의 계산 자원을 최적화하여 LLM의 추론 성능을 2~3배 향상시키는 메타 강화 학습 기반 미세조정 방법이다.

핵심 기여도

핵심 아이디어

기존의 테스트 시점 계산 최적화는 주로 0/1 결과 보상 기반 RL을 사용했으나, 이는 토큰 예산을 효율적으로 사용하지 못하는 문제가 있었다. 본 연구는 테스트 시점의 토큰 스트림을 여러 에피소드로 분할하고, 각 에피소드에서의 성공 가능성 변화량(likelihood of success)을 기반으로 **누적 후회(cumulative regret)**를 최소화하는 메타 RL 프레임워크를 제안한다. 이는 토큰 예산을 고려한 탐색과 활용(explore-exploit)의 균형을 맞추는 데 기여한다.

MRT는 **progress reward bonus**라는 새로운 보상을 도입하여, 각 에피소드에서의 성공 가능성 증가량을 측정하고, 이를 기반으로 토큰 예산을 효율적으로 사용하도록 유도한다. 이는 기존의 단순한 결과 기반 RL과 달리, **중간 과정에서의 진전**을 고려한 학습이 가능하다는 점에서 차별화된다.

기술적 접근법

주요 결과

의의 및 한계

MRT는 테스트 시점의 토큰 예산을 고려한 학습 프레임워크를 제시하며, 기존의 단순 결과 기반 RL보다 토큰 효율성과 성능을 동시에 향상시킨다. 특히, **누적 후회 최소화**라는 새로운 평가 지표를 도입하여, 토큰 예산을 효율적으로 사용하는 알고리즘을 학습할 수 있다는 점에서 학술적 의의가 있다.

그러나, MRT는 특정 수학 문제 데이터셋(AIME, AMC 등)에서만 평가되었으며, 다른 도메인(예: 논리 추론, 자연어 생성)에서의 일반화 능력은 명시되지 않았다. 또한, MRT는 기존의 **length penalty**와 달리 토큰 길이를 줄이면서 정확도를 높이는 효과를 보이지만, 이는 특정 데이터셋에서만 성립될 수 있다.

실용적 활용

MRT는 테스트 시점의 계산 자원을 최적화해야 하는 산업 분야(예: 클라우드 인프라, 모바일 기기)에서 유용하게 활용될 수 있다. 특히, **LLM의 추론 효율성**을 향상시키는 데 적합하며, 복잡한 수학 문제 해결, 자동화된 시스템 내의 실시간 추론 등에 적용 가능하다.