ReST-RL: Achieving Accurate Code Reasoning of LLMs with Optimized Self-Training and Decoding
Paper
•
2508.19576
•
Published
•
2
This model is trained with the ReST-RL paradigm, based on the Qwen3-8B model. It is trained for 2 reinforce iterations.
from transformers import pipeline
question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
generator = pipeline("text-generation", model="None", device="cuda")
output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
print(output["generated_text"])
Cite ReST-RL as:
@misc{zhoubian2025restrlachievingaccuratecode,
title={ReST-RL: Achieving Accurate Code Reasoning of LLMs with Optimized Self-Training and Decoding},
author={Sining Zhoubian and Dan Zhang and Jie Tang},
year={2025},
eprint={2508.19576},
archivePrefix={arXiv},
primaryClass={cs.AI},
url={https://arxiv.org/abs/2508.19576},
}