179 questions
No questions match those filters.
← All questions
Training & Fine-tuningMedium· DPO· Contrastive Learning· Loss Functions
How is DPO related to contrastive learning?
This is one of the questions in the full AI/ML interview bank. Pro unlocks all 1789 questions; Premium includes the same bank plus the highest daily Practice limit.
See plansThe DPO loss function is closely related to InfoNCE and noise-contrastive estimation. It functions by increasing the log-likelihood of chosen completions relative to rejected ones, weighted by the model’s prediction error. The primary distinction is that while standard contrastive learning often uses random negative samples, DPO uses specific rejected completions provided in a preference dataset to define the contrastive target.