SPACE: Noise Contrastive Estimation Stabilizes Self-Play Fine-Tuning for Large Language Models

Yi-Bo Wang, Guangda Huzhang, Qing-Guo Chen, Zhao Xu, Wei-Hua Luo +2 more
12/1/2025

No confident code implementation found for this paper.

Abstract

Self-play fine-tuning has demonstrated promising abilities in adapting large language models (LLMs) to downstream tasks with limited real-world data. The basic principle is to iteratively refine the model with real samples and synthetic ones generated from itself.

Show full abstract

However, the existing methods primarily focus on the relative gaps between the rewards for two types of data, neglecting their absolute values. Through theoretical analysis, we identify that the gap-based methods suffer from unstable evolution, due to the potentially degenerated objectives. To address this limitation, we introduce a novel self-play fine-tuning method, namely Self-PlAy via Noise Contrastive Estimation (SPACE), which leverages noise contrastive estimation to capture the real-world data distribution. Specifically, SPACE treats synthetic samples as auxiliary components, and discriminates them from the real ones in a binary classification manner. As a result, SPACE independently optimizes the absolute reward values for each type of data, ensuring a consistently meaningful objective and thereby avoiding the instability issue. Theoretically, we show that the optimal solution of the objective in SPACE aligns with the underlying distribution of real-world data, and SPACE guarantees a provably stable convergence to the optimal distribution. Empirically, we show that SPACE significantly improves the performance of LLMs over various tasks, and outperforms supervised fine-tuning that employs much more real-world samples. Compared to gap-based self-play fine-tuning methods, SPACE exhibits remarkable superiority and stable evolution.

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{wang2025space,
  title  = {SPACE: Noise Contrastive Estimation Stabilizes Self-Play Fine-Tuning for Large Language Models},
  author = {Yi-Bo Wang and Guangda Huzhang and Qing-Guo Chen and Zhao Xu and Wei-Hua Luo and Kai-Fu Zhang and Li-Jun Zhang},
  year   = {2025},
  eprint = {2512.07175},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2512.07175},
  url    = {https://doi.org/10.48550/arXiv.2512.07175},
  journal = {Neural Information Processing Systems}
}

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/2512.07175.svg)](https://codeofpaper.com/paper/2512.07175)

Discussion