NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

COSMO-RL: Towards Trustworthy LMRMs via Joint Safety and Stability

Yizhuo Ding, Mingkang Chen, Qiuhua Liu, Fenghua Weng, Wanying Qu, Yue Yang, Yu-Gang Jiang, Zuxuan Wu, Yanwei Fu, Wenqi Shao · DOI

Introduction

Large Multimodal Reasoning Models (LMRMs), such as OpenAI’s o1 or DeepSeek-R1, have demonstrated exceptional capabilities in logical reasoning and mathematical problem-solving. However, as these models expand into multimodal domains—processing both text and images—their safety profiles often struggle to keep pace. Malicious actors can exploit "visual jailbreaks," using specifically crafted images to bypass traditional text-based guardrails.

The standard industry response has been post-hoc safety fine-tuning. Unfortunately, this approach frequently incurs a "Safety Tax," where reasoning performance degrades, or leads to "Over-Refusal," where the model becomes excessively cautious and rejects benign prompts. CoSMo-RL addresses these challenges by integrating safety as an emergent property of the reasoning process itself, rather than a secondary patch.

The CoSMo-RL Framework

The researchers propose a unified reinforcement learning framework designed to produce models that are both highly capable and inherently safe. The architecture of CoSMo-RL is built upon four foundational pillars:

The CoSMo-RL training pipeline and reinforcement learning loop.
  1. Staged Training Pipeline: Safety alignment is not a final step but is integrated into a two-stage process. Stage 1 focuses on building foundational reasoning and general capabilities. Stage 2 introduces joint optimization for safety, helpfulness, and capability, ensuring that complex reasoning skills do not overwrite safety alignment.
  2. Clipped Policy Gradient with Policy Drift (CPGD): This specialized optimizer stabilizes reinforcement learning updates. By controlling policy drift, CPGD prevents model collapse and "reward hacking," where a model might find unintended ways to maximize scores without adhering to safety principles.
  3. Multi-Objective Reward Function: The model is guided by a composite reward function:
  4. Visual-Focus ($R_{visual-focus}$): Encourages grounding responses in actual visual evidence.
  5. Helpful ($R_{helpful}$): Promotes accuracy and informative content.
  6. Format ($R_{format}$): Enforces the Chain-of-Thought (CoT) structure.
  7. Task-Aware ($R_{task-aware}$): Specifically penalizes harmful or unsafe outputs.
  8. Adversarial Data Augmentation: Using teacher models like GPT-4o, the authors generated unsafe prompts and risk-relevant visual cues to train the model to resist sophisticated jailbreak attempts.

Experimental Setup

The framework was evaluated using a robust suite of datasets and benchmarks. Training involved distilled CoT examples, 80k bilingual multimodal samples for value alignment, and 120k STEM questions for knowledge verification.

Safety was measured using MM-SafetyBench, MSSBench, SIUO, and XSTest. Reasoning performance was tracked across major benchmarks including MMMU, MathVista, Olympiad, GPQA Diamond, and GAOKAO-MM.

Results and Discussion

The resulting model, CoSMo-R1 (built on a Qwen2.5-VL-72B backbone), demonstrated that safety and reasoning can be mutually reinforcing:

  • Superior Safety Performance: CoSMo-R1 achieved a 90.9% safety rate on MM-SafetyBench, outperforming proprietary models like GPT-4.1 (78.2%) and Claude Opus (82.1%).
  • Eliminating the Safety Tax: Remarkably, reasoning scores improved during safety training. The average score across five reasoning benchmarks rose from 61.2% to 68.9%.
  • Precision in Refusal: On the XSTest, CoSMo-R1 accepted 99.2% of safe prompts, indicating a high degree of nuance in distinguishing between genuine threats and harmless queries.

The core insight of this work is that superior reasoning allows a model to better understand the context and potential harm of a prompt. By rewarding "Visual-Focus," the model is forced to attend to the actual image content, making it more resilient to abstract visual attacks.

Conclusion

CoSMo-RL represents a significant step toward trustworthy LMRMs. By treating safety as a core reasoning task and utilizing stable RL techniques like CPGD, the authors have shown that it is possible to build safer models without sacrificing performance. Future research will focus on refining reward shaping for sensitive content and extending the framework to long-video reasoning and autonomous agents.

Summary updated

BibTeX
@misc{ding2025cosmo,
  author = {Yizhuo Ding and Mingkang Chen and Qiuhua Liu and Fenghua Weng and Wanying Qu and Yue Yang and Yu-Gang Jiang and Zuxuan Wu and Yanwei Fu and Wenqi Shao},
  title = {{COSMO-RL: Towards Trustworthy LMRMs via Joint Safety and Stability}},
  year = {2025},
  eprint = {2510.04196},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.04196},
}
Figure