Skip to content
IJK

Preference Data: Chosen and Rejected Answers

By IJK ·

What a Hugging Face post says preference optimization requires, how each example is structured and what the model learns to predict.

What the data must capture

Preference optimization requires data that captures user preferences. [1]

What one example contains

In the binary choice setting, each example consists of a prompt, and two candidate answers: one that is chosen and one that is rejected. [2]

paired withteachesA promptthe input for one exampleTwo candidate answersone chosen and one rejectedThe model's goalpredict the chosen answer over the rejected one
What does one example contain?

What the model learns

The model's goal is to learn to predict the chosen answer over the rejected one. [3]

Sources

  1. The Hugging Face source says: Preference optimization requires data that captures user preferences. Preference Optimization for Vision Language Models
  2. The Hugging Face source says: In the binary choice setting, each example consists of a prompt, and two candidate answers: one that is chosen and one that is rejected. Preference Optimization for Vision Language Models
  3. The Hugging Face source says: The model's goal is to learn to predict the chosen answer over the rejected one. Preference Optimization for Vision Language Models

Editorial (AI-assisted; automatically checked, not human-reviewed). Each statement is linked to its source; check the source before relying on a detail.

  • preference optimization
  • dpo
  • trl
  • hugging face