VerIF: Verification Engineering for Reinforcement Learning in Instruction Following

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Peng, Hao, Qi, Yunjia, Wang, Xiaozhi, Xu, Bin, Hou, Lei, Li, Juanzi
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866909646137065472
author Peng, Hao
Qi, Yunjia
Wang, Xiaozhi
Xu, Bin
Hou, Lei
Li, Juanzi
author_facet Peng, Hao
Qi, Yunjia
Wang, Xiaozhi
Xu, Bin
Hou, Lei
Li, Juanzi
contents Reinforcement learning with verifiable rewards (RLVR) has become a key technique for enhancing large language models (LLMs), with verification engineering playing a central role. However, best practices for RL in instruction following remain underexplored. In this work, we explore the verification challenge in RL for instruction following and propose VerIF, a verification method that combines rule-based code verification with LLM-based verification from a large reasoning model (e.g., QwQ-32B). To support this approach, we construct a high-quality instruction-following dataset, VerInstruct, containing approximately 22,000 instances with associated verification signals. We apply RL training with VerIF to two models, achieving significant improvements across several representative instruction-following benchmarks. The trained models reach state-of-the-art performance among models of comparable size and generalize well to unseen constraints. We further observe that their general capabilities remain unaffected, suggesting that RL with VerIF can be integrated into existing RL recipes to enhance overall model performance. We have released our datasets, codes, and models to facilitate future research at https://github.com/THU-KEG/VerIF.
format Preprint
id arxiv_https___arxiv_org_abs_2506_09942
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle VerIF: Verification Engineering for Reinforcement Learning in Instruction Following
Peng, Hao
Qi, Yunjia
Wang, Xiaozhi
Xu, Bin
Hou, Lei
Li, Juanzi
Computation and Language
Artificial Intelligence
Reinforcement learning with verifiable rewards (RLVR) has become a key technique for enhancing large language models (LLMs), with verification engineering playing a central role. However, best practices for RL in instruction following remain underexplored. In this work, we explore the verification challenge in RL for instruction following and propose VerIF, a verification method that combines rule-based code verification with LLM-based verification from a large reasoning model (e.g., QwQ-32B). To support this approach, we construct a high-quality instruction-following dataset, VerInstruct, containing approximately 22,000 instances with associated verification signals. We apply RL training with VerIF to two models, achieving significant improvements across several representative instruction-following benchmarks. The trained models reach state-of-the-art performance among models of comparable size and generalize well to unseen constraints. We further observe that their general capabilities remain unaffected, suggesting that RL with VerIF can be integrated into existing RL recipes to enhance overall model performance. We have released our datasets, codes, and models to facilitate future research at https://github.com/THU-KEG/VerIF.
title VerIF: Verification Engineering for Reinforcement Learning in Instruction Following
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2506.09942