| Model | Size | Reasoning | Alignment | Constructive Safety | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| AIME24 | AIME25 | GPQA-Diamond | LCB(V5) | IFEval(Prompt Strict) | OpenSource | InHouse | ||||
| DeepSeek R1-0528 | 671B | 91.4 | 87.5 | 81 | 73.3 | 80.9 | 73 | 69.3 | ||
| Qwen3-235B-A22B-Thinking-2507 | 235B | - | 92.3 | 81.1 | 74.1 | 87.7 | 65.5 | 56.2 | ||
| Qwen3-32B | 32B | 81.4 | 72.9 | 68.4 | 65.7 | 85 | 64.5 | 55.8 | ||
| 🚀TinyR1-32B(Ours) | 32B | 90.9 | 82.7 | 69.4 | 70.4 | 89.2 | 89.5 | 86.5 | ||
For a long time, traditional SFT training of large language models has faced a trade-off between helpfulness and harmlessness: improving safety often comes at the cost of instruction-following ability, and vice versa. To address this challenge, we propose the Control Token method—introducing control signals into the training data of TinyR1-32B, enabling the model to dynamically switch modes depending on the task type. This approach achieves a balanced coexistence of reasoning ability, safety, and alignment.
After only 20K high-quality fine-tuning samples and three rounds of SFT training, TinyR1-32B has achieved comprehensive improvements in reasoning, instruction-following, and safety, surpassing Qwen3-32B across core performance dimensions. In particular, its instruction-following and safety performance significantly exceed the full-strength DeepSeek-R1-0528. Specifically:
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "qihoo360/TinyR1-32B"
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained(model_name)
system_prompt= "Please reason step by step, and put your final answer within \\boxed{}."
query = r" Solve the integral: \[I = \int \frac{x^2}{(x+1)^3} \,dx\]"
messages = [
{'role': 'system', 'content': system_prompt},
{'role': 'user', 'content': query}
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
generated_ids = model.generate(
**model_inputs,
max_new_tokens=4000
)
generated_ids = [
output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
]
response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
print(response)
360 Team: Weihong Lin, Lin Sun, Jianfeng Si, Guangxiang Zhao, Yongfu Zhu, Biyu Xiao, Sai-er Hu, Xiangzheng Zhang
PKU Team: Qilong Shi, Yuxuan Tian, Wenpu Liu, Aomufei Yuan, Tong Yang
@misc{tinyr1proj,
title={TinyR1-32B-Report},
author={TinyR1 Team},
year={2025},
eprint={},
archivePrefix={},
primaryClass={},
}
@misc{si2025efficientswitchablesafetycontrol,
title={Efficient Switchable Safety Control in LLMs via Magic-Token-Guided Co-Training},
author={Jianfeng Si and Lin Sun and Zhewen Tan and Xiangzheng Zhang},
year={2025},
eprint={2508.14904},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2508.14904},
}
model-00001-of-00014.safetensors 4.6 GiBmodel-00004-of-00014.safetensors 4.5 GiBmodel-00005-of-00014.safetensors 4.5 GiBmodel-00006-of-00014.safetensors 4.5 GiBmodel-00007-of-00014.safetensors 4.5 GiBmodel-00008-of-00014.safetensors 4.5 GiBmodel-00009-of-00014.safetensors 4.5 GiBmodel-00010-of-00014.safetensors 4.5 GiBmodel-00011-of-00014.safetensors 4.5 GiBmodel-00012-of-00014.safetensors 4.5 GiBmodel-00013-of-00014.safetensors 4.5 GiBmodel-00003-of-00014.safetensors 4.5 GiBmodel-00002-of-00014.safetensors 4.5 GiBmodel-00014-of-00014.safetensors 2.0 GiB