PPO Cut Targets: Limit Probability Ratio of Incentives

PPO sampled with old strategy, comparing the probability of old and new strategy to the same action.

Thematic shorts • In-depthCollate 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 PPO Interruption of Targets: Mechanisms and Preconditions for Limiting Probability Ratios to Gains in Incentive Directions
  • Positioning the mechanism ' s fault limits with fixed examples

Suggested first

  • Strategy gradient to weight ratio

Issues and mechanisms

PPO sampled with old strategy, comparing the probability of old and new strategy to the same action. Intercepting proxy targets avoids some orientation updates that benefit only from pushing probabilities far away, but does not limit the strategy as a whole to a certain distance. Intersections must be understood in terms of both the positive and the negative aspects of the advantage, and the gradients cannot be reduced to zero if they are said to exceed the range.

Makes the probability less than r for a new probability, with an advantage of A, maximizing the lesser value of rA and intercepting r, multiplied by A. (a) where positive advantage is obtained, the gains from the excess margin are intercepted; In the case of negative advantages, excessive improvements resulting from the margin are intercepted. The target remains a sample agent, with old strategies, strengths estimates and frequency of updates being algorithmic contracts that do not mix different versions of probabilities.

ℓ=min(rA,clip(r,1−ε,1+ε)A)

A concrete example

The synthetic cut range is 0.8 to 1.2. (b) At positive advantage two, margin 1.5, unclosed three, intercept 2.4, take 2.4; Negative advantage two, minus 0.5, minus one, minus 1.6 and minus 1.6. The negative advantage, which is three times less than 2.4 times the 1.5, still imposes penalties for raising the probability of bad action. Three cases check whether the symbols are being processed correctly.

Borders and checks

The probability is extreme compared to the likelihood of a long sequence being joined, and the achievement of the language model involves the definition of token level and sequence, the punishment of KL and the standardization of length. PPO Interception does not provide a single-speech assurance of each real return, nor is it a substitute for permission and hard constraints. Actual KL, cut-off ratios, entropy and independent mission performance should be monitored and cannot be judged online by a single proxy target.

A method of verification

It is recommended that the probabilities ratio be three for each advantage: below the floor, within the range and above the ceiling, and that a six-size case be formed. The two multipliers are calculated by cell and the smaller values are more reliable than the back-word cut-off sign. After several rounds, it is also necessary to check whether the old probability remains a snapshot of the sample, and not every small batch can re-establish the old strategy using the current strategy. The very low cut ratio does not mean that the real KL is necessarily low, and the measures differ and should be recorded separately.

Check understanding

Do you always cut the margin ceiling to 1.2 when you have a negative advantage?

It cannot be summarized as such. After taking the smaller value of the two symbols multiplied, some directions still retain the uninterrupted penalty; It must be calculated using the complete formula and the advantage sign.

Does cutting constitute a strict old and new strategy for KL?

Usually not. It limits some direction of the agent ' s proceeds from the sample, and the unsampled action and other parameter couplings remain variable; Actual deviations need to be measured.

Sources and reconciliations

Definitions, methods and interfaces are available.

  1. Proximal Policy Optimization Algorithms
  2. OpenAI Spinning Up — Vanilla Policy Gradient

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.