Downloads · 30 days
23
4% of all-time downloads
LichengLiu03/Qwen2.5-3B-UFO
Qwen2.5-3B-UFO is a text generation model from LichengLiu03. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This model is based on Qwen2.5-3B-Instruct and trained with PPO (Proximal Policy Optimization) on the MetaMathQA dataset for mathematical reasoning, as presented in the paper A Simple "Try Again" Can Elicit Multi-Turn…
Downloads · 30 days
23
4% of all-time downloads
All-time downloads
632
Public
Parameters
3.1B
6.2 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors6.2 GB · 100%
From the Hugging Face model README
This model is based on Qwen2.5-3B-Instruct and trained with PPO (Proximal Policy Optimization) on the MetaMathQA dataset for mathematical reasoning, as presented in the paper A Simple "Try Again" Can Elicit Multi-Turn LLM Reasoning.
Github: https://github.com/lichengliu03/unary-feedback Website: https://unary-feedback.github.io/
"Let's Try Again" addresses a critical gap in language model training: while single-turn reinforcement learning (RL) improves reasoning, these models fail in multi-turn interactive scenarios, often repeating the same wrong answers despite feedback.
Single-turn RL models lose the ability to revise reasoning across multiple turns. In 70% of failure cases, they produce identical answers across 5 interaction rounds, unable to incorporate simple feedback like "try again."
Unary Feedback as Observation (UFO) transforms static datasets into multi-turn training by:
UFO enables effective multi-turn RL training on existing static datasets without expensive annotations, making it practical to train models that can learn from sparse feedback and improve iteratively through trial-and-error, just like humans do.
The UFO framework transforms static single-turn datasets into multi-turn interactive training through a simple yet effective approach.
<p align="center"><img src="public/fig1.png" width="800px" alt="UFO Framework Flow" /></p> <p align="center" style="font-size: 16px; max-width: 800px; margin: 0 auto;"> The UFO framework flow: Static datasets are transformed into multi-turn episodes where models receive minimal feedback ("Try Again") and learn to revise their reasoning across multiple attempts. </p>We model multi-turn problem solving as a finite-horizon Markov Decision Process (MDP) where:
The core innovation is treating minimal feedback as part of the observation:
Question: What is the value of x + y?
Attempt 1: [wrong answer]
Feedback: Try Again.
Attempt 2: [correct answer]
Key Features:
We use Proximal Policy Optimization (PPO) to train the policy:
Two complementary strategies encourage efficient reasoning:
1. Exponential Reward Decay:
DecayReward(t) = γ^t if correct, 0 otherwise
Favors solving problems in fewer turns.
2. Repetition Penalty:
Penalty(τ) = λ · (1 - E(τ)/T)
Penalizes duplicate answers, encouraging diverse reasoning strategies.
This framework enables effective multi-turn RL training on static datasets without requiring expensive annotations or complex environments.
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
# Load model and tokenizer
tokenizer = AutoTokenizer.from_pretrained("LichengLiu03/qwen2.5-3b-ppo-metamath-full")
model = AutoModelForCausalLM.from_pretrained(
"LichengLiu03/qwen2.5-3b-ppo-metamath-full",
torch_dtype=torch.float16,
device_map="auto"
)
# Example math problem
prompt = "Solve this math problem: If a circle has a radius of 5cm, what is its area?"
inputs = tokenizer(prompt, return_tensors="pt")
# Generate answer
with torch.no_grad():
outputs = model.generate(
**inputs,
max_new_tokens=512,
temperature=0.7,
do_sample=True,
pad_token_id=tokenizer.eos_token_id
)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
This model is optimized for mathematical reasoning with PPO, and compared to the base model, it improves:
We compare our multi-turn UFO model against a strong single-turn PPO baseline. For a fair comparison, the baseline is evaluated on 5 independent samples (Pass@5), while our model uses 5 sequential attempts with feedback (Succ@5). Success is recorded if any of the 5 responses is correct. We also analyze the impact of varying the maximum number of interaction turns at training.
<p align="center"> <img src="public/compare_baseline.png" width="46.2%" alt="UFO Performance Comparison" /> <img src="public/multi-turn_training.png" width="45%" alt="Multi-turn Training Process" /> </p> <p align="center" style="font-size: 14px; color: #666;"> Left: Multi-turn (5-turn) RL significantly outperforms single-turn baseline. Right: Performance comparison with different training turns (1, 5, and 10). </p>Key Findings:
To further investigate the role of unary feedback, we compare model performance under different feedback availability conditions. In scenario (a), unary feedback is provided during both training and validation phases, while in scenario (b), unary feedback is available only during training but not at validation. The results show that access to unary feedback during both phases substantially improves validation success rate. In contrast, providing unary feedback solely during training does not yield improvements, indicating that the benefit of unary feedback is contingent on its availability at inference time.
<p align="center"><img src="public/feedback_comparisons_side_by_side.png" width="80%" alt="Effectiveness of Unary Feedback" /></p> <p align="center" style="font-size: 14px; color: #666;"> Success rate comparison under different unary feedback settings: (a) feedback in both training and validation; (b) feedback only in training. </p>Key Insights:
Exponential Reward Decay:
Answer Diversity:
This model is licensed under Apache 2.0.
We thank the DeepSeek team for providing the DeepSeek-R1 model and early conceptual inspirations. We are grateful to the veRL team for their infrastructure support and the RAGEN team for their multi-turn RL framework.