Repeat punishment: what target will change by modifying the decoding score

Repeated punishments are adjusted to follow scores based on the token already generated, in an attempt to reduce loops or mechanical repetitions.

• 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

  • Explanation of double punishment: mechanisms and prerequisites for changing what targets would be changed by changing decoding scores
  • Positioning the mechanism ' s fault limits with fixed examples

Suggested first

  • Logits and Generating History

Issues and mechanisms

Repeated punishments are adjusted to follow scores based on the token already generated, in an attempt to reduce loops or mechanical repetitions. It is a decoding strategy that does not teach model weights, nor does it guarantee that any repetition should not occur. Technical terms, quotations, code brackets and poetry structures may need to be duplicated in the first place, and harmonization of inhibitions may change the quality of the task.

Different interfaces use different rules: some are adjusted for occurrence, others are limited by frequency or phrase, and others are treated separately for positive and negative logit. Multiplier penalties must be sensitive to symbols and directly divide all scores by more than one, which would make the negative scores bigger and could instead increase the score. The actual realization should be viewed, and the uniform formula cannot be extrapolated from the parameter name.

A concrete example

Synthesizing rules divided by two, negative logit multiplied by two for positive logit in the case of already visible items. See split into one, negative one, negative two, and no score remains unchanged. If negative one is incorrectly divided by two, it becomes negative by 0.5, and the relative probability increases when other fractions are fixed. This symbol reverses the ability to quickly test whether the rule really inhibits a given; However, the eventual probability still requires the re-alignment of the whole fraction.

Borders and checks

The term-level limitation may be the exclusive word that has been cut into multiple segments, with different cross-language effects. The limitation clause and the limitation list token are two types of conduct. The assessment should include topics and real cycle failures that permit repetition, avoiding the use of non-repeating ratios as the sole indicator; A short and wrong answer can also be entirely without repetition.

A method of verification

Repeated diagnostics should contain two contrasts: a single answer that is indeed caught in the loop and the need for the correct technical interpretation of the same term to appear repeatedly. If the penalty is used to destroy the second category at the same time, the cost should be reported. It is also possible to maintain the same historical content but adjust the number of repetitions, and to check whether the parameters are valid for occurrence or frequency. Output fractional variations, candidate filters and stop rules are to be saved separately so that the positioning loop is derived from model preferences, decoding configuration or termination of the mark.

Check understanding

The lower the repetition rate, the better the quality of the production?

No, it's not. The answer may omit the necessary terminology or cut-off structure. Duplicate indicators are assessed in conjunction with facts, integrity and mission formats and cannot be optimized separately.

Why is it possible that the negative logit is uniformly divided by the punitive factor?

Divided by a number greater than one will bring the negative values closer to zero, that is, relatively larger. The symbol rules used should be checked and not be judged solely by the “reduced” method.

Sources and reconciliations

Definitions, methods and interfaces are available.

  1. Hugging Face Transformers — Generation
  2. Stanford CS336 — Language Modeling from Scratch, Spring 2025

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.