Downloads · 30 days
9
2% of all-time downloads
RoadQAQ/ReLIFT-Qwen2.5-Math-1.5B-Zero
ReLIFT-Qwen2.5-Math-1.5B-Zero is a question answering model from RoadQAQ. Use it when the input is a question plus a passage. It is set up for transformers. The card lists the license as cc-by-nc-4.0.
This repository contains the models introduced in the paper Learning What Reinforcement Learning Can't: Interleaved Online Fine-Tuning for Hardest Questions.
Downloads · 30 days
9
2% of all-time downloads
All-time downloads
573
Public
Parameters
1.8B
7.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors7.1 GB · 100%
From the Hugging Face model README
This repository contains the models introduced in the paper Learning What Reinforcement Learning Can't: Interleaved Online Fine-Tuning for Hardest Questions.
Recent advances in large language model (LLM) reasoning have shown that sophisticated behaviors such as planning and self-reflection can emerge through reinforcement learning (RL). However, despite these successes, RL in its current form remains insufficient to induce capabilities that exceed the limitations of the base model, as it is primarily optimized based on existing knowledge of the model rather than facilitating the acquisition of new information. To address this limitation, we employ supervised fine-tuning (SFT) to learn what RL cannot, which enables the incorporation of new knowledge and reasoning patterns by leveraging high-quality demonstration data. We analyze the training dynamics of RL and SFT for LLM reasoning and find that RL excels at maintaining and improving performance on questions within the model's original capabilities, while SFT is more effective at enabling progress on questions beyond the current scope of the model. Motivated by the complementary strengths of RL and SFT, we introduce a novel training approach, \textbf{ReLIFT} (\textbf{Re}inforcement \textbf{L}earning \textbf{I}nterleaved with Online \textbf{F}ine-\textbf{T}uning). In ReLIFT, the model is primarily trained using RL, but when it encounters challenging questions, high-quality solutions are collected for fine-tuning, and the training process alternates between RL and fine-tuning to enhance the model's reasoning abilities. ReLIFT achieves an average improvement of over +5.2 points across five competition-level benchmarks and one out-of-distribution benchmark compared to other zero-RL models. Furthermore, we demonstrate that ReLIFT outperforms both RL and SFT while using only 13% of the detailed demonstration data, highlighting its scalability. These results provide compelling evidence that ReLIFT overcomes the fundamental limitations of RL and underscores the significant potential.
https://github.com/TheRoadQaQ/ReLIFT
(Inference example from the GitHub README can be pasted here)
from transformers import AutoTokenizer
from vllm import LLM, SamplingParams
model_path="RoadQAQ/ReLIFT-Qwen2.5-Math-7B-Zero"
question = "which number is larger? 9.11 or 9.9?"
tokenizer = AutoTokenizer.from_pretrained(model_path)
messages = [{"role": "user", "content": question}]
chat = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
llm = LLM(model=model_path)
params = SamplingParams(temperature=0.6, max_tokens=8192)
outputs = llm.generate([chat], params)
print(outputs[0].outputs[0].text)