# The Hidden Link Between RLHF and Contrastive Learning

RLHF와 대조 학습 사이의 숨겨진 연결고리

Lv, Xufei, Chen, Kehai, Sun, Haoyuan, Bai, Xuefeng, Zhang, Min, Liu, Houde 외 1명 · arXiv · 2025년 6월 27일

- **연구 문제** RLHF와 DPO를 상호정보량과 대조 학습의 관점에서 통합 설명하고, DPO에서 chosen 응답 확률이 함께 줄어드는 문제를 줄이는 방법을 제안합니다.
- **연구 방법** DV/MINE 하한을 Jensen–Shannon 상호정보량 추정기로 대체한 MIO 손실을 사용해 정책을 최적화합니다.
- **주요 결과** MIO는 장난감 모델에서 DPO의 동시 붕괴를 보이지 않았고, 세 기반 모델의 여덟 개 수학·추론 벤치마크 중 다수에서 최고 점수를 보고합니다.

## RLHF와 DPO를 상호정보량으로 읽기

RLHF는 사람의 선호로 언어 모델을 정렬하지만, 보상 모델을 학습한 뒤 강화학습 단계를 거치므로 계산 비용과 학습 불안정성이 큽니다. DPO는 별도 보상 모델 없이 선호 응답 쌍의 로그 확률 차이로 정책을 직접 최적화하는 한 단계 방법입니다. 본 논문은 RLHF와 DPO가 상호정보량(MI) 최대화로 해석되며, 그 근거가 Donsker–Varadhan 하한과 MINE 추정기에 있다고 주장합니다. 이 관점에서 저자들은 기준 정책이 정답 응답에 매우 작은 확률을 줄 때 RLHF가 업데이트되지 않는 이유를 설명하려 합니다. 이 설명은 저자들이 제시한 이론적 해석이며, 아래의 실험 결과와 구분해서 읽어야 합니다.

## DV 하한을 JS 추정기로 바꾸는 MIO

MIO는 DV/MINE 하한 대신 Jensen–Shannon MI 추정기를 사용합니다. 이 추정기는 MI 값을 정밀하게 맞추는 데 목적이 있기보다 기울기가 안정적으로 얻어지는 것이 중요할 때 선택됩니다. M=N=1로 두고 비평자를 로그 비율 형태로 제한하면 MIO 손실이 닫힌 형태로 주어집니다. 저자들은 이 손실에서 rejected 응답 확률에 대한 음의 기울기는 유지되고, 확률이 0에 가까워져도 chosen 응답의 기울기가 0으로 사라지지 않는다고 분석합니다. 반면 DPO의 기울기는 rejected 확률이 작아질수록 rejected 쪽으로 커지고 chosen 쪽은 0으로 줄어듭니다. 이 분석은 이론적 기울기 비교이므로, 실제 대규모 학습에서의 효과는 아래 실험으로 따로 확인해야 합니다.

## 장난감 모델에서 나타난 동시 붕괴

4개 프롬프트와 10개 응답으로 구성된 toy model에서 DPO는 chosen 응답과 rejected 응답의 확률이 함께 줄어드는 동시 붕괴를 보입니다. 같은 설정에서 MIO는 이러한 공동 감소를 보이지 않습니다. 이 toy model은 같은 데이터 점을 mini-batch에서 반복 샘플링하므로, 실제 LLM에서 한 에폭 동안 각 데이터를 몇 번만 쓰는 학습과는 직접 같은 조건이 아닙니다. 따라서 이 결과는 동시 붕괴 현상을 단순화해 보여 주는 증거로 읽어야 하며, 실제 LLM 성능을 대신하지 않습니다.

![Figure 1: Toy model setup(Yan et al., 2025). Left: the optimal policy where the highlighted blocks represent optimal responses. Right: preference dataset const…](https://refivu.com/papers/3fea3af0-2676-4a6a-87fb-1e85dc08f329/figures/figure-b40c679d32e2bb455497a981ae7abb2b.png?thumb=512)

**Figure 1** : Toy model setup(Yan et al., 2025). Left: the optimal policy where the highlighted blocks represent optimal responses. Right: preference dataset construction.

[원문](https://arxiv.org/abs/2506.22578v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Lv, Xufei, Chen, Kehai, Sun, Haoyuan, Bai, Xuefeng, Zhang, Min, Liu, Houde, Chen, Kehai · The Hidden Link Between RLHF and Contrastive Learning · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

## 실제 LLM 정렬과 벤치마크 결과

UltraFeedback-Binarized의 64k 프롬프트로 Mistral-7B-SFT와 LLaMA3-8B-SFT를 미세조정하고, Qwen2.5-7B-Instruct는 직접 학습합니다. 여덟 개의 수학·추론 벤치마크에서 Mistral-7B-SFT는 다섯 과제에서 최고, 두 과제에서 차순위를 기록합니다. LLaMA3-8B-SFT는 일곱 과제에서 최고, 한 과제에서 차순위입니다. Qwen2.5-7B-Instruct에서는 여덟 과제 모두 최고 성능이 보고됩니다. 이 점수는 각 모델과 학습 조건에 묶인 결과이므로, 세 모델의 결과를 하나의 공통 조건으로 합쳐 읽으면 안 됩니다.

![Table 1: Evaluation results on 8 benchmarks. Thebestand second best are marked](https://refivu.com/papers/3fea3af0-2676-4a6a-87fb-1e85dc08f329/figures/figure-2d83be990dce97a0441d2ae3433687b3.png?thumb=512)

**Table 1** : Evaluation results on 8 benchmarks. Thebestand second best are marked.

[원문](https://arxiv.org/abs/2506.22578v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Lv, Xufei, Chen, Kehai, Sun, Haoyuan, Bai, Xuefeng, Zhang, Min, Liu, Houde, Chen, Kehai · The Hidden Link Between RLHF and Contrastive Learning · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

## chosen과 rejected 보상의 변화

Mistral-7B-SFT의 학습 곡선에서 MIO는 chosen 응답의 보상을 높이고 rejected 응답의 보상을 억제하는 방향을 보입니다. 캡션과 본문 설명에 따르면 DPO, IPO, ORPO에서 나타나는 두 보상의 동시 감소가 MIO에서는 나타나지 않습니다. 본문은 rejected 보상이 약간 감소한다고 보고합니다. 이 곡선은 학습 중 보상의 방향을 보여 주는 증거이며, 최종 벤치마크 성능의 원인을 직접 증명하지는 않습니다.

![Figure 3: Training curves on MISTRAL-7B-SFT. Unlike DPO, IPO, and ORPO, MIOincreasesthe rewards of chosen responses while suppressing rejected ones, thereby av…](https://refivu.com/papers/3fea3af0-2676-4a6a-87fb-1e85dc08f329/figures/figure-3e584bc6d5608dc1d49183766934641c.png?thumb=512)

**Figure 3** : Training curves on MISTRAL-7B-SFT. Unlike DPO, IPO, and ORPO, MIOincreasesthe rewards of chosen responses while suppressing rejected ones, thereby avoiding the “synchronous collapse” observed in prior methods.

[원문](https://arxiv.org/abs/2506.22578v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Lv, Xufei, Chen, Kehai, Sun, Haoyuan, Bai, Xuefeng, Zhang, Min, Liu, Houde, Chen, Kehai · The Hidden Link Between RLHF and Contrastive Learning · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

## 적용 범위와 남은 질문

저자들은 본 연구가 다른 상호정보량 추정기의 효과를 탐구하지 않았다고 밝힙니다. 또한 장난감 모델 실험은 실제 LLM 학습과 샘플링 빈도가 다르며, 실제 실험 결과는 특정 기반 모델, 특정 선호 데이터셋, 특정 평가 벤치마크에서 얻은 것입니다. 따라서 MIO의 이점이 다른 모델 계열이나 다른 데이터에서도 같은 크기로 나타난다고 단정할 수 없습니다.

## 논문 정보

- **저자**: Lv, Xufei, Chen, Kehai, Sun, Haoyuan, Bai, Xuefeng, Zhang, Min, Liu, Houde, Chen, Kehai
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2025년 6월 27일
- **등록일**: 2026년 10월 30일
- **수정일**: 2025년 10월 13일
- **버전**: v2
- **arXiv**: 2506.22578
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2506.22578v2) · [원문 PDF ↗](https://arxiv.org/pdf/2506.22578v2)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

Alignment of large language models (LLMs) with human values has recently garnered significant attention, with prominent examples including the canonical yet costly Reinforcement Learning from Human Feedback (RLHF) and the simple Direct Preference Optimization (DPO). In this work, we demonstrate that both RLHF and DPO can be interpreted from the perspective of mutual information (MI) maximization, uncovering a profound connection to contrastive learning. Within this framework, both RLHF and DPO can be interpreted as methods that performing contrastive learning based on the positive and negative samples derived from base model, leveraging the Donsker-Varadhan (DV) lower bound on MI (equivalently, the MINE estimator). Such paradigm further illuminates why RLHF may not intrinsically incentivize reasoning capacities in LLMs beyond what is already present in the base model. Building on the perspective, we replace the DV/MINE bound with the Jensen-Shannon (JS) MI estimator and propose the Mutual Information Optimization (MIO). Comprehensive theoretical analysis and extensive empirical evaluations demonstrate that MIO mitigates the late-stage decline in chosen-likelihood observed in DPO, achieving competitive or superior performance across various challenging reasoning and mathematical benchmarks.

## 원문 인용

Lv, Xufei, Chen, Kehai, Sun, Haoyuan, Bai, Xuefeng, Zhang, Min, Liu, Houde, Chen, Kehai (2025). The Hidden Link Between RLHF and Contrastive Learning. arXiv:2506.22578v2. https://arxiv.org/abs/2506.22578v2

**BibTeX**

```
@misc{xufei2025hidden,
  title = {{The Hidden Link Between RLHF and Contrastive Learning}},
  author = {Lv, Xufei and Chen, Kehai and Sun, Haoyuan and Bai, Xuefeng and Zhang, Min and Liu, Houde and Chen, Kehai},
  year = {2025},
  eprint = {2506.22578},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.22578v2}
}
```

## 이 논문의 용어

- [GSM8K](https://refivu.com/terms/e48f0e01064d-gsm8k)
- [PPO](https://refivu.com/terms/21c34991d674-ppo)
- [InfoNCE](https://refivu.com/terms/9909993ddc7f-infonce)
- [direct preference optimization (DPO)](https://refivu.com/terms/4314fe503882-direct-preference-optimization-dpo)
- [Reinforcement Learning from Human Feedback (RLHF)](https://refivu.com/terms/a16e0c39c9ff-reinforcement-learning-from-human-feedback-rlhf)
- [Jensen gap](https://refivu.com/terms/43ba79b37edd-jensen-gap)
- [AQuA-RAT](https://refivu.com/terms/15480c0836db-aqua-rat)
- [Bradley–Terry (BT) model](https://refivu.com/terms/8be41640e348-bradley-terry-bt-model)
- [MathQA](https://refivu.com/terms/caa5f5dcb78d-mathqa)
- [MultiMedQA](https://refivu.com/terms/cc8ecbfb5627-multimedqa)
- [MuSR](https://refivu.com/terms/ac9ff9333023-musr)

## 다른 논문 해설

- [Convergent World Representations and Divergent Tasks](https://refivu.com/papers/f0831191-780f-4012-acce-67fbfef1e91f-convergent-world-representations-and-divergent-tasks.md)
- [TerraBind: Fast and Accurate Binding Affinity Prediction through Coarse Structural Representations](https://refivu.com/papers/c67c89d8-e6d3-462c-8b8a-625138519eff-terrabind-fast-and-accurate-binding-affinity-prediction.md)
- [From Basis to Basis: Gaussian Particle Representation for Interpretable PDE Operators](https://refivu.com/papers/781dcf66-e15d-4531-b189-587bdbaeb84b-from-basis-to-basis-gaussian-particle-representation-for.md)
- [Quantitative Estimation of Target Task Performance from Unsupervised Pretext Task in Semi/Self-Supervised Learning](https://refivu.com/papers/fc148abe-bacc-4bc7-8aa9-29e95a4910d3-quantitative-estimation-of-target-task-performance-from.md)
- [Weakly-Supervised Contrastive Learning for Imprecise Class Labels](https://refivu.com/papers/5bdf962b-fc80-4765-a6e2-7e6f4ac71a23-weakly-supervised-contrastive-learning-for-imprecise-class.md)
- [TimeDART: A Diffusion Autoregressive Transformer for Self-Supervised Time Series Representation](https://refivu.com/papers/a240f8ac-50ed-43b3-8dcc-abe9364ba94f-timedart-a-diffusion-autoregressive-transformer-for-self.md)
- [Of Mice and Machines: A Comparison of Learning Between Real World Mice and RL Agents](https://refivu.com/papers/42074f7f-2d98-4596-a8ec-59bd351934e5-of-mice-and-machines-a-comparison-of-learning.md)
- [Understanding and Improving Length Generalization in Recurrent Models](https://refivu.com/papers/f9cd6a9a-de1d-4e94-a91d-e03ad7e1036c-understanding-and-improving-length-generalization-in.md)
- [h1: Bootstrapping LLMs to Reason over Longer Horizons via Reinforcement Learning](https://refivu.com/papers/647b6b77-64d1-4597-a263-33cd7128dae7-h1-bootstrapping-llms-to-reason-over-longer-horizons.md)
- [Learn to Change the World: Multi-level Reinforcement Learning with Model-Changing Actions](https://refivu.com/papers/b3c3d38b-1a78-4269-b2bb-d40f6bf43e0c-learn-to-change-the-world-multi-level-reinforcement.md)
- [Efficient Parallel Samplers for Recurrent-Depth Models and Their Connection to Diffusion Language Models](https://refivu.com/papers/262ed432-5b97-462f-a0f1-44ba3791e072-efficient-parallel-samplers-for-recurrent-depth-models-and.md)
- [Log Neural Controlled Differential Equations: The Lie Brackets Make a Difference](https://refivu.com/papers/b0189c51-3e6b-4a2d-b5e4-d6cc22afeba1-log-neural-controlled-differential-equations-the-lie.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/3fea3af0-2676-4a6a-87fb-1e85dc08f329-the-hidden-link-between-rlhf-and-contrastive-learning)
