TriPlay-RL: Tri-Role Self-Play Reinforcement Learning for LLM Safety Alignment

Zhewen Tan, Wenhan Yu, Jianfeng Si, Tongxin Liu, Kaiqi Guan +7 more
1/26/2026
cs.LGcs.AI
rl

No confident code implementation found for this paper.

Abstract

In recent years, safety risks associated with large language models have become increasingly prominent, highlighting the urgent need to mitigate the generation of toxic and harmful content. The mainstream paradigm for LLM safety alignment typically adopts a collaborative framework involving three roles: an attacker for adversarial prompt generation, a defender for safety defense, and an evaluator for response assessment.

Show full abstract

In this paper, we propose a closed-loop reinforcement learning framework called TriPlay-RL that enables iterative and co-improving collaboration among three roles with near-zero manual annotation. Experimental results show that the attacker preserves high output diversity while achieving a 20%-50% improvement in adversarial effectiveness; the defender attains 10%-30% gains in safety performance without degrading general reasoning capability; and the evaluator continuously refines its fine-grained judgment ability through iterations, accurately distinguishing unsafe responses, simple refusals, and useful guidance. Overall, our framework establishes an efficient and scalable paradigm for LLM safety alignment, enabling continuous co-evolution within a unified learning loop.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{tan2026triplayrl,
  title  = {TriPlay-RL: Tri-Role Self-Play Reinforcement Learning for LLM Safety Alignment},
  author = {Zhewen Tan and Wenhan Yu and Jianfeng Si and Tongxin Liu and Kaiqi Guan and Huiyan Jin and Jiawen Tao and Xiaokun Yuan and Duohe Ma and Xiangzheng Zhang and Tong Yang and Lin Sun},
  year   = {2026},
  eprint = {2601.18292},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.18292v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2601.18292.svg)](https://codeofpaper.com/paper/2601.18292)

Discussion