Ir para o conteúdo
Menu
Português

RLHF vs DPO

Aligning a model with human preference using reinforcement learning on ranked outputs.

Comparação de características

Ainda não foram registados atributos comparáveis para estas duas tecnologias.

Qual deve escolher?

Gerado a partir das diferenças acima por regras estruturadas, não por um modelo.

Choose RLHF if…

Nenhum dos atributos registados o distingue a seu favor.

Choose DPO if…

Nenhum dos atributos registados o distingue a seu favor.

Sobre esta página

A página permanece acessível mas fica excluída dos índices de busca até conter detalhe suficiente com fontes (PRD SEO-08).

RLHF

technique · Techniques

RLHF trains a reward model on human comparisons of model outputs, then uses reinforcement learning to steer the language model toward what the reward model scores highly. It solves the problem that the behaviour people want, being helpful and refusing harmful requests, is far easier to rank than to write as a supervised target. It exists because it is what turned a raw next-token predictor into something that follows instructions, and it is the step DPO later simplified.

DPO

technique · Techniques

Direct Preference Optimization optimises a language model on pairs of preferred and rejected responses in a single supervised-style step. It solves the complexity of RLHF, which needs a separate reward model and a reinforcement learning loop that is notoriously sensitive to hyperparameters. It exists because the RLHF objective can be rewritten so the optimal policy is available in closed form, which removes the need for the reward model and the sampling loop entirely.