KL Rule: Let the reward optimize to remember the reference strategy

Maximizing incentives alone may keep strategies away from pre-existing behaviour and magnify the loopholes in incentive models.

• Step by stepCollate in 2 self-measured2 First-hand sources
Start Body
Learning objectives and first steps2 objectives . 1 first fix

Try to do it after reading

  • Interpretation of KL Rule: Mechanisms and premises for making the rewards optimize to keep the reference strategy in mind
  • Positioning the mechanism ' s fault limits with fixed examples

Suggested first

  • Probability distribution and expectations reward

Issues and mechanisms

Maximizing incentives alone may keep strategies away from pre-existing behaviour and magnify the loopholes in incentive models. KL, which is a relative reference strategy, punishes this deviation by placing the “higher score” and the “changed amount” in the same goal. The reference strategy is not the right answer, nor is the punishment a panacea, but a clear distributional preference.

Under a fixed hint, the target can be stated as a strategic expectation incentive minus factor multiplied by KL. Direction must be stated: The two parameters of KL are generally different. On a token basis, it is estimated that it is also necessary to distinguish the logarithmic ratio on the trajectories from the overall distribution expectations, and that the single logarithm ratio can be negative, and cannot be said to be negative for KL as a whole. Coefficients, sampling and length processing have combined impacts to optimize.

DKL(π∥πref)=∑aπ(a)logπ(a)πref(a)

A concrete example

Synthetic two action reference distribution [0.5,0.5], new strategy [0.8, 0.2]. Heading KL For 0.8 log1 6 plus 0.2 log0 4, about 0.192745. If the incentives are one and zero, the new strategy expects to reward 0.8, and the coefficient is about 0.414510; Reference strategy target 0.5. Although the new strategy rewards more, the penalty is not favoured when it is added, and the coefficient changes the actual trade-off.

Borders and checks

The theory KL may be endless when the reference is zero probability and the new strategy is given positive quality, and the value clipping changes the target and should describe the treatment. The approximate KL, rewards and output length observed during the training are reported together. A historical formulation factor cannot be used as a cross-model generic value or as a small average distance to mask a few mission-specific transboundary behaviours.

A method of verification

A full discrete distribution, item by item, compared to the sample estimate, can be used first to verify KL. If only the logarithm of token is recorded, it should be clear what kind of random estimate is and a negative sample cannot be considered non-negative. The alert group and output length should also be examined separately: the overall average distance is small and may still contain a few serious deviations. Once the reference version changes, history KL no longer corresponds directly to the calibre of the new value and a new benchmark for comparison needs to be marked.

Check understanding

A sample log strategy is negative compared to the reference. Is it non-negative to violate KL?

No violation. Non-negative is intended to address the full expectations and the logarithmic ratio of individual samples can be negative; It is also estimated that noise is to be distinguished from sampled calibres.

Is it a mistake to calculate that the reward rises but the target drops?

Not necessarily. The cost of deviation from the reference may exceed the incentive increase and should be checked against clearly defined targets rather than just looking at the reward line.

Sources and reconciliations

Definitions, methods and interfaces are available.

  1. Direct Preference Optimization
  2. Training language models to follow instructions with human feedback

Figures and calculations are reorganized according to this chapter. Mathematical measurements, framework operations and real business effects are described separately in the body of the text.

← Back to the knowledge directory
Ask Max Ask about this site
Ask Max ↗

Opening the assistant…

Paper figure

Photo comments

LEAVE A NOTE

About this photograph

Connecting to the discussion board…

    Comments become public after moderation. You can delete your own comments from this browser.
    No email is required. Clearing cookies prevents this browser from claiming earlier comments.

    MAX WANG / INDEX

    Find something

    Enter a keyword, or explore the directory below.