Reading preferences
Concept

Preference Alignment and Efficient Adaptation

Distinguish RLHF and DPO objectives from LoRA and QLoRA parameter-efficient updates.

generative ai, rlhf, dpo, lora, qlora

What is optimised?

In one RLHF pipeline, people compare responses, a reward model learns from preferences, and reinforcement learning optimises a policy against that reward with constraints on deviation. DPO instead uses preference pairs and a reference policy in a direct objective, without a separate reward-model optimisation loop in the standard formulation. Both depend on the preference data and assumptions; neither proves universal alignment.

A preference pair

  1. For a question, evaluators prefer response A to response B under a rubric.
  2. The pair becomes training data; DPO adjusts the policy relative to a reference model using that preference.
  3. Evaluate on held-out tasks and affected groups. One preference is not a proof that A is always correct or safe.

See the reasoning

Follow the example one step at a time

Follow one preference pair without claiming universal alignment. This is a prepared teaching demonstration, not live code execution.

Compare

same prompt: A preferred over B

Evaluators apply a stated rubric to two responses.

How are parameters updated?

LoRA represents an update with smaller low-rank matrices, often freezing the original weight matrix. QLoRA trains adapters through a frozen quantized base, reducing memory needs. These are parameter-update techniques, not replacements for a preference objective: they can be used with different training objectives. Data quality, adapter rank, quantization and evaluation influence results; efficient training is not automatically safe or faithful.

Reflect on the concept

Four fixed questions to reinforce the reasoning. Answers are not saved or scored.

1. What can a reward model in RLHF learn from?
2. What does DPO use directly for its preference objective?
3. What does LoRA typically train?
4. What is a key QLoRA idea?

References and further reading